[03:22:34]OFD Sender: No OFD packet to send [03:22:39]OFD Sender: No OFD packet to send [03:22:44]OFD Sender: No OFD packet to send [03:22:49]OFD Sender: No OFD packet to send [03:22:54]OFD Sender: No OFD packet to send [03:22:59]OFD Sender: No OFD packet to send [03:23:04]OFD Sender: No OFD packet to send [03:23:09]OFD Sender: No OFD packet to send [03:23:14]OFD Sender: No OFD packet to send [03:23:19]OFD Sender: No OFD packet to send [03:23:24]OFD Sender: No OFD packet to send [03:23:29]OFD Sender: No OFD packet to send [03:23:34]OFD Sender: No OFD packet to send [03:23:39]OFD Sender: No OFD packet to send [03:23:44]OFD Sender: No OFD packet to send [03:23:49]OFD Sender: No OFD packet to send [03:23:54]OFD Sender: No OFD packet to send [03:23:59]OFD Sender: No OFD packet to send [03:24:04]OFD Sender: No OFD packet to send [03:24:09]OFD Sender: No OFD packet to send [03:24:14]OFD Sender: No OFD packet to send [03:24:19]OFD Sender: No OFD packet to send [03:24:24]OFD Sender: No OFD packet to send [03:24:29]OFD Sender: No OFD packet to send [03:24:34]OFD Sender: No OFD packet to send [03:24:39]OFD Sender: No OFD packet to send [03:24:44]OFD Sender: No OFD packet to send [03:24:49]OFD Sender: No OFD packet to send [03:24: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:38]accept exits with 8 [03:31:38]New connection [03:31:38]New thread 3066785124 created [03:31:38]Thread 3066928484 joined [03:31:38]Waiting for new connection... [03:31:38] Sock 8.Parse request [03:31:38]Sock 8.Check first char [03:31:38]Sock 8.First char is OK [03:31:38]request: POST /json_proto HTTP/1.0 [03:31:38]Method: POST [03:31:38]URL: /json_proto [03:31:38]Method is POST - this is cgi request [03:31:38]url: /json_proto [03:31:38]query_string will be loaded in cgi processing [03:31:38]execute_cgi json_proto POST (null) [03:31:38]execute_cgi path=json_proto method=POST [03:31:38]POST find Content-Length [03:31:38]Host: 172.17.45.8:8080 [03:31:38]Content-Length: 904 [03:31:38]Content-Type: application/json [03:31:38] [03:31:38]POST finish read [03:31:38]Found Content-Length = 904 [03:31:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150502", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 3.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 425.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:31:38]execute_script... [03:31: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)150502", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 3.000, "sum" : 300.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 425.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:31:38]POST & json_proto [03:31:38]process_json_proto [03:31:38]json parsed OK: [03:31:38]protocol is kg_v1.0 [03:31:38]action value=close_receipt [03:31:38]process_action close_receipt [03:31:38]cmd_close_receipt [03:31:38]MH_GetDate [03:31:38]Write to MH i2c: F0 00 00 0E 0E 0B [03:31:38]Write i2c OK [03:31:38]MH_I2C_Read... [03:31:38]Read from MH i2c: F0 [03:31:38]MH_I2C_Read... [03:31:38]Read from MH i2c: F0 09 00 [03:31:38]MH_I2C_Read... [03:31:38]Read from MH i2c: F0 09 00 0E 0E 00 1D 0D A7 66 A6 1F 7F 64 F3 [03:31:38]GetLastDocTimeStamp 1722221769 [03:31:38]current date 1722223901 [03:31:38]FM_GetShiftState [03:31:38]SAM_PROTO_GetShiftState [03:31:38]wFMCommunicate request_size=4 [03:31:38]MH_SAM_APDU [03:31:38]CAPDU: 80 13 01 00 [03:31:38]Write to MH i2c: E2 08 00 0F 0E 80 13 01 00 00 00 00 00 9A [03:31:38]Write i2c OK [03:31:38]MH_I2C_Read... [03:31:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:31:38]Read from MH i2c: E2 [03:31:38]MH_I2C_Read... [03:31:38]Read from MH i2c: E2 0E 00 [03:31:38]MH_I2C_Read... [03:31:38]Read from MH i2c: E2 0E 00 0F 0E 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 1B [03:31:38]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [03:31:38]wFMCommunicate OK [03:31:38]SAM_PROTO_GetShiftState done [03:31:38]FM_GetShiftState done [03:31:38]opened in 1722213509 [03:31:38]opened+sec_in_day 1722299909 [03:31:38]quantity*price = 30000 [03:31:38]sum+1 = 30001 [03:31:38]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 425.00 НСП 1% : 3.76 НДС 12% : 45.13 Наличными: 425.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 8 29.07.2024 03:31 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27105 ФПД: 267477579182880 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T033141&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27105&fm=267477579182880&tin=02508201610067®Number=0000000000092663&sum=42500 0 [03:31:39]StoreToDocumentArchive [03:31:39]shift 434 fd 27105 [03:31:39]save to /storage/0434/doc_00027105 [03:31:39]save last doc name /storage/0434/doc_00027105 to /storage/kkm_last_doc_name [03:31:39]save OK [03:31:39]Clear old archive folders... [03:31:39]ProcessDocumentItem done err = 0, tmpTLVsize=378 [03:31:39]tlvbuf is 00188E40 [03:31:39]SAM_PROTO_ClearQueue [03:31:39]wFMCommunicate request_size=4 [03:31:39]MH_SAM_APDU [03:31:39]CAPDU: 80 09 00 00 [03:31:39]Write to MH i2c: E2 08 00 1C 0E 80 09 00 00 00 00 00 00 9C [03:31:39]Write i2c OK [03:31:39]MH_I2C_Read... [03:31:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:31:39]Read from MH i2c: E2 [03:31:39]MH_I2C_Read... [03:31:39]Read from MH i2c: E2 03 00 [03:31:39]MH_I2C_Read... [03:31:39]Read from MH i2c: E2 03 00 1C 0E 00 90 00 9E [03:31:39]RAPDU: 90 00 [03:31:39]wFMCommunicate OK [03:31:39]SAM_PROTO_ClearQueue done [03:31:39]KKMCreateOFDPacket [03:31:39]OFDProtocolAddRootSTLVToBuf [03:31:39]FM_MakeSignedData [03:31:39]FM_MakeSignedData [03:31:39]SAM_PROTO_SignData [03:31:39]wFMCommunicate request_size=4 [03:31:39]MH_SAM_APDU [03:31:39]CAPDU: 80 0D 01 02 [03:31:39]Write to MH i2c: E2 08 00 1D 0E 80 0D 01 02 00 00 00 00 A4 [03:31:39]Write i2c OK [03:31:39]MH_I2C_Read... [03:31:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:31:39]Read from MH i2c: E2 [03:31:39]MH_I2C_Read... [03:31:39]Read from MH i2c: E2 03 00 [03:31:39]MH_I2C_Read... [03:31:39]Read from MH i2c: E2 03 00 1D 0E 00 90 00 9F [03:31:39]RAPDU: 90 00 [03:31:39]wFMCommunicate OK [03:31:39]wFMCommunicate request_size=255 [03:31:39]MH_SAM_APDU [03:31:39]CAPDU: 80 0D 02 02 FA 03 00 7A 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 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 31 D0 BB 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 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 [03:31:39]Write to MH i2c: E2 02 01 1E 0E 80 0D 02 02 FA 00 03 00 7A 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 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 31 D0 BB 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 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 00 00 D0 [03:31:39]Write i2c OK [03:31:39]MH_I2C_Read... [03:31:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:31:39]Read from MH i2c: E2 [03:31:39]MH_I2C_Read... [03:31:39]Read from MH i2c: E2 03 00 [03:31:39]MH_I2C_Read... [03:31:39]Read from MH i2c: E2 03 00 1E 0E 00 90 00 A0 [03:31:39]RAPDU: 90 00 [03:31:39]wFMCommunicate OK [03:31:39]wFMCommunicate request_size=137 [03:31:39]MH_SAM_APDU [03:31:39]CAPDU: 80 0D 02 02 84 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 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 1D 0D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E1 69 00 00 35 04 06 00 F3 44 FA 17 B3 20 [03:31:39]Write to MH i2c: E2 8C 00 1F 0E 80 0D 02 02 84 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 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 1D 0D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E1 69 00 00 35 04 06 00 F3 44 FA 17 B3 20 00 00 96 [03:31:39]Write i2c OK [03:31:39]MH_I2C_Read... [03:31:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:31:39]Read from MH i2c: E2 [03:31:39]MH_I2C_Read... [03:31:39]Read from MH i2c: E2 03 00 [03:31:39]MH_I2C_Read... [03:31:39]Read from MH i2c: E2 03 00 1F 0E 00 90 00 A1 [03:31:39]RAPDU: 90 00 [03:31:39]wFMCommunicate OK [03:31:39]wFMCommunicate request_size=4 [03:31:39]MH_SAM_APDU [03:31:39]CAPDU: 80 0D 03 02 [03:31:39]Write to MH i2c: E2 08 00 20 0E 80 0D 03 02 00 00 00 00 A9 [03:31:39]Write i2c OK [03:31:39]MH_I2C_Read... [03:31:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:31:39]Read from MH i2c: E2 [03:31:39]MH_I2C_Read... [03:31:39]Read from MH i2c: E2 0B 00 [03:31:39]MH_I2C_Read... [03:31:39]Read from MH i2c: E2 0B 00 20 0E 00 B7 00 20 F3 96 7E 34 FC 90 00 B8 [03:31:39]RAPDU: B7 00 20 F3 96 7E 34 FC 90 00 [03:31:39]wFMCommunicate OK [03:31:39]SAM_PROTO_SignData done [03:31:39]FM_MakeSignedData done [03:31:39]CreateOFDProtocolMessage [03:31:39]wFMCommunicate request_size=4 [03:31:39]MH_SAM_APDU [03:31:39]CAPDU: 80 11 00 00 [03:31:39]Write to MH i2c: E2 08 00 21 0E 80 11 00 00 00 00 00 00 A9 [03:31:39]Write i2c OK [03:31:39]MH_I2C_Read... [03:31:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:31:40]Read from MH i2c: E2 [03:31:40]MH_I2C_Read... [03:31:40]Read from MH i2c: E2 17 00 [03:31:40]MH_I2C_Read... [03:31:40]Read from MH i2c: E2 17 00 21 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 02 [03:31:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [03:31:40]wFMCommunicate OK [03:31:40]CreateOFDProtocolMessage done [03:31:40]OFDSenderStorePacket 27105 [03:31:40]StoreOFDPacket docnum=27105 [03:31:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 8E 01 00 00 9A A0 86 01 4E 32 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 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 31 D0 BB 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 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 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 1D 0D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E1 69 00 00 35 04 06 00 F3 44 FA 17 B3 20 B7 00 20 F3 96 7E 34 FC [03:31:40]CheckFolder [03:31:40]dirname=/storage/ofd_packets [03:31:40]CheckFolder done [03:31:40]ProducePacketName [03:31:40]name=ofd_packets/00027105 [03:31:40]NVStorageSaveData ofd_packets/00027105 [03:31:40]File name is /storage/ofd_packets/00027105 [03:31:40]Write 428 bytes [03:31:40]NVStorageSaveData done [03:31:40]OFDSenderStorePacket done [03:31:40]KKMCreateOFDPacket done [03:31:40]NVStorageSaveData kkm_last_timestamp [03:31:40]File name is /storage/kkm_last_timestamp [03:31:40]Write 4 bytes [03:31:40]NVStorageSaveData done [03:31:40]ExternCall_PrintAddStr [03:31:40]wPrintStart [03:31:40]Write to MH i2c: 01 00 00 22 0E 30 [03:31:40]Write i2c OK [03:31:40]MH_I2C_Read... [03:31:40]Read from MH i2c: 01 [03:31:40]MH_I2C_Read... [03:31:40]Read from MH i2c: 01 07 00 [03:31:40]MH_I2C_Read... [03:31:40]Read from MH i2c: 01 07 00 22 0E 00 00 00 00 00 FF 0F 45 [03:31:40]RasterBufferAndPrint [03:31:40]line Счет N : (3)150502 [03:31:40]line ИНН: 02508201610067 [03:31:40]line Контрольно-Кассовый Чек [03:31:40]line ПРОДАЖА [03:31:40]line Товар: 4700000480814 [03:31:40]line Пиво Живое 0,5 ст [03:31:40]line 3.000 * 100.00 [03:31:40]line = 300.00 [03:31:40]line НДС 12% НСП 1% [03:31:40]line > о реализуемом товаре [03:31:40]line Товар: 5449000054227 [03:31:40]line Напиток Кока-Кола 1л [03:31:40]line 1.000 * 125.00 [03:31:40]line = 125.00 [03:31:40]line НДС 12% НСП 1% [03:31:40]line > о реализуемом товаре [03:31:40]line ИТОГО: 425.00 [03:31:40]line НСП 1% : 3.76 [03:31:40]line НДС 12% : 45.13 [03:31:40]line Наличными: 425.00 [03:31:40]line Безнал.: 0.00 [03:31:40]line Место: АЗС № 134 "Партнер Нефть" [03:31:40]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [03:31:40]line СНО: Общий режим [03:31:40]line Чек 8 29.07.2024 03:31 [03:31:40]line Смена: 434 ФФД: 1.0 [03:31:40]line ЗНМ: 0300000043 [03:31:40]line РНМ: 0000000000092663 [03:31:40]line Версия ККМ: 001 [03:31:40]line ФМ: 0000000000874937 [03:31:40]line ФД: 27105 [03:31:40]line ФПД: 267477579182880 [03:31:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T033141&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27105&fm=267477579182880&tin=02508201610067®Number=0000000000092663&sum=42500 [03:31:40]line 0 [03:31:40]OFD Sender: Processing packet 27105 [packets to send 9, broken 8] [03:31:40]ProducePacketName [03:31:40]name=ofd_packets/00027105 [03:31:40]OFD Sender: To server: pG, [03:31:40]CommunicateWithHost lk.salyk.kg:30040 [03:31:40]ConnectInit lk.salyk.kg [03:31:40]written 0, free lines is 4095 [03:31:40]Connected sock=10 [03:31:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 8E 01 00 00 9A A0 86 01 4E 32 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 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 31 D0 BB 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 04 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 11 00 00 00 00 07 04 06 00 04 A6 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 1D 0D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E1 69 00 00 35 04 06 00 F3 44 FA 17 B3 20 B7 00 20 F3 96 7E 34 FC [03:31:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 AD FE 47 00 7B 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E1 69 00 00 F4 03 04 00 6F B3 A6 66 B6 04 01 00 00 B2 CF C7 C9 BF 85 3A B4 [03:31:40]CommunicateWithHost err = 0 [03:31:40]CheckOFDResponse [03:31:40]1017 (14) - 77093643461234 [03:31:40]1041 (16) - 0000000000874937 [03:31:40]1040 (4) - 27105 [03:31:40]1012 (4) - 28.07.2024 21:09 [03:31:40]1206 (1) - 0 [03:31:40]OFD Sender: Remove packet 27105 [03:31:40]ProducePacketName [03:31:40]name=ofd_packets/00027105 [03:31:40]NVStorageDeleteData [03:31:40]Write to MH i2c: 01 00 00 4F 0E 5D [03:31:40]Write i2c OK [03:31:40]MH_I2C_Read... [03:31:40]Read from MH i2c: 01 [03:31:40]MH_I2C_Read... [03:31:40]Read from MH i2c: 01 07 00 [03:31:40]MH_I2C_Read... [03:31:40]Read from MH i2c: 01 07 00 4F 0E 00 00 00 00 00 AE 0C 1E [03:31:40]RasterBufferAndPrint [03:31:40]line [03:31:40]line [03:31:40]line [03:31:40]line [03:31:40]line [03:31:40]written 0, free lines is 3251 [03:31:40]MH_Cut [03:31:40]Write to MH i2c: D1 01 00 56 0E 01 36 [03:31:40]Write i2c OK [03:31:40]MH_I2C_Read... [03:31:40]Read from MH i2c: D1 [03:31:40]MH_I2C_Read... [03:31:40]Read from MH i2c: D1 01 00 [03:31:40]MH_I2C_Read... [03:31:40]Read from MH i2c: D1 01 00 56 0E 00 35 [03:31:40]Write to MH i2c: 01 00 00 57 0E 65 [03:31:40]Write i2c OK [03:31:40]MH_I2C_Read... [03:31:41]OFD Sender: No OFD packet to send [03:31:41]*** Cut start [03:31:41]*** Partial cut [03:31:41]*** CUTSNS_PIN = 1 [03:31:41]*** CUTSNS_PIN = 0 [03:31:41]*** Brake cut motor [03:31:42]Read from MH i2c: 01 [03:31:42]MH_I2C_Read... [03:31:42]*** Stop cut motor [03:31:42]*** Cut end [03:31:42]Read from MH i2c: 01 07 00 [03:31:42]MH_I2C_Read... [03:31:42]Read from MH i2c: 01 07 00 57 0E 00 00 00 00 00 FF 0F 7A [03:31:42]process_action close_receipt done [03:31:42]requested_data is exist [03:31:42]produce_requested_data [03:31:42]requested_item fm.sn is exist - process it [03:31:42]wFMCommunicate request_size=4 [03:31:42]MH_SAM_APDU [03:31:42]CAPDU: 80 11 00 00 [03:31:42]Write to MH i2c: E2 08 00 58 0E 80 11 00 00 00 00 00 00 E0 [03:31:42]Write i2c OK [03:31:42]MH_I2C_Read... [03:31:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:31:42]Read from MH i2c: E2 [03:31:42]MH_I2C_Read... [03:31:42]Read from MH i2c: E2 17 00 [03:31:42]MH_I2C_Read... [03:31:42]Read from MH i2c: E2 17 00 58 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 39 [03:31:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [03:31:42]wFMCommunicate OK [03:31:42]requested_item fd.num is exist - process it [03:31:42]SAM_PROTO_GetFieldsCounters [03:31:42]wFMCommunicate request_size=4 [03:31:42]MH_SAM_APDU [03:31:42]CAPDU: 80 13 00 00 [03:31:42]Write to MH i2c: E2 08 00 59 0E 80 13 00 00 00 00 00 00 E3 [03:31:42]Write i2c OK [03:31:42]MH_I2C_Read... [03:31:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:31:42]Read from MH i2c: E2 [03:31:42]MH_I2C_Read... [03:31:42]Read from MH i2c: E2 62 00 [03:31:42]MH_I2C_Read... [03:31:42]Read from MH i2c: E2 62 00 59 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 E1 69 00 00 0E 04 04 00 B2 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 20 [03:31:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 E1 69 00 00 0E 04 04 00 B2 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:31:42]wFMCommunicate OK [03:31:42]SAM_PROTO_GetFieldsCounters done [03:31:42]requested_item shift.num is exist - process it [03:31:42]requested_item shift.opened is exist - process it [03:31:42]req_shift_opened [03:31:42]FM_GetShiftState [03:31:42]SAM_PROTO_GetShiftState [03:31:42]wFMCommunicate request_size=4 [03:31:42]MH_SAM_APDU [03:31:42]CAPDU: 80 13 01 00 [03:31:42]Write to MH i2c: E2 08 00 5A 0E 80 13 01 00 00 00 00 00 E5 [03:31:42]Write i2c OK [03:31:42]MH_I2C_Read... [03:31:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:31:42]Read from MH i2c: E2 [03:31:42]MH_I2C_Read... [03:31:42]Read from MH i2c: E2 0E 00 [03:31:42]MH_I2C_Read... [03:31:42]Read from MH i2c: E2 0E 00 5A 0E 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 66 [03:31:42]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [03:31:42]wFMCommunicate OK [03:31:42]SAM_PROTO_GetShiftState done [03:31:42]FM_GetShiftState done [03:31:42]req_shift_opened done [03:31:42]requested_item shift.open_date is exist - process it [03:31:42]req_shift_open_date [03:31:42]req_shift_open_date done [03:31:42]produce_requested_data done [03:31:42]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27105,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [03:31:42]process_action_free close_receipt [03:31:42]json_value_free [03:31:42]json_value_free done [03:31:42]process_json_proto returns [03:31:42]Send response to host [03:31:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27105,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [03:31:42]free response buf [03:31:42]execute_script done [03:31:42]execute_script returns [03:31:42]free content buf [03:31:42]Sock 8.Close socket [03:31:42]Sock 8.Thread stoped [03:31:46]OFD Sender: No OFD packet to send [03:31:51]OFD Sender: No OFD packet to send [03:31:56]OFD Sender: No OFD packet to send [03:32:01]OFD Sender: No OFD packet to send [03:32:06]OFD Sender: No OFD packet to send [03:32:11]OFD Sender: No OFD packet to send [03:32:16]OFD Sender: No OFD packet to send [03:32:21]OFD Sender: No OFD packet to send [03:32:26]OFD Sender: No OFD packet to send [03:32:31]OFD Sender: No OFD packet to send [03:32:36]OFD Sender: No OFD packet to send [03:32:41]OFD Sender: No OFD packet to send [03:32:46]OFD Sender: No OFD packet to send [03:32:51]OFD Sender: No OFD packet to send [03:32:56]OFD Sender: No OFD packet to send [03:33:01]OFD Sender: No OFD packet to send [03:33:06]OFD Sender: No OFD packet to send [03:33:11]OFD Sender: No OFD packet to send [03:33:16]OFD Sender: No OFD packet to send [03:33:21]OFD Sender: No OFD packet to send [03:33:26]OFD Sender: No OFD packet to send [03:33:31]OFD Sender: No OFD packet to send [03:33:36]OFD Sender: No OFD packet to send [03:33:41]OFD Sender: No OFD packet to send [03:33:46]OFD Sender: No OFD packet to send [03:33:51]OFD Sender: No OFD packet to send [03:33:56]OFD Sender: No OFD packet to send [03:34:01]OFD Sender: No OFD packet to send [03:34:06]OFD Sender: No OFD packet to send [03:34:11]OFD Sender: No OFD packet to send [03:34:16]OFD Sender: No OFD packet to send [03:34:21]OFD Sender: No OFD packet to send [03:34:26]OFD Sender: No OFD packet to send [03:34:31]OFD Sender: No OFD packet to send [03:34:36]OFD Sender: No OFD packet to send [03:34:41]OFD Sender: No OFD packet to send [03:34:46]OFD Sender: No OFD packet to send [03:34:51]OFD Sender: No OFD packet to send [03:34:56]OFD Sender: No OFD packet to send [03:35:01]OFD Sender: No OFD packet to send [03:35:06]OFD Sender: No OFD packet to send [03:35:11]OFD Sender: No OFD packet to send [03:35:16]OFD Sender: No OFD packet to send [03:35:21]OFD Sender: No OFD packet to send [03:35:26]OFD Sender: No OFD packet to send [03:35:31]OFD Sender: No OFD packet to send [03:35:36]OFD Sender: No OFD packet to send [03:35:41]OFD Sender: No OFD packet to send [03:35:46]OFD Sender: No OFD packet to send [03:35:51]OFD Sender: No OFD packet to send [03:35:56]OFD Sender: No OFD packet to send [03:36:01]OFD Sender: No OFD packet to send [03:36:06]OFD Sender: No OFD packet to send [03:36:11]OFD Sender: No OFD packet to send [03:36:16]OFD Sender: No OFD packet to send [03:36:21]OFD Sender: No OFD packet to send [03:36:26]OFD Sender: No OFD packet to send [03:36:31]OFD Sender: No OFD packet to send [03:36:36]OFD Sender: No OFD packet to send [03:36:41]OFD Sender: No OFD packet to send [03:36:46]OFD Sender: No OFD packet to send [03:36:51]OFD Sender: No OFD packet to send [03:36:56]OFD Sender: No OFD packet to send [03:37:01]OFD Sender: No OFD packet to send [03:37:06]OFD Sender: No OFD packet to send [03:37:11]OFD Sender: No OFD packet to send [03:37:16]OFD Sender: No OFD packet to send [03:37:21]OFD Sender: No OFD packet to send [03:37:26]OFD Sender: No OFD packet to send [03:37:31]OFD Sender: No OFD packet to send [03:37:36]OFD Sender: No OFD packet to send [03:37:41]OFD Sender: No OFD packet to send [03:37:46]OFD Sender: No OFD packet to send [03:37:51]OFD Sender: No OFD packet to send [03:37:56]OFD Sender: No OFD packet to send [03:38:01]OFD Sender: No OFD packet to send [03:38:06]OFD Sender: No OFD packet to send [03:38:11]OFD Sender: No OFD packet to send [03:38:16]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:52]OFD Sender: No OFD packet to send [03:49:57]OFD Sender: No OFD packet to send [03:50:02]OFD Sender: No OFD packet to send [03:50:07]OFD Sender: No OFD packet to send [03:50:12]OFD Sender: No OFD packet to send [03:50:17]OFD Sender: No OFD packet to send [03:50:22]OFD Sender: No OFD packet to send [03:50:27]OFD Sender: No OFD packet to send [03:50:32]OFD Sender: No OFD packet to send [03:50:37]OFD Sender: No OFD packet to send [03:50:42]OFD Sender: No OFD packet to send [03:50:47]OFD Sender: No OFD packet to send [03:50:52]OFD Sender: No OFD packet to send [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:07]OFD Sender: No OFD packet to send [03:51:12]OFD Sender: No OFD packet to send [03:51:17]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:32]OFD Sender: No OFD packet to send [03:51:37]OFD Sender: No OFD packet to send [03:51:42]OFD Sender: No OFD packet to send [03:51:47]OFD Sender: No OFD packet to send [03:51:52]OFD Sender: No OFD packet to send [03:51:57]OFD Sender: No OFD packet to send [03:52:02]OFD Sender: No OFD packet to send [03:52:07]OFD Sender: No OFD packet to send [03:52:12]OFD Sender: No OFD packet to send [03:52:17]OFD Sender: No OFD packet to send [03:52:22]OFD Sender: No OFD packet to send [03:52:27]OFD Sender: No OFD packet to send [03:52:32]OFD Sender: No OFD packet to send [03:52:37]OFD Sender: No OFD packet to send [03:52:42]OFD Sender: No OFD packet to send [03:52:47]OFD Sender: No OFD packet to send [03:52:52]OFD Sender: No OFD packet to send [03:52:57]OFD Sender: No OFD packet to send [03:53:02]OFD Sender: No OFD packet to send [03:53:07]OFD Sender: No OFD packet to send [03:53:12]OFD Sender: No OFD packet to send [03:53:17]OFD Sender: No OFD packet to send [03:53:22]OFD Sender: No OFD packet to send [03:53:27]OFD Sender: No OFD packet to send [03:53:32]OFD Sender: No OFD packet to send [03:53:37]OFD Sender: No OFD packet to send [03:53:42]OFD Sender: No OFD packet to send [03:53:47]OFD Sender: No OFD packet to send [03:53:52]OFD Sender: No OFD packet to send [03:53:57]OFD Sender: No OFD packet to send [03:54:02]OFD Sender: No OFD packet to send [03:54:07]OFD Sender: No OFD packet to send [03:54:12]OFD Sender: No OFD packet to send [03:54:17]OFD Sender: No OFD packet to send [03:54:22]OFD Sender: No OFD packet to send [03:54:27]OFD Sender: No OFD packet to send [03:54:32]OFD Sender: No OFD packet to send [03:54:37]OFD Sender: No OFD packet to send [03:54:42]OFD Sender: No OFD packet to send [03:54:47]OFD Sender: No OFD packet to send [03:54:52]OFD Sender: No OFD packet to send [03:54:57]OFD Sender: No OFD packet to send [03:55:02]OFD Sender: No OFD packet to send [03:55:07]OFD Sender: No OFD packet to send [03:55:12]OFD Sender: No OFD packet to send [03:55:17]OFD Sender: No OFD packet to send [03:55:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:47]OFD Sender: No OFD packet to send [03:56:52]OFD Sender: No OFD packet to send [03:56:57]OFD Sender: No OFD packet to send [03:57:02]OFD Sender: No OFD packet to send [03:57:07]OFD Sender: No OFD packet to send [03:57:12]OFD Sender: No OFD packet to send [03:57:17]OFD Sender: No OFD packet to send [03:57:22]OFD Sender: No OFD packet to send [03:57:27]OFD Sender: No OFD packet to send [03:57:32]OFD Sender: No OFD packet to send [03:57:37]OFD Sender: No OFD packet to send [03:57:42]OFD Sender: No OFD packet to send [03:57:47]OFD Sender: No OFD packet to send [03:57:52]OFD Sender: No OFD packet to send [03:57:57]OFD Sender: No OFD packet to send [03:58:02]OFD Sender: No OFD packet to send [03:58:07]OFD Sender: No OFD packet to send [03:58:12]OFD Sender: No OFD packet to send [03:58:17]OFD Sender: No OFD packet to send [03:58:22]OFD Sender: No OFD packet to send [03:58:27]OFD Sender: No OFD packet to send [03:58:32]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:08]OFD Sender: No OFD packet to send [04:11:13]OFD Sender: No OFD packet to send [04:11:18]OFD Sender: No OFD packet to send [04:11:23]OFD Sender: No OFD packet to send [04:11:28]OFD Sender: No OFD packet to send [04:11:33]OFD Sender: No OFD packet to send [04:11:38]OFD Sender: No OFD packet to send [04:11:43]OFD Sender: No OFD packet to send [04:11:48]OFD Sender: No OFD packet to send [04:11:53]OFD Sender: No OFD packet to send [04:11:58]OFD Sender: No OFD packet to send [04:12:03]OFD Sender: No OFD packet to send [04:12:08]OFD Sender: No OFD packet to send [04:12:13]OFD Sender: No OFD packet to send [04:12:18]OFD Sender: No OFD packet to send [04:12:23]OFD Sender: No OFD packet to send [04:12:28]OFD Sender: No OFD packet to send [04:12:33]OFD Sender: No OFD packet to send [04:12:38]OFD Sender: No OFD packet to send [04:12:43]OFD Sender: No OFD packet to send [04:12:48]OFD Sender: No OFD packet to send [04:12:53]OFD Sender: No OFD packet to send [04:12:58]OFD Sender: No OFD packet to send [04:13:03]OFD Sender: No OFD packet to send [04:13:08]OFD Sender: No OFD packet to send [04:13:13]OFD Sender: No OFD packet to send [04:13:18]OFD Sender: No OFD packet to send [04:13:23]OFD Sender: No OFD packet to send [04:13:28]OFD Sender: No OFD packet to send [04:13:33]OFD Sender: No OFD packet to send [04:13:38]OFD Sender: No OFD packet to send [04:13:43]OFD Sender: No OFD packet to send [04:13:48]OFD Sender: No OFD packet to send [04:13:53]OFD Sender: No OFD packet to send [04:13:58]OFD Sender: No OFD packet to send [04:14:03]OFD Sender: No OFD packet to send [04:14:08]OFD Sender: No OFD packet to send [04:14:13]OFD Sender: No OFD packet to send [04:14:18]OFD Sender: No OFD packet to send [04:14:23]OFD Sender: No OFD packet to send [04:14:28]OFD Sender: No OFD packet to send [04:14:33]OFD Sender: No OFD packet to send [04:14:38]OFD Sender: No OFD packet to send [04:14:43]OFD Sender: No OFD packet to send [04:14:48]OFD Sender: No OFD packet to send [04:14:53]OFD Sender: No OFD packet to send [04:14:58]OFD Sender: No OFD packet to send [04:15:03]OFD Sender: No OFD packet to send [04:15:08]OFD Sender: No OFD packet to send [04:15:13]OFD Sender: No OFD packet to send [04:15:18]OFD Sender: No OFD packet to send [04:15:23]OFD Sender: No OFD packet to send [04:15:28]OFD Sender: No OFD packet to send [04:15:33]OFD Sender: No OFD packet to send [04:15:38]OFD Sender: No OFD packet to send [04:15:43]OFD Sender: No OFD packet to send [04:15:48]OFD Sender: No OFD packet to send [04:15:53]OFD Sender: No OFD packet to send [04:15:58]OFD Sender: No OFD packet to send [04:16:03]OFD Sender: No OFD packet to send [04:16:08]OFD Sender: No OFD packet to send [04:16:13]OFD Sender: No OFD packet to send [04:16:18]OFD Sender: No OFD packet to send [04:16:23]OFD Sender: No OFD packet to send [04:16:28]OFD Sender: No OFD packet to send [04:16:33]OFD Sender: No OFD packet to send [04:16:38]OFD Sender: No OFD packet to send [04:16:43]OFD Sender: No OFD packet to send [04:16:48]OFD Sender: No OFD packet to send [04:16:53]OFD Sender: No OFD packet to send [04:16:58]OFD Sender: No OFD packet to send [04:17:03]OFD Sender: No OFD packet to send [04:17:08]OFD Sender: No OFD packet to send [04:17:13]OFD Sender: No OFD packet to send [04:17:18]OFD Sender: No OFD packet to send [04:17:23]OFD Sender: No OFD packet to send [04:17:28]OFD Sender: No OFD packet to send [04:17:33]OFD Sender: No OFD packet to send [04:17:38]OFD Sender: No OFD packet to send [04:17:43]OFD Sender: No OFD packet to send [04:17:48]OFD Sender: No OFD packet to send [04:17:53]OFD Sender: No OFD packet to send [04:17:58]OFD Sender: No OFD packet to send [04:18:03]OFD Sender: No OFD packet to send [04:18:08]OFD Sender: No OFD packet to send [04:18:13]OFD Sender: No OFD packet to send [04:18:18]OFD Sender: No OFD packet to send [04:18:23]OFD Sender: No OFD packet to send [04:18:28]OFD Sender: No OFD packet to send [04:18:33]OFD Sender: No OFD packet to send [04:18:38]OFD Sender: No OFD packet to send [04:18:43]OFD Sender: No OFD packet to send [04:18:48]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:18]OFD Sender: No OFD packet to send [04:29:23]OFD Sender: No OFD packet to send [04:29:28]OFD Sender: No OFD packet to send [04:29:33]OFD Sender: No OFD packet to send [04:29:38]OFD Sender: No OFD packet to send [04:29:43]OFD Sender: No OFD packet to send [04:29:48]OFD Sender: No OFD packet to send [04:29:53]OFD Sender: No OFD packet to send [04:29:58]OFD Sender: No OFD packet to send [04:30:03]OFD Sender: No OFD packet to send [04:30:08]OFD Sender: No OFD packet to send [04:30:13]OFD Sender: No OFD packet to send [04:30:18]OFD Sender: No OFD packet to send [04:30:23]OFD Sender: No OFD packet to send [04:30:28]OFD Sender: No OFD packet to send [04:30:33]OFD Sender: No OFD packet to send [04:30:38]OFD Sender: No OFD packet to send [04:30:43]OFD Sender: No OFD packet to send [04:30:48]OFD Sender: No OFD packet to send [04:30:53]OFD Sender: No OFD packet to send [04:30:58]OFD Sender: No OFD packet to send [04:31:03]OFD Sender: No OFD packet to send [04:31:08]OFD Sender: No OFD packet to send [04:31:13]OFD Sender: No OFD packet to send [04:31:18]OFD Sender: No OFD packet to send [04:31:23]OFD Sender: No OFD packet to send [04:31:28]OFD Sender: No OFD packet to send [04:31:33]OFD Sender: No OFD packet to send [04:31:38]OFD Sender: No OFD packet to send [04:31:43]OFD Sender: No OFD packet to send [04:31:48]OFD Sender: No OFD packet to send [04:31:53]OFD Sender: No OFD packet to send [04:31:58]OFD Sender: No OFD packet to send [04:32:03]OFD Sender: No OFD packet to send [04:32:08]OFD Sender: No OFD packet to send [04:32: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:34:59]OFD Sender: No OFD packet to send [04:35:04]OFD Sender: No OFD packet to send [04:35:09]OFD Sender: No OFD packet to send [04:35:14]OFD Sender: No OFD packet to send [04:35:19]OFD Sender: No OFD packet to send [04:35:24]OFD Sender: No OFD packet to send [04:35:29]OFD Sender: No OFD packet to send [04:35:34]OFD Sender: No OFD packet to send [04:35:39]OFD Sender: No OFD packet to send [04:35:44]OFD Sender: No OFD packet to send [04:35:49]OFD Sender: No OFD packet to send [04:35:54]OFD Sender: No OFD packet to send [04:35:59]OFD Sender: No OFD packet to send [04:36:04]OFD Sender: No OFD packet to send [04:36:09]OFD Sender: No OFD packet to send [04:36:14]OFD Sender: No OFD packet to send [04:36:19]OFD Sender: No OFD packet to send [04:36:24]OFD Sender: No OFD packet to send [04:36:29]OFD Sender: No OFD packet to send [04:36:34]OFD Sender: No OFD packet to send [04:36:39]OFD Sender: No OFD packet to send [04:36:44]OFD Sender: No OFD packet to send [04:36:49]OFD Sender: No OFD packet to send [04:36:54]OFD Sender: No OFD packet to send [04:36:59]OFD Sender: No OFD packet to send [04:37:04]OFD Sender: No OFD packet to send [04:37:09]OFD Sender: No OFD packet to send [04:37:14]OFD Sender: No OFD packet to send [04:37:19]OFD Sender: No OFD packet to send [04:37:24]OFD Sender: No OFD packet to send [04:37:29]OFD Sender: No OFD packet to send [04:37:34]OFD Sender: No OFD packet to send [04:37:39]OFD Sender: No OFD packet to send [04:37:44]OFD Sender: No OFD packet to send [04:37:49]OFD Sender: No OFD packet to send [04:37:54]OFD Sender: No OFD packet to send [04:37:59]OFD Sender: No OFD packet to send [04:38:04]OFD Sender: No OFD packet to send [04:38:09]OFD Sender: No OFD packet to send [04:38:14]OFD Sender: No OFD packet to send [04:38:19]OFD Sender: No OFD packet to send [04:38:24]OFD Sender: No OFD packet to send [04:38:29]OFD Sender: No OFD packet to send [04:38:34]OFD Sender: No OFD packet to send [04:38:39]OFD Sender: No OFD packet to send [04:38:44]OFD Sender: No OFD packet to send [04:38:49]OFD Sender: No OFD packet to send [04:38:54]OFD Sender: No OFD packet to send [04:38:59]OFD Sender: No OFD packet to send [04:39:04]OFD Sender: No OFD packet to send [04:39:09]OFD Sender: No OFD packet to send [04:39:14]OFD Sender: No OFD packet to send [04:39:19]OFD Sender: No OFD packet to send [04:39:24]OFD Sender: No OFD packet to send [04:39:29]OFD Sender: No OFD packet to send [04:39:34]OFD Sender: No OFD packet to send [04:39:39]OFD Sender: No OFD packet to send [04:39:44]OFD Sender: No OFD packet to send [04:39:49]OFD Sender: No OFD packet to send [04:39:54]OFD Sender: No OFD packet to send [04:39:59]OFD Sender: No OFD packet to send [04:40:04]OFD Sender: No OFD packet to send [04:40:09]OFD Sender: No OFD packet to send [04:40:14]OFD Sender: No OFD packet to send [04:40:19]OFD Sender: No OFD packet to send [04:40:24]OFD Sender: No OFD packet to send [04:40:29]OFD Sender: No OFD packet to send [04:40:34]OFD Sender: No OFD packet to send [04:40:39]OFD Sender: No OFD packet to send [04:40:43]accept exits with 9 [04:40:43]New connection [04:40:43]New thread 3066928484 created [04:40:43]Thread 3066785124 joined [04:40:43]Waiting for new connection... [04:40:43] Sock 9.Parse request [04:40:43]Sock 9.Check first char [04:40:43]Sock 9.First char is OK [04:40:43]request: POST /json_proto HTTP/1.0 [04:40:43]Method: POST [04:40:43]URL: /json_proto [04:40:43]Method is POST - this is cgi request [04:40:43]url: /json_proto [04:40:43]query_string will be loaded in cgi processing [04:40:43]execute_cgi json_proto POST (null) [04:40:43]execute_cgi path=json_proto method=POST [04:40:43]POST find Content-Length [04:40:43]Host: 172.17.45.8:8080 [04:40:43]Content-Length: 622 [04:40:43]Content-Type: application/json [04:40:43] [04:40:43]POST finish read [04:40:43]Found Content-Length = 622 [04:40:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150503", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "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" ] } } [04:40:43]execute_script... [04:40:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150503", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "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" ] } } [04:40:43]POST & json_proto [04:40:43]process_json_proto [04:40:43]json parsed OK: [04:40:43]protocol is kg_v1.0 [04:40:43]action value=close_receipt [04:40:43]process_action close_receipt [04:40:43]cmd_close_receipt [04:40:43]MH_GetDate [04:40:43]Write to MH i2c: F0 00 00 5B 0E 58 [04:40:43]Write i2c OK [04:40:43]MH_I2C_Read... [04:40:43]Read from MH i2c: F0 [04:40:43]MH_I2C_Read... [04:40:43]Read from MH i2c: F0 09 00 [04:40:43]MH_I2C_Read... [04:40:43]Read from MH i2c: F0 09 00 5B 0E 00 4F 1D A7 66 A6 1F 7F 64 82 [04:40:43]GetLastDocTimeStamp 1722223901 [04:40:43]current date 1722228047 [04:40:43]FM_GetShiftState [04:40:43]SAM_PROTO_GetShiftState [04:40:43]wFMCommunicate request_size=4 [04:40:43]MH_SAM_APDU [04:40:43]CAPDU: 80 13 01 00 [04:40:43]Write to MH i2c: E2 08 00 5C 0E 80 13 01 00 00 00 00 00 E7 [04:40:43]Write i2c OK [04:40:43]MH_I2C_Read... [04:40:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:40:43]Read from MH i2c: E2 [04:40:43]MH_I2C_Read... [04:40:43]Read from MH i2c: E2 0E 00 [04:40:43]MH_I2C_Read... [04:40:43]Read from MH i2c: E2 0E 00 5C 0E 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 68 [04:40:43]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [04:40:43]wFMCommunicate OK [04:40:43]SAM_PROTO_GetShiftState done [04:40:43]FM_GetShiftState done [04:40:43]opened in 1722213509 [04:40:43]opened+sec_in_day 1722299909 [04:40:43]quantity*price = 15000 [04:40:43]sum+1 = 15001 [04:40:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 9 29.07.2024 04:40 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27106 ФПД: 43105987286762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T044047&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27106&fm=43105987286762&tin=02508201610067®Number=0000000000092663&sum=15000 0 [04:40:44]StoreToDocumentArchive [04:40:44]shift 434 fd 27106 [04:40:44]save to /storage/0434/doc_00027106 [04:40:44]save last doc name /storage/0434/doc_00027106 to /storage/kkm_last_doc_name [04:40:44]save OK [04:40:44]Clear old archive folders... [04:40:44]ProcessDocumentItem done err = 0, tmpTLVsize=274 [04:40:44]tlvbuf is 001CF900 [04:40:44]SAM_PROTO_ClearQueue [04:40:44]wFMCommunicate request_size=4 [04:40:44]MH_SAM_APDU [04:40:44]CAPDU: 80 09 00 00 [04:40:44]Write to MH i2c: E2 08 00 69 0E 80 09 00 00 00 00 00 00 E9 [04:40:44]Write i2c OK [04:40:44]MH_I2C_Read... [04:40:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:40:44]Read from MH i2c: E2 [04:40:44]MH_I2C_Read... [04:40:44]Read from MH i2c: E2 03 00 [04:40:44]MH_I2C_Read... [04:40:44]Read from MH i2c: E2 03 00 69 0E 00 90 00 EB [04:40:44]RAPDU: 90 00 [04:40:44]wFMCommunicate OK [04:40:44]SAM_PROTO_ClearQueue done [04:40:44]KKMCreateOFDPacket [04:40:44]OFDProtocolAddRootSTLVToBuf [04:40:44]FM_MakeSignedData [04:40:44]FM_MakeSignedData [04:40:44]SAM_PROTO_SignData [04:40:44]wFMCommunicate request_size=4 [04:40:44]MH_SAM_APDU [04:40:44]CAPDU: 80 0D 01 02 [04:40:44]Write to MH i2c: E2 08 00 6A 0E 80 0D 01 02 00 00 00 00 F1 [04:40:44]Write i2c OK [04:40:44]MH_I2C_Read... [04:40:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:40:44]Read from MH i2c: E2 [04:40:44]MH_I2C_Read... [04:40:44]Read from MH i2c: E2 03 00 [04:40:44]MH_I2C_Read... [04:40:44]Read from MH i2c: E2 03 00 6A 0E 00 90 00 EC [04:40:44]RAPDU: 90 00 [04:40:44]wFMCommunicate OK [04:40:44]wFMCommunicate request_size=255 [04:40:44]MH_SAM_APDU [04:40:44]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 09 00 00 00 F4 03 04 00 4F 1D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 [04:40:44]Write to MH i2c: E2 02 01 6B 0E 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 09 00 00 00 F4 03 04 00 4F 1D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 00 00 C4 [04:40:45]Write i2c OK [04:40:45]MH_I2C_Read... [04:40:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:40:45]Read from MH i2c: E2 [04:40:45]MH_I2C_Read... [04:40:45]Read from MH i2c: E2 03 00 [04:40:45]MH_I2C_Read... [04:40:45]Read from MH i2c: E2 03 00 6B 0E 00 90 00 ED [04:40:45]RAPDU: 90 00 [04:40:45]wFMCommunicate OK [04:40:45]wFMCommunicate request_size=33 [04:40:45]MH_SAM_APDU [04:40:45]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E2 69 00 00 35 04 06 00 27 34 65 0F 56 EA [04:40:45]Write to MH i2c: E2 24 00 6C 0E 80 0D 02 02 1C 00 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E2 69 00 00 35 04 06 00 27 34 65 0F 56 EA 00 00 E3 [04:40:45]Write i2c OK [04:40:45]MH_I2C_Read... [04:40:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:40:45]Read from MH i2c: E2 [04:40:45]MH_I2C_Read... [04:40:45]Read from MH i2c: E2 03 00 [04:40:45]MH_I2C_Read... [04:40:45]Read from MH i2c: E2 03 00 6C 0E 00 90 00 EE [04:40:45]RAPDU: 90 00 [04:40:45]wFMCommunicate OK [04:40:45]wFMCommunicate request_size=4 [04:40:45]MH_SAM_APDU [04:40:45]CAPDU: 80 0D 03 02 [04:40:45]Write to MH i2c: E2 08 00 6D 0E 80 0D 03 02 00 00 00 00 F6 [04:40:45]Write i2c OK [04:40:45]MH_I2C_Read... [04:40:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:40:45]Read from MH i2c: E2 [04:40:45]MH_I2C_Read... [04:40:45]Read from MH i2c: E2 0B 00 [04:40:45]MH_I2C_Read... [04:40:45]Read from MH i2c: E2 0B 00 6D 0E 00 CF CF 0E 79 0B 0D B5 23 90 00 0C [04:40:45]RAPDU: CF CF 0E 79 0B 0D B5 23 90 00 [04:40:45]wFMCommunicate OK [04:40:45]SAM_PROTO_SignData done [04:40:45]FM_MakeSignedData done [04:40:45]CreateOFDProtocolMessage [04:40:45]wFMCommunicate request_size=4 [04:40:45]MH_SAM_APDU [04:40:45]CAPDU: 80 11 00 00 [04:40:45]Write to MH i2c: E2 08 00 6E 0E 80 11 00 00 00 00 00 00 F6 [04:40:45]Write i2c OK [04:40:45]MH_I2C_Read... [04:40:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:40:45]Read from MH i2c: E2 [04:40:45]MH_I2C_Read... [04:40:45]Read from MH i2c: E2 17 00 [04:40:45]MH_I2C_Read... [04:40:45]Read from MH i2c: E2 17 00 6E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 4F [04:40:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [04:40:45]wFMCommunicate OK [04:40:45]CreateOFDProtocolMessage done [04:40:45]OFDSenderStorePacket 27106 [04:40:45]StoreOFDPacket docnum=27106 [04:40:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 26 01 00 00 08 78 1E 01 CD 3D 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 09 00 00 00 F4 03 04 00 4F 1D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E2 69 00 00 35 04 06 00 27 34 65 0F 56 EA CF CF 0E 79 0B 0D B5 23 [04:40:45]CheckFolder [04:40:45]dirname=/storage/ofd_packets [04:40:45]CheckFolder done [04:40:45]ProducePacketName [04:40:45]name=ofd_packets/00027106 [04:40:45]NVStorageSaveData ofd_packets/00027106 [04:40:45]File name is /storage/ofd_packets/00027106 [04:40:45]Write 324 bytes [04:40:45]NVStorageSaveData done [04:40:45]OFDSenderStorePacket done [04:40:45]KKMCreateOFDPacket done [04:40:45]NVStorageSaveData kkm_last_timestamp [04:40:45]File name is /storage/kkm_last_timestamp [04:40:45]Write 4 bytes [04:40:45]NVStorageSaveData done [04:40:45]ExternCall_PrintAddStr [04:40:45]wPrintStart [04:40:45]Write to MH i2c: 01 00 00 6F 0E 7D [04:40:45]Write i2c OK [04:40:45]MH_I2C_Read... [04:40:45]Read from MH i2c: 01 [04:40:45]MH_I2C_Read... [04:40:45]Read from MH i2c: 01 07 00 [04:40:45]MH_I2C_Read... [04:40:45]Read from MH i2c: 01 07 00 6F 0E 00 00 00 00 00 FF 0F 92 [04:40:45]RasterBufferAndPrint [04:40:45]line Счет N : (3)150503 [04:40:45]line ИНН: 02508201610067 [04:40:45]line Контрольно-Кассовый Чек [04:40:45]line ПРОДАЖА [04:40:45]line Товар: 4640030091645 [04:40:45]line Сигареты ESSE Exchange M [04:40:45]line 1.000 * 150.00 [04:40:45]line = 150.00 [04:40:45]line НДС 12% НСП 1% [04:40:45]line > о реализуемом товаре [04:40:45]line ИТОГО: 150.00 [04:40:45]line НСП 1% : 1.33 [04:40:45]line НДС 12% : 15.93 [04:40:45]line Наличными: 150.00 [04:40:45]line Безнал.: 0.00 [04:40:45]line Место: АЗС № 134 "Партнер Нефть" [04:40:45]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [04:40:45]line СНО: Общий режим [04:40:45]line Чек 9 29.07.2024 04:40 [04:40:45]line Смена: 434 ФФД: 1.0 [04:40:45]line ЗНМ: 0300000043 [04:40:45]line РНМ: 0000000000092663 [04:40:45]line Версия ККМ: 001 [04:40:45]line ФМ: 0000000000874937 [04:40:45]line ФД: 27106 [04:40:45]line ФПД: 43105987286762 [04:40:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T044047&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27106&fm=43105987286762&tin=02508201610067®Number=0000000000092663&sum=15000 [04:40:45]OFD Sender: Processing packet 27106 [packets to send 9, broken 8] [04:40:45]ProducePacketName [04:40:45]name=ofd_packets/00027106 [04:40:45]OFD Sender: To server: pG, [04:40:45]CommunicateWithHost lk.salyk.kg:30040 [04:40:45]ConnectInit lk.salyk.kg [04:40:45]line 0 [04:40:45]written 0, free lines is 4095 [04:40:45]Connected sock=7 [04:40:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 26 01 00 00 08 78 1E 01 CD 3D 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 09 00 00 00 F4 03 04 00 4F 1D A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E2 69 00 00 35 04 06 00 27 34 65 0F 56 EA CF CF 0E 79 0B 0D B5 23 [04:40:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 9A D4 47 00 F3 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 34 39 33 37 10 04 04 00 E2 69 00 00 F4 03 04 00 A1 C3 A6 66 B6 04 01 00 00 FB 78 6D 96 02 18 BE CA [04:40:46]CommunicateWithHost err = 0 [04:40:46]CheckOFDResponse [04:40:46]1017 (14) - 77093643461234 [04:40:46]1041 (16) - 0000000000874937 [04:40:46]1040 (4) - 27106 [04:40:46]1012 (4) - 28.07.2024 22:18 [04:40:46]1206 (1) - 0 [04:40:46]OFD Sender: Remove packet 27106 [04:40:46]ProducePacketName [04:40:46]name=ofd_packets/00027106 [04:40:46]NVStorageDeleteData [04:40:46]Write to MH i2c: 01 00 00 96 0E A4 [04:40:46]Write i2c OK [04:40:46]MH_I2C_Read... [04:40:46]Read from MH i2c: 01 [04:40:46]MH_I2C_Read... [04:40:46]Read from MH i2c: 01 07 00 [04:40:46]MH_I2C_Read... [04:40:46]Read from MH i2c: 01 07 00 96 0E 00 00 00 00 00 F6 0C AD [04:40:46]RasterBufferAndPrint [04:40:46]line [04:40:46]line [04:40:46]line [04:40:46]line [04:40:46]line [04:40:46]written 0, free lines is 3325 [04:40:46]MH_Cut [04:40:46]Write to MH i2c: D1 01 00 9D 0E 01 7D [04:40:46]Write i2c OK [04:40:46]MH_I2C_Read... [04:40:46]Read from MH i2c: D1 [04:40:46]MH_I2C_Read... [04:40:46]Read from MH i2c: D1 01 00 [04:40:46]MH_I2C_Read... [04:40:46]Read from MH i2c: D1 01 00 9D 0E 00 7C [04:40:46]Write to MH i2c: 01 00 00 9E 0E AC [04:40:46]Write i2c OK [04:40:46]MH_I2C_Read... [04:40:46]OFD Sender: No OFD packet to send [04:40:46]*** Cut start [04:40:46]*** Partial cut [04:40:46]*** CUTSNS_PIN = 1 [04:40:46]*** CUTSNS_PIN = 0 [04:40:47]*** Brake cut motor [04:40:47]Read from MH i2c: 01 [04:40:47]MH_I2C_Read... [04:40:47]*** Stop cut motor [04:40:47]*** Cut end [04:40:47]Read from MH i2c: 01 07 00 [04:40:47]MH_I2C_Read... [04:40:47]Read from MH i2c: 01 07 00 9E 0E 00 00 00 00 00 FF 0F C1 [04:40:47]process_action close_receipt done [04:40:47]requested_data is exist [04:40:47]produce_requested_data [04:40:47]requested_item fm.sn is exist - process it [04:40:47]wFMCommunicate request_size=4 [04:40:47]MH_SAM_APDU [04:40:47]CAPDU: 80 11 00 00 [04:40:47]Write to MH i2c: E2 08 00 9F 0E 80 11 00 00 00 00 00 00 27 [04:40:47]Write i2c OK [04:40:47]MH_I2C_Read... [04:40:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:40:47]Read from MH i2c: E2 [04:40:47]MH_I2C_Read... [04:40:47]Read from MH i2c: E2 17 00 [04:40:47]MH_I2C_Read... [04:40:47]Read from MH i2c: E2 17 00 9F 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 80 [04:40:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [04:40:47]wFMCommunicate OK [04:40:47]requested_item fd.num is exist - process it [04:40:47]SAM_PROTO_GetFieldsCounters [04:40:47]wFMCommunicate request_size=4 [04:40:47]MH_SAM_APDU [04:40:47]CAPDU: 80 13 00 00 [04:40:47]Write to MH i2c: E2 08 00 A0 0E 80 13 00 00 00 00 00 00 2A [04:40:47]Write i2c OK [04:40:47]MH_I2C_Read... [04:40:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:40:47]Read from MH i2c: E2 [04:40:47]MH_I2C_Read... [04:40:47]Read from MH i2c: E2 62 00 [04:40:47]MH_I2C_Read... [04:40:47]Read from MH i2c: E2 62 00 A0 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 E2 69 00 00 0E 04 04 00 B2 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 6B [04:40:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 E2 69 00 00 0E 04 04 00 B2 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:40:47]wFMCommunicate OK [04:40:47]SAM_PROTO_GetFieldsCounters done [04:40:47]requested_item shift.num is exist - process it [04:40:47]requested_item shift.opened is exist - process it [04:40:47]req_shift_opened [04:40:47]FM_GetShiftState [04:40:47]SAM_PROTO_GetShiftState [04:40:47]wFMCommunicate request_size=4 [04:40:47]MH_SAM_APDU [04:40:47]CAPDU: 80 13 01 00 [04:40:47]Write to MH i2c: E2 08 00 A1 0E 80 13 01 00 00 00 00 00 2C [04:40:47]Write i2c OK [04:40:47]MH_I2C_Read... [04:40:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:40:47]Read from MH i2c: E2 [04:40:47]MH_I2C_Read... [04:40:47]Read from MH i2c: E2 0E 00 [04:40:47]MH_I2C_Read... [04:40:47]Read from MH i2c: E2 0E 00 A1 0E 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 AD [04:40:47]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [04:40:47]wFMCommunicate OK [04:40:47]SAM_PROTO_GetShiftState done [04:40:47]FM_GetShiftState done [04:40:47]req_shift_opened done [04:40:47]requested_item shift.open_date is exist - process it [04:40:47]req_shift_open_date [04:40:47]req_shift_open_date done [04:40:47]produce_requested_data done [04:40:47]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27106,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [04:40:47]process_action_free close_receipt [04:40:47]json_value_free [04:40:47]json_value_free done [04:40:47]process_json_proto returns [04:40:47]Send response to host [04:40:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27106,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [04:40:47]free response buf [04:40:47]execute_script done [04:40:47]execute_script returns [04:40:47]free content buf [04:40:47]Sock 9.Close socket [04:40:47]Sock 9.Thread stoped [04:40:51]OFD Sender: No OFD packet to send [04:40:56]OFD Sender: No OFD packet to send [04:41:01]OFD Sender: No OFD packet to send [04:41:06]OFD Sender: No OFD packet to send [04:41:11]OFD Sender: No OFD packet to send [04:41:16]OFD Sender: No OFD packet to send [04:41:21]OFD Sender: No OFD packet to send [04:41:26]OFD Sender: No OFD packet to send [04:41:31]OFD Sender: No OFD packet to send [04:41:36]OFD Sender: No OFD packet to send [04:41:41]OFD Sender: No OFD packet to send [04:41:46]OFD Sender: No OFD packet to send [04:41:51]OFD Sender: No OFD packet to send [04:41:56]OFD Sender: No OFD packet to send [04:42:01]OFD Sender: No OFD packet to send [04:42:06]OFD Sender: No OFD packet to send [04:42:11]OFD Sender: No OFD packet to send [04:42:16]OFD Sender: No OFD packet to send [04:42:21]OFD Sender: No OFD packet to send [04:42:26]OFD Sender: No OFD packet to send [04:42:31]OFD Sender: No OFD packet to send [04:42:36]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:56]OFD Sender: No OFD packet to send [04:43:01]OFD Sender: No OFD packet to send [04:43:06]OFD Sender: No OFD packet to send [04:43:11]OFD Sender: No OFD packet to send [04:43:16]OFD Sender: No OFD packet to send [04:43:21]OFD Sender: No OFD packet to send [04:43:26]OFD Sender: No OFD packet to send [04:43:31]OFD Sender: No OFD packet to send [04:43:36]OFD Sender: No OFD packet to send [04:43:41]OFD Sender: No OFD packet to send [04:43:46]OFD Sender: No OFD packet to send [04:43:51]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:16]OFD Sender: No OFD packet to send [04:44:21]OFD Sender: No OFD packet to send [04:44:26]OFD Sender: No OFD packet to send [04:44:31]OFD Sender: No OFD packet to send [04:44:36]OFD Sender: No OFD packet to send [04:44:41]OFD Sender: No OFD packet to send [04:44:46]OFD Sender: No OFD packet to send [04:44:51]OFD Sender: No OFD packet to send [04:44:56]OFD Sender: No OFD packet to send [04:45:01]OFD Sender: No OFD packet to send [04:45:06]OFD Sender: No OFD packet to send [04:45:11]OFD Sender: No OFD packet to send [04:45:16]OFD Sender: No OFD packet to send [04:45:21]OFD Sender: No OFD packet to send [04:45:26]OFD Sender: No OFD packet to send [04:45:31]OFD Sender: No OFD packet to send [04:45:36]OFD Sender: No OFD packet to send [04:45:41]OFD Sender: No OFD packet to send [04:45:46]OFD Sender: No OFD packet to send [04:45:51]OFD Sender: No OFD packet to send [04:45:56]OFD Sender: No OFD packet to send [04:46:01]OFD Sender: No OFD packet to send [04:46:06]OFD Sender: No OFD packet to send [04:46:11]OFD Sender: No OFD packet to send [04:46:16]OFD Sender: No OFD packet to send [04:46:21]OFD Sender: No OFD packet to send [04:46:26]OFD Sender: No OFD packet to send [04:46:31]OFD Sender: No OFD packet to send [04:46:36]OFD Sender: No OFD packet to send [04:46:41]OFD Sender: No OFD packet to send [04:46:46]OFD Sender: No OFD packet to send [04:46:51]OFD Sender: No OFD packet to send [04:46:56]OFD Sender: No OFD packet to send [04:47:01]OFD Sender: No OFD packet to send [04:47:06]OFD Sender: No OFD packet to send [04:47:11]OFD Sender: No OFD packet to send [04:47:16]OFD Sender: No OFD packet to send [04:47:21]OFD Sender: No OFD packet to send [04:47:26]OFD Sender: No OFD packet to send [04:47:31]OFD Sender: No OFD packet to send [04:47:36]OFD Sender: No OFD packet to send [04:47:41]OFD Sender: No OFD packet to send [04:47:46]OFD Sender: No OFD packet to send [04:47:51]OFD Sender: No OFD packet to send [04:47:56]OFD Sender: No OFD packet to send [04:48:01]OFD Sender: No OFD packet to send [04:48:06]OFD Sender: No OFD packet to send [04:48:11]OFD Sender: No OFD packet to send [04:48:16]OFD Sender: No OFD packet to send [04:48:21]OFD Sender: No OFD packet to send [04:48:26]OFD Sender: No OFD packet to send [04:48:31]OFD Sender: No OFD packet to send [04:48:36]OFD Sender: No OFD packet to send [04:48:41]OFD Sender: No OFD packet to send [04:48:46]OFD Sender: No OFD packet to send [04:48:51]OFD Sender: No OFD packet to send [04:48:56]OFD Sender: No OFD packet to send [04:49:01]OFD Sender: No OFD packet to send [04:49:06]OFD Sender: No OFD packet to send [04:49:11]OFD Sender: No OFD packet to send [04:49:16]OFD Sender: No OFD packet to send [04:49:21]OFD Sender: No OFD packet to send [04:49:27]OFD Sender: No OFD packet to send [04:49:32]OFD Sender: No OFD packet to send [04:49:37]OFD Sender: No OFD packet to send [04:49:42]OFD Sender: No OFD packet to send [04:49:47]OFD Sender: No OFD packet to send [04:49:52]OFD Sender: No OFD packet to send [04:49:57]OFD Sender: No OFD packet to send [04:50:02]OFD Sender: No OFD packet to send [04:50:07]OFD Sender: No OFD packet to send [04:50:12]OFD Sender: No OFD packet to send [04:50:17]OFD Sender: No OFD packet to send [04:50:22]OFD Sender: No OFD packet to send [04:50:27]OFD Sender: No OFD packet to send [04:50:32]OFD Sender: No OFD packet to send [04:50:37]OFD Sender: No OFD packet to send [04:50:42]OFD Sender: No OFD packet to send [04:50:47]OFD Sender: No OFD packet to send [04:50:52]OFD Sender: No OFD packet to send [04:50:57]OFD Sender: No OFD packet to send [04:51:02]OFD Sender: No OFD packet to send [04:51:07]OFD Sender: No OFD packet to send [04:51:12]OFD Sender: No OFD packet to send [04:51:17]OFD Sender: No OFD packet to send [04:51:22]OFD Sender: No OFD packet to send [04:51:27]OFD Sender: No OFD packet to send [04:51:32]OFD Sender: No OFD packet to send [04:51:37]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:47]OFD Sender: No OFD packet to send [04:51:52]OFD Sender: No OFD packet to send [04:51:57]OFD Sender: No OFD packet to send [04:52:02]OFD Sender: No OFD packet to send [04:52:07]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52:52]OFD Sender: No OFD packet to send [04:52:57]OFD Sender: No OFD packet to send [04:53:02]OFD Sender: No OFD packet to send [04:53:07]OFD Sender: No OFD packet to send [04:53:12]OFD Sender: No OFD packet to send [04:53:17]OFD Sender: No OFD packet to send [04:53:22]OFD Sender: No OFD packet to send [04:53:27]OFD Sender: No OFD packet to send [04:53:32]OFD Sender: No OFD packet to send [04:53:37]OFD Sender: No OFD packet to send [04:53:42]OFD Sender: No OFD packet to send [04:53:47]OFD Sender: No OFD packet to send [04:53:52]OFD Sender: No OFD packet to send [04:53:57]OFD Sender: No OFD packet to send [04:54:02]OFD Sender: No OFD packet to send [04:54:07]OFD Sender: No OFD packet to send [04:54:12]OFD Sender: No OFD packet to send [04:54:17]OFD Sender: No OFD packet to send [04:54:22]OFD Sender: No OFD packet to send [04:54:27]OFD Sender: No OFD packet to send [04:54:32]OFD Sender: No OFD packet to send [04:54:37]OFD Sender: No OFD packet to send [04:54:42]OFD Sender: No OFD packet to send [04:54:47]OFD Sender: No OFD packet to send [04:54:52]OFD Sender: No OFD packet to send [04:54:57]OFD Sender: No OFD packet to send [04:55:02]OFD Sender: No OFD packet to send [04:55:07]OFD Sender: No OFD packet to send [04:55:12]OFD Sender: No OFD packet to send [04:55:17]OFD Sender: No OFD packet to send [04:55:22]OFD Sender: No OFD packet to send [04:55:27]OFD Sender: No OFD packet to send [04:55:32]OFD Sender: No OFD packet to send [04:55:37]OFD Sender: No OFD packet to send [04:55:42]OFD Sender: No OFD packet to send [04:55:47]OFD Sender: No OFD packet to send [04:55:52]OFD Sender: No OFD packet to send [04:55:57]OFD Sender: No OFD packet to send [04:56:02]OFD Sender: No OFD packet to send [04:56:07]OFD Sender: No OFD packet to send [04:56:12]OFD Sender: No OFD packet to send [04:56:17]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56:55]accept exits with 8 [04:56:55]New connection [04:56:55]New thread 3066785124 created [04:56:55]Thread 3066928484 joined [04:56:55]Waiting for new connection... [04:56:55] Sock 8.Parse request [04:56:55]Sock 8.Check first char [04:56:55]Sock 8.First char is OK [04:56:55]request: POST /json_proto HTTP/1.0 [04:56:55]Method: POST [04:56:55]URL: /json_proto [04:56:55]Method is POST - this is cgi request [04:56:55]url: /json_proto [04:56:55]query_string will be loaded in cgi processing [04:56:55]execute_cgi json_proto POST (null) [04:56:55]execute_cgi path=json_proto method=POST [04:56:55]POST find Content-Length [04:56:55]Host: 172.17.45.8:8080 [04:56:55]Content-Length: 655 [04:56:55]Content-Type: application/json [04:56:55] [04:56:55]POST finish read [04:56:55]Found Content-Length = 655 [04:56:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150504", "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" ] } } [04:56:55]execute_script... [04:56: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 : (3)150504", "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" ] } } [04:56:55]POST & json_proto [04:56:55]process_json_proto [04:56:55]json parsed OK: [04:56:55]protocol is kg_v1.0 [04:56:55]action value=close_receipt [04:56:55]process_action close_receipt [04:56:55]cmd_close_receipt [04:56:55]MH_GetDate [04:56:55]Write to MH i2c: F0 00 00 A2 0E 9F [04:56:55]Write i2c OK [04:56:55]MH_I2C_Read... [04:56:55]Read from MH i2c: F0 [04:56:55]MH_I2C_Read... [04:56:55]Read from MH i2c: F0 09 00 [04:56:55]MH_I2C_Read... [04:56:55]Read from MH i2c: F0 09 00 A2 0E 00 1B 21 A7 66 A6 1F 7F 64 99 [04:56:55]GetLastDocTimeStamp 1722228047 [04:56:55]current date 1722229019 [04:56:55]FM_GetShiftState [04:56:55]SAM_PROTO_GetShiftState [04:56:55]wFMCommunicate request_size=4 [04:56:55]MH_SAM_APDU [04:56:55]CAPDU: 80 13 01 00 [04:56:55]Write to MH i2c: E2 08 00 A3 0E 80 13 01 00 00 00 00 00 2E [04:56:55]Write i2c OK [04:56:55]MH_I2C_Read... [04:56:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:56:55]Read from MH i2c: E2 [04:56:55]MH_I2C_Read... [04:56:55]Read from MH i2c: E2 0E 00 [04:56:55]MH_I2C_Read... [04:56:55]Read from MH i2c: E2 0E 00 A3 0E 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 AF [04:56:55]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [04:56:55]wFMCommunicate OK [04:56:55]SAM_PROTO_GetShiftState done [04:56:55]FM_GetShiftState done [04:56:55]opened in 1722213509 [04:56:55]opened+sec_in_day 1722299909 [04:56:55]quantity*price = 8500 [04:56:55]sum+1 = 8501 [04:56:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 10 29.07.2024 04:56 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27107 ФПД: 189410353969033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T045659&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27107&fm=189410353969033&tin=02508201610067®Number=0000000000092663&sum=8500 0 [04:56:56]StoreToDocumentArchive [04:56:56]shift 434 fd 27107 [04:56:56]save to /storage/0434/doc_00027107 [04:56:56]save last doc name /storage/0434/doc_00027107 to /storage/kkm_last_doc_name [04:56:56]save OK [04:56:56]Clear old archive folders... [04:56:56]ProcessDocumentItem done err = 0, tmpTLVsize=294 [04:56:56]tlvbuf is 001C5F30 [04:56:56]SAM_PROTO_ClearQueue [04:56:56]wFMCommunicate request_size=4 [04:56:56]MH_SAM_APDU [04:56:56]CAPDU: 80 09 00 00 [04:56:56]Write to MH i2c: E2 08 00 B0 0E 80 09 00 00 00 00 00 00 30 [04:56:56]Write i2c OK [04:56:56]MH_I2C_Read... [04:56:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:56:56]Read from MH i2c: E2 [04:56:56]MH_I2C_Read... [04:56:56]Read from MH i2c: E2 03 00 [04:56:56]MH_I2C_Read... [04:56:56]Read from MH i2c: E2 03 00 B0 0E 00 90 00 32 [04:56:56]RAPDU: 90 00 [04:56:56]wFMCommunicate OK [04:56:56]SAM_PROTO_ClearQueue done [04:56:56]KKMCreateOFDPacket [04:56:56]OFDProtocolAddRootSTLVToBuf [04:56:56]FM_MakeSignedData [04:56:56]FM_MakeSignedData [04:56:56]SAM_PROTO_SignData [04:56:56]wFMCommunicate request_size=4 [04:56:56]MH_SAM_APDU [04:56:56]CAPDU: 80 0D 01 02 [04:56:56]Write to MH i2c: E2 08 00 B1 0E 80 0D 01 02 00 00 00 00 38 [04:56:56]Write i2c OK [04:56:56]MH_I2C_Read... [04:56:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:56:56]Read from MH i2c: E2 [04:56:56]MH_I2C_Read... [04:56:56]Read from MH i2c: E2 03 00 [04:56:56]MH_I2C_Read... [04:56:56]Read from MH i2c: E2 03 00 B1 0E 00 90 00 33 [04:56:56]RAPDU: 90 00 [04:56:56]wFMCommunicate OK [04:56:56]wFMCommunicate request_size=255 [04:56:56]MH_SAM_APDU [04:56:56]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 0A 00 00 00 F4 03 04 00 1B 21 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [04:56:56]Write to MH i2c: E2 02 01 B2 0E 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 0A 00 00 00 F4 03 04 00 1B 21 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 22 [04:56:56]Write i2c OK [04:56:56]MH_I2C_Read... [04:56:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:56:57]Read from MH i2c: E2 [04:56:57]MH_I2C_Read... [04:56:57]Read from MH i2c: E2 03 00 [04:56:57]MH_I2C_Read... [04:56:57]Read from MH i2c: E2 03 00 B2 0E 00 90 00 34 [04:56:57]RAPDU: 90 00 [04:56:57]wFMCommunicate OK [04:56:57]wFMCommunicate request_size=53 [04:56:57]MH_SAM_APDU [04:56:57]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E3 69 00 00 35 04 06 00 AC 44 88 DD 77 89 [04:56:57]Write to MH i2c: E2 38 00 B3 0E 80 0D 02 02 30 00 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E3 69 00 00 35 04 06 00 AC 44 88 DD 77 89 00 00 D8 [04:56:57]Write i2c OK [04:56:57]MH_I2C_Read... [04:56:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:56:57]Read from MH i2c: E2 [04:56:57]MH_I2C_Read... [04:56:57]Read from MH i2c: E2 03 00 [04:56:57]MH_I2C_Read... [04:56:57]Read from MH i2c: E2 03 00 B3 0E 00 90 00 35 [04:56:57]RAPDU: 90 00 [04:56:57]wFMCommunicate OK [04:56:57]wFMCommunicate request_size=4 [04:56:57]MH_SAM_APDU [04:56:57]CAPDU: 80 0D 03 02 [04:56:57]Write to MH i2c: E2 08 00 B4 0E 80 0D 03 02 00 00 00 00 3D [04:56:57]Write i2c OK [04:56:57]MH_I2C_Read... [04:56:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:56:57]Read from MH i2c: E2 [04:56:57]MH_I2C_Read... [04:56:57]Read from MH i2c: E2 0B 00 [04:56:57]MH_I2C_Read... [04:56:57]Read from MH i2c: E2 0B 00 B4 0E 00 A0 59 BA E9 EB B5 CE 65 90 00 AD [04:56:57]RAPDU: A0 59 BA E9 EB B5 CE 65 90 00 [04:56:57]wFMCommunicate OK [04:56:57]SAM_PROTO_SignData done [04:56:57]FM_MakeSignedData done [04:56:57]CreateOFDProtocolMessage [04:56:57]wFMCommunicate request_size=4 [04:56:57]MH_SAM_APDU [04:56:57]CAPDU: 80 11 00 00 [04:56:57]Write to MH i2c: E2 08 00 B5 0E 80 11 00 00 00 00 00 00 3D [04:56:57]Write i2c OK [04:56:57]MH_I2C_Read... [04:56:57]OFD Sender: No OFD packet to send [04:56:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:56:57]Read from MH i2c: E2 [04:56:57]MH_I2C_Read... [04:56:57]Read from MH i2c: E2 17 00 [04:56:57]MH_I2C_Read... [04:56:57]Read from MH i2c: E2 17 00 B5 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 96 [04:56:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [04:56:57]wFMCommunicate OK [04:56:57]CreateOFDProtocolMessage done [04:56:57]OFDSenderStorePacket 27107 [04:56:57]StoreOFDPacket docnum=27107 [04:56:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 3A 01 00 00 7C A7 32 01 91 FB 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 0A 00 00 00 F4 03 04 00 1B 21 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E3 69 00 00 35 04 06 00 AC 44 88 DD 77 89 A0 59 BA E9 EB B5 CE 65 [04:56:57]CheckFolder [04:56:57]dirname=/storage/ofd_packets [04:56:57]CheckFolder done [04:56:57]ProducePacketName [04:56:57]name=ofd_packets/00027107 [04:56:57]NVStorageSaveData ofd_packets/00027107 [04:56:57]File name is /storage/ofd_packets/00027107 [04:56:57]Write 344 bytes [04:56:57]NVStorageSaveData done [04:56:57]OFDSenderStorePacket done [04:56:57]KKMCreateOFDPacket done [04:56:57]NVStorageSaveData kkm_last_timestamp [04:56:57]File name is /storage/kkm_last_timestamp [04:56:57]Write 4 bytes [04:56:57]NVStorageSaveData done [04:56:57]ExternCall_PrintAddStr [04:56:57]wPrintStart [04:56:57]Write to MH i2c: 01 00 00 B6 0E C4 [04:56:57]Write i2c OK [04:56:57]MH_I2C_Read... [04:56:57]Read from MH i2c: 01 [04:56:57]MH_I2C_Read... [04:56:57]Read from MH i2c: 01 07 00 [04:56:57]MH_I2C_Read... [04:56:57]Read from MH i2c: 01 07 00 B6 0E 00 00 00 00 00 FF 0F D9 [04:56:57]RasterBufferAndPrint [04:56:57]line Счет N : (3)150504 [04:56:57]line ИНН: 02508201610067 [04:56:57]line Контрольно-Кассовый Чек [04:56:57]line ПРОДАЖА [04:56:57]line Товар: 4600682557456 [04:56:57]line Напиток FLash up energy эн ж/б 0,5/0,45л [04:56:57]line 1.000 * 85.00 [04:56:57]line = 85.00 [04:56:57]line НДС 12% НСП 1% [04:56:57]line > о реализуемом товаре [04:56:57]line ИТОГО: 85.00 [04:56:57]line НСП 1% : 0.75 [04:56:57]line НДС 12% : 9.03 [04:56:57]line Наличными: 85.00 [04:56:57]line Безнал.: 0.00 [04:56:57]line Место: АЗС № 134 "Партнер Нефть" [04:56:57]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [04:56:57]line СНО: Общий режим [04:56:57]line Чек 10 29.07.2024 04:56 [04:56:57]line Смена: 434 ФФД: 1.0 [04:56:57]line ЗНМ: 0300000043 [04:56:57]line РНМ: 0000000000092663 [04:56:57]line Версия ККМ: 001 [04:56:57]line ФМ: 0000000000874937 [04:56:57]line ФД: 27107 [04:56:57]line ФПД: 189410353969033 [04:56:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T045659&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27107&fm=189410353969033&tin=02508201610067®Number=0000000000092663&sum=8500 [04:56:57]line 0 [04:56:57]OFD Sender: Processing packet 27107 [packets to send 9, broken 8] [04:56:57]ProducePacketName [04:56:57]name=ofd_packets/00027107 [04:56:57]OFD Sender: To server: pG, [04:56:57]CommunicateWithHost lk.salyk.kg:30040 [04:56:57]ConnectInit lk.salyk.kg [04:56:57]written 0, free lines is 4095 [04:56:57]Connected sock=10 [04:56:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 3A 01 00 00 7C A7 32 01 91 FB 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 0A 00 00 00 F4 03 04 00 1B 21 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E3 69 00 00 35 04 06 00 AC 44 88 DD 77 89 A0 59 BA E9 EB B5 CE 65 [04:56:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 EB 50 47 00 F3 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E3 69 00 00 F4 03 04 00 6D C7 A6 66 B6 04 01 00 00 98 89 F5 F9 DD 6B 61 4B [04:56:58]CommunicateWithHost err = 0 [04:56:58]CheckOFDResponse [04:56:58]1017 (14) - 77093643461234 [04:56:58]1041 (16) - 0000000000874937 [04:56:58]1040 (4) - 27107 [04:56:58]1012 (4) - 28.07.2024 22:34 [04:56:58]1206 (1) - 0 [04:56:58]OFD Sender: Remove packet 27107 [04:56:58]ProducePacketName [04:56:58]name=ofd_packets/00027107 [04:56:58]NVStorageDeleteData [04:56:58]Write to MH i2c: 01 00 00 DE 0E EC [04:56:58]Write i2c OK [04:56:58]MH_I2C_Read... [04:56:58]Read from MH i2c: 01 [04:56:58]MH_I2C_Read... [04:56:58]Read from MH i2c: 01 07 00 [04:56:58]MH_I2C_Read... [04:56:58]Read from MH i2c: 01 07 00 DE 0E 00 00 00 00 00 F5 0C F4 [04:56:58]RasterBufferAndPrint [04:56:58]line [04:56:58]line [04:56:58]line [04:56:58]line [04:56:58]line [04:56:58]written 0, free lines is 3323 [04:56:58]MH_Cut [04:56:58]Write to MH i2c: D1 01 00 E5 0E 01 C5 [04:56:58]Write i2c OK [04:56:58]MH_I2C_Read... [04:56:58]Read from MH i2c: D1 [04:56:58]MH_I2C_Read... [04:56:58]Read from MH i2c: D1 01 00 [04:56:58]MH_I2C_Read... [04:56:58]Read from MH i2c: D1 01 00 E5 0E 00 C4 [04:56:58]Write to MH i2c: 01 00 00 E6 0E F4 [04:56:58]Write i2c OK [04:56:58]MH_I2C_Read... [04:56:58]OFD Sender: No OFD packet to send [04:56:58]*** Cut start [04:56:58]*** Partial cut [04:56:58]*** CUTSNS_PIN = 1 [04:56:58]*** CUTSNS_PIN = 0 [04:56:59]*** Brake cut motor [04:56:59]Read from MH i2c: 01 [04:56:59]MH_I2C_Read... [04:56:59]*** Stop cut motor [04:56:59]*** Cut end [04:56:59]Read from MH i2c: 01 07 00 [04:56:59]MH_I2C_Read... [04:56:59]Read from MH i2c: 01 07 00 E6 0E 00 00 00 00 00 FF 0F 09 [04:56:59]process_action close_receipt done [04:56:59]requested_data is exist [04:56:59]produce_requested_data [04:56:59]requested_item fm.sn is exist - process it [04:56:59]wFMCommunicate request_size=4 [04:56:59]MH_SAM_APDU [04:56:59]CAPDU: 80 11 00 00 [04:56:59]Write to MH i2c: E2 08 00 E7 0E 80 11 00 00 00 00 00 00 6F [04:56:59]Write i2c OK [04:56:59]MH_I2C_Read... [04:56:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:56:59]Read from MH i2c: E2 [04:56:59]MH_I2C_Read... [04:56:59]Read from MH i2c: E2 17 00 [04:56:59]MH_I2C_Read... [04:56:59]Read from MH i2c: E2 17 00 E7 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 C8 [04:56:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [04:56:59]wFMCommunicate OK [04:56:59]requested_item fd.num is exist - process it [04:56:59]SAM_PROTO_GetFieldsCounters [04:56:59]wFMCommunicate request_size=4 [04:56:59]MH_SAM_APDU [04:56:59]CAPDU: 80 13 00 00 [04:56:59]Write to MH i2c: E2 08 00 E8 0E 80 13 00 00 00 00 00 00 72 [04:56:59]Write i2c OK [04:56:59]MH_I2C_Read... [04:56:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:56:59]Read from MH i2c: E2 [04:56:59]MH_I2C_Read... [04:56:59]Read from MH i2c: E2 62 00 [04:56:59]MH_I2C_Read... [04:56:59]Read from MH i2c: E2 62 00 E8 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 E3 69 00 00 0E 04 04 00 B2 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 B7 [04:56:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 E3 69 00 00 0E 04 04 00 B2 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 [04:56:59]wFMCommunicate OK [04:56:59]SAM_PROTO_GetFieldsCounters done [04:56:59]requested_item shift.num is exist - process it [04:56:59]requested_item shift.opened is exist - process it [04:56:59]req_shift_opened [04:56:59]FM_GetShiftState [04:56:59]SAM_PROTO_GetShiftState [04:56:59]wFMCommunicate request_size=4 [04:56:59]MH_SAM_APDU [04:56:59]CAPDU: 80 13 01 00 [04:56:59]Write to MH i2c: E2 08 00 E9 0E 80 13 01 00 00 00 00 00 74 [04:56:59]Write i2c OK [04:56:59]MH_I2C_Read... [04:56:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:56:59]Read from MH i2c: E2 [04:56:59]MH_I2C_Read... [04:56:59]Read from MH i2c: E2 0E 00 [04:56:59]MH_I2C_Read... [04:56:59]Read from MH i2c: E2 0E 00 E9 0E 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 F5 [04:56:59]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [04:56:59]wFMCommunicate OK [04:56:59]SAM_PROTO_GetShiftState done [04:56:59]FM_GetShiftState done [04:56:59]req_shift_opened done [04:56:59]requested_item shift.open_date is exist - process it [04:56:59]req_shift_open_date [04:56:59]req_shift_open_date done [04:56:59]produce_requested_data done [04:56:59]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27107,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [04:56:59]process_action_free close_receipt [04:56:59]json_value_free [04:56:59]json_value_free done [04:56:59]process_json_proto returns [04:56:59]Send response to host [04:56:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27107,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [04:56:59]free response buf [04:56:59]execute_script done [04:56:59]execute_script returns [04:56:59]free content buf [04:56:59]Sock 8.Close socket [04:56:59]Sock 8.Thread stoped [04:57:03]OFD Sender: No OFD packet to send [04:57:08]OFD Sender: No OFD packet to send [04:57:13]OFD Sender: No OFD packet to send [04:57:18]OFD Sender: No OFD packet to send [04:57:23]OFD Sender: No OFD packet to send [04:57:28]OFD Sender: No OFD packet to send [04:57:33]OFD Sender: No OFD packet to send [04:57:38]OFD Sender: No OFD packet to send [04:57:43]OFD Sender: No OFD packet to send [04:57:48]OFD Sender: No OFD packet to send [04:57:53]OFD Sender: No OFD packet to send [04:57:58]OFD Sender: No OFD packet to send [04:58:03]OFD Sender: No OFD packet to send [04:58:08]OFD Sender: No OFD packet to send [04:58:13]OFD Sender: No OFD packet to send [04:58:18]OFD Sender: No OFD packet to send [04:58:23]OFD Sender: No OFD packet to send [04:58:28]OFD Sender: No OFD packet to send [04:58:33]OFD Sender: No OFD packet to send [04:58:38]OFD Sender: No OFD packet to send [04:58:43]OFD Sender: No OFD packet to send [04:58:48]OFD Sender: No OFD packet to send [04:58:53]OFD Sender: No OFD packet to send [04:58:58]OFD Sender: No OFD packet to send [04:59:03]OFD Sender: No OFD packet to send [04:59:08]OFD Sender: No OFD packet to send [04:59:13]OFD Sender: No OFD packet to send [04:59:18]OFD Sender: No OFD packet to send [04:59:23]OFD Sender: No OFD packet to send [04:59:28]OFD Sender: No OFD packet to send [04:59:33]OFD Sender: No OFD packet to send [04:59:38]OFD Sender: No OFD packet to send [04:59:43]OFD Sender: No OFD packet to send [04:59:48]OFD Sender: No OFD packet to send [04:59:53]OFD Sender: No OFD packet to send [04:59:58]OFD Sender: No OFD packet to send [05:00:03]OFD Sender: No OFD packet to send [05:00:08]OFD Sender: No OFD packet to send [05:00:13]OFD Sender: No OFD packet to send [05:00:18]OFD Sender: No OFD packet to send [05:00:23]OFD Sender: No OFD packet to send [05:00:28]OFD Sender: No OFD packet to send [05:00:33]OFD Sender: No OFD packet to send [05:00:38]OFD Sender: No OFD packet to send [05:00:43]OFD Sender: No OFD packet to send [05:00:48]OFD Sender: No OFD packet to send [05:00:53]OFD Sender: No OFD packet to send [05:00:58]OFD Sender: No OFD packet to send [05:01:03]OFD Sender: No OFD packet to send [05:01:08]OFD Sender: No OFD packet to send [05:01:13]OFD Sender: No OFD packet to send [05:01:18]OFD Sender: No OFD packet to send [05:01:23]OFD Sender: No OFD packet to send [05:01:28]OFD Sender: No OFD packet to send [05:01:33]OFD Sender: No OFD packet to send [05:01:38]OFD Sender: No OFD packet to send [05:01:43]OFD Sender: No OFD packet to send [05:01:48]OFD Sender: No OFD packet to send [05:01:53]OFD Sender: No OFD packet to send [05:01:58]OFD Sender: No OFD packet to send [05:02:03]OFD Sender: No OFD packet to send [05:02:08]OFD Sender: No OFD packet to send [05:02:13]OFD Sender: No OFD packet to send [05:02:18]OFD Sender: No OFD packet to send [05:02:23]OFD Sender: No OFD packet to send [05:02:28]OFD Sender: No OFD packet to send [05:02:33]OFD Sender: No OFD packet to send [05:02:38]OFD Sender: No OFD packet to send [05:02:43]OFD Sender: No OFD packet to send [05:02:48]OFD Sender: No OFD packet to send [05:02:53]OFD Sender: No OFD packet to send [05:02:58]OFD Sender: No OFD packet to send [05:03:03]OFD Sender: No OFD packet to send [05:03:08]OFD Sender: No OFD packet to send [05:03:13]OFD Sender: No OFD packet to send [05:03:18]OFD Sender: No OFD packet to send [05:03:23]OFD Sender: No OFD packet to send [05:03:28]OFD Sender: No OFD packet to send [05:03:33]OFD Sender: No OFD packet to send [05:03:38]OFD Sender: No OFD packet to send [05:03:43]OFD Sender: No OFD packet to send [05:03:48]OFD Sender: No OFD packet to send [05:03:53]OFD Sender: No OFD packet to send [05:03:58]OFD Sender: No OFD packet to send [05:04:02]accept exits with 9 [05:04:02]New connection [05:04:02]New thread 3066928484 created [05:04:02]Thread 3066785124 joined [05:04:02]Waiting for new connection... [05:04:02] Sock 9.Parse request [05:04:02]Sock 9.Check first char [05:04:02]Sock 9.First char is OK [05:04:02]request: POST /json_proto HTTP/1.0 [05:04:02]Method: POST [05:04:02]URL: /json_proto [05:04:02]Method is POST - this is cgi request [05:04:02]url: /json_proto [05:04:02]query_string will be loaded in cgi processing [05:04:02]execute_cgi json_proto POST (null) [05:04:02]execute_cgi path=json_proto method=POST [05:04:02]POST find Content-Length [05:04:02]Host: 172.17.45.8:8080 [05:04:02]Content-Length: 1125 [05:04:02]Content-Type: application/json [05:04:02] [05:04:02]POST finish read [05:04:02]Found Content-Length = 1125 [05:04:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150505", "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" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000483334", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u0414\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 82.00, "quantity" : 1.000, "sum" : 82.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" : 127.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:04:02]execute_script... [05:04: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)150505", "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" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000483334", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u0414\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 82.00, "quantity" : 1.000, "sum" : 82.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" : 127.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:04:02]POST & json_proto [05:04:02]process_json_proto [05:04:02]json parsed OK: [05:04:02]protocol is kg_v1.0 [05:04:02]action value=close_receipt [05:04:02]process_action close_receipt [05:04:02]cmd_close_receipt [05:04:02]MH_GetDate [05:04:02]Write to MH i2c: F0 00 00 EA 0E E7 [05:04:02]Write i2c OK [05:04:02]MH_I2C_Read... [05:04:02]Read from MH i2c: F0 [05:04:02]MH_I2C_Read... [05:04:02]Read from MH i2c: F0 09 00 [05:04:02]MH_I2C_Read... [05:04:02]Read from MH i2c: F0 09 00 EA 0E 00 C6 22 A7 66 A6 1F 7F 64 8D [05:04:02]GetLastDocTimeStamp 1722229019 [05:04:02]current date 1722229446 [05:04:02]FM_GetShiftState [05:04:02]SAM_PROTO_GetShiftState [05:04:02]wFMCommunicate request_size=4 [05:04:02]MH_SAM_APDU [05:04:02]CAPDU: 80 13 01 00 [05:04:02]Write to MH i2c: E2 08 00 EB 0E 80 13 01 00 00 00 00 00 76 [05:04:02]Write i2c OK [05:04:02]MH_I2C_Read... [05:04:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:04:02]Read from MH i2c: E2 [05:04:02]MH_I2C_Read... [05:04:02]Read from MH i2c: E2 0E 00 [05:04:02]MH_I2C_Read... [05:04:02]Read from MH i2c: E2 0E 00 EB 0E 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 F7 [05:04:02]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [05:04:02]wFMCommunicate OK [05:04:02]SAM_PROTO_GetShiftState done [05:04:02]FM_GetShiftState done [05:04:02]opened in 1722213509 [05:04:02]opened+sec_in_day 1722299909 [05:04:02]quantity*price = 4500 [05:04:02]sum+1 = 4501 [05:04:02]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000483334 Напиток Nitro Fresh Дикие ягоды 1.000 * 82.00 = 82.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 127.00 НСП 1% : 1.13 НДС 12% : 13.49 Наличными: 0.00 Безнал.: 127.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 11 29.07.2024 05:04 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874937 ФД: 27108 ФПД: 227934431803133 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T050406&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27108&fm=227934431803133&tin=02508201610067®Number=0000000000092663&sum=12700 0 [05:04:03]StoreToDocumentArchive [05:04:03]shift 434 fd 27108 [05:04:03]save to /storage/0434/doc_00027108 [05:04:03]save last doc name /storage/0434/doc_00027108 to /storage/kkm_last_doc_name [05:04:03]save OK [05:04:03]Clear old archive folders... [05:04:03]ProcessDocumentItem done err = 0, tmpTLVsize=410 [05:04:03]tlvbuf is 001C5B80 [05:04:03]SAM_PROTO_ClearQueue [05:04:03]wFMCommunicate request_size=4 [05:04:03]MH_SAM_APDU [05:04:03]CAPDU: 80 09 00 00 [05:04:03]Write to MH i2c: E2 08 00 F8 0E 80 09 00 00 00 00 00 00 78 [05:04:03]Write i2c OK [05:04:03]MH_I2C_Read... [05:04:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:04:04]Read from MH i2c: E2 [05:04:04]MH_I2C_Read... [05:04:04]Read from MH i2c: E2 03 00 [05:04:04]MH_I2C_Read... [05:04:04]Read from MH i2c: E2 03 00 F8 0E 00 90 00 7A [05:04:04]RAPDU: 90 00 [05:04:04]wFMCommunicate OK [05:04:04]SAM_PROTO_ClearQueue done [05:04:04]KKMCreateOFDPacket [05:04:04]OFDProtocolAddRootSTLVToBuf [05:04:04]FM_MakeSignedData [05:04:04]FM_MakeSignedData [05:04:04]SAM_PROTO_SignData [05:04:04]wFMCommunicate request_size=4 [05:04:04]MH_SAM_APDU [05:04:04]CAPDU: 80 0D 01 02 [05:04:04]Write to MH i2c: E2 08 00 F9 0E 80 0D 01 02 00 00 00 00 80 [05:04:04]Write i2c OK [05:04:04]MH_I2C_Read... [05:04:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:04:04]Read from MH i2c: E2 [05:04:04]MH_I2C_Read... [05:04:04]Read from MH i2c: E2 03 00 [05:04:04]MH_I2C_Read... [05:04:04]Read from MH i2c: E2 03 00 F9 0E 00 90 00 7B [05:04:04]RAPDU: 90 00 [05:04:04]wFMCommunicate OK [05:04:04]wFMCommunicate request_size=255 [05:04:04]MH_SAM_APDU [05:04:04]CAPDU: 80 0D 02 02 FA 03 00 9A 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 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 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 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 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC [05:04:04]Write to MH i2c: E2 02 01 FA 0E 80 0D 02 02 FA 00 03 00 9A 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 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 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 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 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 00 00 84 [05:04:04]Write i2c OK [05:04:04]MH_I2C_Read... [05:04:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:04:04]Read from MH i2c: E2 [05:04:04]MH_I2C_Read... [05:04:04]Read from MH i2c: E2 03 00 [05:04:04]MH_I2C_Read... [05:04:04]Read from MH i2c: E2 03 00 FA 0E 00 90 00 7C [05:04:04]RAPDU: 90 00 [05:04:04]wFMCommunicate OK [05:04:04]wFMCommunicate request_size=169 [05:04:04]MH_SAM_APDU [05:04:04]CAPDU: 80 0D 02 02 A4 03 06 00 9C 31 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 31 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 C6 22 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E4 69 00 00 35 04 06 00 CF 4E 1E D6 F6 FD [05:04:04]Write to MH i2c: E2 AC 00 FB 0E 80 0D 02 02 A4 00 03 06 00 9C 31 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 31 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 C6 22 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E4 69 00 00 35 04 06 00 CF 4E 1E D6 F6 FD 00 00 71 [05:04:04]Write i2c OK [05:04:04]MH_I2C_Read... [05:04:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:04:04]Read from MH i2c: E2 [05:04:04]MH_I2C_Read... [05:04:04]Read from MH i2c: E2 03 00 [05:04:04]MH_I2C_Read... [05:04:04]Read from MH i2c: E2 03 00 FB 0E 00 90 00 7D [05:04:04]RAPDU: 90 00 [05:04:04]wFMCommunicate OK [05:04:04]wFMCommunicate request_size=4 [05:04:04]MH_SAM_APDU [05:04:04]CAPDU: 80 0D 03 02 [05:04:04]Write to MH i2c: E2 08 00 FC 0E 80 0D 03 02 00 00 00 00 85 [05:04:04]Write i2c OK [05:04:04]MH_I2C_Read... [05:04:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:04:04]Read from MH i2c: E2 [05:04:04]MH_I2C_Read... [05:04:04]Read from MH i2c: E2 0B 00 [05:04:04]MH_I2C_Read... [05:04:04]Read from MH i2c: E2 0B 00 FC 0E 00 EE C2 3F D5 7D 12 5B 9D 90 00 D1 [05:04:04]RAPDU: EE C2 3F D5 7D 12 5B 9D 90 00 [05:04:04]wFMCommunicate OK [05:04:04]SAM_PROTO_SignData done [05:04:04]FM_MakeSignedData done [05:04:04]CreateOFDProtocolMessage [05:04:04]wFMCommunicate request_size=4 [05:04:04]MH_SAM_APDU [05:04:04]CAPDU: 80 11 00 00 [05:04:04]Write to MH i2c: E2 08 00 FD 0E 80 11 00 00 00 00 00 00 85 [05:04:04]Write i2c OK [05:04:04]MH_I2C_Read... [05:04:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:04:04]Read from MH i2c: E2 [05:04:04]MH_I2C_Read... [05:04:04]Read from MH i2c: E2 17 00 [05:04:04]MH_I2C_Read... [05:04:04]Read from MH i2c: E2 17 00 FD 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 DE [05:04:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [05:04:04]wFMCommunicate OK [05:04:04]CreateOFDProtocolMessage done [05:04:04]OFDSenderStorePacket 27108 [05:04:04]StoreOFDPacket docnum=27108 [05:04:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 AE 01 00 00 3C 8A A6 01 86 53 5A 03 01 00 03 00 9A 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 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 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 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 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 31 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 31 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 C6 22 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E4 69 00 00 35 04 06 00 CF 4E 1E D6 F6 FD EE C2 3F D5 7D 12 5B 9D [05:04:04]CheckFolder [05:04:04]dirname=/storage/ofd_packets [05:04:04]CheckFolder done [05:04:04]ProducePacketName [05:04:04]name=ofd_packets/00027108 [05:04:04]NVStorageSaveData ofd_packets/00027108 [05:04:04]File name is /storage/ofd_packets/00027108 [05:04:04]Write 460 bytes [05:04:04]NVStorageSaveData done [05:04:04]OFDSenderStorePacket done [05:04:04]KKMCreateOFDPacket done [05:04:04]NVStorageSaveData kkm_last_timestamp [05:04:04]File name is /storage/kkm_last_timestamp [05:04:04]Write 4 bytes [05:04:04]NVStorageSaveData done [05:04:04]ExternCall_PrintAddStr [05:04:04]wPrintStart [05:04:04]Write to MH i2c: 01 00 00 FE 0E 0C [05:04:04]OFD Sender: Processing packet 27108 [packets to send 9, broken 8] [05:04:04]ProducePacketName [05:04:04]name=ofd_packets/00027108 [05:04:04]OFD Sender: To server: pG, [05:04:04]CommunicateWithHost lk.salyk.kg:30040 [05:04:04]ConnectInit lk.salyk.kg [05:04:04]Write i2c OK [05:04:04]MH_I2C_Read... [05:04:04]Read from MH i2c: 01 [05:04:04]MH_I2C_Read... [05:04:04]Read from MH i2c: 01 07 00 [05:04:04]MH_I2C_Read... [05:04:04]Read from MH i2c: 01 07 00 FE 0E 00 00 00 00 00 FF 0F 21 [05:04:04]RasterBufferAndPrint [05:04:04]line Счет N : (3)150505 [05:04:04]line ИНН: 02508201610067 [05:04:04]line Контрольно-Кассовый Чек [05:04:04]line ПРОДАЖА [05:04:04]line Товар: 4823063106498 [05:04:04]line Садочок 0,2 Яблочный сок 1/200 [05:04:04]line 1.000 * 45.00 [05:04:04]line = 45.00 [05:04:04]line НДС 12% НСП 1% [05:04:04]line > о реализуемом товаре [05:04:04]line Товар: 4700000483334 [05:04:04]line Напиток Nitro Fresh Дикие ягоды [05:04:04]line 1.000 * 82.00 [05:04:04]line = 82.00 [05:04:04]line НДС 12% НСП 1% [05:04:04]line > о реализуемом товаре [05:04:04]line ИТОГО: 127.00 [05:04:04]line НСП 1% : 1.13 [05:04:04]line НДС 12% : 13.49 [05:04:04]line Наличными: 0.00 [05:04:04]line Безнал.: 127.00 [05:04:04]line Место: АЗС № 134 "Партнер Нефть" [05:04:04]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [05:04:04]line СНО: Общий режим [05:04:04]line Чек 11 29.07.2024 05:04 [05:04:04]line Смена: 434 ФФД: 1.0 [05:04:04]line ЗНМ: 0300000043 [05:04:04]line РНМ: 0000000000092663 [05:04:04]line Версия ККМ: 001 [05:04:04]line Платежная система: O! деньги [05:04:04]line ФМ: 0000000000874937 [05:04:04]line ФД: 27108 [05:04:04]line ФПД: 227934431803133 [05:04:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T050406&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27108&fm=227934431803133&tin=02508201610067®Number=0000000000092663&sum=12700 [05:04:04]line 0 [05:04:04]written 0, free lines is 4095 [05:04:05]Connected sock=10 [05:04:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 AE 01 00 00 3C 8A A6 01 86 53 5A 03 01 00 03 00 9A 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 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 74 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 33 33 34 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 94 D0 B8 D0 BA D0 B8 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 08 20 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 31 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 71 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 31 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 C6 22 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E4 69 00 00 35 04 06 00 CF 4E 1E D6 F6 FD EE C2 3F D5 7D 12 5B 9D [05:04:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 02 20 47 00 E6 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E4 69 00 00 F4 03 04 00 18 C9 A6 66 B6 04 01 00 00 0C 63 9E EB 3C 4F FB 6C [05:04:05]CommunicateWithHost err = 0 [05:04:05]CheckOFDResponse [05:04:05]1017 (14) - 77093643461234 [05:04:05]1041 (16) - 0000000000874937 [05:04:05]1040 (4) - 27108 [05:04:05]1012 (4) - 28.07.2024 22:41 [05:04:05]1206 (1) - 0 [05:04:05]OFD Sender: Remove packet 27108 [05:04:05]ProducePacketName [05:04:05]name=ofd_packets/00027108 [05:04:05]NVStorageDeleteData [05:04:05]Write to MH i2c: 01 00 00 2F 0F 3E [05:04:05]Write i2c OK [05:04:05]MH_I2C_Read... [05:04:05]Read from MH i2c: 01 [05:04:05]MH_I2C_Read... [05:04:05]Read from MH i2c: 01 07 00 [05:04:05]MH_I2C_Read... [05:04:05]Read from MH i2c: 01 07 00 2F 0F 00 00 00 00 00 46 0C 97 [05:04:05]RasterBufferAndPrint [05:04:05]line [05:04:05]line [05:04:05]line [05:04:05]line [05:04:05]line [05:04:05]written 0, free lines is 3148 [05:04:05]MH_Cut [05:04:05]Write to MH i2c: D1 01 00 36 0F 01 17 [05:04:05]Write i2c OK [05:04:05]MH_I2C_Read... [05:04:05]Read from MH i2c: D1 [05:04:05]MH_I2C_Read... [05:04:05]Read from MH i2c: D1 01 00 [05:04:05]MH_I2C_Read... [05:04:05]Read from MH i2c: D1 01 00 36 0F 00 16 [05:04:05]Write to MH i2c: 01 00 00 37 0F 46 [05:04:05]Write i2c OK [05:04:05]MH_I2C_Read... [05:04:05]OFD Sender: No OFD packet to send [05:04:06]*** Cut start [05:04:06]*** Partial cut [05:04:06]*** CUTSNS_PIN = 1 [05:04:06]*** CUTSNS_PIN = 0 [05:04:06]*** Brake cut motor [05:04:06]Read from MH i2c: 01 [05:04:06]MH_I2C_Read... [05:04:06]*** Stop cut motor [05:04:06]*** Cut end [05:04:06]Read from MH i2c: 01 07 00 [05:04:06]MH_I2C_Read... [05:04:06]Read from MH i2c: 01 07 00 37 0F 00 00 00 00 00 FF 0F 5B [05:04:06]process_action close_receipt done [05:04:06]requested_data is exist [05:04:06]produce_requested_data [05:04:06]requested_item fm.sn is exist - process it [05:04:06]wFMCommunicate request_size=4 [05:04:06]MH_SAM_APDU [05:04:06]CAPDU: 80 11 00 00 [05:04:06]Write to MH i2c: E2 08 00 38 0F 80 11 00 00 00 00 00 00 C1 [05:04:06]Write i2c OK [05:04:06]MH_I2C_Read... [05:04:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:04:07]Read from MH i2c: E2 [05:04:07]MH_I2C_Read... [05:04:07]Read from MH i2c: E2 17 00 [05:04:07]MH_I2C_Read... [05:04:07]Read from MH i2c: E2 17 00 38 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 1A [05:04:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [05:04:07]wFMCommunicate OK [05:04:07]requested_item fd.num is exist - process it [05:04:07]SAM_PROTO_GetFieldsCounters [05:04:07]wFMCommunicate request_size=4 [05:04:07]MH_SAM_APDU [05:04:07]CAPDU: 80 13 00 00 [05:04:07]Write to MH i2c: E2 08 00 39 0F 80 13 00 00 00 00 00 00 C4 [05:04:07]Write i2c OK [05:04:07]MH_I2C_Read... [05:04:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:04:07]Read from MH i2c: E2 [05:04:07]MH_I2C_Read... [05:04:07]Read from MH i2c: E2 62 00 [05:04:07]MH_I2C_Read... [05:04:07]Read from MH i2c: E2 62 00 39 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 E4 69 00 00 0E 04 04 00 B2 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 0D [05:04:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 E4 69 00 00 0E 04 04 00 B2 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 [05:04:07]wFMCommunicate OK [05:04:07]SAM_PROTO_GetFieldsCounters done [05:04:07]requested_item shift.num is exist - process it [05:04:07]requested_item shift.opened is exist - process it [05:04:07]req_shift_opened [05:04:07]FM_GetShiftState [05:04:07]SAM_PROTO_GetShiftState [05:04:07]wFMCommunicate request_size=4 [05:04:07]MH_SAM_APDU [05:04:07]CAPDU: 80 13 01 00 [05:04:07]Write to MH i2c: E2 08 00 3A 0F 80 13 01 00 00 00 00 00 C6 [05:04:07]Write i2c OK [05:04:07]MH_I2C_Read... [05:04:07]Read from MH i2c: E2 [05:04:07]MH_I2C_Read... [05:04:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:04:07]Read from MH i2c: E2 0E 00 [05:04:07]MH_I2C_Read... [05:04:07]Read from MH i2c: E2 0E 00 3A 0F 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 47 [05:04:07]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [05:04:07]wFMCommunicate OK [05:04:07]SAM_PROTO_GetShiftState done [05:04:07]FM_GetShiftState done [05:04:07]req_shift_opened done [05:04:07]requested_item shift.open_date is exist - process it [05:04:07]req_shift_open_date [05:04:07]req_shift_open_date done [05:04:07]produce_requested_data done [05:04:07]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27108,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [05:04:07]process_action_free close_receipt [05:04:07]json_value_free [05:04:07]json_value_free done [05:04:07]process_json_proto returns [05:04:07]Send response to host [05:04:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27108,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [05:04:07]free response buf [05:04:07]execute_script done [05:04:07]execute_script returns [05:04:07]free content buf [05:04:07]Sock 9.Close socket [05:04:07]Sock 9.Thread stoped [05:04:10]OFD Sender: No OFD packet to send [05:04:15]OFD Sender: No OFD packet to send [05:04:20]OFD Sender: No OFD packet to send [05:04:25]OFD Sender: No OFD packet to send [05:04:30]OFD Sender: No OFD packet to send [05:04:35]OFD Sender: No OFD packet to send [05:04:40]OFD Sender: No OFD packet to send [05:04:45]OFD Sender: No OFD packet to send [05:04:50]OFD Sender: No OFD packet to send [05:04:55]OFD Sender: No OFD packet to send [05:05:00]OFD Sender: No OFD packet to send [05:05:05]OFD Sender: No OFD packet to send [05:05:10]OFD Sender: No OFD packet to send [05:05:15]OFD Sender: No OFD packet to send [05:05:20]OFD Sender: No OFD packet to send [05:05:25]OFD Sender: No OFD packet to send [05:05:30]OFD Sender: No OFD packet to send [05:05:35]OFD Sender: No OFD packet to send [05:05:40]OFD Sender: No OFD packet to send [05:05:45]OFD Sender: No OFD packet to send [05:05:50]OFD Sender: No OFD packet to send [05:05:55]OFD Sender: No OFD packet to send [05:06:00]OFD Sender: No OFD packet to send [05:06:05]OFD Sender: No OFD packet to send [05:06:10]OFD Sender: No OFD packet to send [05:06:15]OFD Sender: No OFD packet to send [05:06:20]OFD Sender: No OFD packet to send [05:06:25]OFD Sender: No OFD packet to send [05:06:30]OFD Sender: No OFD packet to send [05:06:35]OFD Sender: No OFD packet to send [05:06:40]OFD Sender: No OFD packet to send [05:06:45]OFD Sender: No OFD packet to send [05:06:50]OFD Sender: No OFD packet to send [05:06:55]OFD Sender: No OFD packet to send [05:07:00]OFD Sender: No OFD packet to send [05:07:05]OFD Sender: No OFD packet to send [05:07:10]OFD Sender: No OFD packet to send [05:07:15]OFD Sender: No OFD packet to send [05:07:20]OFD Sender: No OFD packet to send [05:07:25]OFD Sender: No OFD packet to send [05:07:30]OFD Sender: No OFD packet to send [05:07:35]OFD Sender: No OFD packet to send [05:07:40]OFD Sender: No OFD packet to send [05:07:45]OFD Sender: No OFD packet to send [05:07:50]OFD Sender: No OFD packet to send [05:07:55]OFD Sender: No OFD packet to send [05:08:00]OFD Sender: No OFD packet to send [05:08:05]OFD Sender: No OFD packet to send [05:08:10]OFD Sender: No OFD packet to send [05:08:15]OFD Sender: No OFD packet to send [05:08:20]OFD Sender: No OFD packet to send [05:08:25]OFD Sender: No OFD packet to send [05:08:30]OFD Sender: No OFD packet to send [05:08:35]OFD Sender: No OFD packet to send [05:08:40]OFD Sender: No OFD packet to send [05:08:45]OFD Sender: No OFD packet to send [05:08:50]OFD Sender: No OFD packet to send [05:08:55]OFD Sender: No OFD packet to send [05:09:00]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:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:51]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:17:01]OFD Sender: No OFD packet to send [05:17:06]OFD Sender: No OFD packet to send [05:17:11]OFD Sender: No OFD packet to send [05:17:16]OFD Sender: No OFD packet to send [05:17:21]OFD Sender: No OFD packet to send [05:17:26]OFD Sender: No OFD packet to send [05:17:31]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:51]OFD Sender: No OFD packet to send [05:17:56]OFD Sender: No OFD packet to send [05:18:01]OFD Sender: No OFD packet to send [05:18:06]OFD Sender: No OFD packet to send [05:18:11]OFD Sender: No OFD packet to send [05:18:16]OFD Sender: No OFD packet to send [05:18:21]OFD Sender: No OFD packet to send [05:18:26]OFD Sender: No OFD packet to send [05:18:31]OFD Sender: No OFD packet to send [05:18:36]OFD Sender: No OFD packet to send [05:18:41]OFD Sender: No OFD packet to send [05:18:46]OFD Sender: No OFD packet to send [05:18:51]OFD Sender: No OFD packet to send [05:18:56]OFD Sender: No OFD packet to send [05:19:01]OFD Sender: No OFD packet to send [05:19:06]OFD Sender: No OFD packet to send [05:19:11]OFD Sender: No OFD packet to send [05:19:16]OFD Sender: No OFD packet to send [05:19:21]OFD Sender: No OFD packet to send [05:19:26]OFD Sender: No OFD packet to send [05:19:31]OFD Sender: No OFD packet to send [05:19:36]OFD Sender: No OFD packet to send [05:19:41]OFD Sender: No OFD packet to send [05:19:46]OFD Sender: No OFD packet to send [05:19:51]OFD Sender: No OFD packet to send [05:19:56]OFD Sender: No OFD packet to send [05:20:01]OFD Sender: No OFD packet to send [05:20:06]OFD Sender: No OFD packet to send [05:20:11]OFD Sender: No OFD packet to send [05:20:16]OFD Sender: No OFD packet to send [05:20:21]OFD Sender: No OFD packet to send [05:20:26]OFD Sender: No OFD packet to send [05:20:31]OFD Sender: No OFD packet to send [05:20:36]OFD Sender: No OFD packet to send [05:20:41]OFD Sender: No OFD packet to send [05:20:46]OFD Sender: No OFD packet to send [05:20:51]OFD Sender: No OFD packet to send [05:20:56]OFD Sender: No OFD packet to send [05:21:01]OFD Sender: No OFD packet to send [05:21:06]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:52]OFD Sender: No OFD packet to send [05:29:57]OFD Sender: No OFD packet to send [05:30:02]OFD Sender: No OFD packet to send [05:30:07]OFD Sender: No OFD packet to send [05:30:12]OFD Sender: No OFD packet to send [05:30:17]OFD Sender: No OFD packet to send [05:30:22]OFD Sender: No OFD packet to send [05:30:27]OFD Sender: No OFD packet to send [05:30:32]OFD Sender: No OFD packet to send [05:30:37]OFD Sender: No OFD packet to send [05:30:42]OFD Sender: No OFD packet to send [05:30:47]OFD Sender: No OFD packet to send [05:30:52]OFD Sender: No OFD packet to send [05:30:57]OFD Sender: No OFD packet to send [05:31:02]OFD Sender: No OFD packet to send [05:31:07]OFD Sender: No OFD packet to send [05:31:12]OFD Sender: No OFD packet to send [05:31:17]OFD Sender: No OFD packet to send [05:31:22]OFD Sender: No OFD packet to send [05:31:27]OFD Sender: No OFD packet to send [05:31:32]OFD Sender: No OFD packet to send [05:31:37]OFD Sender: No OFD packet to send [05:31:42]OFD Sender: No OFD packet to send [05:31:47]OFD Sender: No OFD packet to send [05:31:52]OFD Sender: No OFD packet to send [05:31:57]OFD Sender: No OFD packet to send [05:32:02]OFD Sender: No OFD packet to send [05:32:07]OFD Sender: No OFD packet to send [05:32:12]OFD Sender: No OFD packet to send [05:32:17]OFD Sender: No OFD packet to send [05:32:22]OFD Sender: No OFD packet to send [05:32:27]OFD Sender: No OFD packet to send [05:32:32]OFD Sender: No OFD packet to send [05:32:37]OFD Sender: No OFD packet to send [05:32:42]OFD Sender: No OFD packet to send [05:32:47]OFD Sender: No OFD packet to send [05:32:52]OFD Sender: No OFD packet to send [05:32:57]OFD Sender: No OFD packet to send [05:33:02]OFD Sender: No OFD packet to send [05:33:07]OFD Sender: No OFD packet to send [05:33:12]OFD Sender: No OFD packet to send [05:33:17]OFD Sender: No OFD packet to send [05:33:22]OFD Sender: No OFD packet to send [05:33:27]OFD Sender: No OFD packet to send [05:33:32]OFD Sender: No OFD packet to send [05:33:37]OFD Sender: No OFD packet to send [05:33:42]OFD Sender: No OFD packet to send [05:33:47]OFD Sender: No OFD packet to send [05:33:52]OFD Sender: No OFD packet to send [05:33:57]OFD Sender: No OFD packet to send [05:34:02]OFD Sender: No OFD packet to send [05:34:07]OFD Sender: No OFD packet to send [05:34:12]OFD Sender: No OFD packet to send [05:34:17]OFD Sender: No OFD packet to send [05:34:22]OFD Sender: No OFD packet to send [05:34:27]OFD Sender: No OFD packet to send [05:34:32]OFD Sender: No OFD packet to send [05:34:37]OFD Sender: No OFD packet to send [05:34:42]OFD Sender: No OFD packet to send [05:34:47]OFD Sender: No OFD packet to send [05:34:52]OFD Sender: No OFD packet to send [05:34:57]OFD Sender: No OFD packet to send [05:35:02]OFD Sender: No OFD packet to send [05:35:07]OFD Sender: No OFD packet to send [05:35:12]OFD Sender: No OFD packet to send [05:35:17]OFD Sender: No OFD packet to send [05:35:22]OFD Sender: No OFD packet to send [05:35:27]OFD Sender: No OFD packet to send [05:35:32]OFD Sender: No OFD packet to send [05:35:37]OFD Sender: No OFD packet to send [05:35:42]OFD Sender: No OFD packet to send [05:35:47]OFD Sender: No OFD packet to send [05:35:52]OFD Sender: No OFD packet to send [05:35:57]OFD Sender: No OFD packet to send [05:36:02]OFD Sender: No OFD packet to send [05:36:07]OFD Sender: No OFD packet to send [05:36:12]OFD Sender: No OFD packet to send [05:36:17]OFD Sender: No OFD packet to send [05:36:22]OFD Sender: No OFD packet to send [05:36:27]OFD Sender: No OFD packet to send [05:36:32]OFD Sender: No OFD packet to send [05:36:37]OFD Sender: No OFD packet to send [05:36:42]OFD Sender: No OFD packet to send [05:36:47]OFD Sender: No OFD packet to send [05:36:52]OFD Sender: No OFD packet to send [05:36:57]OFD Sender: No OFD packet to send [05:37:02]OFD Sender: No OFD packet to send [05:37:07]OFD Sender: No OFD packet to send [05:37:12]OFD Sender: No OFD packet to send [05:37:17]OFD Sender: No OFD packet to send [05:37:22]OFD Sender: No OFD packet to send [05:37:27]OFD Sender: No OFD packet to send [05:37:32]OFD Sender: No OFD packet to send [05:37:37]OFD Sender: No OFD packet to send [05:37:42]OFD Sender: No OFD packet to send [05:37:47]OFD Sender: No OFD packet to send [05:37:52]OFD Sender: No OFD packet to send [05:37:57]OFD Sender: No OFD packet to send [05:38:02]OFD Sender: No OFD packet to send [05:38:07]OFD Sender: No OFD packet to send [05:38:12]OFD Sender: No OFD packet to send [05:38:17]OFD Sender: No OFD packet to send [05:38:22]OFD Sender: No OFD packet to send [05:38:27]OFD Sender: No OFD packet to send [05:38:32]OFD Sender: No OFD packet to send [05:38:37]OFD Sender: No OFD packet to send [05:38:42]OFD Sender: No OFD packet to send [05:38:47]OFD Sender: No OFD packet to send [05:38:52]OFD Sender: No OFD packet to send [05:38:57]OFD Sender: No OFD packet to send [05:39:02]OFD Sender: No OFD packet to send [05:39:07]OFD Sender: No OFD packet to send [05:39:12]OFD Sender: No OFD packet to send [05:39:17]OFD Sender: No OFD packet to send [05:39:22]OFD Sender: No OFD packet to send [05:39:27]OFD Sender: No OFD packet to send [05:39:32]OFD Sender: No OFD packet to send [05:39:37]OFD Sender: No OFD packet to send [05:39:42]OFD Sender: No OFD packet to send [05:39:47]OFD Sender: No OFD packet to send [05:39:52]OFD Sender: No OFD packet to send [05:39:57]OFD Sender: No OFD packet to send [05:40:02]OFD Sender: No OFD packet to send [05:40:07]OFD Sender: No OFD packet to send [05:40:12]OFD Sender: No OFD packet to send [05:40:17]OFD Sender: No OFD packet to send [05:40:22]OFD Sender: No OFD packet to send [05:40:27]OFD Sender: No OFD packet to send [05:40:32]OFD Sender: No OFD packet to send [05:40:37]OFD Sender: No OFD packet to send [05:40:42]OFD Sender: No OFD packet to send [05:40:47]OFD Sender: No OFD packet to send [05:40:52]OFD Sender: No OFD packet to send [05:40:57]OFD Sender: No OFD packet to send [05:41:02]OFD Sender: No OFD packet to send [05:41:07]OFD Sender: No OFD packet to send [05:41:12]OFD Sender: No OFD packet to send [05:41:17]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:58]OFD Sender: No OFD packet to send [05:51:03]OFD Sender: No OFD packet to send [05:51:08]OFD Sender: No OFD packet to send [05:51:13]OFD Sender: No OFD packet to send [05:51:18]OFD Sender: No OFD packet to send [05:51:23]OFD Sender: No OFD packet to send [05:51:28]OFD Sender: No OFD packet to send [05:51:33]OFD Sender: No OFD packet to send [05:51:38]OFD Sender: No OFD packet to send [05:51:43]OFD Sender: No OFD packet to send [05:51:48]OFD Sender: No OFD packet to send [05:51:53]OFD Sender: No OFD packet to send [05:51:58]OFD Sender: No OFD packet to send [05:52:03]OFD Sender: No OFD packet to send [05:52:08]OFD Sender: No OFD packet to send [05:52:13]OFD Sender: No OFD packet to send [05:52:18]OFD Sender: No OFD packet to send [05:52:23]OFD Sender: No OFD packet to send [05:52:28]OFD Sender: No OFD packet to send [05:52:33]OFD Sender: No OFD packet to send [05:52:38]OFD Sender: No OFD packet to send [05:52:43]OFD Sender: No OFD packet to send [05:52:48]OFD Sender: No OFD packet to send [05:52:53]OFD Sender: No OFD packet to send [05:52:58]OFD Sender: No OFD packet to send [05:53:03]OFD Sender: No OFD packet to send [05:53:08]OFD Sender: No OFD packet to send [05:53:13]OFD Sender: No OFD packet to send [05:53:18]OFD Sender: No OFD packet to send [05:53:23]OFD Sender: No OFD packet to send [05:53:28]OFD Sender: No OFD packet to send [05:53:33]OFD Sender: No OFD packet to send [05:53:38]OFD Sender: No OFD packet to send [05:53:43]OFD Sender: No OFD packet to send [05:53:48]OFD Sender: No OFD packet to send [05:53:53]OFD Sender: No OFD packet to send [05:53:58]OFD Sender: No OFD packet to send [05:54:03]OFD Sender: No OFD packet to send [05:54:08]OFD Sender: No OFD packet to send [05:54:13]OFD Sender: No OFD packet to send [05:54:18]OFD Sender: No OFD packet to send [05:54:23]OFD Sender: No OFD packet to send [05:54:28]OFD Sender: No OFD packet to send [05:54:33]OFD Sender: No OFD packet to send [05:54:38]OFD Sender: No OFD packet to send [05:54:43]OFD Sender: No OFD packet to send [05:54:48]OFD Sender: No OFD packet to send [05:54:53]OFD Sender: No OFD packet to send [05:54:58]OFD Sender: No OFD packet to send [05:55:03]OFD Sender: No OFD packet to send [05:55:08]OFD Sender: No OFD packet to send [05:55:13]OFD Sender: No OFD packet to send [05:55:18]OFD Sender: No OFD packet to send [05:55:23]OFD Sender: No OFD packet to send [05:55:28]OFD Sender: No OFD packet to send [05:55:33]OFD Sender: No OFD packet to send [05:55:38]OFD Sender: No OFD packet to send [05:55:43]OFD Sender: No OFD packet to send [05:55:48]OFD Sender: No OFD packet to send [05:55:53]OFD Sender: No OFD packet to send [05:55:58]OFD Sender: No OFD packet to send [05:56:03]OFD Sender: No OFD packet to send [05:56:08]OFD Sender: No OFD packet to send [05:56:13]OFD Sender: No OFD packet to send [05:56:18]OFD Sender: No OFD packet to send [05:56:23]OFD Sender: No OFD packet to send [05:56:28]OFD Sender: No OFD packet to send [05:56:33]OFD Sender: No OFD packet to send [05:56:38]OFD Sender: No OFD packet to send [05:56:43]OFD Sender: No OFD packet to send [05:56:48]OFD Sender: No OFD packet to send [05:56:53]OFD Sender: No OFD packet to send [05:56:58]OFD Sender: No OFD packet to send [05:57:03]OFD Sender: No OFD packet to send [05:57:08]OFD Sender: No OFD packet to send [05:57:13]OFD Sender: No OFD packet to send [05:57:18]OFD Sender: No OFD packet to send [05:57:23]OFD Sender: No OFD packet to send [05:57:28]OFD Sender: No OFD packet to send [05:57:33]OFD Sender: No OFD packet to send [05:57:38]OFD Sender: No OFD packet to send [05:57:43]OFD Sender: No OFD packet to send [05:57:48]OFD Sender: No OFD packet to send [05:57:53]OFD Sender: No OFD packet to send [05:57:58]OFD Sender: No OFD packet to send [05:58:03]OFD Sender: No OFD packet to send [05:58:08]OFD Sender: No OFD packet to send [05:58:13]OFD Sender: No OFD packet to send [05:58:18]OFD Sender: No OFD packet to send [05:58:23]OFD Sender: No OFD packet to send [05:58:28]OFD Sender: No OFD packet to send [05:58:33]OFD Sender: No OFD packet to send [05:58:38]OFD Sender: No OFD packet to send [05:58:43]OFD Sender: No OFD packet to send [05:58:48]OFD Sender: No OFD packet to send [05:58:53]OFD Sender: No OFD packet to send [05:58:58]OFD Sender: No OFD packet to send [05:59:03]OFD Sender: No OFD packet to send [05:59:08]OFD Sender: No OFD packet to send [05:59:13]OFD Sender: No OFD packet to send [05:59:18]OFD Sender: No OFD packet to send [05:59:23]OFD Sender: No OFD packet to send [05:59:28]OFD Sender: No OFD packet to send [05:59:33]OFD Sender: No OFD packet to send [05:59:38]OFD Sender: No OFD packet to send [05:59:43]OFD Sender: No OFD packet to send [05:59:48]OFD Sender: No OFD packet to send [05:59:53]OFD Sender: No OFD packet to send [05:59:58]OFD Sender: No OFD packet to send [06:00:03]OFD Sender: No OFD packet to send [06:00:08]OFD Sender: No OFD packet to send [06:00:13]OFD Sender: No OFD packet to send [06:00:18]OFD Sender: No OFD packet to send [06:00:23]OFD Sender: No OFD packet to send [06:00:28]OFD Sender: No OFD packet to send [06:00:33]OFD Sender: No OFD packet to send [06:00:38]OFD Sender: No OFD packet to send [06:00:43]OFD Sender: No OFD packet to send [06:00:48]OFD Sender: No OFD packet to send [06:00:53]OFD Sender: No OFD packet to send [06:00:58]OFD Sender: No OFD packet to send [06:01:03]OFD Sender: No OFD packet to send [06:01:08]OFD Sender: No OFD packet to send [06:01:13]OFD Sender: No OFD packet to send [06:01:18]OFD Sender: No OFD packet to send [06:01:23]OFD Sender: No OFD packet to send [06:01:28]OFD Sender: No OFD packet to send [06:01:33]OFD Sender: No OFD packet to send [06:01:38]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]OFD Sender: No OFD packet to send [06:08:38]OFD Sender: No OFD packet to send [06:08:43]OFD Sender: No OFD packet to send [06:08:48]OFD Sender: No OFD packet to send [06:08:53]OFD Sender: No OFD packet to send [06:08:58]OFD Sender: No OFD packet to send [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [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:19]OFD Sender: No OFD packet to send [06:12:24]OFD Sender: No OFD packet to send [06:12:29]OFD Sender: No OFD packet to send [06:12:34]OFD Sender: No OFD packet to send [06:12:39]OFD Sender: No OFD packet to send [06:12:44]OFD Sender: No OFD packet to send [06:12:49]OFD Sender: No OFD packet to send [06:12:54]OFD Sender: No OFD packet to send [06:12:59]OFD Sender: No OFD packet to send [06:13:04]OFD Sender: No OFD packet to send [06:13:09]OFD Sender: No OFD packet to send [06:13:14]OFD Sender: No OFD packet to send [06:13:19]OFD Sender: No OFD packet to send [06:13:24]OFD Sender: No OFD packet to send [06:13:29]OFD Sender: No OFD packet to send [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:21:59]OFD Sender: No OFD packet to send [06:22:04]OFD Sender: No OFD packet to send [06:22:09]OFD Sender: No OFD packet to send [06:22:14]OFD Sender: No OFD packet to send [06:22:19]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22:29]OFD Sender: No OFD packet to send [06:22:34]OFD Sender: No OFD packet to send [06:22:39]OFD Sender: No OFD packet to send [06:22:44]OFD Sender: No OFD packet to send [06:22:49]OFD Sender: No OFD packet to send [06:22:54]OFD Sender: No OFD packet to send [06:22:59]OFD Sender: No OFD packet to send [06:23:04]OFD Sender: No OFD packet to send [06:23:09]OFD Sender: No OFD packet to send [06:23:14]OFD Sender: No OFD packet to send [06:23:19]OFD Sender: No OFD packet to send [06:23:24]OFD Sender: No OFD packet to send [06:23:29]OFD Sender: No OFD packet to send [06:23:34]OFD Sender: No OFD packet to send [06:23:39]OFD Sender: No OFD packet to send [06:23:44]OFD Sender: No OFD packet to send [06:23:49]OFD Sender: No OFD packet to send [06:23:54]OFD Sender: No OFD packet to send [06:23:59]OFD Sender: No OFD packet to send [06:24:04]OFD Sender: No OFD packet to send [06:24:09]OFD Sender: No OFD packet to send [06:24:14]OFD Sender: No OFD packet to send [06:24:19]OFD Sender: No OFD packet to send [06:24:24]OFD Sender: No OFD packet to send [06:24:29]OFD Sender: No OFD packet to send [06:24:34]OFD Sender: No OFD packet to send [06:24:39]OFD Sender: No OFD packet to send [06:24:44]OFD Sender: No OFD packet to send [06:24:49]OFD Sender: No OFD packet to send [06:24:54]OFD Sender: No OFD packet to send [06:24:59]OFD Sender: No OFD packet to send [06:25:04]OFD Sender: No OFD packet to send [06:25:09]OFD Sender: No OFD packet to send [06:25:14]OFD Sender: No OFD packet to send [06:25:19]OFD Sender: No OFD packet to send [06:25:24]OFD Sender: No OFD packet to send [06:25:29]OFD Sender: No OFD packet to send [06:25:34]OFD Sender: No OFD packet to send [06:25:39]OFD Sender: No OFD packet to send [06:25:44]OFD Sender: No OFD packet to send [06:25:49]OFD Sender: No OFD packet to send [06:25:54]OFD Sender: No OFD packet to send [06:25:59]OFD Sender: No OFD packet to send [06:26:04]OFD Sender: No OFD packet to send [06:26:09]OFD Sender: No OFD packet to send [06:26:14]OFD Sender: No OFD packet to send [06:26:19]OFD Sender: No OFD packet to send [06:26:24]OFD Sender: No OFD packet to send [06:26:29]OFD Sender: No OFD packet to send [06:26:34]OFD Sender: No OFD packet to send [06:26:39]OFD Sender: No OFD packet to send [06:26:44]OFD Sender: No OFD packet to send [06:26:49]OFD Sender: No OFD packet to send [06:26:54]OFD Sender: No OFD packet to send [06:26:59]OFD Sender: No OFD packet to send [06:27:04]OFD Sender: No OFD packet to send [06:27:09]OFD Sender: No OFD packet to send [06:27:14]OFD Sender: No OFD packet to send [06:27:19]OFD Sender: No OFD packet to send [06:27:24]OFD Sender: No OFD packet to send [06:27:29]OFD Sender: No OFD packet to send [06:27:34]OFD Sender: No OFD packet to send [06:27:39]OFD Sender: No OFD packet to send [06:27:44]OFD Sender: No OFD packet to send [06:27:49]OFD Sender: No OFD packet to send [06:27:54]OFD Sender: No OFD packet to send [06:27:59]OFD Sender: No OFD packet to send [06:28:04]OFD Sender: No OFD packet to send [06:28:09]OFD Sender: No OFD packet to send [06:28:14]OFD Sender: No OFD packet to send [06:28:19]OFD Sender: No OFD packet to send [06:28:24]OFD Sender: No OFD packet to send [06:28:29]OFD Sender: No OFD packet to send [06:28:34]OFD Sender: No OFD packet to send [06:28:39]OFD Sender: No OFD packet to send [06:28:44]OFD Sender: No OFD packet to send [06:28:49]OFD Sender: No OFD packet to send [06:28:54]OFD Sender: No OFD packet to send [06:28:59]OFD Sender: No OFD packet to send [06:29:04]OFD Sender: No OFD packet to send [06:29:09]OFD Sender: No OFD packet to send [06:29:14]OFD Sender: No OFD packet to send [06:29:19]OFD Sender: No OFD packet to send [06:29:24]OFD Sender: No OFD packet to send [06:29:29]OFD Sender: No OFD packet to send [06:29:34]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:04]OFD Sender: No OFD packet to send [06:30:09]OFD Sender: No OFD packet to send [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]OFD Sender: No OFD packet to send [06:32:14]OFD Sender: No OFD packet to send [06:32:19]OFD Sender: No OFD packet to send [06:32:24]OFD Sender: No OFD packet to send [06:32:29]OFD Sender: No OFD packet to send [06:32:34]OFD Sender: No OFD packet to send [06:32:39]OFD Sender: No OFD packet to send [06:32:44]OFD Sender: No OFD packet to send [06:32:49]OFD Sender: No OFD packet to send [06:32:54]OFD Sender: No OFD packet to send [06:32:59]OFD Sender: No OFD packet to send [06:33:04]OFD Sender: No OFD packet to send [06:33:09]OFD Sender: No OFD packet to send [06:33:14]OFD Sender: No OFD packet to send [06:33:19]OFD Sender: No OFD packet to send [06:33:24]OFD Sender: No OFD packet to send [06:33: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:10]OFD Sender: No OFD packet to send [06:42:15]OFD Sender: No OFD packet to send [06:42:20]OFD Sender: No OFD packet to send [06:42:25]OFD Sender: No OFD packet to send [06:42:30]OFD Sender: No OFD packet to send [06:42:35]OFD Sender: No OFD packet to send [06:42:40]OFD Sender: No OFD packet to send [06:42:45]OFD Sender: No OFD packet to send [06:42:50]OFD Sender: No OFD packet to send [06:42:55]OFD Sender: No OFD packet to send [06:43:00]OFD Sender: No OFD packet to send [06:43:05]OFD Sender: No OFD packet to send [06:43:10]OFD Sender: No OFD packet to send [06:43:15]OFD Sender: No OFD packet to send [06:43:20]OFD Sender: No OFD packet to send [06:43:25]OFD Sender: No OFD packet to send [06:43:30]OFD Sender: No OFD packet to send [06:43:35]OFD Sender: No OFD packet to send [06:43:40]OFD Sender: No OFD packet to send [06:43:45]OFD Sender: No OFD packet to send [06:43:50]OFD Sender: No OFD packet to send [06:43:55]OFD Sender: No OFD packet to send [06:44:00]OFD Sender: No OFD packet to send [06:44:05]OFD Sender: No OFD packet to send [06:44:10]OFD Sender: No OFD packet to send [06:44:15]OFD Sender: No OFD packet to send [06:44:20]OFD Sender: No OFD packet to send [06:44:25]OFD Sender: No OFD packet to send [06:44:30]OFD Sender: No OFD packet to send [06:44:35]OFD Sender: No OFD packet to send [06:44:40]OFD Sender: No OFD packet to send [06:44:45]OFD Sender: No OFD packet to send [06:44:50]OFD Sender: No OFD packet to send [06:44:55]OFD Sender: No OFD packet to send [06:45:00]OFD Sender: No OFD packet to send [06:45:05]OFD Sender: No OFD packet to send [06:45:10]OFD Sender: No OFD packet to send [06:45:15]OFD Sender: No OFD packet to send [06:45:20]OFD Sender: No OFD packet to send [06:45:25]OFD Sender: No OFD packet to send [06:45:30]OFD Sender: No OFD packet to send [06:45:35]OFD Sender: No OFD packet to send [06:45:40]OFD Sender: No OFD packet to send [06:45:45]OFD Sender: No OFD packet to send [06:45:50]OFD Sender: No OFD packet to send [06:45:55]OFD Sender: No OFD packet to send [06:46:00]OFD Sender: No OFD packet to send [06:46:05]OFD Sender: No OFD packet to send [06:46:10]OFD Sender: No OFD packet to send [06:46:15]OFD Sender: No OFD packet to send [06:46:20]OFD Sender: No OFD packet to send [06:46:25]OFD Sender: No OFD packet to send [06:46:30]OFD Sender: No OFD packet to send [06:46:35]OFD Sender: No OFD packet to send [06:46:40]OFD Sender: No OFD packet to send [06:46:45]OFD Sender: No OFD packet to send [06:46:50]OFD Sender: No OFD packet to send [06:46:55]OFD Sender: No OFD packet to send [06:47:00]OFD Sender: No OFD packet to send [06:47:05]OFD Sender: No OFD packet to send [06:47:10]OFD Sender: No OFD packet to send [06:47:15]OFD Sender: No OFD packet to send [06:47:20]OFD Sender: No OFD packet to send [06:47:25]OFD Sender: No OFD packet to send [06:47:30]OFD Sender: No OFD packet to send [06:47:35]OFD Sender: No OFD packet to send [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:50]OFD Sender: No OFD packet to send [06:47:55]OFD Sender: No OFD packet to send [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48:20]OFD Sender: No OFD packet to send [06:48:25]OFD Sender: No OFD packet to send [06:48:30]OFD Sender: No OFD packet to send [06:48:35]OFD Sender: No OFD packet to send [06:48:40]OFD Sender: No OFD packet to send [06:48:45]OFD Sender: No OFD packet to send [06:48:50]OFD Sender: No OFD packet to send [06:48:55]OFD Sender: No OFD packet to send [06:49:00]OFD Sender: No OFD packet to send [06:49:05]OFD Sender: No OFD packet to send [06:49:10]OFD Sender: No OFD packet to send [06:49:15]OFD Sender: No OFD packet to send [06:49:20]OFD Sender: No OFD packet to send [06:49:25]OFD Sender: No OFD packet to send [06:49:30]OFD Sender: No OFD packet to send [06:49:35]OFD Sender: No OFD packet to send [06:49:40]OFD Sender: No OFD packet to send [06:49:45]OFD Sender: No OFD packet to send [06:49:50]OFD Sender: No OFD packet to send [06:49:55]OFD Sender: No OFD packet to send [06:50:00]OFD Sender: No OFD packet to send [06:50:05]OFD Sender: No OFD packet to send [06:50:10]OFD Sender: No OFD packet to send [06:50:15]OFD Sender: No OFD packet to send [06:50:20]OFD Sender: No OFD packet to send [06:50:25]OFD Sender: No OFD packet to send [06:50:30]OFD Sender: No OFD packet to send [06:50:35]OFD Sender: No OFD packet to send [06:50:40]OFD Sender: No OFD packet to send [06:50:45]OFD Sender: No OFD packet to send [06:50:50]OFD Sender: No OFD packet to send [06:50:55]OFD Sender: No OFD packet to send [06:51:00]OFD Sender: No OFD packet to send [06:51:05]OFD Sender: No OFD packet to send [06:51:10]OFD Sender: No OFD packet to send [06:51:15]OFD Sender: No OFD packet to send [06:51:20]OFD Sender: No OFD packet to send [06:51:25]OFD Sender: No OFD packet to send [06:51:30]OFD Sender: No OFD packet to send [06:51:35]OFD Sender: No OFD packet to send [06:51:40]OFD Sender: No OFD packet to send [06:51:45]OFD Sender: No OFD packet to send [06:51:50]OFD Sender: No OFD packet to send [06:51:55]OFD Sender: No OFD packet to send [06:52:00]OFD Sender: No OFD packet to send [06:52:05]OFD Sender: No OFD packet to send [06:52:10]OFD Sender: No OFD packet to send [06:52:15]OFD Sender: No OFD packet to send [06:52:20]OFD Sender: No OFD packet to send [06:52:25]OFD Sender: No OFD packet to send [06:52:30]OFD Sender: No OFD packet to send [06:52:35]OFD Sender: No OFD packet to send [06:52:40]OFD Sender: No OFD packet to send [06:52:45]OFD Sender: No OFD packet to send [06:52:50]OFD Sender: No OFD packet to send [06:52:55]OFD Sender: No OFD packet to send [06:53:00]OFD Sender: No OFD packet to send [06:53:05]OFD Sender: No OFD packet to send [06:53:10]OFD Sender: No OFD packet to send [06:53:15]OFD Sender: No OFD packet to send [06:53:20]OFD Sender: No OFD packet to send [06:53:25]OFD Sender: No OFD packet to send [06:53:30]OFD Sender: No OFD packet to send [06:53:35]OFD Sender: No OFD packet to send [06:53:40]OFD Sender: No OFD packet to send [06:53:45]OFD Sender: No OFD packet to send [06:53:50]OFD Sender: No OFD packet to send [06:53:55]OFD Sender: No OFD packet to send [06:54:00]OFD Sender: No OFD packet to send [06:54:05]OFD Sender: No OFD packet to send [06:54:10]OFD Sender: No OFD packet to send [06:54:15]OFD Sender: No OFD packet to send [06:54:20]OFD Sender: No OFD packet to send [06:54:25]OFD Sender: No OFD packet to send [06:54:30]OFD Sender: No OFD packet to send [06:54:35]OFD Sender: No OFD packet to send [06:54:41]OFD Sender: No OFD packet to send [06:54:46]OFD Sender: No OFD packet to send [06:54:51]OFD Sender: No OFD packet to send [06:54:56]OFD Sender: No OFD packet to send [06:55:01]OFD Sender: No OFD packet to send [06:55:06]OFD Sender: No OFD packet to send [06:55:11]OFD Sender: No OFD packet to send [06:55:16]OFD Sender: No OFD packet to send [06:55:21]OFD Sender: No OFD packet to send [06:55:26]OFD Sender: No OFD packet to send [06:55:31]OFD Sender: No OFD packet to send [06:55:36]OFD Sender: No OFD packet to send [06:55:41]OFD Sender: No OFD packet to send [06:55:46]OFD Sender: No OFD packet to send [06:55:51]OFD Sender: No OFD packet to send [06:55:56]OFD Sender: No OFD packet to send [06:56:01]OFD Sender: No OFD packet to send [06:56:06]OFD Sender: No OFD packet to send [06:56:11]OFD Sender: No OFD packet to send [06:56:16]OFD Sender: No OFD packet to send [06:56:21]OFD Sender: No OFD packet to send [06:56:26]OFD Sender: No OFD packet to send [06:56:31]OFD Sender: No OFD packet to send [06:56:36]OFD Sender: No OFD packet to send [06:56:41]OFD Sender: No OFD packet to send [06:56:46]OFD Sender: No OFD packet to send [06:56:51]OFD Sender: No OFD packet to send [06:56:56]OFD Sender: No OFD packet to send [06:57:01]OFD Sender: No OFD packet to send [06:57:06]OFD Sender: No OFD packet to send [06:57:11]OFD Sender: No OFD packet to send [06:57:16]OFD Sender: No OFD packet to send [06:57:21]OFD Sender: No OFD packet to send [06:57:26]OFD Sender: No OFD packet to send [06:57:31]OFD Sender: No OFD packet to send [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:16]OFD Sender: No OFD packet to send [06:59:21]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:31]OFD Sender: No OFD packet to send [06:59:36]OFD Sender: No OFD packet to send [06:59:41]OFD Sender: No OFD packet to send [06:59:46]OFD Sender: No OFD packet to send [06:59:51]OFD Sender: No OFD packet to send [06:59:56]OFD Sender: No OFD packet to send [07:00:01]OFD Sender: No OFD packet to send [07:00:06]OFD Sender: No OFD packet to send [07:00:11]OFD Sender: No OFD packet to send [07:00:16]OFD Sender: No OFD packet to send [07:00:21]OFD Sender: No OFD packet to send [07:00:26]OFD Sender: No OFD packet to send [07:00:31]OFD Sender: No OFD packet to send [07:00:36]OFD Sender: No OFD packet to send [07:00:41]OFD Sender: No OFD packet to send [07:00:46]OFD Sender: No OFD packet to send [07:00:51]OFD Sender: No OFD packet to send [07:00:56]OFD Sender: No OFD packet to send [07:01:01]OFD Sender: No OFD packet to send [07:01:06]OFD Sender: No OFD packet to send [07:01:11]OFD Sender: No OFD packet to send [07:01:16]OFD Sender: No OFD packet to send [07:01:21]OFD Sender: No OFD packet to send [07:01:26]OFD Sender: No OFD packet to send [07:01:31]OFD Sender: No OFD packet to send [07:01:36]OFD Sender: No OFD packet to send [07:01:41]OFD Sender: No OFD packet to send [07:01:46]OFD Sender: No OFD packet to send [07:01:51]OFD Sender: No OFD packet to send [07:01:56]OFD Sender: No OFD packet to send [07:02:01]OFD Sender: No OFD packet to send [07:02:06]OFD Sender: No OFD packet to send [07:02:11]OFD Sender: No OFD packet to send [07:02:16]OFD Sender: No OFD packet to send [07:02:21]OFD Sender: No OFD packet to send [07:02:26]OFD Sender: No OFD packet to send [07:02:31]OFD Sender: No OFD packet to send [07:02:36]OFD Sender: No OFD packet to send [07:02:41]OFD Sender: No OFD packet to send [07:02:46]OFD Sender: No OFD packet to send [07:02:49]accept exits with 8 [07:02:49]New connection [07:02:49]New thread 3066785124 created [07:02:49]Thread 3066928484 joined [07:02:49]Waiting for new connection... [07:02:49] Sock 8.Parse request [07:02:49]Sock 8.Check first char [07:02:49]Sock 8.First char is OK [07:02:49]request: POST /json_proto HTTP/1.0 [07:02:49]Method: POST [07:02:49]URL: /json_proto [07:02:49]Method is POST - this is cgi request [07:02:49]url: /json_proto [07:02:49]query_string will be loaded in cgi processing [07:02:49]execute_cgi json_proto POST (null) [07:02:49]execute_cgi path=json_proto method=POST [07:02:49]POST find Content-Length [07:02:49]Host: 172.17.45.8:8080 [07:02:49]Content-Length: 652 [07:02:49]Content-Type: application/json [07:02:49] [07:02:49]POST finish read [07:02:49]Found Content-Length = 652 [07:02:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150506", "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 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:02:49]execute_script... [07:02: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)150506", "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 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:02:49]POST & json_proto [07:02:49]process_json_proto [07:02:49]json parsed OK: [07:02:49]protocol is kg_v1.0 [07:02:49]action value=close_receipt [07:02:49]process_action close_receipt [07:02:49]cmd_close_receipt [07:02:49]MH_GetDate [07:02:49]Write to MH i2c: F0 00 00 3B 0F 39 [07:02:49]Write i2c OK [07:02:49]MH_I2C_Read... [07:02:49]Read from MH i2c: F0 [07:02:49]MH_I2C_Read... [07:02:49]Read from MH i2c: F0 09 00 [07:02:49]MH_I2C_Read... [07:02:49]Read from MH i2c: F0 09 00 3B 0F 00 9D 3E A7 66 A6 1F 7F 64 D2 [07:02:49]GetLastDocTimeStamp 1722229446 [07:02:49]current date 1722236573 [07:02:49]FM_GetShiftState [07:02:49]SAM_PROTO_GetShiftState [07:02:49]wFMCommunicate request_size=4 [07:02:49]MH_SAM_APDU [07:02:49]CAPDU: 80 13 01 00 [07:02:49]Write to MH i2c: E2 08 00 3C 0F 80 13 01 00 00 00 00 00 C8 [07:02:49]Write i2c OK [07:02:49]MH_I2C_Read... [07:02:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:02:49]Read from MH i2c: E2 [07:02:49]MH_I2C_Read... [07:02:49]Read from MH i2c: E2 0E 00 [07:02:49]MH_I2C_Read... [07:02:49]Read from MH i2c: E2 0E 00 3C 0F 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 49 [07:02:49]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [07:02:49]wFMCommunicate OK [07:02:49]SAM_PROTO_GetShiftState done [07:02:49]FM_GetShiftState done [07:02:49]opened in 1722213509 [07:02:49]opened+sec_in_day 1722299909 [07:02:49]quantity*price = 12500 [07:02:49]sum+1 = 12501 [07:02:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 12 29.07.2024 07:02 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27109 ФПД: 177044422395142 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T070253&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27109&fm=177044422395142&tin=02508201610067®Number=0000000000092663&sum=12500 0 [07:02:50]StoreToDocumentArchive [07:02:50]shift 434 fd 27109 [07:02:50]save to /storage/0434/doc_00027109 [07:02:50]save last doc name /storage/0434/doc_00027109 to /storage/kkm_last_doc_name [07:02:50]save OK [07:02:50]Clear old archive folders... [07:02:50]ProcessDocumentItem done err = 0, tmpTLVsize=284 [07:02:50]tlvbuf is 001CB930 [07:02:50]SAM_PROTO_ClearQueue [07:02:50]wFMCommunicate request_size=4 [07:02:50]MH_SAM_APDU [07:02:50]CAPDU: 80 09 00 00 [07:02:50]Write to MH i2c: E2 08 00 49 0F 80 09 00 00 00 00 00 00 CA [07:02:50]Write i2c OK [07:02:50]MH_I2C_Read... [07:02:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:02:50]Read from MH i2c: E2 [07:02:50]MH_I2C_Read... [07:02:50]Read from MH i2c: E2 03 00 [07:02:50]MH_I2C_Read... [07:02:50]Read from MH i2c: E2 03 00 49 0F 00 90 00 CC [07:02:50]RAPDU: 90 00 [07:02:50]wFMCommunicate OK [07:02:50]SAM_PROTO_ClearQueue done [07:02:50]KKMCreateOFDPacket [07:02:50]OFDProtocolAddRootSTLVToBuf [07:02:50]FM_MakeSignedData [07:02:50]FM_MakeSignedData [07:02:50]SAM_PROTO_SignData [07:02:50]wFMCommunicate request_size=4 [07:02:50]MH_SAM_APDU [07:02:50]CAPDU: 80 0D 01 02 [07:02:50]Write to MH i2c: E2 08 00 4A 0F 80 0D 01 02 00 00 00 00 D2 [07:02:50]Write i2c OK [07:02:50]MH_I2C_Read... [07:02:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:02:50]Read from MH i2c: E2 [07:02:50]MH_I2C_Read... [07:02:50]Read from MH i2c: E2 03 00 [07:02:50]MH_I2C_Read... [07:02:50]Read from MH i2c: E2 03 00 4A 0F 00 90 00 CD [07:02:50]RAPDU: 90 00 [07:02:50]wFMCommunicate OK [07:02:50]wFMCommunicate request_size=255 [07:02:50]MH_SAM_APDU [07:02:50]CAPDU: 80 0D 02 02 FA 03 00 1C 01 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 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 0C 00 00 00 F4 03 04 00 9D 3E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 [07:02:50]Write to MH i2c: E2 02 01 4B 0F 80 0D 02 02 FA 00 03 00 1C 01 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 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 0C 00 00 00 F4 03 04 00 9D 3E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 00 00 1C [07:02:50]Write i2c OK [07:02:50]MH_I2C_Read... [07:02:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:02:50]Read from MH i2c: E2 [07:02:50]MH_I2C_Read... [07:02:50]Read from MH i2c: E2 03 00 [07:02:50]MH_I2C_Read... [07:02:50]Read from MH i2c: E2 03 00 4B 0F 00 90 00 CE [07:02:50]RAPDU: 90 00 [07:02:50]wFMCommunicate OK [07:02:50]wFMCommunicate request_size=43 [07:02:50]MH_SAM_APDU [07:02:50]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E5 69 00 00 35 04 06 00 A1 05 5D E8 05 06 [07:02:50]Write to MH i2c: E2 2E 00 4C 0F 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E5 69 00 00 35 04 06 00 A1 05 5D E8 05 06 00 00 07 [07:02:50]Write i2c OK [07:02:50]MH_I2C_Read... [07:02:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:02:50]Read from MH i2c: E2 [07:02:50]MH_I2C_Read... [07:02:50]Read from MH i2c: E2 03 00 [07:02:50]MH_I2C_Read... [07:02:50]Read from MH i2c: E2 03 00 4C 0F 00 90 00 CF [07:02:50]RAPDU: 90 00 [07:02:50]wFMCommunicate OK [07:02:50]wFMCommunicate request_size=4 [07:02:50]MH_SAM_APDU [07:02:50]CAPDU: 80 0D 03 02 [07:02:50]Write to MH i2c: E2 08 00 4D 0F 80 0D 03 02 00 00 00 00 D7 [07:02:50]Write i2c OK [07:02:50]MH_I2C_Read... [07:02:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:02:51]Read from MH i2c: E2 [07:02:51]MH_I2C_Read... [07:02:51]Read from MH i2c: E2 0B 00 [07:02:51]MH_I2C_Read... [07:02:51]Read from MH i2c: E2 0B 00 4D 0F 00 A8 47 9C FE 94 1A F1 60 90 00 60 [07:02:51]RAPDU: A8 47 9C FE 94 1A F1 60 90 00 [07:02:51]wFMCommunicate OK [07:02:51]SAM_PROTO_SignData done [07:02:51]FM_MakeSignedData done [07:02:51]CreateOFDProtocolMessage [07:02:51]wFMCommunicate request_size=4 [07:02:51]MH_SAM_APDU [07:02:51]CAPDU: 80 11 00 00 [07:02:51]Write to MH i2c: E2 08 00 4E 0F 80 11 00 00 00 00 00 00 D7 [07:02:51]Write i2c OK [07:02:51]MH_I2C_Read... [07:02:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:02:51]Read from MH i2c: E2 [07:02:51]MH_I2C_Read... [07:02:51]Read from MH i2c: E2 17 00 [07:02:51]MH_I2C_Read... [07:02:51]Read from MH i2c: E2 17 00 4E 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 30 [07:02:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [07:02:51]wFMCommunicate OK [07:02:51]CreateOFDProtocolMessage done [07:02:51]OFDSenderStorePacket 27109 [07:02:51]StoreOFDPacket docnum=27109 [07:02:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 30 01 00 00 EC 5E 28 01 11 30 5A 03 01 00 03 00 1C 01 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 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 0C 00 00 00 F4 03 04 00 9D 3E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E5 69 00 00 35 04 06 00 A1 05 5D E8 05 06 A8 47 9C FE 94 1A F1 60 [07:02:51]CheckFolder [07:02:51]dirname=/storage/ofd_packets [07:02:51]CheckFolder done [07:02:51]ProducePacketName [07:02:51]name=ofd_packets/00027109 [07:02:51]NVStorageSaveData ofd_packets/00027109 [07:02:51]File name is /storage/ofd_packets/00027109 [07:02:51]Write 334 bytes [07:02:51]NVStorageSaveData done [07:02:51]OFDSenderStorePacket done [07:02:51]KKMCreateOFDPacket done [07:02:51]NVStorageSaveData kkm_last_timestamp [07:02:51]File name is /storage/kkm_last_timestamp [07:02:51]Write 4 bytes [07:02:51]NVStorageSaveData done [07:02:51]ExternCall_PrintAddStr [07:02:51]wPrintStart [07:02:51]Write to MH i2c: 01 00 00 4F 0F 5E [07:02:51]Write i2c OK [07:02:51]MH_I2C_Read... [07:02:51]Read from MH i2c: 01 [07:02:51]MH_I2C_Read... [07:02:51]Read from MH i2c: 01 07 00 [07:02:51]MH_I2C_Read... [07:02:51]Read from MH i2c: 01 07 00 4F 0F 00 00 00 00 00 FF 0F 73 [07:02:51]RasterBufferAndPrint [07:02:51]line Счет N : (3)150506 [07:02:51]line ИНН: 02508201610067 [07:02:51]line Контрольно-Кассовый Чек [07:02:51]line ПРОДАЖА [07:02:51]line Товар: 2000036190018 [07:02:51]line Кофе Американо XL(GABB TRADE) [07:02:51]line 1.000 * 125.00 [07:02:51]line = 125.00 [07:02:51]line НДС 12% НСП 1% [07:02:51]line > о реализуемом товаре [07:02:51]line ИТОГО: 125.00 [07:02:51]line НСП 1% : 1.11 [07:02:51]line НДС 12% : 13.27 [07:02:51]line Наличными: 125.00 [07:02:51]line Безнал.: 0.00 [07:02:51]line Место: АЗС № 134 "Партнер Нефть" [07:02:51]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:02:51]line СНО: Общий режим [07:02:51]line Чек 12 29.07.2024 07:02 [07:02:51]line Смена: 434 ФФД: 1.0 [07:02:51]line ЗНМ: 0300000043 [07:02:51]line РНМ: 0000000000092663 [07:02:51]line Версия ККМ: 001 [07:02:51]line ФМ: 0000000000874937 [07:02:51]line ФД: 27109 [07:02:51]line ФПД: 177044422395142 [07:02:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T070253&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27109&fm=177044422395142&tin=02508201610067®Number=0000000000092663&sum=12500 [07:02:51]OFD Sender: Processing packet 27109 [packets to send 9, broken 8] [07:02:51]ProducePacketName [07:02:51]name=ofd_packets/00027109 [07:02:51]OFD Sender: To server: pG, [07:02:51]CommunicateWithHost lk.salyk.kg:30040 [07:02:51]ConnectInit lk.salyk.kg [07:02:51]line 0 [07:02:51]written 0, free lines is 4095 [07:02:51]Connected sock=10 [07:02:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 30 01 00 00 EC 5E 28 01 11 30 5A 03 01 00 03 00 1C 01 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 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 0C 00 00 00 F4 03 04 00 9D 3E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E5 69 00 00 35 04 06 00 A1 05 5D E8 05 06 A8 47 9C FE 94 1A F1 60 [07:02:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 2E 36 47 00 31 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E5 69 00 00 F4 03 04 00 EF E4 A6 66 B6 04 01 00 00 01 DA 14 83 60 C4 F4 95 [07:02:51]CommunicateWithHost err = 0 [07:02:51]CheckOFDResponse [07:02:51]1017 (14) - 77093643461234 [07:02:51]1041 (16) - 0000000000874937 [07:02:51]1040 (4) - 27109 [07:02:51]1012 (4) - 29.07.2024 00:40 [07:02:51]1206 (1) - 0 [07:02:51]OFD Sender: Remove packet 27109 [07:02:51]ProducePacketName [07:02:51]name=ofd_packets/00027109 [07:02:51]NVStorageDeleteData [07:02:51]Write to MH i2c: 01 00 00 77 0F 86 [07:02:51]Write i2c OK [07:02:51]MH_I2C_Read... [07:02:51]Read from MH i2c: 01 [07:02:51]MH_I2C_Read... [07:02:51]Read from MH i2c: 01 07 00 [07:02:51]MH_I2C_Read... [07:02:51]Read from MH i2c: 01 07 00 77 0F 00 00 00 00 00 D8 0C 71 [07:02:51]RasterBufferAndPrint [07:02:51]line [07:02:51]line [07:02:51]line [07:02:51]line [07:02:51]line [07:02:51]written 0, free lines is 3292 [07:02:51]MH_Cut [07:02:51]Write to MH i2c: D1 01 00 7E 0F 01 5F [07:02:51]Write i2c OK [07:02:51]MH_I2C_Read... [07:02:51]Read from MH i2c: D1 [07:02:51]MH_I2C_Read... [07:02:51]Read from MH i2c: D1 01 00 [07:02:51]MH_I2C_Read... [07:02:51]Read from MH i2c: D1 01 00 7E 0F 00 5E [07:02:51]Write to MH i2c: 01 00 00 7F 0F 8E [07:02:51]Write i2c OK [07:02:51]MH_I2C_Read... [07:02:52]OFD Sender: No OFD packet to send [07:02:52]*** Cut start [07:02:52]*** Partial cut [07:02:52]*** CUTSNS_PIN = 1 [07:02:52]*** CUTSNS_PIN = 0 [07:02:52]*** Brake cut motor [07:02:53]Read from MH i2c: 01 [07:02:53]MH_I2C_Read... [07:02:53]*** Stop cut motor [07:02:53]*** Cut end [07:02:53]Read from MH i2c: 01 07 00 [07:02:53]MH_I2C_Read... [07:02:53]Read from MH i2c: 01 07 00 7F 0F 00 00 00 00 00 FF 0F A3 [07:02:53]process_action close_receipt done [07:02:53]requested_data is exist [07:02:53]produce_requested_data [07:02:53]requested_item fm.sn is exist - process it [07:02:53]wFMCommunicate request_size=4 [07:02:53]MH_SAM_APDU [07:02:53]CAPDU: 80 11 00 00 [07:02:53]Write to MH i2c: E2 08 00 80 0F 80 11 00 00 00 00 00 00 09 [07:02:53]Write i2c OK [07:02:53]MH_I2C_Read... [07:02:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:02:53]Read from MH i2c: E2 [07:02:53]MH_I2C_Read... [07:02:53]Read from MH i2c: E2 17 00 [07:02:53]MH_I2C_Read... [07:02:53]Read from MH i2c: E2 17 00 80 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 62 [07:02:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [07:02:53]wFMCommunicate OK [07:02:53]requested_item fd.num is exist - process it [07:02:53]SAM_PROTO_GetFieldsCounters [07:02:53]wFMCommunicate request_size=4 [07:02:53]MH_SAM_APDU [07:02:53]CAPDU: 80 13 00 00 [07:02:53]Write to MH i2c: E2 08 00 81 0F 80 13 00 00 00 00 00 00 0C [07:02:53]Write i2c OK [07:02:53]MH_I2C_Read... [07:02:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:02:53]Read from MH i2c: E2 [07:02:53]MH_I2C_Read... [07:02:53]Read from MH i2c: E2 62 00 [07:02:53]MH_I2C_Read... [07:02:53]Read from MH i2c: E2 62 00 81 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 E5 69 00 00 0E 04 04 00 B2 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 59 [07:02:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 E5 69 00 00 0E 04 04 00 B2 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:02:53]wFMCommunicate OK [07:02:53]SAM_PROTO_GetFieldsCounters done [07:02:53]requested_item shift.num is exist - process it [07:02:53]requested_item shift.opened is exist - process it [07:02:53]req_shift_opened [07:02:53]FM_GetShiftState [07:02:53]SAM_PROTO_GetShiftState [07:02:53]wFMCommunicate request_size=4 [07:02:53]MH_SAM_APDU [07:02:53]CAPDU: 80 13 01 00 [07:02:53]Write to MH i2c: E2 08 00 82 0F 80 13 01 00 00 00 00 00 0E [07:02:53]Write i2c OK [07:02:53]MH_I2C_Read... [07:02:53]Read from MH i2c: E2 [07:02:53]MH_I2C_Read... [07:02:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:02:53]Read from MH i2c: E2 0E 00 [07:02:53]MH_I2C_Read... [07:02:53]Read from MH i2c: E2 0E 00 82 0F 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 8F [07:02:53]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [07:02:53]wFMCommunicate OK [07:02:53]SAM_PROTO_GetShiftState done [07:02:53]FM_GetShiftState done [07:02:53]req_shift_opened done [07:02:53]requested_item shift.open_date is exist - process it [07:02:53]req_shift_open_date [07:02:53]req_shift_open_date done [07:02:53]produce_requested_data done [07:02:53]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27109,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [07:02:53]process_action_free close_receipt [07:02:53]json_value_free [07:02:53]json_value_free done [07:02:53]process_json_proto returns [07:02:53]Send response to host [07:02:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27109,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [07:02:53]free response buf [07:02:53]execute_script done [07:02:53]execute_script returns [07:02:53]free content buf [07:02:53]Sock 8.Close socket [07:02:53]Sock 8.Thread stoped [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:58]OFD Sender: No OFD packet to send [07:19:03]OFD Sender: No OFD packet to send [07:19:08]OFD Sender: No OFD packet to send [07:19:13]OFD Sender: No OFD packet to send [07:19:18]OFD Sender: No OFD packet to send [07:19:23]OFD Sender: No OFD packet to send [07:19:28]OFD Sender: No OFD packet to send [07:19:33]OFD Sender: No OFD packet to send [07:19:38]OFD Sender: No OFD packet to send [07:19:43]OFD Sender: No OFD packet to send [07:19:48]OFD Sender: No OFD packet to send [07:19:53]OFD Sender: No OFD packet to send [07:19:58]OFD Sender: No OFD packet to send [07:20:03]OFD Sender: No OFD packet to send [07:20:08]OFD Sender: No OFD packet to send [07:20:13]OFD Sender: No OFD packet to send [07:20:18]OFD Sender: No OFD packet to send [07:20:23]OFD Sender: No OFD packet to send [07:20:28]OFD Sender: No OFD packet to send [07:20:33]OFD Sender: No OFD packet to send [07:20:38]OFD Sender: No OFD packet to send [07:20:43]OFD Sender: No OFD packet to send [07:20:48]OFD Sender: No OFD packet to send [07:20:53]OFD Sender: No OFD packet to send [07:20:58]OFD Sender: No OFD packet to send [07:21:03]OFD Sender: No OFD packet to send [07:21:08]OFD Sender: No OFD packet to send [07:21:13]OFD Sender: No OFD packet to send [07:21:18]OFD Sender: No OFD packet to send [07:21:23]OFD Sender: No OFD packet to send [07:21:28]OFD Sender: No OFD packet to send [07:21:33]OFD Sender: No OFD packet to send [07:21:38]OFD Sender: No OFD packet to send [07:21:43]OFD Sender: No OFD packet to send [07:21:48]OFD Sender: No OFD packet to send [07:21:53]OFD Sender: No OFD packet to send [07:21:58]OFD Sender: No OFD packet to send [07:22:03]OFD Sender: No OFD packet to send [07:22:08]OFD Sender: No OFD packet to send [07:22:13]OFD Sender: No OFD packet to send [07:22:18]OFD Sender: No OFD packet to send [07:22:23]OFD Sender: No OFD packet to send [07:22:28]OFD Sender: No OFD packet to send [07:22:33]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]accept exits with 9 [07:23:23]New connection [07:23:23]New thread 3066928484 created [07:23:23]Thread 3066785124 joined [07:23:23]Waiting for new connection... [07:23:23] Sock 9.Parse request [07:23:23]Sock 9.Check first char [07:23:23]Sock 9.First char is OK [07:23:23]request: POST /json_proto HTTP/1.0 [07:23:23]Method: POST [07:23:23]URL: /json_proto [07:23:23]Method is POST - this is cgi request [07:23:23]url: /json_proto [07:23:23]query_string will be loaded in cgi processing [07:23:23]execute_cgi json_proto POST (null) [07:23:23]execute_cgi path=json_proto method=POST [07:23:23]POST find Content-Length [07:23:23]Host: 172.17.45.8:8080 [07:23:23]Content-Length: 644 [07:23:23]Content-Type: application/json [07:23:23] [07:23:23]POST finish read [07:23:23]Found Content-Length = 644 [07:23:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150507", "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" : 3.000, "sum" : 345.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" ] } } [07:23:23]execute_script... [07:23:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150507", "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" : 3.000, "sum" : 345.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" ] } } [07:23:23]POST & json_proto [07:23:23]process_json_proto [07:23:23]json parsed OK: [07:23:23]protocol is kg_v1.0 [07:23:23]action value=close_receipt [07:23:23]process_action close_receipt [07:23:23]cmd_close_receipt [07:23:23]MH_GetDate [07:23:23]Write to MH i2c: F0 00 00 83 0F 81 [07:23:23]Write i2c OK [07:23:23]MH_I2C_Read... [07:23:23]Read from MH i2c: F0 [07:23:23]MH_I2C_Read... [07:23:23]Read from MH i2c: F0 09 00 [07:23:23]MH_I2C_Read... [07:23:23]Read from MH i2c: F0 09 00 83 0F 00 6F 43 A7 66 A6 1F 7F 64 F1 [07:23:23]GetLastDocTimeStamp 1722236573 [07:23:23]current date 1722237807 [07:23:23]FM_GetShiftState [07:23:23]SAM_PROTO_GetShiftState [07:23:23]wFMCommunicate request_size=4 [07:23:23]MH_SAM_APDU [07:23:23]CAPDU: 80 13 01 00 [07:23:23]Write to MH i2c: E2 08 00 84 0F 80 13 01 00 00 00 00 00 10 [07:23:23]Write i2c OK [07:23:23]MH_I2C_Read... [07:23:23]OFD Sender: No OFD packet to send [07:23:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:23:23]Read from MH i2c: E2 [07:23:23]MH_I2C_Read... [07:23:23]Read from MH i2c: E2 0E 00 [07:23:23]MH_I2C_Read... [07:23:23]Read from MH i2c: E2 0E 00 84 0F 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 91 [07:23:23]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [07:23:23]wFMCommunicate OK [07:23:23]SAM_PROTO_GetShiftState done [07:23:23]FM_GetShiftState done [07:23:23]opened in 1722213509 [07:23:23]opened+sec_in_day 1722299909 [07:23:23]quantity*price = 34500 [07:23:23]sum+1 = 34501 [07:23:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 345.00 НСП 1% : 3.05 НДС 12% : 36.64 Наличными: 345.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 13 29.07.2024 07:23 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27110 ФПД: 47850534814957 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T072327&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27110&fm=47850534814957&tin=02508201610067®Number=0000000000092663&sum=34500 0 [07:23:24]StoreToDocumentArchive [07:23:24]shift 434 fd 27110 [07:23:24]save to /storage/0434/doc_00027110 [07:23:24]save last doc name /storage/0434/doc_00027110 to /storage/kkm_last_doc_name [07:23:24]save OK [07:23:24]Clear old archive folders... [07:23:24]ProcessDocumentItem done err = 0, tmpTLVsize=280 [07:23:24]tlvbuf is 001CB550 [07:23:24]SAM_PROTO_ClearQueue [07:23:24]wFMCommunicate request_size=4 [07:23:24]MH_SAM_APDU [07:23:24]CAPDU: 80 09 00 00 [07:23:24]Write to MH i2c: E2 08 00 91 0F 80 09 00 00 00 00 00 00 12 [07:23:24]Write i2c OK [07:23:24]MH_I2C_Read... [07:23:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:23:24]Read from MH i2c: E2 [07:23:24]MH_I2C_Read... [07:23:24]Read from MH i2c: E2 03 00 [07:23:24]MH_I2C_Read... [07:23:24]Read from MH i2c: E2 03 00 91 0F 00 90 00 14 [07:23:24]RAPDU: 90 00 [07:23:24]wFMCommunicate OK [07:23:24]SAM_PROTO_ClearQueue done [07:23:24]KKMCreateOFDPacket [07:23:24]OFDProtocolAddRootSTLVToBuf [07:23:24]FM_MakeSignedData [07:23:24]FM_MakeSignedData [07:23:24]SAM_PROTO_SignData [07:23:24]wFMCommunicate request_size=4 [07:23:24]MH_SAM_APDU [07:23:24]CAPDU: 80 0D 01 02 [07:23:24]Write to MH i2c: E2 08 00 92 0F 80 0D 01 02 00 00 00 00 1A [07:23:24]Write i2c OK [07:23:24]MH_I2C_Read... [07:23:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:23:24]Read from MH i2c: E2 [07:23:24]MH_I2C_Read... [07:23:24]Read from MH i2c: E2 03 00 [07:23:24]MH_I2C_Read... [07:23:24]Read from MH i2c: E2 03 00 92 0F 00 90 00 15 [07:23:24]RAPDU: 90 00 [07:23:24]wFMCommunicate OK [07:23:24]wFMCommunicate request_size=255 [07:23:24]MH_SAM_APDU [07:23:24]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 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 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 0D 00 00 00 F4 03 04 00 6F 43 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 [07:23:24]Write to MH i2c: E2 02 01 93 0F 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 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 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 0D 00 00 00 F4 03 04 00 6F 43 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 00 00 A9 [07:23:24]Write i2c OK [07:23:24]MH_I2C_Read... [07:23:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:23:24]Read from MH i2c: E2 [07:23:24]MH_I2C_Read... [07:23:24]Read from MH i2c: E2 03 00 [07:23:24]MH_I2C_Read... [07:23:24]Read from MH i2c: E2 03 00 93 0F 00 90 00 16 [07:23:24]RAPDU: 90 00 [07:23:24]wFMCommunicate OK [07:23:24]wFMCommunicate request_size=39 [07:23:24]MH_SAM_APDU [07:23:24]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E6 69 00 00 35 04 06 00 2B 85 12 21 44 ED [07:23:24]Write to MH i2c: E2 2A 00 94 0F 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E6 69 00 00 35 04 06 00 2B 85 12 21 44 ED 00 00 41 [07:23:24]Write i2c OK [07:23:24]MH_I2C_Read... [07:23:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:23:24]Read from MH i2c: E2 [07:23:24]MH_I2C_Read... [07:23:24]Read from MH i2c: E2 03 00 [07:23:24]MH_I2C_Read... [07:23:24]Read from MH i2c: E2 03 00 94 0F 00 90 00 17 [07:23:24]RAPDU: 90 00 [07:23:24]wFMCommunicate OK [07:23:24]wFMCommunicate request_size=4 [07:23:24]MH_SAM_APDU [07:23:24]CAPDU: 80 0D 03 02 [07:23:24]Write to MH i2c: E2 08 00 95 0F 80 0D 03 02 00 00 00 00 1F [07:23:24]Write i2c OK [07:23:24]MH_I2C_Read... [07:23:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:23:24]Read from MH i2c: E2 [07:23:24]MH_I2C_Read... [07:23:24]Read from MH i2c: E2 0B 00 [07:23:24]MH_I2C_Read... [07:23:24]Read from MH i2c: E2 0B 00 95 0F 00 A4 ED C9 8D F1 6C 7C F0 90 00 D0 [07:23:24]RAPDU: A4 ED C9 8D F1 6C 7C F0 90 00 [07:23:24]wFMCommunicate OK [07:23:24]SAM_PROTO_SignData done [07:23:24]FM_MakeSignedData done [07:23:24]CreateOFDProtocolMessage [07:23:24]wFMCommunicate request_size=4 [07:23:24]MH_SAM_APDU [07:23:24]CAPDU: 80 11 00 00 [07:23:24]Write to MH i2c: E2 08 00 96 0F 80 11 00 00 00 00 00 00 1F [07:23:24]Write i2c OK [07:23:24]MH_I2C_Read... [07:23:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:23:24]Read from MH i2c: E2 [07:23:24]MH_I2C_Read... [07:23:24]Read from MH i2c: E2 17 00 [07:23:24]MH_I2C_Read... [07:23:24]Read from MH i2c: E2 17 00 96 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 78 [07:23:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [07:23:24]wFMCommunicate OK [07:23:24]CreateOFDProtocolMessage done [07:23:24]OFDSenderStorePacket 27110 [07:23:24]StoreOFDPacket docnum=27110 [07:23:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 2C 01 00 00 5F C7 24 01 57 A1 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 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 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 0D 00 00 00 F4 03 04 00 6F 43 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E6 69 00 00 35 04 06 00 2B 85 12 21 44 ED A4 ED C9 8D F1 6C 7C F0 [07:23:24]CheckFolder [07:23:24]dirname=/storage/ofd_packets [07:23:24]CheckFolder done [07:23:24]ProducePacketName [07:23:24]name=ofd_packets/00027110 [07:23:24]NVStorageSaveData ofd_packets/00027110 [07:23:24]File name is /storage/ofd_packets/00027110 [07:23:24]Write 330 bytes [07:23:24]NVStorageSaveData done [07:23:24]OFDSenderStorePacket done [07:23:24]KKMCreateOFDPacket done [07:23:24]NVStorageSaveData kkm_last_timestamp [07:23:24]File name is /storage/kkm_last_timestamp [07:23:24]Write 4 bytes [07:23:24]NVStorageSaveData done [07:23:24]ExternCall_PrintAddStr [07:23:24]wPrintStart [07:23:24]Write to MH i2c: 01 00 00 97 0F A6 [07:23:24]Write i2c OK [07:23:24]MH_I2C_Read... [07:23:24]Read from MH i2c: 01 [07:23:24]MH_I2C_Read... [07:23:24]Read from MH i2c: 01 07 00 [07:23:24]MH_I2C_Read... [07:23:24]Read from MH i2c: 01 07 00 97 0F 00 00 00 00 00 FF 0F BB [07:23:24]RasterBufferAndPrint [07:23:24]line Счет N : (3)150507 [07:23:24]line ИНН: 02508201610067 [07:23:24]line Контрольно-Кассовый Чек [07:23:24]line ПРОДАЖА [07:23:24]line Товар: 2000036210013 [07:23:24]line Кофе Капучино (GABB TRADE) [07:23:24]line 3.000 * 115.00 [07:23:24]line = 345.00 [07:23:24]line НДС 12% НСП 1% [07:23:24]line > о реализуемом товаре [07:23:24]line ИТОГО: 345.00 [07:23:24]line НСП 1% : 3.05 [07:23:24]line НДС 12% : 36.64 [07:23:24]line Наличными: 345.00 [07:23:24]line Безнал.: 0.00 [07:23:24]line Место: АЗС № 134 "Партнер Нефть" [07:23:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:23:24]line СНО: Общий режим [07:23:24]line Чек 13 29.07.2024 07:23 [07:23:24]line Смена: 434 ФФД: 1.0 [07:23:24]line ЗНМ: 0300000043 [07:23:24]line РНМ: 0000000000092663 [07:23:24]line Версия ККМ: 001 [07:23:24]line ФМ: 0000000000874937 [07:23:24]line ФД: 27110 [07:23:24]line ФПД: 47850534814957 [07:23:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T072327&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27110&fm=47850534814957&tin=02508201610067®Number=0000000000092663&sum=34500 [07:23:25]line 0 [07:23:25]OFD Sender: Processing packet 27110 [packets to send 9, broken 8] [07:23:25]ProducePacketName [07:23:25]name=ofd_packets/00027110 [07:23:25]OFD Sender: To server: pG, [07:23:25]CommunicateWithHost lk.salyk.kg:30040 [07:23:25]ConnectInit lk.salyk.kg [07:23:25]written 0, free lines is 4095 [07:23:25]Connected sock=10 [07:23:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 2C 01 00 00 5F C7 24 01 57 A1 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 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 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 0D 00 00 00 F4 03 04 00 6F 43 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E6 69 00 00 35 04 06 00 2B 85 12 21 44 ED A4 ED C9 8D F1 6C 7C F0 [07:23:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 1C 51 47 00 CB 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 34 39 33 37 10 04 04 00 E6 69 00 00 F4 03 04 00 C0 E9 A6 66 B6 04 01 00 00 40 EA 0B 08 39 BA 0E 1D [07:23:25]CommunicateWithHost err = 0 [07:23:25]CheckOFDResponse [07:23:25]1017 (14) - 77093643461234 [07:23:25]1041 (16) - 0000000000874937 [07:23:25]1040 (4) - 27110 [07:23:25]1012 (4) - 29.07.2024 01:00 [07:23:25]1206 (1) - 0 [07:23:25]OFD Sender: Remove packet 27110 [07:23:25]ProducePacketName [07:23:25]name=ofd_packets/00027110 [07:23:25]NVStorageDeleteData [07:23:25]Write to MH i2c: 01 00 00 BE 0F CD [07:23:25]Write i2c OK [07:23:25]MH_I2C_Read... [07:23:25]Read from MH i2c: 01 [07:23:25]MH_I2C_Read... [07:23:25]Read from MH i2c: 01 07 00 [07:23:25]MH_I2C_Read... [07:23:25]Read from MH i2c: 01 07 00 BE 0F 00 00 00 00 00 E6 0C C6 [07:23:25]RasterBufferAndPrint [07:23:25]line [07:23:25]line [07:23:25]line [07:23:25]line [07:23:25]line [07:23:25]written 0, free lines is 3307 [07:23:25]MH_Cut [07:23:25]Write to MH i2c: D1 01 00 C5 0F 01 A6 [07:23:25]Write i2c OK [07:23:25]MH_I2C_Read... [07:23:25]Read from MH i2c: D1 [07:23:25]MH_I2C_Read... [07:23:25]Read from MH i2c: D1 01 00 [07:23:25]MH_I2C_Read... [07:23:25]Read from MH i2c: D1 01 00 C5 0F 00 A5 [07:23:25]Write to MH i2c: 01 00 00 C6 0F D5 [07:23:25]Write i2c OK [07:23:25]MH_I2C_Read... [07:23:26]OFD Sender: No OFD packet to send [07:23:26]*** Cut start [07:23:26]*** Partial cut [07:23:26]*** CUTSNS_PIN = 1 [07:23:26]*** CUTSNS_PIN = 0 [07:23:26]*** Brake cut motor [07:23:27]Read from MH i2c: 01 [07:23:27]MH_I2C_Read... [07:23:27]*** Stop cut motor [07:23:27]*** Cut end [07:23:27]Read from MH i2c: 01 07 00 [07:23:27]MH_I2C_Read... [07:23:27]Read from MH i2c: 01 07 00 C6 0F 00 00 00 00 00 FF 0F EA [07:23:27]process_action close_receipt done [07:23:27]requested_data is exist [07:23:27]produce_requested_data [07:23:27]requested_item fm.sn is exist - process it [07:23:27]wFMCommunicate request_size=4 [07:23:27]MH_SAM_APDU [07:23:27]CAPDU: 80 11 00 00 [07:23:27]Write to MH i2c: E2 08 00 C7 0F 80 11 00 00 00 00 00 00 50 [07:23:27]Write i2c OK [07:23:27]MH_I2C_Read... [07:23:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:23:27]Read from MH i2c: E2 [07:23:27]MH_I2C_Read... [07:23:27]Read from MH i2c: E2 17 00 [07:23:27]MH_I2C_Read... [07:23:27]Read from MH i2c: E2 17 00 C7 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 A9 [07:23:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [07:23:27]wFMCommunicate OK [07:23:27]requested_item fd.num is exist - process it [07:23:27]SAM_PROTO_GetFieldsCounters [07:23:27]wFMCommunicate request_size=4 [07:23:27]MH_SAM_APDU [07:23:27]CAPDU: 80 13 00 00 [07:23:27]Write to MH i2c: E2 08 00 C8 0F 80 13 00 00 00 00 00 00 53 [07:23:27]Write i2c OK [07:23:27]MH_I2C_Read... [07:23:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:23:27]Read from MH i2c: E2 [07:23:27]MH_I2C_Read... [07:23:27]Read from MH i2c: E2 62 00 [07:23:27]MH_I2C_Read... [07:23:27]Read from MH i2c: E2 62 00 C8 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 E6 69 00 00 0E 04 04 00 B2 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 A4 [07:23:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 E6 69 00 00 0E 04 04 00 B2 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:23:27]wFMCommunicate OK [07:23:27]SAM_PROTO_GetFieldsCounters done [07:23:27]requested_item shift.num is exist - process it [07:23:27]requested_item shift.opened is exist - process it [07:23:27]req_shift_opened [07:23:27]FM_GetShiftState [07:23:27]SAM_PROTO_GetShiftState [07:23:27]wFMCommunicate request_size=4 [07:23:27]MH_SAM_APDU [07:23:27]CAPDU: 80 13 01 00 [07:23:27]Write to MH i2c: E2 08 00 C9 0F 80 13 01 00 00 00 00 00 55 [07:23:27]Write i2c OK [07:23:27]MH_I2C_Read... [07:23:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:23:27]Read from MH i2c: E2 [07:23:27]MH_I2C_Read... [07:23:27]Read from MH i2c: E2 0E 00 [07:23:27]MH_I2C_Read... [07:23:27]Read from MH i2c: E2 0E 00 C9 0F 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 D6 [07:23:27]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [07:23:27]wFMCommunicate OK [07:23:27]SAM_PROTO_GetShiftState done [07:23:27]FM_GetShiftState done [07:23:27]req_shift_opened done [07:23:27]requested_item shift.open_date is exist - process it [07:23:27]req_shift_open_date [07:23:27]req_shift_open_date done [07:23:27]produce_requested_data done [07:23:27]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27110,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [07:23:27]process_action_free close_receipt [07:23:27]json_value_free [07:23:27]json_value_free done [07:23:27]process_json_proto returns [07:23:27]Send response to host [07:23:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27110,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [07:23:27]free response buf [07:23:27]execute_script done [07:23:27]execute_script returns [07:23:27]free content buf [07:23:27]Sock 9.Close socket [07:23:27]Sock 9.Thread stoped [07:23:31]OFD Sender: No OFD packet to send [07:23:36]OFD Sender: No OFD packet to send [07:23:41]OFD Sender: No OFD packet to send [07:23:46]OFD Sender: No OFD packet to send [07:23:47]accept exits with 8 [07:23:47]New connection [07:23:47]New thread 3066785124 created [07:23:47]Thread 3066928484 joined [07:23:47]Waiting for new connection... [07:23:47] Sock 8.Parse request [07:23:47]Sock 8.Check first char [07:23:47]Sock 8.First char is OK [07:23:47]request: POST /json_proto HTTP/1.0 [07:23:47]Method: POST [07:23:47]URL: /json_proto [07:23:47]Method is POST - this is cgi request [07:23:47]url: /json_proto [07:23:47]query_string will be loaded in cgi processing [07:23:47]execute_cgi json_proto POST (null) [07:23:47]execute_cgi path=json_proto method=POST [07:23:47]POST find Content-Length [07:23:47]Host: 172.17.45.8:8080 [07:23:47]Content-Length: 962 [07:23:47]Content-Type: application/json [07:23:47] [07:23:47]POST finish read [07:23:47]Found Content-Length = 962 [07:23:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150508", "tax_sys" : 0, "items" : [ { "code": "4700003010346", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682000280", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up \u043C\u043E\u0445\u0438\u0442\u043E 0,45 \u0436/\u0431", "price" : 85.00, "quantity" : 2.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:23:47]execute_script... [07:23:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150508", "tax_sys" : 0, "items" : [ { "code": "4700003010346", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682000280", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up \u043C\u043E\u0445\u0438\u0442\u043E 0,45 \u0436/\u0431", "price" : 85.00, "quantity" : 2.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:23:47]POST & json_proto [07:23:47]process_json_proto [07:23:47]json parsed OK: [07:23:47]protocol is kg_v1.0 [07:23:47]action value=close_receipt [07:23:47]process_action close_receipt [07:23:47]cmd_close_receipt [07:23:47]MH_GetDate [07:23:47]Write to MH i2c: F0 00 00 CA 0F C8 [07:23:47]Write i2c OK [07:23:47]MH_I2C_Read... [07:23:47]Read from MH i2c: F0 [07:23:47]MH_I2C_Read... [07:23:47]Read from MH i2c: F0 09 00 [07:23:47]MH_I2C_Read... [07:23:47]Read from MH i2c: F0 09 00 CA 0F 00 87 43 A7 66 A6 1F 7F 64 50 [07:23:47]GetLastDocTimeStamp 1722237807 [07:23:47]current date 1722237831 [07:23:47]FM_GetShiftState [07:23:47]SAM_PROTO_GetShiftState [07:23:47]wFMCommunicate request_size=4 [07:23:47]MH_SAM_APDU [07:23:47]CAPDU: 80 13 01 00 [07:23:47]Write to MH i2c: E2 08 00 CB 0F 80 13 01 00 00 00 00 00 57 [07:23:47]Write i2c OK [07:23:47]MH_I2C_Read... [07:23:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:23:47]Read from MH i2c: E2 [07:23:47]MH_I2C_Read... [07:23:47]Read from MH i2c: E2 0E 00 [07:23:47]MH_I2C_Read... [07:23:47]Read from MH i2c: E2 0E 00 CB 0F 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 D8 [07:23:47]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [07:23:47]wFMCommunicate OK [07:23:47]SAM_PROTO_GetShiftState done [07:23:47]FM_GetShiftState done [07:23:47]opened in 1722213509 [07:23:47]opened+sec_in_day 1722299909 [07:23:47]quantity*price = 8000 [07:23:47]sum+1 = 8001 [07:23:47]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600682000280 Напиток FLash up мохито 0,45 ж/б 2.000 * 85.00 = 170.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 14 29.07.2024 07:23 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27111 ФПД: 13779090989449 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T072351&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27111&fm=13779090989449&tin=02508201610067®Number=0000000000092663&sum=25000 0 [07:23:48]StoreToDocumentArchive [07:23:48]shift 434 fd 27111 [07:23:48]save to /storage/0434/doc_00027111 [07:23:48]save last doc name /storage/0434/doc_00027111 to /storage/kkm_last_doc_name [07:23:48]save OK [07:23:48]Clear old archive folders... [07:23:48]ProcessDocumentItem done err = 0, tmpTLVsize=415 [07:23:48]tlvbuf is 001D3380 [07:23:48]SAM_PROTO_ClearQueue [07:23:48]wFMCommunicate request_size=4 [07:23:48]MH_SAM_APDU [07:23:48]CAPDU: 80 09 00 00 [07:23:48]Write to MH i2c: E2 08 00 D8 0F 80 09 00 00 00 00 00 00 59 [07:23:48]Write i2c OK [07:23:48]MH_I2C_Read... [07:23:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:23:48]Read from MH i2c: E2 [07:23:48]MH_I2C_Read... [07:23:48]Read from MH i2c: E2 03 00 [07:23:48]MH_I2C_Read... [07:23:48]Read from MH i2c: E2 03 00 D8 0F 00 90 00 5B [07:23:48]RAPDU: 90 00 [07:23:48]wFMCommunicate OK [07:23:48]SAM_PROTO_ClearQueue done [07:23:48]KKMCreateOFDPacket [07:23:48]OFDProtocolAddRootSTLVToBuf [07:23:48]FM_MakeSignedData [07:23:48]FM_MakeSignedData [07:23:48]SAM_PROTO_SignData [07:23:48]wFMCommunicate request_size=4 [07:23:48]MH_SAM_APDU [07:23:48]CAPDU: 80 0D 01 02 [07:23:48]Write to MH i2c: E2 08 00 D9 0F 80 0D 01 02 00 00 00 00 61 [07:23:48]Write i2c OK [07:23:48]MH_I2C_Read... [07:23:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:23:48]Read from MH i2c: E2 [07:23:48]MH_I2C_Read... [07:23:48]Read from MH i2c: E2 03 00 [07:23:48]MH_I2C_Read... [07:23:48]Read from MH i2c: E2 03 00 D9 0F 00 90 00 5C [07:23:48]RAPDU: 90 00 [07:23:48]wFMCommunicate OK [07:23:48]wFMCommunicate request_size=255 [07:23:48]MH_SAM_APDU [07:23:48]CAPDU: 80 0D 02 02 FA 03 00 9F 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 34 36 06 04 36 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 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 73 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 30 32 38 30 06 04 2F 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 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 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 [07:23:48]Write to MH i2c: E2 02 01 DA 0F 80 0D 02 02 FA 00 03 00 9F 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 34 36 06 04 36 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 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 73 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 30 32 38 30 06 04 2F 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 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 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 00 00 FE [07:23:48]Write i2c OK [07:23:48]MH_I2C_Read... [07:23:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:23:48]Read from MH i2c: E2 [07:23:48]MH_I2C_Read... [07:23:48]Read from MH i2c: E2 03 00 [07:23:48]MH_I2C_Read... [07:23:48]Read from MH i2c: E2 03 00 DA 0F 00 90 00 5D [07:23:48]RAPDU: 90 00 [07:23:48]wFMCommunicate OK [07:23:48]wFMCommunicate request_size=174 [07:23:48]MH_SAM_APDU [07:23:48]CAPDU: 80 0D 02 02 A9 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 87 43 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E7 69 00 00 35 04 06 00 0C 88 31 D2 E1 89 [07:23:48]Write to MH i2c: E2 B1 00 DB 0F 80 0D 02 02 A9 00 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 87 43 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E7 69 00 00 35 04 06 00 0C 88 31 D2 E1 89 00 00 46 [07:23:48]Write i2c OK [07:23:48]MH_I2C_Read... [07:23:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:23:49]Read from MH i2c: E2 [07:23:49]MH_I2C_Read... [07:23:49]Read from MH i2c: E2 03 00 [07:23:49]MH_I2C_Read... [07:23:49]Read from MH i2c: E2 03 00 DB 0F 00 90 00 5E [07:23:49]RAPDU: 90 00 [07:23:49]wFMCommunicate OK [07:23:49]wFMCommunicate request_size=4 [07:23:49]MH_SAM_APDU [07:23:49]CAPDU: 80 0D 03 02 [07:23:49]Write to MH i2c: E2 08 00 DC 0F 80 0D 03 02 00 00 00 00 66 [07:23:49]Write i2c OK [07:23:49]MH_I2C_Read... [07:23:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:23:49]Read from MH i2c: E2 [07:23:49]MH_I2C_Read... [07:23:49]Read from MH i2c: E2 0B 00 [07:23:49]MH_I2C_Read... [07:23:49]Read from MH i2c: E2 0B 00 DC 0F 00 F4 95 5B 06 EF 30 D2 31 90 00 73 [07:23:49]RAPDU: F4 95 5B 06 EF 30 D2 31 90 00 [07:23:49]wFMCommunicate OK [07:23:49]SAM_PROTO_SignData done [07:23:49]FM_MakeSignedData done [07:23:49]CreateOFDProtocolMessage [07:23:49]wFMCommunicate request_size=4 [07:23:49]MH_SAM_APDU [07:23:49]CAPDU: 80 11 00 00 [07:23:49]Write to MH i2c: E2 08 00 DD 0F 80 11 00 00 00 00 00 00 66 [07:23:49]Write i2c OK [07:23:49]MH_I2C_Read... [07:23:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:23:49]Read from MH i2c: E2 [07:23:49]MH_I2C_Read... [07:23:49]Read from MH i2c: E2 17 00 [07:23:49]MH_I2C_Read... [07:23:49]Read from MH i2c: E2 17 00 DD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 BF [07:23:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [07:23:49]wFMCommunicate OK [07:23:49]CreateOFDProtocolMessage done [07:23:49]OFDSenderStorePacket 27111 [07:23:49]StoreOFDPacket docnum=27111 [07:23:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 B3 01 00 00 95 EA AB 01 75 03 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 34 36 06 04 36 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 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 73 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 30 32 38 30 06 04 2F 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 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 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 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 87 43 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E7 69 00 00 35 04 06 00 0C 88 31 D2 E1 89 F4 95 5B 06 EF 30 D2 31 [07:23:49]CheckFolder [07:23:49]dirname=/storage/ofd_packets [07:23:49]CheckFolder done [07:23:49]ProducePacketName [07:23:49]name=ofd_packets/00027111 [07:23:49]NVStorageSaveData ofd_packets/00027111 [07:23:49]File name is /storage/ofd_packets/00027111 [07:23:49]Write 465 bytes [07:23:49]NVStorageSaveData done [07:23:49]OFDSenderStorePacket done [07:23:49]KKMCreateOFDPacket done [07:23:49]NVStorageSaveData kkm_last_timestamp [07:23:49]File name is /storage/kkm_last_timestamp [07:23:49]Write 4 bytes [07:23:49]NVStorageSaveData done [07:23:49]ExternCall_PrintAddStr [07:23:49]wPrintStart [07:23:49]Write to MH i2c: 01 00 00 DE 0F ED [07:23:49]Write i2c OK [07:23:49]MH_I2C_Read... [07:23:49]Read from MH i2c: 01 [07:23:49]MH_I2C_Read... [07:23:49]Read from MH i2c: 01 07 00 [07:23:49]MH_I2C_Read... [07:23:49]OFD Sender: Processing packet 27111 [packets to send 9, broken 8] [07:23:49]ProducePacketName [07:23:49]name=ofd_packets/00027111 [07:23:49]Read from MH i2c: OFD Sender: To server: pG, [07:23:49]01 CommunicateWithHost lk.salyk.kg:30040 [07:23:49]07 ConnectInit lk.salyk.kg [07:23:49]00 DE 0F 00 00 00 00 00 FF 0F 02 [07:23:49]RasterBufferAndPrint [07:23:49]line Счет N : (3)150508 [07:23:49]line ИНН: 02508201610067 [07:23:49]line Контрольно-Кассовый Чек [07:23:49]line ПРОДАЖА [07:23:49]line Товар: 4700003010346 [07:23:49]line Напиток Let`s Go! с/с груша ПЭТ 0,5л [07:23:49]line 2.000 * 40.00 [07:23:49]line = 80.00 [07:23:49]line НДС 12% НСП 1% [07:23:49]line > о реализуемом товаре [07:23:49]line Товар: 4600682000280 [07:23:49]line Напиток FLash up мохито 0,45 ж/б [07:23:49]line 2.000 * 85.00 [07:23:49]line = 170.00 [07:23:49]line НДС 12% НСП 1% [07:23:49]line > о реализуемом товаре [07:23:49]line ИТОГО: 250.00 [07:23:49]line НСП 1% : 2.21 [07:23:49]line НДС 12% : 26.55 [07:23:49]line Наличными: 250.00 [07:23:49]line Безнал.: 0.00 [07:23:49]line Место: АЗС № 134 "Партнер Нефть" [07:23:49]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:23:49]line СНО: Общий режим [07:23:49]line Чек 14 29.07.2024 07:23 [07:23:49]line Смена: 434 ФФД: 1.0 [07:23:49]line ЗНМ: 0300000043 [07:23:49]line РНМ: 0000000000092663 [07:23:49]line Версия ККМ: 001 [07:23:49]line ФМ: 0000000000874937 [07:23:49]line ФД: 27111 [07:23:49]line ФПД: 13779090989449 [07:23:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T072351&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27111&fm=13779090989449&tin=02508201610067®Number=0000000000092663&sum=25000 [07:23:49]line 0 [07:23:49]written 0, free lines is 4095 [07:23:49]Connected sock=10 [07:23:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 B3 01 00 00 95 EA AB 01 75 03 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 34 36 06 04 36 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 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 73 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 30 32 38 30 06 04 2F 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 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 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 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 87 43 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E7 69 00 00 35 04 06 00 0C 88 31 D2 E1 89 F4 95 5B 06 EF 30 D2 31 [07:23:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 14 AA 47 00 A9 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E7 69 00 00 F4 03 04 00 D9 E9 A6 66 B6 04 01 00 00 D9 3F 66 40 94 37 0F 91 [07:23:49]CommunicateWithHost err = 0 [07:23:49]CheckOFDResponse [07:23:49]1017 (14) - 77093643461234 [07:23:49]1041 (16) - 0000000000874937 [07:23:49]1040 (4) - 27111 [07:23:49]1012 (4) - 29.07.2024 01:01 [07:23:49]1206 (1) - 0 [07:23:49]OFD Sender: Remove packet 27111 [07:23:49]ProducePacketName [07:23:49]name=ofd_packets/00027111 [07:23:49]NVStorageDeleteData [07:23:50]Write to MH i2c: 01 00 00 0D 10 1D [07:23:50]Write i2c OK [07:23:50]MH_I2C_Read... [07:23:50]Read from MH i2c: 01 [07:23:50]MH_I2C_Read... [07:23:50]Read from MH i2c: 01 07 00 [07:23:50]MH_I2C_Read... [07:23:50]Read from MH i2c: 01 07 00 0D 10 00 00 00 00 00 67 0C 97 [07:23:50]RasterBufferAndPrint [07:23:50]line [07:23:50]line [07:23:50]line [07:23:50]line [07:23:50]line [07:23:50]written 0, free lines is 3181 [07:23:50]MH_Cut [07:23:50]Write to MH i2c: D1 01 00 14 10 01 F6 [07:23:50]Write i2c OK [07:23:50]MH_I2C_Read... [07:23:50]Read from MH i2c: D1 [07:23:50]MH_I2C_Read... [07:23:50]Read from MH i2c: D1 01 00 [07:23:50]MH_I2C_Read... [07:23:50]Read from MH i2c: D1 01 00 14 10 00 F5 [07:23:50]Write to MH i2c: 01 00 00 15 10 25 [07:23:50]Write i2c OK [07:23:50]MH_I2C_Read... [07:23:50]OFD Sender: No OFD packet to send [07:23:50]*** Cut start [07:23:50]*** Partial cut [07:23:50]*** CUTSNS_PIN = 1 [07:23:50]*** CUTSNS_PIN = 0 [07:23:51]*** Brake cut motor [07:23:51]Read from MH i2c: 01 [07:23:51]MH_I2C_Read... [07:23:51]*** Stop cut motor [07:23:51]*** Cut end [07:23:51]Read from MH i2c: 01 07 00 [07:23:51]MH_I2C_Read... [07:23:51]Read from MH i2c: 01 07 00 15 10 00 00 00 00 00 FF 0F 3A [07:23:51]process_action close_receipt done [07:23:51]requested_data is exist [07:23:51]produce_requested_data [07:23:51]requested_item fm.sn is exist - process it [07:23:51]wFMCommunicate request_size=4 [07:23:51]MH_SAM_APDU [07:23:51]CAPDU: 80 11 00 00 [07:23:51]Write to MH i2c: E2 08 00 16 10 80 11 00 00 00 00 00 00 A0 [07:23:51]Write i2c OK [07:23:51]MH_I2C_Read... [07:23:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:23:51]Read from MH i2c: E2 [07:23:51]MH_I2C_Read... [07:23:51]Read from MH i2c: E2 17 00 [07:23:51]MH_I2C_Read... [07:23:51]Read from MH i2c: E2 17 00 16 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 F9 [07:23:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [07:23:51]wFMCommunicate OK [07:23:51]requested_item fd.num is exist - process it [07:23:51]SAM_PROTO_GetFieldsCounters [07:23:51]wFMCommunicate request_size=4 [07:23:51]MH_SAM_APDU [07:23:51]CAPDU: 80 13 00 00 [07:23:51]Write to MH i2c: E2 08 00 17 10 80 13 00 00 00 00 00 00 A3 [07:23:51]Write i2c OK [07:23:51]MH_I2C_Read... [07:23:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:23:51]Read from MH i2c: E2 [07:23:51]MH_I2C_Read... [07:23:51]Read from MH i2c: E2 62 00 [07:23:51]MH_I2C_Read... [07:23:51]Read from MH i2c: E2 62 00 17 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 E7 69 00 00 0E 04 04 00 B2 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 F8 [07:23:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 E7 69 00 00 0E 04 04 00 B2 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:23:51]wFMCommunicate OK [07:23:51]SAM_PROTO_GetFieldsCounters done [07:23:51]requested_item shift.num is exist - process it [07:23:51]requested_item shift.opened is exist - process it [07:23:51]req_shift_opened [07:23:51]FM_GetShiftState [07:23:51]SAM_PROTO_GetShiftState [07:23:51]wFMCommunicate request_size=4 [07:23:51]MH_SAM_APDU [07:23:51]CAPDU: 80 13 01 00 [07:23:51]Write to MH i2c: E2 08 00 18 10 80 13 01 00 00 00 00 00 A5 [07:23:51]Write i2c OK [07:23:51]MH_I2C_Read... [07:23:51]Read from MH i2c: E2 [07:23:51]MH_I2C_Read... [07:23:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:23:51]Read from MH i2c: E2 0E 00 [07:23:51]MH_I2C_Read... [07:23:51]Read from MH i2c: E2 0E 00 18 10 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 26 [07:23:51]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [07:23:51]wFMCommunicate OK [07:23:51]SAM_PROTO_GetShiftState done [07:23:51]FM_GetShiftState done [07:23:51]req_shift_opened done [07:23:51]requested_item shift.open_date is exist - process it [07:23:51]req_shift_open_date [07:23:51]req_shift_open_date done [07:23:51]produce_requested_data done [07:23:51]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27111,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [07:23:51]process_action_free close_receipt [07:23:51]json_value_free [07:23:51]json_value_free done [07:23:51]process_json_proto returns [07:23:51]Send response to host [07:23:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27111,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [07:23:51]free response buf [07:23:51]execute_script done [07:23:51]execute_script returns [07:23:51]free content buf [07:23:51]Sock 8.Close socket [07:23:51]Sock 8.Thread stoped [07:23:55]OFD Sender: No OFD packet to send [07:24:00]OFD Sender: No OFD packet to send [07:24:05]OFD Sender: No OFD packet to send [07:24:10]OFD Sender: No OFD packet to send [07:24:15]OFD Sender: No OFD packet to send [07:24:20]OFD Sender: No OFD packet to send [07:24:25]OFD Sender: No OFD packet to send [07:24:30]OFD Sender: No OFD packet to send [07:24:35]OFD Sender: No OFD packet to send [07:24:40]OFD Sender: No OFD packet to send [07:24:45]OFD Sender: No OFD packet to send [07:24:50]OFD Sender: No OFD packet to send [07:24:55]OFD Sender: No OFD packet to send [07:25:00]OFD Sender: No OFD packet to send [07:25:05]OFD Sender: No OFD packet to send [07:25:10]OFD Sender: No OFD packet to send [07:25:15]OFD Sender: No OFD packet to send [07:25:20]OFD Sender: No OFD packet to send [07:25:25]OFD Sender: No OFD packet to send [07:25:30]OFD Sender: No OFD packet to send [07:25:35]OFD Sender: No OFD packet to send [07:25:40]OFD Sender: No OFD packet to send [07:25:45]OFD Sender: No OFD packet to send [07:25:50]OFD Sender: No OFD packet to send [07:25:55]OFD Sender: No OFD packet to send [07:26:00]OFD Sender: No OFD packet to send [07:26:05]OFD Sender: No OFD packet to send [07:26:10]OFD Sender: No OFD packet to send [07:26:15]OFD Sender: No OFD packet to send [07:26:20]OFD Sender: No OFD packet to send [07:26:25]OFD Sender: No OFD packet to send [07:26:30]OFD Sender: No OFD packet to send [07:26:35]OFD Sender: No OFD packet to send [07:26:40]OFD Sender: No OFD packet to send [07:26:45]OFD Sender: No OFD packet to send [07:26:50]OFD Sender: No OFD packet to send [07:26:55]OFD Sender: No OFD packet to send [07:27:00]OFD Sender: No OFD packet to send [07:27:05]OFD Sender: No OFD packet to send [07:27:10]OFD Sender: No OFD packet to send [07:27:15]OFD Sender: No OFD packet to send [07:27:20]OFD Sender: No OFD packet to send [07:27:25]OFD Sender: No OFD packet to send [07:27:30]OFD Sender: No OFD packet to send [07:27:35]OFD Sender: No OFD packet to send [07:27:40]OFD Sender: No OFD packet to send [07:27:45]OFD Sender: No OFD packet to send [07:27:50]OFD Sender: No OFD packet to send [07:27:55]OFD Sender: No OFD packet to send [07:28:00]OFD Sender: No OFD packet to send [07:28:05]OFD Sender: No OFD packet to send [07:28:10]OFD Sender: No OFD packet to send [07:28:15]OFD Sender: No OFD packet to send [07:28:20]OFD Sender: No OFD packet to send [07:28:22]accept exits with 9 [07:28:22]New connection [07:28:22]New thread 3066928484 created [07:28:22]Thread 3066785124 joined [07:28:22]Waiting for new connection... [07:28:22] Sock 9.Parse request [07:28:22]Sock 9.Check first char [07:28:22]Sock 9.First char is OK [07:28:22]request: POST /json_proto HTTP/1.0 [07:28:22]Method: POST [07:28:22]URL: /json_proto [07:28:22]Method is POST - this is cgi request [07:28:22]url: /json_proto [07:28:22]query_string will be loaded in cgi processing [07:28:22]execute_cgi json_proto POST (null) [07:28:22]execute_cgi path=json_proto method=POST [07:28:22]POST find Content-Length [07:28:22]Host: 172.17.45.8:8080 [07:28:22]Content-Length: 660 [07:28:22]Content-Type: application/json [07:28:22] [07:28:22]POST finish read [07:28:22]Found Content-Length = 660 [07:28:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150509", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "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" ] } } [07:28:22]execute_script... [07:28: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)150509", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "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" ] } } [07:28:22]POST & json_proto [07:28:22]process_json_proto [07:28:22]json parsed OK: [07:28:22]protocol is kg_v1.0 [07:28:22]action value=close_receipt [07:28:22]process_action close_receipt [07:28:22]cmd_close_receipt [07:28:22]MH_GetDate [07:28:22]Write to MH i2c: F0 00 00 19 10 18 [07:28:22]Write i2c OK [07:28:22]MH_I2C_Read... [07:28:22]Read from MH i2c: F0 [07:28:22]MH_I2C_Read... [07:28:22]Read from MH i2c: F0 09 00 [07:28:22]MH_I2C_Read... [07:28:22]Read from MH i2c: F0 09 00 19 10 00 9A 44 A7 66 A6 1F 7F 64 B4 [07:28:22]GetLastDocTimeStamp 1722237831 [07:28:22]current date 1722238106 [07:28:22]FM_GetShiftState [07:28:22]SAM_PROTO_GetShiftState [07:28:22]wFMCommunicate request_size=4 [07:28:22]MH_SAM_APDU [07:28:22]CAPDU: 80 13 01 00 [07:28:22]Write to MH i2c: E2 08 00 1A 10 80 13 01 00 00 00 00 00 A7 [07:28:22]Write i2c OK [07:28:22]MH_I2C_Read... [07:28:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:22]Read from MH i2c: E2 [07:28:22]MH_I2C_Read... [07:28:22]Read from MH i2c: E2 0E 00 [07:28:22]MH_I2C_Read... [07:28:22]Read from MH i2c: E2 0E 00 1A 10 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 28 [07:28:22]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [07:28:22]wFMCommunicate OK [07:28:22]SAM_PROTO_GetShiftState done [07:28:22]FM_GetShiftState done [07:28:22]opened in 1722213509 [07:28:22]opened+sec_in_day 1722299909 [07:28:22]quantity*price = 15500 [07:28:22]sum+1 = 15501 [07:28:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 15 29.07.2024 07:28 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27112 ФПД: 277303958755518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T072826&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27112&fm=277303958755518&tin=02508201610067®Number=0000000000092663&sum=15500 0 [07:28:23]StoreToDocumentArchive [07:28:23]shift 434 fd 27112 [07:28:23]save to /storage/0434/doc_00027112 [07:28:23]save last doc name /storage/0434/doc_00027112 to /storage/kkm_last_doc_name [07:28:23]save OK [07:28:23]Clear old archive folders... [07:28:23]ProcessDocumentItem done err = 0, tmpTLVsize=280 [07:28:23]tlvbuf is 001F1680 [07:28:23]SAM_PROTO_ClearQueue [07:28:23]wFMCommunicate request_size=4 [07:28:23]MH_SAM_APDU [07:28:23]CAPDU: 80 09 00 00 [07:28:23]Write to MH i2c: E2 08 00 27 10 80 09 00 00 00 00 00 00 A9 [07:28:23]Write i2c OK [07:28:23]MH_I2C_Read... [07:28:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:28:23]Read from MH i2c: E2 [07:28:23]MH_I2C_Read... [07:28:23]Read from MH i2c: E2 03 00 [07:28:23]MH_I2C_Read... [07:28:23]Read from MH i2c: E2 03 00 27 10 00 90 00 AB [07:28:23]RAPDU: 90 00 [07:28:23]wFMCommunicate OK [07:28:23]SAM_PROTO_ClearQueue done [07:28:23]KKMCreateOFDPacket [07:28:23]OFDProtocolAddRootSTLVToBuf [07:28:23]FM_MakeSignedData [07:28:23]FM_MakeSignedData [07:28:23]SAM_PROTO_SignData [07:28:23]wFMCommunicate request_size=4 [07:28:23]MH_SAM_APDU [07:28:23]CAPDU: 80 0D 01 02 [07:28:23]Write to MH i2c: E2 08 00 28 10 80 0D 01 02 00 00 00 00 B1 [07:28:23]Write i2c OK [07:28:23]MH_I2C_Read... [07:28:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:28:23]Read from MH i2c: E2 [07:28:23]MH_I2C_Read... [07:28:23]Read from MH i2c: E2 03 00 [07:28:23]MH_I2C_Read... [07:28:23]Read from MH i2c: E2 03 00 28 10 00 90 00 AC [07:28:23]RAPDU: 90 00 [07:28:23]wFMCommunicate OK [07:28:23]wFMCommunicate request_size=255 [07:28:23]MH_SAM_APDU [07:28:23]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 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 31 2C 35 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 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 0F 00 00 00 F4 03 04 00 9A 44 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 [07:28:23]Write to MH i2c: E2 02 01 29 10 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 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 31 2C 35 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 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 0F 00 00 00 F4 03 04 00 9A 44 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 00 00 78 [07:28:23]Write i2c OK [07:28:23]MH_I2C_Read... [07:28:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:23]Read from MH i2c: E2 [07:28:23]MH_I2C_Read... [07:28:23]Read from MH i2c: E2 03 00 [07:28:23]MH_I2C_Read... [07:28:23]Read from MH i2c: E2 03 00 29 10 00 90 00 AD [07:28:23]RAPDU: 90 00 [07:28:23]wFMCommunicate OK [07:28:23]wFMCommunicate request_size=39 [07:28:23]MH_SAM_APDU [07:28:23]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E8 69 00 00 35 04 06 00 FC 34 DB F4 D8 BE [07:28:23]Write to MH i2c: E2 2A 00 2A 10 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E8 69 00 00 35 04 06 00 FC 34 DB F4 D8 BE 00 00 5B [07:28:23]Write i2c OK [07:28:23]MH_I2C_Read... [07:28:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:23]Read from MH i2c: E2 [07:28:23]MH_I2C_Read... [07:28:23]Read from MH i2c: E2 03 00 [07:28:23]MH_I2C_Read... [07:28:23]Read from MH i2c: E2 03 00 2A 10 00 90 00 AE [07:28:23]RAPDU: 90 00 [07:28:23]wFMCommunicate OK [07:28:23]wFMCommunicate request_size=4 [07:28:23]MH_SAM_APDU [07:28:23]CAPDU: 80 0D 03 02 [07:28:23]Write to MH i2c: E2 08 00 2B 10 80 0D 03 02 00 00 00 00 B6 [07:28:23]Write i2c OK [07:28:23]MH_I2C_Read... [07:28:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:28:23]Read from MH i2c: E2 [07:28:23]MH_I2C_Read... [07:28:23]Read from MH i2c: E2 0B 00 [07:28:23]MH_I2C_Read... [07:28:23]Read from MH i2c: E2 0B 00 2B 10 00 87 00 6D 9D 81 D9 8B 63 90 00 90 [07:28:23]RAPDU: 87 00 6D 9D 81 D9 8B 63 90 00 [07:28:23]wFMCommunicate OK [07:28:23]SAM_PROTO_SignData done [07:28:23]FM_MakeSignedData done [07:28:23]CreateOFDProtocolMessage [07:28:23]wFMCommunicate request_size=4 [07:28:23]MH_SAM_APDU [07:28:23]CAPDU: 80 11 00 00 [07:28:23]Write to MH i2c: E2 08 00 2C 10 80 11 00 00 00 00 00 00 B6 [07:28:23]Write i2c OK [07:28:23]MH_I2C_Read... [07:28:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:23]Read from MH i2c: E2 [07:28:23]MH_I2C_Read... [07:28:23]Read from MH i2c: E2 17 00 [07:28:23]MH_I2C_Read... [07:28:23]Read from MH i2c: E2 17 00 2C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 0F [07:28:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [07:28:23]wFMCommunicate OK [07:28:23]CreateOFDProtocolMessage done [07:28:23]OFDSenderStorePacket 27112 [07:28:23]StoreOFDPacket docnum=27112 [07:28:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 2C 01 00 00 04 21 24 01 89 DD 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 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 31 2C 35 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 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 0F 00 00 00 F4 03 04 00 9A 44 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E8 69 00 00 35 04 06 00 FC 34 DB F4 D8 BE 87 00 6D 9D 81 D9 8B 63 [07:28:23]CheckFolder [07:28:23]dirname=/storage/ofd_packets [07:28:23]CheckFolder done [07:28:23]ProducePacketName [07:28:23]name=ofd_packets/00027112 [07:28:23]NVStorageSaveData ofd_packets/00027112 [07:28:23]File name is /storage/ofd_packets/00027112 [07:28:23]Write 330 bytes [07:28:23]NVStorageSaveData done [07:28:23]OFDSenderStorePacket done [07:28:23]KKMCreateOFDPacket done [07:28:23]NVStorageSaveData kkm_last_timestamp [07:28:23]File name is /storage/kkm_last_timestamp [07:28:23]Write 4 bytes [07:28:23]NVStorageSaveData done [07:28:23]ExternCall_PrintAddStr [07:28:23]wPrintStart [07:28:23]Write to MH i2c: 01 00 00 2D 10 3D [07:28:23]Write i2c OK [07:28:23]MH_I2C_Read... [07:28:23]Read from MH i2c: 01 [07:28:23]MH_I2C_Read... [07:28:23]Read from MH i2c: 01 07 00 [07:28:23]MH_I2C_Read... [07:28:23]Read from MH i2c: 01 07 00 2D 10 00 00 00 00 00 FF 0F 52 [07:28:23]RasterBufferAndPrint [07:28:23]line Счет N : (3)150509 [07:28:23]line ИНН: 02508201610067 [07:28:23]line Контрольно-Кассовый Чек [07:28:23]line ПРОДАЖА [07:28:23]line Товар: 5449000000439 [07:28:23]line Напиток Кока-Кола 1,5л [07:28:23]line 1.000 * 155.00 [07:28:23]line = 155.00 [07:28:23]line НДС 12% НСП 1% [07:28:23]line > о реализуемом товаре [07:28:23]line ИТОГО: 155.00 [07:28:23]line НСП 1% : 1.37 [07:28:23]line НДС 12% : 16.46 [07:28:23]line Наличными: 155.00 [07:28:23]line Безнал.: 0.00 [07:28:23]line Место: АЗС № 134 "Партнер Нефть" [07:28:23]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:28:23]line СНО: Общий режим [07:28:23]line Чек 15 29.07.2024 07:28 [07:28:23]line Смена: 434 ФФД: 1.0 [07:28:24]line ЗНМ: 0300000043 [07:28:24]line РНМ: 0000000000092663 [07:28:24]line Версия ККМ: 001 [07:28:24]line ФМ: 0000000000874937 [07:28:24]line ФД: 27112 [07:28:24]line ФПД: 277303958755518 [07:28:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T072826&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27112&fm=277303958755518&tin=02508201610067®Number=0000000000092663&sum=15500 [07:28:24]line 0 [07:28:24]OFD Sender: Processing packet 27112 [packets to send 9, broken 8] [07:28:24]ProducePacketName [07:28:24]name=ofd_packets/00027112 [07:28:24]OFD Sender: To server: pG, [07:28:24]CommunicateWithHost lk.salyk.kg:30040 [07:28:24]ConnectInit lk.salyk.kg [07:28:24]written 0, free lines is 4095 [07:28:24]Connected sock=10 [07:28:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 2C 01 00 00 04 21 24 01 89 DD 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 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 31 2C 35 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 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 0F 00 00 00 F4 03 04 00 9A 44 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E8 69 00 00 35 04 06 00 FC 34 DB F4 D8 BE 87 00 6D 9D 81 D9 8B 63 [07:28:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 F9 74 47 00 82 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E8 69 00 00 F4 03 04 00 EB EA A6 66 B6 04 01 00 00 EF C8 C7 92 9C BF D2 70 [07:28:24]CommunicateWithHost err = 0 [07:28:24]CheckOFDResponse [07:28:24]1017 (14) - 77093643461234 [07:28:24]1041 (16) - 0000000000874937 [07:28:24]1040 (4) - 27112 [07:28:24]1012 (4) - 29.07.2024 01:05 [07:28:24]1206 (1) - 0 [07:28:24]OFD Sender: Remove packet 27112 [07:28:24]ProducePacketName [07:28:24]name=ofd_packets/00027112 [07:28:24]NVStorageDeleteData [07:28:24]Write to MH i2c: 01 00 00 54 10 64 [07:28:24]Write i2c OK [07:28:24]MH_I2C_Read... [07:28:24]Read from MH i2c: 01 [07:28:24]MH_I2C_Read... [07:28:24]Read from MH i2c: 01 07 00 [07:28:24]MH_I2C_Read... [07:28:24]Read from MH i2c: 01 07 00 54 10 00 00 00 00 00 03 0D 7B [07:28:24]RasterBufferAndPrint [07:28:24]line [07:28:24]line [07:28:24]line [07:28:24]line [07:28:24]line [07:28:24]written 0, free lines is 3337 [07:28:24]MH_Cut [07:28:24]Write to MH i2c: D1 01 00 5B 10 01 3D [07:28:24]Write i2c OK [07:28:24]MH_I2C_Read... [07:28:24]Read from MH i2c: D1 [07:28:24]MH_I2C_Read... [07:28:24]Read from MH i2c: D1 01 00 [07:28:24]MH_I2C_Read... [07:28:24]Read from MH i2c: D1 01 00 5B 10 00 3C [07:28:24]Write to MH i2c: 01 00 00 5C 10 6C [07:28:24]Write i2c OK [07:28:24]MH_I2C_Read... [07:28:24]OFD Sender: No OFD packet to send [07:28:25]*** Cut start [07:28:25]*** Partial cut [07:28:25]*** CUTSNS_PIN = 1 [07:28:25]*** CUTSNS_PIN = 0 [07:28:25]*** Brake cut motor [07:28:25]Read from MH i2c: 01 [07:28:25]MH_I2C_Read... [07:28:25]*** Stop cut motor [07:28:25]*** Cut end [07:28:25]Read from MH i2c: 01 07 00 [07:28:25]MH_I2C_Read... [07:28:25]Read from MH i2c: 01 07 00 5C 10 00 00 00 00 00 FF 0F 81 [07:28:25]process_action close_receipt done [07:28:25]requested_data is exist [07:28:25]produce_requested_data [07:28:25]requested_item fm.sn is exist - process it [07:28:25]wFMCommunicate request_size=4 [07:28:25]MH_SAM_APDU [07:28:25]CAPDU: 80 11 00 00 [07:28:25]Write to MH i2c: E2 08 00 5D 10 80 11 00 00 00 00 00 00 E7 [07:28:25]Write i2c OK [07:28:25]MH_I2C_Read... [07:28:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:26]Read from MH i2c: E2 [07:28:26]MH_I2C_Read... [07:28:26]Read from MH i2c: E2 17 00 [07:28:26]MH_I2C_Read... [07:28:26]Read from MH i2c: E2 17 00 5D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 40 [07:28:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [07:28:26]wFMCommunicate OK [07:28:26]requested_item fd.num is exist - process it [07:28:26]SAM_PROTO_GetFieldsCounters [07:28:26]wFMCommunicate request_size=4 [07:28:26]MH_SAM_APDU [07:28:26]CAPDU: 80 13 00 00 [07:28:26]Write to MH i2c: E2 08 00 5E 10 80 13 00 00 00 00 00 00 EA [07:28:26]Write i2c OK [07:28:26]MH_I2C_Read... [07:28:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:28:26]Read from MH i2c: E2 [07:28:26]MH_I2C_Read... [07:28:26]Read from MH i2c: E2 62 00 [07:28:26]MH_I2C_Read... [07:28:26]Read from MH i2c: E2 62 00 5E 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 E8 69 00 00 0E 04 04 00 B2 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 43 [07:28: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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 E8 69 00 00 0E 04 04 00 B2 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:28:26]wFMCommunicate OK [07:28:26]SAM_PROTO_GetFieldsCounters done [07:28:26]requested_item shift.num is exist - process it [07:28:26]requested_item shift.opened is exist - process it [07:28:26]req_shift_opened [07:28:26]FM_GetShiftState [07:28:26]SAM_PROTO_GetShiftState [07:28:26]wFMCommunicate request_size=4 [07:28:26]MH_SAM_APDU [07:28:26]CAPDU: 80 13 01 00 [07:28:26]Write to MH i2c: E2 08 00 5F 10 80 13 01 00 00 00 00 00 EC [07:28:26]Write i2c OK [07:28:26]MH_I2C_Read... [07:28:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:26]Read from MH i2c: E2 [07:28:26]MH_I2C_Read... [07:28:26]Read from MH i2c: E2 0E 00 [07:28:26]MH_I2C_Read... [07:28:26]Read from MH i2c: E2 0E 00 5F 10 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 6D [07:28:26]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [07:28:26]wFMCommunicate OK [07:28:26]SAM_PROTO_GetShiftState done [07:28:26]FM_GetShiftState done [07:28:26]req_shift_opened done [07:28:26]requested_item shift.open_date is exist - process it [07:28:26]req_shift_open_date [07:28:26]req_shift_open_date done [07:28:26]produce_requested_data done [07:28:26]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27112,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [07:28:26]process_action_free close_receipt [07:28:26]json_value_free [07:28:26]json_value_free done [07:28:26]process_json_proto returns [07:28:26]Send response to host [07:28:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27112,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [07:28:26]free response buf [07:28:26]execute_script done [07:28:26]execute_script returns [07:28:26]free content buf [07:28:26]Sock 9.Close socket [07:28:26]Sock 9.Thread stoped [07:28:30]OFD Sender: No OFD packet to send [07:28:35]OFD Sender: No OFD packet to send [07:28:40]OFD Sender: No OFD packet to send [07:28:45]OFD Sender: No OFD packet to send [07:28:50]OFD Sender: No OFD packet to send [07:28:55]OFD Sender: No OFD packet to send [07:29:00]OFD Sender: No OFD packet to send [07:29:05]OFD Sender: No OFD packet to send [07:29:10]OFD Sender: No OFD packet to send [07:29:15]OFD Sender: No OFD packet to send [07:29:20]OFD Sender: No OFD packet to send [07:29:25]OFD Sender: No OFD packet to send [07:29:30]OFD Sender: No OFD packet to send [07:29:35]OFD Sender: No OFD packet to send [07:29:39]accept exits with 8 [07:29:39]New connection [07:29:39]New thread 3066785124 created [07:29:39]Thread 3066928484 joined [07:29:39]Waiting for new connection... [07:29:39] Sock 8.Parse request [07:29:39]Sock 8.Check first char [07:29:39]Sock 8.First char is OK [07:29:39]request: POST /json_proto HTTP/1.0 [07:29:39]Method: POST [07:29:39]URL: /json_proto [07:29:39]Method is POST - this is cgi request [07:29:39]url: /json_proto [07:29:39]query_string will be loaded in cgi processing [07:29:39]execute_cgi json_proto POST (null) [07:29:39]execute_cgi path=json_proto method=POST [07:29:39]POST find Content-Length [07:29:39]Host: 172.17.45.8:8080 [07:29:39]Content-Length: 646 [07:29:39]Content-Type: application/json [07:29:39] [07:29:39]POST finish read [07:29:39]Found Content-Length = 646 [07:29:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150510", "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" ] } } [07:29:39]execute_script... [07:29:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150510", "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" ] } } [07:29:39]POST & json_proto [07:29:39]process_json_proto [07:29:39]json parsed OK: [07:29:39]protocol is kg_v1.0 [07:29:39]action value=close_receipt [07:29:39]process_action close_receipt [07:29:39]cmd_close_receipt [07:29:39]MH_GetDate [07:29:39]Write to MH i2c: F0 00 00 60 10 5F [07:29:39]Write i2c OK [07:29:39]MH_I2C_Read... [07:29:39]Read from MH i2c: F0 [07:29:39]MH_I2C_Read... [07:29:39]Read from MH i2c: F0 09 00 [07:29:39]MH_I2C_Read... [07:29:39]Read from MH i2c: F0 09 00 60 10 00 E7 44 A7 66 A6 1F 7F 64 48 [07:29:39]GetLastDocTimeStamp 1722238106 [07:29:39]current date 1722238183 [07:29:39]FM_GetShiftState [07:29:39]SAM_PROTO_GetShiftState [07:29:39]wFMCommunicate request_size=4 [07:29:39]MH_SAM_APDU [07:29:39]CAPDU: 80 13 01 00 [07:29:39]Write to MH i2c: E2 08 00 61 10 80 13 01 00 00 00 00 00 EE [07:29:39]Write i2c OK [07:29:39]MH_I2C_Read... [07:29:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:29:39]Read from MH i2c: E2 [07:29:39]MH_I2C_Read... [07:29:39]Read from MH i2c: E2 0E 00 [07:29:39]MH_I2C_Read... [07:29:39]Read from MH i2c: E2 0E 00 61 10 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 6F [07:29:39]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [07:29:39]wFMCommunicate OK [07:29:39]SAM_PROTO_GetShiftState done [07:29:39]FM_GetShiftState done [07:29:39]opened in 1722213509 [07:29:39]opened+sec_in_day 1722299909 [07:29:39]quantity*price = 13000 [07:29:39]sum+1 = 13001 [07:29:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 16 29.07.2024 07:29 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27113 ФПД: 123960454191051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T072943&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27113&fm=123960454191051&tin=02508201610067®Number=0000000000092663&sum=13000 0 [07:29:40]StoreToDocumentArchive [07:29:40]shift 434 fd 27113 [07:29:40]save to /storage/0434/doc_00027113 [07:29:40]save last doc name /storage/0434/doc_00027113 to /storage/kkm_last_doc_name [07:29:40]save OK [07:29:40]Clear old archive folders... [07:29:40]ProcessDocumentItem done err = 0, tmpTLVsize=282 [07:29:40]tlvbuf is 00162F90 [07:29:40]SAM_PROTO_ClearQueue [07:29:40]wFMCommunicate request_size=4 [07:29:40]MH_SAM_APDU [07:29:40]CAPDU: 80 09 00 00 [07:29:40]Write to MH i2c: E2 08 00 6E 10 80 09 00 00 00 00 00 00 F0 [07:29:40]Write i2c OK [07:29:40]MH_I2C_Read... [07:29:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:29:40]Read from MH i2c: E2 [07:29:40]MH_I2C_Read... [07:29:40]Read from MH i2c: E2 03 00 [07:29:40]MH_I2C_Read... [07:29:40]Read from MH i2c: E2 03 00 6E 10 00 90 00 F2 [07:29:40]RAPDU: 90 00 [07:29:40]wFMCommunicate OK [07:29:40]SAM_PROTO_ClearQueue done [07:29:40]KKMCreateOFDPacket [07:29:40]OFDProtocolAddRootSTLVToBuf [07:29:40]FM_MakeSignedData [07:29:40]FM_MakeSignedData [07:29:40]SAM_PROTO_SignData [07:29:40]wFMCommunicate request_size=4 [07:29:40]MH_SAM_APDU [07:29:40]CAPDU: 80 0D 01 02 [07:29:40]Write to MH i2c: E2 08 00 6F 10 80 0D 01 02 00 00 00 00 F8 [07:29:40]Write i2c OK [07:29:40]MH_I2C_Read... [07:29:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:29:40]Read from MH i2c: E2 [07:29:40]MH_I2C_Read... [07:29:40]Read from MH i2c: E2 03 00 [07:29:40]MH_I2C_Read... [07:29:40]Read from MH i2c: E2 03 00 6F 10 00 90 00 F3 [07:29:40]RAPDU: 90 00 [07:29:40]wFMCommunicate OK [07:29:40]wFMCommunicate request_size=255 [07:29:40]MH_SAM_APDU [07:29: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 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 10 00 00 00 F4 03 04 00 E7 44 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 [07:29:40]Write to MH i2c: E2 02 01 70 10 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 10 00 00 00 F4 03 04 00 E7 44 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 00 00 03 [07:29:40]Write i2c OK [07:29:40]MH_I2C_Read... [07:29:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:29:40]Read from MH i2c: E2 [07:29:40]MH_I2C_Read... [07:29:40]Read from MH i2c: E2 03 00 [07:29:40]MH_I2C_Read... [07:29:40]Read from MH i2c: E2 03 00 70 10 00 90 00 F4 [07:29:40]RAPDU: 90 00 [07:29:40]wFMCommunicate OK [07:29:40]wFMCommunicate request_size=41 [07:29:40]MH_SAM_APDU [07:29:40]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E9 69 00 00 35 04 06 00 70 BD CA D6 97 CB [07:29:40]Write to MH i2c: E2 2C 00 71 10 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E9 69 00 00 35 04 06 00 70 BD CA D6 97 CB 00 00 51 [07:29:40]Write i2c OK [07:29:40]MH_I2C_Read... [07:29:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:29:40]Read from MH i2c: E2 [07:29:40]MH_I2C_Read... [07:29:40]Read from MH i2c: E2 03 00 [07:29:40]MH_I2C_Read... [07:29:40]Read from MH i2c: E2 03 00 71 10 00 90 00 F5 [07:29:40]RAPDU: 90 00 [07:29:40]wFMCommunicate OK [07:29:40]wFMCommunicate request_size=4 [07:29:40]MH_SAM_APDU [07:29:40]CAPDU: 80 0D 03 02 [07:29:40]Write to MH i2c: E2 08 00 72 10 80 0D 03 02 00 00 00 00 FD [07:29:40]Write i2c OK [07:29:40]MH_I2C_Read... [07:29:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:29:40]Read from MH i2c: E2 [07:29:40]MH_I2C_Read... [07:29:40]Read from MH i2c: E2 0B 00 [07:29:40]MH_I2C_Read... [07:29:40]Read from MH i2c: E2 0B 00 72 10 00 99 D1 CD 50 96 5B ED 90 90 00 F3 [07:29:40]RAPDU: 99 D1 CD 50 96 5B ED 90 90 00 [07:29:40]wFMCommunicate OK [07:29:40]SAM_PROTO_SignData done [07:29:40]FM_MakeSignedData done [07:29:40]CreateOFDProtocolMessage [07:29:40]wFMCommunicate request_size=4 [07:29:40]MH_SAM_APDU [07:29:40]CAPDU: 80 11 00 00 [07:29:40]Write to MH i2c: E2 08 00 73 10 80 11 00 00 00 00 00 00 FD [07:29:40]Write i2c OK [07:29:40]MH_I2C_Read... [07:29:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:29:40]Read from MH i2c: E2 [07:29:40]MH_I2C_Read... [07:29:40]Read from MH i2c: E2 17 00 [07:29:40]MH_I2C_Read... [07:29:40]Read from MH i2c: E2 17 00 73 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 56 [07:29:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [07:29:40]wFMCommunicate OK [07:29:40]CreateOFDProtocolMessage done [07:29:40]OFDSenderStorePacket 27113 [07:29:40]StoreOFDPacket docnum=27113 [07:29:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 2E 01 00 00 F3 D1 26 01 79 2B 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 10 00 00 00 F4 03 04 00 E7 44 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E9 69 00 00 35 04 06 00 70 BD CA D6 97 CB 99 D1 CD 50 96 5B ED 90 [07:29:40]CheckFolder [07:29:40]dirname=/storage/ofd_packets [07:29:40]CheckFolder done [07:29:40]ProducePacketName [07:29:40]name=ofd_packets/00027113 [07:29:40]NVStorageSaveData ofd_packets/00027113 [07:29:40]File name is /storage/ofd_packets/00027113 [07:29:40]Write 332 bytes [07:29:40]NVStorageSaveData done [07:29:40]OFDSenderStorePacket done [07:29:40]KKMCreateOFDPacket done [07:29:40]NVStorageSaveData kkm_last_timestamp [07:29:40]File name is /storage/kkm_last_timestamp [07:29:40]Write 4 bytes [07:29:40]NVStorageSaveData done [07:29:40]OFD Sender: Processing packet 27113 [packets to send 9, broken 8] [07:29:40]ProducePacketName [07:29:40]name=ofd_packets/00027113 [07:29:40]OFD Sender: To server: pG, [07:29:40]CommunicateWithHost lk.salyk.kg:30040 [07:29:40]ConnectInit lk.salyk.kg [07:29:40]ExternCall_PrintAddStr [07:29:40]wPrintStart [07:29:40]Write to MH i2c: 01 00 00 74 10 84 [07:29:40]Write i2c OK [07:29:40]MH_I2C_Read... [07:29:40]Read from MH i2c: 01 [07:29:41]MH_I2C_Read... [07:29:41]Read from MH i2c: 01 07 00 [07:29:41]MH_I2C_Read... [07:29:41]Read from MH i2c: 01 07 00 74 10 00 00 00 00 00 FF 0F 99 [07:29:41]RasterBufferAndPrint [07:29:41]line Счет N : (3)150510 [07:29:41]line ИНН: 02508201610067 [07:29:41]line Контрольно-Кассовый Чек [07:29:41]line ПРОДАЖА [07:29:41]line Товар: 2000036220012 [07:29:41]line Кофе Капучино XL(GABB TRADE) [07:29:41]line 1.000 * 130.00 [07:29:41]line = 130.00 [07:29:41]line НДС 12% НСП 1% [07:29:41]line > о реализуемом товаре [07:29:41]line ИТОГО: 130.00 [07:29:41]line НСП 1% : 1.15 [07:29:41]line НДС 12% : 13.80 [07:29:41]line Наличными: 130.00 [07:29:41]line Безнал.: 0.00 [07:29:41]line Место: АЗС № 134 "Партнер Нефть" [07:29:41]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:29:41]line СНО: Общий режим [07:29:41]line Чек 16 29.07.2024 07:29 [07:29:41]line Смена: 434 ФФД: 1.0 [07:29:41]line ЗНМ: 0300000043 [07:29:41]line РНМ: 0000000000092663 [07:29:41]line Версия ККМ: 001 [07:29:41]line ФМ: 0000000000874937 [07:29:41]line ФД: 27113 [07:29:41]line ФПД: 123960454191051 [07:29:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T072943&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27113&fm=123960454191051&tin=02508201610067®Number=0000000000092663&sum=13000 [07:29:41]line 0 [07:29:41]Connected sock=11 [07:29:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 2E 01 00 00 F3 D1 26 01 79 2B 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 10 00 00 00 F4 03 04 00 E7 44 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 E9 69 00 00 35 04 06 00 70 BD CA D6 97 CB 99 D1 CD 50 96 5B ED 90 [07:29:41]written 0, free lines is 4095 [07:29:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 C9 AF 47 00 CB 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 34 39 33 37 10 04 04 00 E9 69 00 00 F4 03 04 00 38 EB A6 66 B6 04 01 00 00 5D D2 99 A2 00 A2 E3 6F [07:29:41]CommunicateWithHost err = 0 [07:29:41]CheckOFDResponse [07:29:41]1017 (14) - 77093643461234 [07:29:41]1041 (16) - 0000000000874937 [07:29:41]1040 (4) - 27113 [07:29:41]1012 (4) - 29.07.2024 01:07 [07:29:41]1206 (1) - 0 [07:29:41]OFD Sender: Remove packet 27113 [07:29:41]ProducePacketName [07:29:41]name=ofd_packets/00027113 [07:29:41]NVStorageDeleteData [07:29:41]Write to MH i2c: 01 00 00 9C 10 AC [07:29:41]Write i2c OK [07:29:41]MH_I2C_Read... [07:29:41]Read from MH i2c: 01 [07:29:41]MH_I2C_Read... [07:29:41]Read from MH i2c: 01 07 00 [07:29:41]MH_I2C_Read... [07:29:41]Read from MH i2c: 01 07 00 9C 10 00 00 00 00 00 E3 0C A2 [07:29:41]RasterBufferAndPrint [07:29:41]line [07:29:41]line [07:29:41]line [07:29:41]line [07:29:41]line [07:29:41]written 0, free lines is 3303 [07:29:41]MH_Cut [07:29:41]Write to MH i2c: D1 01 00 A3 10 01 85 [07:29:41]Write i2c OK [07:29:41]MH_I2C_Read... [07:29:41]Read from MH i2c: D1 [07:29:41]MH_I2C_Read... [07:29:41]Read from MH i2c: D1 01 00 [07:29:41]MH_I2C_Read... [07:29:41]Read from MH i2c: D1 01 00 A3 10 00 84 [07:29:41]Write to MH i2c: 01 00 00 A4 10 B4 [07:29:41]Write i2c OK [07:29:41]MH_I2C_Read... [07:29:42]OFD Sender: No OFD packet to send [07:29:42]*** Cut start [07:29:42]*** Partial cut [07:29:42]*** CUTSNS_PIN = 1 [07:29:42]*** CUTSNS_PIN = 0 [07:29:42]*** Brake cut motor [07:29:43]Read from MH i2c: 01 [07:29:43]MH_I2C_Read... [07:29:43]*** Stop cut motor [07:29:43]*** Cut end [07:29:43]Read from MH i2c: 01 07 00 [07:29:43]MH_I2C_Read... [07:29:43]Read from MH i2c: 01 07 00 A4 10 00 00 00 00 00 FF 0F C9 [07:29:43]process_action close_receipt done [07:29:43]requested_data is exist [07:29:43]produce_requested_data [07:29:43]requested_item fm.sn is exist - process it [07:29:43]wFMCommunicate request_size=4 [07:29:43]MH_SAM_APDU [07:29:43]CAPDU: 80 11 00 00 [07:29:43]Write to MH i2c: E2 08 00 A5 10 80 11 00 00 00 00 00 00 2F [07:29:43]Write i2c OK [07:29:43]MH_I2C_Read... [07:29:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:29:43]Read from MH i2c: E2 [07:29:43]MH_I2C_Read... [07:29:43]Read from MH i2c: E2 17 00 [07:29:43]MH_I2C_Read... [07:29:43]Read from MH i2c: E2 17 00 A5 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 88 [07:29:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [07:29:43]wFMCommunicate OK [07:29:43]requested_item fd.num is exist - process it [07:29:43]SAM_PROTO_GetFieldsCounters [07:29:43]wFMCommunicate request_size=4 [07:29:43]MH_SAM_APDU [07:29:43]CAPDU: 80 13 00 00 [07:29:43]Write to MH i2c: E2 08 00 A6 10 80 13 00 00 00 00 00 00 32 [07:29:43]Write i2c OK [07:29:43]MH_I2C_Read... [07:29:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:29:43]Read from MH i2c: E2 [07:29:43]MH_I2C_Read... [07:29:43]Read from MH i2c: E2 62 00 [07:29:43]MH_I2C_Read... [07:29:43]Read from MH i2c: E2 62 00 A6 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 E9 69 00 00 0E 04 04 00 B2 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 8F [07:29:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 E9 69 00 00 0E 04 04 00 B2 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:29:43]wFMCommunicate OK [07:29:43]SAM_PROTO_GetFieldsCounters done [07:29:43]requested_item shift.num is exist - process it [07:29:43]requested_item shift.opened is exist - process it [07:29:43]req_shift_opened [07:29:43]FM_GetShiftState [07:29:43]SAM_PROTO_GetShiftState [07:29:43]wFMCommunicate request_size=4 [07:29:43]MH_SAM_APDU [07:29:43]CAPDU: 80 13 01 00 [07:29:43]Write to MH i2c: E2 08 00 A7 10 80 13 01 00 00 00 00 00 34 [07:29:43]Write i2c OK [07:29:43]MH_I2C_Read... [07:29:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:29:43]Read from MH i2c: E2 [07:29:43]MH_I2C_Read... [07:29:43]Read from MH i2c: E2 0E 00 [07:29:43]MH_I2C_Read... [07:29:43]Read from MH i2c: E2 0E 00 A7 10 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 B5 [07:29:43]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [07:29:43]wFMCommunicate OK [07:29:43]SAM_PROTO_GetShiftState done [07:29:43]FM_GetShiftState done [07:29:43]req_shift_opened done [07:29:43]requested_item shift.open_date is exist - process it [07:29:43]req_shift_open_date [07:29:43]req_shift_open_date done [07:29:43]produce_requested_data done [07:29:43]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27113,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [07:29:43]process_action_free close_receipt [07:29:43]json_value_free [07:29:43]json_value_free done [07:29:43]process_json_proto returns [07:29:43]Send response to host [07:29:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27113,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [07:29:43]free response buf [07:29:43]execute_script done [07:29:43]execute_script returns [07:29:43]free content buf [07:29:43]Sock 8.Close socket [07:29:43]Sock 8.Thread stoped [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:26]accept exits with 9 [07:31:26]New connection [07:31:26]New thread 3066928484 created [07:31:26]Thread 3066785124 joined [07:31:26]Waiting for new connection... [07:31:26] Sock 9.Parse request [07:31:26]Sock 9.Check first char [07:31:26]Sock 9.First char is OK [07:31:26]request: POST /json_proto HTTP/1.0 [07:31:26]Method: POST [07:31:26]URL: /json_proto [07:31:26]Method is POST - this is cgi request [07:31:26]url: /json_proto [07:31:26]query_string will be loaded in cgi processing [07:31:26]execute_cgi json_proto POST (null) [07:31:26]execute_cgi path=json_proto method=POST [07:31:26]POST find Content-Length [07:31:26]Host: 172.17.45.8:8080 [07:31:26]Content-Length: 832 [07:31:26]Content-Type: application/json [07:31:26] [07:31:26]POST finish read [07:31:26]Found Content-Length = 832 [07:31:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150511", "tax_sys" : 0, "items" : [ { "code": "4870235681369", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u0421\u042B\u0420 60\u0413", "price" : 95.00, "quantity" : 2.000, "sum" : 190.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" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:31:26]execute_script... [07:31:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150511", "tax_sys" : 0, "items" : [ { "code": "4870235681369", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u0421\u042B\u0420 60\u0413", "price" : 95.00, "quantity" : 2.000, "sum" : 190.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" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:31:26]POST & json_proto [07:31:26]process_json_proto [07:31:26]json parsed OK: [07:31:26]protocol is kg_v1.0 [07:31:26]action value=close_receipt [07:31:26]process_action close_receipt [07:31:26]cmd_close_receipt [07:31:26]MH_GetDate [07:31:26]Write to MH i2c: F0 00 00 A8 10 A7 [07:31:26]Write i2c OK [07:31:26]MH_I2C_Read... [07:31:26]Read from MH i2c: F0 [07:31:26]MH_I2C_Read... [07:31:26]Read from MH i2c: F0 09 00 [07:31:26]MH_I2C_Read... [07:31:26]Read from MH i2c: F0 09 00 A8 10 00 52 45 A7 66 A6 1F 7F 64 FC [07:31:26]GetLastDocTimeStamp 1722238183 [07:31:26]current date 1722238290 [07:31:26]FM_GetShiftState [07:31:26]SAM_PROTO_GetShiftState [07:31:26]wFMCommunicate request_size=4 [07:31:26]MH_SAM_APDU [07:31:26]CAPDU: 80 13 01 00 [07:31:26]Write to MH i2c: E2 08 00 A9 10 80 13 01 00 00 00 00 00 36 [07:31:26]Write i2c OK [07:31:26]MH_I2C_Read... [07:31:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:31:26]Read from MH i2c: E2 [07:31:26]MH_I2C_Read... [07:31:26]Read from MH i2c: E2 0E 00 [07:31:26]MH_I2C_Read... [07:31:26]Read from MH i2c: E2 0E 00 A9 10 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 B7 [07:31:26]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [07:31:26]wFMCommunicate OK [07:31:26]SAM_PROTO_GetShiftState done [07:31:26]FM_GetShiftState done [07:31:26]opened in 1722213509 [07:31:26]opened+sec_in_day 1722299909 [07:31:26]quantity*price = 19000 [07:31:26]sum+1 = 19001 [07:31:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 0.00 Безнал.: 190.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 17 29.07.2024 07:31 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874937 ФД: 27114 ФПД: 94039655722605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T073130&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27114&fm=94039655722605&tin=02508201610067®Number=0000000000092663&sum=19000 0 [07:31:27]StoreToDocumentArchive [07:31:27]shift 434 fd 27114 [07:31:27]save to /storage/0434/doc_00027114 [07:31:27]save last doc name /storage/0434/doc_00027114 to /storage/kkm_last_doc_name [07:31:27]save OK [07:31:27]Clear old archive folders... [07:31:27]ProcessDocumentItem done err = 0, tmpTLVsize=288 [07:31:27]tlvbuf is 00163C80 [07:31:27]SAM_PROTO_ClearQueue [07:31:27]wFMCommunicate request_size=4 [07:31:27]MH_SAM_APDU [07:31:27]CAPDU: 80 09 00 00 [07:31:27]Write to MH i2c: E2 08 00 B6 10 80 09 00 00 00 00 00 00 38 [07:31:27]Write i2c OK [07:31:27]MH_I2C_Read... [07:31:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:31:27]Read from MH i2c: E2 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: E2 03 00 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: E2 03 00 B6 10 00 90 00 3A [07:31:27]RAPDU: 90 00 [07:31:27]wFMCommunicate OK [07:31:27]SAM_PROTO_ClearQueue done [07:31:27]KKMCreateOFDPacket [07:31:27]OFDProtocolAddRootSTLVToBuf [07:31:27]FM_MakeSignedData [07:31:27]FM_MakeSignedData [07:31:27]SAM_PROTO_SignData [07:31:27]wFMCommunicate request_size=4 [07:31:27]MH_SAM_APDU [07:31:27]CAPDU: 80 0D 01 02 [07:31:27]Write to MH i2c: E2 08 00 B7 10 80 0D 01 02 00 00 00 00 40 [07:31:27]Write i2c OK [07:31:27]MH_I2C_Read... [07:31:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:31:27]Read from MH i2c: E2 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: E2 03 00 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: E2 03 00 B7 10 00 90 00 3B [07:31:27]RAPDU: 90 00 [07:31:27]wFMCommunicate OK [07:31:27]wFMCommunicate request_size=255 [07:31:27]MH_SAM_APDU [07:31:27]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 36 39 06 04 2E 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 A1 D0 AB D0 A0 20 36 30 D0 93 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 52 45 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [07:31:27]Write to MH i2c: E2 02 01 B8 10 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 36 39 06 04 2E 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 A1 D0 AB D0 A0 20 36 30 D0 93 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 52 45 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 02 [07:31:27]Write i2c OK [07:31:27]MH_I2C_Read... [07:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:31:27]Read from MH i2c: E2 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: E2 03 00 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: E2 03 00 B8 10 00 90 00 3C [07:31:27]RAPDU: 90 00 [07:31:27]wFMCommunicate OK [07:31:27]wFMCommunicate request_size=47 [07:31:27]MH_SAM_APDU [07:31:27]CAPDU: 80 0D 02 02 2A 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 EA 69 00 00 35 04 06 00 55 87 50 46 2E 6D [07:31:27]Write to MH i2c: E2 32 00 B9 10 80 0D 02 02 2A 00 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 EA 69 00 00 35 04 06 00 55 87 50 46 2E 6D 00 00 6A [07:31:27]Write i2c OK [07:31:27]MH_I2C_Read... [07:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:31:27]Read from MH i2c: E2 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: E2 03 00 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: E2 03 00 B9 10 00 90 00 3D [07:31:27]RAPDU: 90 00 [07:31:27]wFMCommunicate OK [07:31:27]wFMCommunicate request_size=4 [07:31:27]MH_SAM_APDU [07:31:27]CAPDU: 80 0D 03 02 [07:31:27]Write to MH i2c: E2 08 00 BA 10 80 0D 03 02 00 00 00 00 45 [07:31:27]Write i2c OK [07:31:27]MH_I2C_Read... [07:31:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:31:27]Read from MH i2c: E2 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: E2 0B 00 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: E2 0B 00 BA 10 00 2F 1F FA 9F 67 FD 71 C2 90 00 C4 [07:31:27]RAPDU: 2F 1F FA 9F 67 FD 71 C2 90 00 [07:31:27]wFMCommunicate OK [07:31:27]SAM_PROTO_SignData done [07:31:27]FM_MakeSignedData done [07:31:27]CreateOFDProtocolMessage [07:31:27]wFMCommunicate request_size=4 [07:31:27]MH_SAM_APDU [07:31:27]CAPDU: 80 11 00 00 [07:31:27]Write to MH i2c: E2 08 00 BB 10 80 11 00 00 00 00 00 00 45 [07:31:27]Write i2c OK [07:31:27]MH_I2C_Read... [07:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:31:27]Read from MH i2c: E2 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: E2 17 00 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: E2 17 00 BB 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 9E [07:31:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [07:31:27]wFMCommunicate OK [07:31:27]CreateOFDProtocolMessage done [07:31:27]OFDSenderStorePacket 27114 [07:31:27]StoreOFDPacket docnum=27114 [07:31:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 34 01 00 00 79 77 2C 01 1E 0C 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 36 39 06 04 2E 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 A1 D0 AB D0 A0 20 36 30 D0 93 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 52 45 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 EA 69 00 00 35 04 06 00 55 87 50 46 2E 6D 2F 1F FA 9F 67 FD 71 C2 [07:31:27]CheckFolder [07:31:27]dirname=/storage/ofd_packets [07:31:27]CheckFolder done [07:31:27]ProducePacketName [07:31:27]name=ofd_packets/00027114 [07:31:27]NVStorageSaveData ofd_packets/00027114 [07:31:27]File name is /storage/ofd_packets/00027114 [07:31:27]Write 338 bytes [07:31:27]NVStorageSaveData done [07:31:27]OFDSenderStorePacket done [07:31:27]KKMCreateOFDPacket done [07:31:27]NVStorageSaveData kkm_last_timestamp [07:31:27]File name is /storage/kkm_last_timestamp [07:31:27]Write 4 bytes [07:31:27]NVStorageSaveData done [07:31:27]ExternCall_PrintAddStr [07:31:27]wPrintStart [07:31:27]Write to MH i2c: 01 00 00 BC 10 CC [07:31:27]Write i2c OK [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: 01 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: 01 07 00 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: 01 07 00 BC 10 00 00 00 00 00 FF 0F E1 [07:31:27]RasterBufferAndPrint [07:31:27]line Счет N : (3)150511 [07:31:27]line ИНН: 02508201610067 [07:31:27]line Контрольно-Кассовый Чек [07:31:27]line ПРОДАЖА [07:31:27]line Товар: 4870235681369 [07:31:27]line ЧИПСЫ SLANG СО ВКУСОМ СЫР 60Г [07:31:27]line 2.000 * 95.00 [07:31:27]line = 190.00 [07:31:27]line НДС 12% НСП 1% [07:31:27]line > о реализуемом товаре [07:31:27]line ИТОГО: 190.00 [07:31:27]line НСП 1% : 1.68 [07:31:27]line НДС 12% : 20.18 [07:31:27]line Наличными: 0.00 [07:31:27]line Безнал.: 190.00 [07:31:27]line Место: АЗС № 134 "Партнер Нефть" [07:31:27]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:31:27]line СНО: Общий режим [07:31:27]line Чек 17 29.07.2024 07:31 [07:31:27]line Смена: 434 ФФД: 1.0 [07:31:27]line ЗНМ: 0300000043 [07:31:27]line РНМ: 0000000000092663 [07:31:27]line Версия ККМ: 001 [07:31:27]line Платежная система: O! деньги [07:31:27]line ФМ: 0000000000874937 [07:31:27]line ФД: 27114 [07:31:27]line ФПД: 94039655722605 [07:31:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T073130&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27114&fm=94039655722605&tin=02508201610067®Number=0000000000092663&sum=19000 [07:31:28]line 0 [07:31:28]OFD Sender: Processing packet 27114 [packets to send 9, broken 8] [07:31:28]ProducePacketName [07:31:28]name=ofd_packets/00027114 [07:31:28]OFD Sender: To server: pG, [07:31:28]CommunicateWithHost lk.salyk.kg:30040 [07:31:28]ConnectInit lk.salyk.kg [07:31:28]written 0, free lines is 4095 [07:31:28]Connected sock=10 [07:31:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 34 01 00 00 79 77 2C 01 1E 0C 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 36 39 06 04 2E 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 A1 D0 AB D0 A0 20 36 30 D0 93 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 52 45 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 EA 69 00 00 35 04 06 00 55 87 50 46 2E 6D 2F 1F FA 9F 67 FD 71 C2 [07:31:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 E0 0D 47 00 D0 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 EA 69 00 00 F4 03 04 00 A3 EB A6 66 B6 04 01 00 00 46 AF 47 91 11 36 2F 18 [07:31:28]CommunicateWithHost err = 0 [07:31:28]CheckOFDResponse [07:31:28]1017 (14) - 77093643461234 [07:31:28]1041 (16) - 0000000000874937 [07:31:28]1040 (4) - 27114 [07:31:28]1012 (4) - 29.07.2024 01:08 [07:31:28]1206 (1) - 0 [07:31:28]OFD Sender: Remove packet 27114 [07:31:28]ProducePacketName [07:31:28]name=ofd_packets/00027114 [07:31:28]NVStorageDeleteData [07:31:28]Write to MH i2c: 01 00 00 E6 10 F6 [07:31:28]Write i2c OK [07:31:28]MH_I2C_Read... [07:31:28]Read from MH i2c: 01 [07:31:28]MH_I2C_Read... [07:31:28]Read from MH i2c: 01 07 00 [07:31:28]MH_I2C_Read... [07:31:28]Read from MH i2c: 01 07 00 E6 10 00 00 00 00 00 C3 0C CC [07:31:28]RasterBufferAndPrint [07:31:28]line [07:31:28]line [07:31:28]line [07:31:28]line [07:31:28]line [07:31:28]written 0, free lines is 3273 [07:31:28]MH_Cut [07:31:28]Write to MH i2c: D1 01 00 ED 10 01 CF [07:31:28]Write i2c OK [07:31:28]MH_I2C_Read... [07:31:28]Read from MH i2c: D1 [07:31:28]MH_I2C_Read... [07:31:28]Read from MH i2c: D1 01 00 [07:31:28]MH_I2C_Read... [07:31:28]Read from MH i2c: D1 01 00 ED 10 00 CE [07:31:28]Write to MH i2c: 01 00 00 EE 10 FE [07:31:28]Write i2c OK [07:31:28]MH_I2C_Read... [07:31:29]OFD Sender: No OFD packet to send [07:31:29]*** Cut start [07:31:29]*** Partial cut [07:31:29]*** CUTSNS_PIN = 1 [07:31:29]*** CUTSNS_PIN = 0 [07:31:29]*** Brake cut motor [07:31:30]Read from MH i2c: 01 [07:31:30]MH_I2C_Read... [07:31:30]*** Stop cut motor [07:31:30]Read from MH i2c: 01 07 00 [07:31:30]MH_I2C_Read... [07:31:30]*** Cut end [07:31:30]Read from MH i2c: 01 07 00 EE 10 00 00 00 00 00 FF 0F 13 [07:31:30]process_action close_receipt done [07:31:30]requested_data is exist [07:31:30]produce_requested_data [07:31:30]requested_item fm.sn is exist - process it [07:31:30]wFMCommunicate request_size=4 [07:31:30]MH_SAM_APDU [07:31:30]CAPDU: 80 11 00 00 [07:31:30]Write to MH i2c: E2 08 00 EF 10 80 11 00 00 00 00 00 00 79 [07:31:30]Write i2c OK [07:31:30]MH_I2C_Read... [07:31:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:31:30]Read from MH i2c: E2 [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: E2 17 00 [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: E2 17 00 EF 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 D2 [07:31:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [07:31:30]wFMCommunicate OK [07:31:30]requested_item fd.num is exist - process it [07:31:30]SAM_PROTO_GetFieldsCounters [07:31:30]wFMCommunicate request_size=4 [07:31:30]MH_SAM_APDU [07:31:30]CAPDU: 80 13 00 00 [07:31:30]Write to MH i2c: E2 08 00 F0 10 80 13 00 00 00 00 00 00 7C [07:31:30]Write i2c OK [07:31:30]MH_I2C_Read... [07:31:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:31:30]Read from MH i2c: E2 [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: E2 62 00 [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: E2 62 00 F0 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 EA 69 00 00 0E 04 04 00 B2 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 DD [07:31:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 EA 69 00 00 0E 04 04 00 B2 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:31:30]wFMCommunicate OK [07:31:30]SAM_PROTO_GetFieldsCounters done [07:31:30]requested_item shift.num is exist - process it [07:31:30]requested_item shift.opened is exist - process it [07:31:30]req_shift_opened [07:31:30]FM_GetShiftState [07:31:30]SAM_PROTO_GetShiftState [07:31:30]wFMCommunicate request_size=4 [07:31:30]MH_SAM_APDU [07:31:30]CAPDU: 80 13 01 00 [07:31:30]Write to MH i2c: E2 08 00 F1 10 80 13 01 00 00 00 00 00 7E [07:31:30]Write i2c OK [07:31:30]MH_I2C_Read... [07:31:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:31:30]Read from MH i2c: E2 [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: E2 0E 00 [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: E2 0E 00 F1 10 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 FF [07:31:30]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [07:31:30]wFMCommunicate OK [07:31:30]SAM_PROTO_GetShiftState done [07:31:30]FM_GetShiftState done [07:31:30]req_shift_opened done [07:31:30]requested_item shift.open_date is exist - process it [07:31:30]req_shift_open_date [07:31:30]req_shift_open_date done [07:31:30]produce_requested_data done [07:31:30]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27114,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [07:31:30]process_action_free close_receipt [07:31:30]json_value_free [07:31:30]json_value_free done [07:31:30]process_json_proto returns [07:31:30]Send response to host [07:31:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27114,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [07:31:30]free response buf [07:31:30]execute_script done [07:31:30]execute_script returns [07:31:30]free content buf [07:31:30]Sock 9.Close socket [07:31:30]Sock 9.Thread stoped [07:31:34]OFD Sender: No OFD packet to send [07:31:39]OFD Sender: No OFD packet to send [07:31:44]OFD Sender: No OFD packet to send [07:31:49]OFD Sender: No OFD packet to send [07:31:54]OFD Sender: No OFD packet to send [07:31:59]OFD Sender: No OFD packet to send [07:32:04]OFD Sender: No OFD packet to send [07:32:09]OFD Sender: No OFD packet to send [07:32:14]OFD Sender: No OFD packet to send [07:32:19]OFD Sender: No OFD packet to send [07:32:24]OFD Sender: No OFD packet to send [07:32:29]OFD Sender: No OFD packet to send [07:32:34]OFD Sender: No OFD packet to send [07:32:39]OFD Sender: No OFD packet to send [07:32:44]OFD Sender: No OFD packet to send [07:32:49]OFD Sender: No OFD packet to send [07:32:54]OFD Sender: No OFD packet to send [07:32:59]OFD Sender: No OFD packet to send [07:33:04]OFD Sender: No OFD packet to send [07:33:09]OFD Sender: No OFD packet to send [07:33:14]OFD Sender: No OFD packet to send [07:33:19]OFD Sender: No OFD packet to send [07:33:24]OFD Sender: No OFD packet to send [07:33:29]OFD Sender: No OFD packet to send [07:33:34]OFD Sender: No OFD packet to send [07:33:39]OFD Sender: No OFD packet to send [07:33:44]OFD Sender: No OFD packet to send [07:33:49]OFD Sender: No OFD packet to send [07:33:54]OFD Sender: No OFD packet to send [07:33:59]OFD Sender: No OFD packet to send [07:34:04]OFD Sender: No OFD packet to send [07:34:09]OFD Sender: No OFD packet to send [07:34:14]OFD Sender: No OFD packet to send [07:34:19]OFD Sender: No OFD packet to send [07:34:24]OFD Sender: No OFD packet to send [07:34:29]OFD Sender: No OFD packet to send [07:34:34]OFD Sender: No OFD packet to send [07:34:39]OFD Sender: No OFD packet to send [07:34:44]OFD Sender: No OFD packet to send [07:34:49]OFD Sender: No OFD packet to send [07:34:54]OFD Sender: No OFD packet to send [07:34:59]OFD Sender: No OFD packet to send [07:35:04]OFD Sender: No OFD packet to send [07:35:09]OFD Sender: No OFD packet to send [07:35:14]OFD Sender: No OFD packet to send [07:35:19]OFD Sender: No OFD packet to send [07:35:24]OFD Sender: No OFD packet to send [07:35:29]OFD Sender: No OFD packet to send [07:35:34]OFD Sender: No OFD packet to send [07:35:39]OFD Sender: No OFD packet to send [07:35:44]OFD Sender: No OFD packet to send [07:35:49]OFD Sender: No OFD packet to send [07:35:54]OFD Sender: No OFD packet to send [07:35:59]OFD Sender: No OFD packet to send [07:36:04]OFD Sender: No OFD packet to send [07:36:09]OFD Sender: No OFD packet to send [07:36:14]OFD Sender: No OFD packet to send [07:36:19]OFD Sender: No OFD packet to send [07:36:24]OFD Sender: No OFD packet to send [07:36:29]OFD Sender: No OFD packet to send [07:36:34]OFD Sender: No OFD packet to send [07:36:39]OFD Sender: No OFD packet to send [07:36:44]OFD Sender: No OFD packet to send [07:36:49]OFD Sender: No OFD packet to send [07:36:54]OFD Sender: No OFD packet to send [07:36:59]OFD Sender: No OFD packet to send [07:37:04]OFD Sender: No OFD packet to send [07:37:09]OFD Sender: No OFD packet to send [07:37:14]OFD Sender: No OFD packet to send [07:37:19]OFD Sender: No OFD packet to send [07:37:24]OFD Sender: No OFD packet to send [07:37:29]OFD Sender: No OFD packet to send [07:37:34]OFD Sender: No OFD packet to send [07:37:39]OFD Sender: No OFD packet to send [07:37:44]OFD Sender: No OFD packet to send [07:37:49]OFD Sender: No OFD packet to send [07:37:54]OFD Sender: No OFD packet to send [07:37:59]OFD Sender: No OFD packet to send [07:38:04]OFD Sender: No OFD packet to send [07:38:09]OFD Sender: No OFD packet to send [07:38:14]OFD Sender: No OFD packet to send [07:38:19]OFD Sender: No OFD packet to send [07:38:24]OFD Sender: No OFD packet to send [07:38:29]OFD Sender: No OFD packet to send [07:38:34]OFD Sender: No OFD packet to send [07:38:39]OFD Sender: No OFD packet to send [07:38:44]OFD Sender: No OFD packet to send [07:38:49]OFD Sender: No OFD packet to send [07:38:54]OFD Sender: No OFD packet to send [07:38:59]OFD Sender: No OFD packet to send [07:39:04]OFD Sender: No OFD packet to send [07:39:09]OFD Sender: No OFD packet to send [07:39:14]OFD Sender: No OFD packet to send [07:39:19]OFD Sender: No OFD packet to send [07:39:24]OFD Sender: No OFD packet to send [07:39:29]OFD Sender: No OFD packet to send [07:39:34]OFD Sender: No OFD packet to send [07:39:39]OFD Sender: No OFD packet to send [07:39:44]OFD Sender: No OFD packet to send [07:39:49]OFD Sender: No OFD packet to send [07:39:54]OFD Sender: No OFD packet to send [07:39:59]OFD Sender: No OFD packet to send [07:40:04]OFD Sender: No OFD packet to send [07:40:09]OFD Sender: No OFD packet to send [07:40:14]OFD Sender: No OFD packet to send [07:40:19]OFD Sender: No OFD packet to send [07:40:24]OFD Sender: No OFD packet to send [07:40:29]OFD Sender: No OFD packet to send [07:40:34]OFD Sender: No OFD packet to send [07:40:39]OFD Sender: No OFD packet to send [07:40:44]OFD Sender: No OFD packet to send [07:40:49]OFD Sender: No OFD packet to send [07:40:54]OFD Sender: No OFD packet to send [07:40:59]OFD Sender: No OFD packet to send [07:41:04]OFD Sender: No OFD packet to send [07:41:09]OFD Sender: No OFD packet to send [07:41:14]OFD Sender: No OFD packet to send [07:41:19]OFD Sender: No OFD packet to send [07:41:24]OFD Sender: No OFD packet to send [07:41:29]OFD Sender: No OFD packet to send [07:41:34]OFD Sender: No OFD packet to send [07:41:39]OFD Sender: No OFD packet to send [07:41:44]OFD Sender: No OFD packet to send [07:41:49]OFD Sender: No OFD packet to send [07:41:54]OFD Sender: No OFD packet to send [07:41:59]OFD Sender: No OFD packet to send [07:42:04]OFD Sender: No OFD packet to send [07:42:09]OFD Sender: No OFD packet to send [07:42:14]OFD Sender: No OFD packet to send [07:42:19]OFD Sender: No OFD packet to send [07:42:24]OFD Sender: No OFD packet to send [07:42:29]OFD Sender: No OFD packet to send [07:42:34]OFD Sender: No OFD packet to send [07:42:39]OFD Sender: No OFD packet to send [07:42:44]OFD Sender: No OFD packet to send [07:42:49]OFD Sender: No OFD packet to send [07:42:54]OFD Sender: No OFD packet to send [07:42:59]OFD Sender: No OFD packet to send [07:43:04]OFD Sender: No OFD packet to send [07:43:09]OFD Sender: No OFD packet to send [07:43:14]OFD Sender: No OFD packet to send [07:43:19]OFD Sender: No OFD packet to send [07:43:24]OFD Sender: No OFD packet to send [07:43:29]OFD Sender: No OFD packet to send [07:43:34]OFD Sender: No OFD packet to send [07:43:39]OFD Sender: No OFD packet to send [07:43:44]OFD Sender: No OFD packet to send [07:43:49]OFD Sender: No OFD packet to send [07:43:54]OFD Sender: No OFD packet to send [07:43:59]OFD Sender: No OFD packet to send [07:44:04]OFD Sender: No OFD packet to send [07:44:09]OFD Sender: No OFD packet to send [07:44:14]OFD Sender: No OFD packet to send [07:44:19]OFD Sender: No OFD packet to send [07:44:24]OFD Sender: No OFD packet to send [07:44:29]OFD Sender: No OFD packet to send [07:44:34]OFD Sender: No OFD packet to send [07:44:39]OFD Sender: No OFD packet to send [07:44:44]OFD Sender: No OFD packet to send [07:44:49]OFD Sender: No OFD packet to send [07:44:54]OFD Sender: No OFD packet to send [07:44:59]OFD Sender: No OFD packet to send [07:45:04]OFD Sender: No OFD packet to send [07:45:09]OFD Sender: No OFD packet to send [07:45:14]OFD Sender: No OFD packet to send [07:45:19]OFD Sender: No OFD packet to send [07:45:24]OFD Sender: No OFD packet to send [07:45:29]OFD Sender: No OFD packet to send [07:45:34]OFD Sender: No OFD packet to send [07:45:39]OFD Sender: No OFD packet to send [07:45:44]OFD Sender: No OFD packet to send [07:45:49]OFD Sender: No OFD packet to send [07:45:54]OFD Sender: No OFD packet to send [07:45:59]OFD Sender: No OFD packet to send [07:46:04]OFD Sender: No OFD packet to send [07:46:09]OFD Sender: No OFD packet to send [07:46:14]OFD Sender: No OFD packet to send [07:46:19]OFD Sender: No OFD packet to send [07:46:24]OFD Sender: No OFD packet to send [07:46:29]OFD Sender: No OFD packet to send [07:46:34]OFD Sender: No OFD packet to send [07:46:39]OFD Sender: No OFD packet to send [07:46:44]OFD Sender: No OFD packet to send [07:46:49]OFD Sender: No OFD packet to send [07:46:54]OFD Sender: No OFD packet to send [07:46:59]OFD Sender: No OFD packet to send [07:47:04]OFD Sender: No OFD packet to send [07:47:09]OFD Sender: No OFD packet to send [07:47:14]OFD Sender: No OFD packet to send [07:47:19]OFD Sender: No OFD packet to send [07:47:24]OFD Sender: No OFD packet to send [07:47:29]OFD Sender: No OFD packet to send [07:47:34]OFD Sender: No OFD packet to send [07:47:39]OFD Sender: No OFD packet to send [07:47:44]OFD Sender: No OFD packet to send [07:47:49]OFD Sender: No OFD packet to send [07:47:54]OFD Sender: No OFD packet to send [07:47:59]OFD Sender: No OFD packet to send [07:48:04]OFD Sender: No OFD packet to send [07:48:09]OFD Sender: No OFD packet to send [07:48:14]OFD Sender: No OFD packet to send [07:48:19]OFD Sender: No OFD packet to send [07:48:24]OFD Sender: No OFD packet to send [07:48:29]OFD Sender: No OFD packet to send [07:48:34]OFD Sender: No OFD packet to send [07:48:39]OFD Sender: No OFD packet to send [07:48:44]OFD Sender: No OFD packet to send [07:48:49]OFD Sender: No OFD packet to send [07:48:54]OFD Sender: No OFD packet to send [07:48:59]OFD Sender: No OFD packet to send [07:49:04]OFD Sender: No OFD packet to send [07:49:09]OFD Sender: No OFD packet to send [07:49:14]OFD Sender: No OFD packet to send [07:49:19]OFD Sender: No OFD packet to send [07:49:24]OFD Sender: No OFD packet to send [07:49:29]OFD Sender: No OFD packet to send [07:49:34]OFD Sender: No OFD packet to send [07:49:39]OFD Sender: No OFD packet to send [07:49:44]OFD Sender: No OFD packet to send [07:49:49]OFD Sender: No OFD packet to send [07:49:54]OFD Sender: No OFD packet to send [07:49:59]OFD Sender: No OFD packet to send [07:50:04]OFD Sender: No OFD packet to send [07:50:09]OFD Sender: No OFD packet to send [07:50:14]OFD Sender: No OFD packet to send [07:50:19]OFD Sender: No OFD packet to send [07:50:24]OFD Sender: No OFD packet to send [07:50:29]OFD Sender: No OFD packet to send [07:50:34]OFD Sender: No OFD packet to send [07:50:39]OFD Sender: No OFD packet to send [07:50:44]OFD Sender: No OFD packet to send [07:50:49]OFD Sender: No OFD packet to send [07:50:54]OFD Sender: No OFD packet to send [07:50:59]OFD Sender: No OFD packet to send [07:51:04]OFD Sender: No OFD packet to send [07:51:09]OFD Sender: No OFD packet to send [07:51:14]OFD Sender: No OFD packet to send [07:51:19]OFD Sender: No OFD packet to send [07:51:24]OFD Sender: No OFD packet to send [07:51:29]OFD Sender: No OFD packet to send [07:51:34]OFD Sender: No OFD packet to send [07:51:39]OFD Sender: No OFD packet to send [07:51:44]OFD Sender: No OFD packet to send [07:51:49]OFD Sender: No OFD packet to send [07:51:54]OFD Sender: No OFD packet to send [07:51:59]OFD Sender: No OFD packet to send [07:52:04]OFD Sender: No OFD packet to send [07:52:09]OFD Sender: No OFD packet to send [07:52:14]OFD Sender: No OFD packet to send [07:52:19]OFD Sender: No OFD packet to send [07:52: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]OFD Sender: No OFD packet to send [07:54:45]OFD Sender: No OFD packet to send [07:54:50]OFD Sender: No OFD packet to send [07:54:55]OFD Sender: No OFD packet to send [07:55:00]OFD Sender: No OFD packet to send [07:55:05]OFD Sender: No OFD packet to send [07:55:10]OFD Sender: No OFD packet to send [07:55:15]OFD Sender: No OFD packet to send [07:55:20]OFD Sender: No OFD packet to send [07:55:25]OFD Sender: No OFD packet to send [07:55:30]OFD Sender: No OFD packet to send [07:55:35]OFD Sender: No OFD packet to send [07:55:40]OFD Sender: No OFD packet to send [07:55:45]OFD Sender: No OFD packet to send [07:55:50]OFD Sender: No OFD packet to send [07:55:55]OFD Sender: No OFD packet to send [07:56:00]OFD Sender: No OFD packet to send [07:56:05]OFD Sender: No OFD packet to send [07:56:10]OFD Sender: No OFD packet to send [07:56:15]OFD Sender: No OFD packet to send [07:56:20]OFD Sender: No OFD packet to send [07:56:25]OFD Sender: No OFD packet to send [07:56:30]OFD Sender: No OFD packet to send [07:56:35]OFD Sender: No OFD packet to send [07:56:40]OFD Sender: No OFD packet to send [07:56:45]OFD Sender: No OFD packet to send [07:56:50]OFD Sender: No OFD packet to send [07:56:55]OFD Sender: No OFD packet to send [07:57:00]OFD Sender: No OFD packet to send [07:57:05]OFD Sender: No OFD packet to send [07:57:10]OFD Sender: No OFD packet to send [07:57:15]OFD Sender: No OFD packet to send [07:57:20]OFD Sender: No OFD packet to send [07:57:25]OFD Sender: No OFD packet to send [07:57:30]OFD Sender: No OFD packet to send [07:57:35]OFD Sender: No OFD packet to send [07:57:40]OFD Sender: No OFD packet to send [07:57:45]OFD Sender: No OFD packet to send [07:57:50]OFD Sender: No OFD packet to send [07:57:55]OFD Sender: No OFD packet to send [07:58:00]OFD Sender: No OFD packet to send [07:58:05]OFD Sender: No OFD packet to send [07:58:10]OFD Sender: No OFD packet to send [07:58:15]OFD Sender: No OFD packet to send [07:58:17]accept exits with 8 [07:58:17]New connection [07:58:17]New thread 3066785124 created [07:58:17]Thread 3066928484 joined [07:58:17]Waiting for new connection... [07:58:17] Sock 8.Parse request [07:58:17]Sock 8.Check first char [07:58:17]Sock 8.First char is OK [07:58:17]request: POST /json_proto HTTP/1.0 [07:58:17]Method: POST [07:58:17]URL: /json_proto [07:58:17]Method is POST - this is cgi request [07:58:17]url: /json_proto [07:58:17]query_string will be loaded in cgi processing [07:58:17]execute_cgi json_proto POST (null) [07:58:17]execute_cgi path=json_proto method=POST [07:58:17]POST find Content-Length [07:58:17]Host: 172.17.45.8:8080 [07:58:17]Content-Length: 630 [07:58:17]Content-Type: application/json [07:58:17] [07:58:17]POST finish read [07:58:17]Found Content-Length = 630 [07:58:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150512", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\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" ] } } [07:58:17]execute_script... [07:58: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)150512", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\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" ] } } [07:58:17]POST & json_proto [07:58:17]process_json_proto [07:58:17]json parsed OK: [07:58:17]protocol is kg_v1.0 [07:58:17]action value=close_receipt [07:58:17]process_action close_receipt [07:58:17]cmd_close_receipt [07:58:17]MH_GetDate [07:58:17]Write to MH i2c: F0 00 00 F2 10 F1 [07:58:17]Write i2c OK [07:58:17]MH_I2C_Read... [07:58:17]Read from MH i2c: F0 [07:58:17]MH_I2C_Read... [07:58:17]Read from MH i2c: F0 09 00 [07:58:17]MH_I2C_Read... [07:58:17]Read from MH i2c: F0 09 00 F2 10 00 9D 4B A7 66 A6 1F 7F 64 97 [07:58:17]GetLastDocTimeStamp 1722238290 [07:58:17]current date 1722239901 [07:58:17]FM_GetShiftState [07:58:17]SAM_PROTO_GetShiftState [07:58:17]wFMCommunicate request_size=4 [07:58:17]MH_SAM_APDU [07:58:17]CAPDU: 80 13 01 00 [07:58:17]Write to MH i2c: E2 08 00 F3 10 80 13 01 00 00 00 00 00 80 [07:58:17]Write i2c OK [07:58:17]MH_I2C_Read... [07:58:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:17]Read from MH i2c: E2 [07:58:17]MH_I2C_Read... [07:58:17]Read from MH i2c: E2 0E 00 [07:58:17]MH_I2C_Read... [07:58:17]Read from MH i2c: E2 0E 00 F3 10 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 01 [07:58:17]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [07:58:17]wFMCommunicate OK [07:58:17]SAM_PROTO_GetShiftState done [07:58:17]FM_GetShiftState done [07:58:17]opened in 1722213509 [07:58:17]opened+sec_in_day 1722299909 [07:58:17]quantity*price = 5000 [07:58:17]sum+1 = 5001 [07:58:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 18 29.07.2024 07:58 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27115 ФПД: 98276567433338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T075821&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27115&fm=98276567433338&tin=02508201610067®Number=0000000000092663&sum=5000 0 [07:58:18]StoreToDocumentArchive [07:58:18]shift 434 fd 27115 [07:58:18]save to /storage/0434/doc_00027115 [07:58:18]save last doc name /storage/0434/doc_00027115 to /storage/kkm_last_doc_name [07:58:18]save OK [07:58:18]Clear old archive folders... [07:58:18]ProcessDocumentItem done err = 0, tmpTLVsize=269 [07:58:18]tlvbuf is 001B6590 [07:58:18]SAM_PROTO_ClearQueue [07:58:18]wFMCommunicate request_size=4 [07:58:18]MH_SAM_APDU [07:58:18]CAPDU: 80 09 00 00 [07:58:18]Write to MH i2c: E2 08 00 00 11 80 09 00 00 00 00 00 00 83 [07:58:18]Write i2c OK [07:58:18]MH_I2C_Read... [07:58:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:58:18]Read from MH i2c: E2 [07:58:18]MH_I2C_Read... [07:58:18]Read from MH i2c: E2 03 00 [07:58:18]MH_I2C_Read... [07:58:18]Read from MH i2c: E2 03 00 00 11 00 90 00 85 [07:58:18]RAPDU: 90 00 [07:58:18]wFMCommunicate OK [07:58:18]SAM_PROTO_ClearQueue done [07:58:18]KKMCreateOFDPacket [07:58:18]OFDProtocolAddRootSTLVToBuf [07:58:18]FM_MakeSignedData [07:58:18]FM_MakeSignedData [07:58:18]SAM_PROTO_SignData [07:58:18]wFMCommunicate request_size=4 [07:58:18]MH_SAM_APDU [07:58:18]CAPDU: 80 0D 01 02 [07:58:18]Write to MH i2c: E2 08 00 01 11 80 0D 01 02 00 00 00 00 8B [07:58:18]Write i2c OK [07:58:18]MH_I2C_Read... [07:58:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:58:18]Read from MH i2c: E2 [07:58:18]MH_I2C_Read... [07:58:18]Read from MH i2c: E2 03 00 [07:58:18]MH_I2C_Read... [07:58:18]Read from MH i2c: E2 03 00 01 11 00 90 00 86 [07:58:18]RAPDU: 90 00 [07:58:18]wFMCommunicate OK [07:58:18]wFMCommunicate request_size=255 [07:58:18]MH_SAM_APDU [07:58:18]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 12 00 00 00 F4 03 04 00 9D 4B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [07:58:18]Write to MH i2c: E2 02 01 02 11 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 12 00 00 00 F4 03 04 00 9D 4B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 5D [07:58:18]Write i2c OK [07:58:18]MH_I2C_Read... [07:58:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:18]Read from MH i2c: E2 [07:58:18]MH_I2C_Read... [07:58:18]Read from MH i2c: E2 03 00 [07:58:18]MH_I2C_Read... [07:58:18]Read from MH i2c: E2 03 00 02 11 00 90 00 87 [07:58:18]RAPDU: 90 00 [07:58:18]wFMCommunicate OK [07:58:18]wFMCommunicate request_size=28 [07:58:18]MH_SAM_APDU [07:58:18]CAPDU: 80 0D 02 02 17 37 34 39 33 37 10 04 04 00 EB 69 00 00 35 04 06 00 59 61 CB E4 40 7A [07:58:18]Write to MH i2c: E2 1F 00 03 11 80 0D 02 02 17 00 37 34 39 33 37 10 04 04 00 EB 69 00 00 35 04 06 00 59 61 CB E4 40 7A 00 00 98 [07:58:18]Write i2c OK [07:58:18]MH_I2C_Read... [07:58:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:18]Read from MH i2c: E2 [07:58:18]MH_I2C_Read... [07:58:18]Read from MH i2c: E2 03 00 [07:58:18]MH_I2C_Read... [07:58:18]Read from MH i2c: E2 03 00 03 11 00 90 00 88 [07:58:18]RAPDU: 90 00 [07:58:18]wFMCommunicate OK [07:58:18]wFMCommunicate request_size=4 [07:58:18]MH_SAM_APDU [07:58:18]CAPDU: 80 0D 03 02 [07:58:18]Write to MH i2c: E2 08 00 04 11 80 0D 03 02 00 00 00 00 90 [07:58:18]Write i2c OK [07:58:18]MH_I2C_Read... [07:58:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:58:18]Read from MH i2c: E2 [07:58:18]MH_I2C_Read... [07:58:18]Read from MH i2c: E2 0B 00 [07:58:18]MH_I2C_Read... [07:58:18]Read from MH i2c: E2 0B 00 04 11 00 BB 38 CC C3 B0 3F 3F D3 90 00 14 [07:58:18]RAPDU: BB 38 CC C3 B0 3F 3F D3 90 00 [07:58:18]wFMCommunicate OK [07:58:18]SAM_PROTO_SignData done [07:58:18]FM_MakeSignedData done [07:58:18]CreateOFDProtocolMessage [07:58:18]wFMCommunicate request_size=4 [07:58:18]MH_SAM_APDU [07:58:18]CAPDU: 80 11 00 00 [07:58:18]Write to MH i2c: E2 08 00 05 11 80 11 00 00 00 00 00 00 90 [07:58:18]Write i2c OK [07:58:18]MH_I2C_Read... [07:58:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:18]Read from MH i2c: E2 [07:58:18]MH_I2C_Read... [07:58:18]Read from MH i2c: E2 17 00 [07:58:18]MH_I2C_Read... [07:58:18]Read from MH i2c: E2 17 00 05 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 E9 [07:58:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [07:58:18]wFMCommunicate OK [07:58:18]CreateOFDProtocolMessage done [07:58:18]OFDSenderStorePacket 27115 [07:58:18]StoreOFDPacket docnum=27115 [07:58:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 21 01 00 00 D6 8C 19 01 92 B2 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 12 00 00 00 F4 03 04 00 9D 4B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 EB 69 00 00 35 04 06 00 59 61 CB E4 40 7A BB 38 CC C3 B0 3F 3F D3 [07:58:18]CheckFolder [07:58:18]dirname=/storage/ofd_packets [07:58:18]CheckFolder done [07:58:18]ProducePacketName [07:58:18]name=ofd_packets/00027115 [07:58:18]NVStorageSaveData ofd_packets/00027115 [07:58:18]File name is /storage/ofd_packets/00027115 [07:58:18]Write 319 bytes [07:58:18]NVStorageSaveData done [07:58:18]OFDSenderStorePacket done [07:58:18]KKMCreateOFDPacket done [07:58:18]NVStorageSaveData kkm_last_timestamp [07:58:18]File name is /storage/kkm_last_timestamp [07:58:18]Write 4 bytes [07:58:18]NVStorageSaveData done [07:58:18]ExternCall_PrintAddStr [07:58:18]wPrintStart [07:58:18]Write to MH i2c: 01 00 00 06 11 17 [07:58:18]Write i2c OK [07:58:18]MH_I2C_Read... [07:58:18]Read from MH i2c: 01 [07:58:18]MH_I2C_Read... [07:58:18]Read from MH i2c: 01 07 00 [07:58:18]MH_I2C_Read... [07:58:18]Read from MH i2c: 01 07 00 06 11 00 00 00 00 00 FF 0F 2C [07:58:18]RasterBufferAndPrint [07:58:18]line Счет N : (3)150512 [07:58:18]line ИНН: 02508201610067 [07:58:18]line Контрольно-Кассовый Чек [07:58:18]line ПРОДАЖА [07:58:18]line Товар: 4700000160358 [07:58:18]line Вода Легенда 1л [07:58:18]line 1.000 * 50.00 [07:58:18]line = 50.00 [07:58:18]line НДС 12% НСП 1% [07:58:18]line > о реализуемом товаре [07:58:18]line ИТОГО: 50.00 [07:58:18]line НСП 1% : 0.44 [07:58:18]line НДС 12% : 5.31 [07:58:18]line Наличными: 50.00 [07:58:18]line Безнал.: 0.00 [07:58:18]line Место: АЗС № 134 "Партнер Нефть" [07:58:18]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [07:58:18]line СНО: Общий режим [07:58:18]line Чек 18 29.07.2024 07:58 [07:58:18]line Смена: 434 ФФД: 1.0 [07:58:18]line ЗНМ: 0300000043 [07:58:18]line РНМ: 0000000000092663 [07:58:18]line Версия ККМ: 001 [07:58:18]line ФМ: 0000000000874937 [07:58:18]line ФД: 27115 [07:58:18]line ФПД: 98276567433338 [07:58:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T075821&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27115&fm=98276567433338&tin=02508201610067®Number=0000000000092663&sum=5000 [07:58:19]OFD Sender: Processing packet 27115 [packets to send 9, broken 8] [07:58:19]ProducePacketName [07:58:19]name=ofd_packets/00027115 [07:58:19]OFD Sender: To server: pG, [07:58:19]CommunicateWithHost lk.salyk.kg:30040 [07:58:19]ConnectInit lk.salyk.kg [07:58:19]line 0 [07:58:19]written 0, free lines is 4095 [07:58:19]Connected sock=10 [07:58:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 21 01 00 00 D6 8C 19 01 92 B2 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 12 00 00 00 F4 03 04 00 9D 4B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 EB 69 00 00 35 04 06 00 59 61 CB E4 40 7A BB 38 CC C3 B0 3F 3F D3 [07:58:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 AF 9F 47 00 71 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 34 39 33 37 10 04 04 00 EB 69 00 00 F4 03 04 00 EF F1 A6 66 B6 04 01 00 00 D6 BC 00 D2 67 F6 0D 2C [07:58:19]CommunicateWithHost err = 0 [07:58:19]CheckOFDResponse [07:58:19]1017 (14) - 77093643461234 [07:58:19]1041 (16) - 0000000000874937 [07:58:19]1040 (4) - 27115 [07:58:19]1012 (4) - 29.07.2024 01:35 [07:58:19]1206 (1) - 0 [07:58:19]OFD Sender: Remove packet 27115 [07:58:19]ProducePacketName [07:58:19]name=ofd_packets/00027115 [07:58:19]NVStorageDeleteData [07:58:19]Write to MH i2c: 01 00 00 2D 11 3E [07:58:19]Write i2c OK [07:58:19]MH_I2C_Read... [07:58:19]Read from MH i2c: 01 [07:58:19]MH_I2C_Read... [07:58:19]Read from MH i2c: 01 07 00 [07:58:19]MH_I2C_Read... [07:58:19]Read from MH i2c: 01 07 00 2D 11 00 00 00 00 00 05 0D 57 [07:58:19]RasterBufferAndPrint [07:58:19]line [07:58:19]line [07:58:19]line [07:58:19]line [07:58:19]line [07:58:19]written 0, free lines is 3340 [07:58:19]MH_Cut [07:58:19]Write to MH i2c: D1 01 00 34 11 01 17 [07:58:19]Write i2c OK [07:58:19]MH_I2C_Read... [07:58:19]Read from MH i2c: D1 [07:58:19]MH_I2C_Read... [07:58:19]Read from MH i2c: D1 01 00 [07:58:19]MH_I2C_Read... [07:58:19]Read from MH i2c: D1 01 00 34 11 00 16 [07:58:19]Write to MH i2c: 01 00 00 35 11 46 [07:58:19]Write i2c OK [07:58:19]MH_I2C_Read... [07:58:20]OFD Sender: No OFD packet to send [07:58:20]*** Cut start [07:58:20]*** Partial cut [07:58:20]*** CUTSNS_PIN = 1 [07:58:20]*** CUTSNS_PIN = 0 [07:58:20]*** Brake cut motor [07:58:20]Read from MH i2c: 01 [07:58:20]MH_I2C_Read... [07:58:20]*** Stop cut motor [07:58:20]*** Cut end [07:58:20]Read from MH i2c: 01 07 00 [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: 01 07 00 35 11 00 00 00 00 00 FF 0F 5B [07:58:20]process_action close_receipt done [07:58:20]requested_data is exist [07:58:20]produce_requested_data [07:58:20]requested_item fm.sn is exist - process it [07:58:20]wFMCommunicate request_size=4 [07:58:20]MH_SAM_APDU [07:58:20]CAPDU: 80 11 00 00 [07:58:20]Write to MH i2c: E2 08 00 36 11 80 11 00 00 00 00 00 00 C1 [07:58:20]Write i2c OK [07:58:20]MH_I2C_Read... [07:58:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:20]Read from MH i2c: E2 [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: E2 17 00 [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: E2 17 00 36 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 1A [07:58:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [07:58:20]wFMCommunicate OK [07:58:20]requested_item fd.num is exist - process it [07:58:20]SAM_PROTO_GetFieldsCounters [07:58:20]wFMCommunicate request_size=4 [07:58:20]MH_SAM_APDU [07:58:20]CAPDU: 80 13 00 00 [07:58:20]Write to MH i2c: E2 08 00 37 11 80 13 00 00 00 00 00 00 C4 [07:58:20]Write i2c OK [07:58:20]MH_I2C_Read... [07:58:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:58:21]Read from MH i2c: E2 [07:58:21]MH_I2C_Read... [07:58:21]Read from MH i2c: E2 62 00 [07:58:21]MH_I2C_Read... [07:58:21]Read from MH i2c: E2 62 00 37 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 EB 69 00 00 0E 04 04 00 B2 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 29 [07:58:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 EB 69 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:58:21]wFMCommunicate OK [07:58:21]SAM_PROTO_GetFieldsCounters done [07:58:21]requested_item shift.num is exist - process it [07:58:21]requested_item shift.opened is exist - process it [07:58:21]req_shift_opened [07:58:21]FM_GetShiftState [07:58:21]SAM_PROTO_GetShiftState [07:58:21]wFMCommunicate request_size=4 [07:58:21]MH_SAM_APDU [07:58:21]CAPDU: 80 13 01 00 [07:58:21]Write to MH i2c: E2 08 00 38 11 80 13 01 00 00 00 00 00 C6 [07:58:21]Write i2c OK [07:58:21]MH_I2C_Read... [07:58:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:21]Read from MH i2c: E2 [07:58:21]MH_I2C_Read... [07:58:21]Read from MH i2c: E2 0E 00 [07:58:21]MH_I2C_Read... [07:58:21]Read from MH i2c: E2 0E 00 38 11 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 47 [07:58:21]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [07:58:21]wFMCommunicate OK [07:58:21]SAM_PROTO_GetShiftState done [07:58:21]FM_GetShiftState done [07:58:21]req_shift_opened done [07:58:21]requested_item shift.open_date is exist - process it [07:58:21]req_shift_open_date [07:58:21]req_shift_open_date done [07:58:21]produce_requested_data done [07:58:21]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27115,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [07:58:21]process_action_free close_receipt [07:58:21]json_value_free [07:58:21]json_value_free done [07:58:21]process_json_proto returns [07:58:21]Send response to host [07:58:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27115,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [07:58:21]free response buf [07:58:21]execute_script done [07:58:21]execute_script returns [07:58:21]free content buf [07:58:21]Sock 8.Close socket [07:58:21]Sock 8.Thread stoped [07:58:25]OFD Sender: No OFD packet to send [07:58:30]OFD Sender: No OFD packet to send [07:58:35]OFD Sender: No OFD packet to send [07:58:40]OFD Sender: No OFD packet to send [07:58:45]OFD Sender: No OFD packet to send [07:58:50]OFD Sender: No OFD packet to send [07:58:55]OFD Sender: No OFD packet to send [07:59:00]OFD Sender: No OFD packet to send [07:59:05]OFD Sender: No OFD packet to send [07:59:10]OFD Sender: No OFD packet to send [07:59:15]OFD Sender: No OFD packet to send [07:59:20]OFD Sender: No OFD packet to send [07:59:25]OFD Sender: No OFD packet to send [07:59:30]OFD Sender: No OFD packet to send [07:59:35]OFD Sender: No OFD packet to send [07:59:40]OFD Sender: No OFD packet to send [07:59:45]OFD Sender: No OFD packet to send [07:59:50]OFD Sender: No OFD packet to send [07:59:55]OFD Sender: No OFD packet to send [08:00:00]OFD Sender: No OFD packet to send [08:00:05]OFD Sender: No OFD packet to send [08:00:10]OFD Sender: No OFD packet to send [08:00:15]OFD Sender: No OFD packet to send [08:00:20]OFD Sender: No OFD packet to send [08:00:25]OFD Sender: No OFD packet to send [08:00:30]OFD Sender: No OFD packet to send [08:00:35]OFD Sender: No OFD packet to send [08:00:40]OFD Sender: No OFD packet to send [08:00:45]OFD Sender: No OFD packet to send [08:00:50]OFD Sender: No OFD packet to send [08:00:55]OFD Sender: No OFD packet to send [08:01:00]OFD Sender: No OFD packet to send [08:01:05]OFD Sender: No OFD packet to send [08:01:10]OFD Sender: No OFD packet to send [08:01:15]OFD Sender: No OFD packet to send [08:01:20]OFD Sender: No OFD packet to send [08:01:25]OFD Sender: No OFD packet to send [08:01:30]OFD Sender: No OFD packet to send [08:01:35]OFD Sender: No OFD packet to send [08:01:40]OFD Sender: No OFD packet to send [08:01:45]OFD Sender: No OFD packet to send [08:01:50]OFD Sender: No OFD packet to send [08:01:55]OFD Sender: No OFD packet to send [08:02:00]OFD Sender: No OFD packet to send [08:02:05]OFD Sender: No OFD packet to send [08:02:10]OFD Sender: No OFD packet to send [08:02:15]OFD Sender: No OFD packet to send [08:02:20]OFD Sender: No OFD packet to send [08:02:25]OFD Sender: No OFD packet to send [08:02:30]OFD Sender: No OFD packet to send [08:02:35]OFD Sender: No OFD packet to send [08:02:40]OFD Sender: No OFD packet to send [08:02:45]OFD Sender: No OFD packet to send [08:02:50]OFD Sender: No OFD packet to send [08:02:55]OFD Sender: No OFD packet to send [08:03:00]OFD Sender: No OFD packet to send [08:03:05]OFD Sender: No OFD packet to send [08:03:10]OFD Sender: No OFD packet to send [08:03:15]OFD Sender: No OFD packet to send [08:03:20]OFD Sender: No OFD packet to send [08:03:25]OFD Sender: No OFD packet to send [08:03:30]OFD Sender: No OFD packet to send [08:03:35]OFD Sender: No OFD packet to send [08:03:40]OFD Sender: No OFD packet to send [08:03:45]OFD Sender: No OFD packet to send [08:03:50]OFD Sender: No OFD packet to send [08:03:55]OFD Sender: No OFD packet to send [08:04:00]OFD Sender: No OFD packet to send [08:04:05]OFD Sender: No OFD packet to send [08:04:10]OFD Sender: No OFD packet to send [08:04:15]OFD Sender: No OFD packet to send [08:04:20]OFD Sender: No OFD packet to send [08:04:25]OFD Sender: No OFD packet to send [08:04:30]OFD Sender: No OFD packet to send [08:04:35]OFD Sender: No OFD packet to send [08:04:40]OFD Sender: No OFD packet to send [08:04:45]OFD Sender: No OFD packet to send [08:04:50]OFD Sender: No OFD packet to send [08:04:55]OFD Sender: No OFD packet to send [08:05:00]OFD Sender: No OFD packet to send [08:05:05]OFD Sender: No OFD packet to send [08:05:10]OFD Sender: No OFD packet to send [08:05:15]OFD Sender: No OFD packet to send [08:05:20]OFD Sender: No OFD packet to send [08:05:25]OFD Sender: No OFD packet to send [08:05:30]OFD Sender: No OFD packet to send [08:05:35]OFD Sender: No OFD packet to send [08:05:40]OFD Sender: No OFD packet to send [08:05:45]OFD Sender: No OFD packet to send [08:05:50]OFD Sender: No OFD packet to send [08:05:55]OFD Sender: No OFD packet to send [08:06:00]OFD Sender: No OFD packet to send [08:06:05]OFD Sender: No OFD packet to send [08:06:10]OFD Sender: No OFD packet to send [08:06:15]OFD Sender: No OFD packet to send [08:06:20]OFD Sender: No OFD packet to send [08:06:25]OFD Sender: No OFD packet to send [08:06:30]OFD Sender: No OFD packet to send [08:06:35]OFD Sender: No OFD packet to send [08:06:40]OFD Sender: No OFD packet to send [08:06:45]OFD Sender: No OFD packet to send [08:06:50]OFD Sender: No OFD packet to send [08:06:55]OFD Sender: No OFD packet to send [08:07:00]OFD Sender: No OFD packet to send [08:07:05]OFD Sender: No OFD packet to send [08:07:10]OFD Sender: No OFD packet to send [08:07:15]OFD Sender: No OFD packet to send [08:07:20]OFD Sender: No OFD packet to send [08:07:25]OFD Sender: No OFD packet to send [08:07:30]OFD Sender: No OFD packet to send [08:07:35]OFD Sender: No OFD packet to send [08:07:40]OFD Sender: No OFD packet to send [08:07:45]OFD Sender: No OFD packet to send [08:07:50]OFD Sender: No OFD packet to send [08:07:55]OFD Sender: No OFD packet to send [08:08:00]OFD Sender: No OFD packet to send [08:08:05]OFD Sender: No OFD packet to send [08:08:10]OFD Sender: No OFD packet to send [08:08:15]OFD Sender: No OFD packet to send [08:08:20]OFD Sender: No OFD packet to send [08:08:25]OFD Sender: No OFD packet to send [08:08:30]OFD Sender: No OFD packet to send [08:08:35]OFD Sender: No OFD packet to send [08:08:40]OFD Sender: No OFD packet to send [08:08:45]OFD Sender: No OFD packet to send [08:08:50]OFD Sender: No OFD packet to send [08:08:55]OFD Sender: No OFD packet to send [08:09:00]OFD Sender: No OFD packet to send [08:09:05]OFD Sender: No OFD packet to send [08:09:10]OFD Sender: No OFD packet to send [08:09:15]OFD Sender: No OFD packet to send [08:09:20]OFD Sender: No OFD packet to send [08:09:25]OFD Sender: No OFD packet to send [08:09:30]OFD Sender: No OFD packet to send [08:09:35]OFD Sender: No OFD packet to send [08:09:40]OFD Sender: No OFD packet to send [08:09:45]OFD Sender: No OFD packet to send [08:09:50]OFD Sender: No OFD packet to send [08:09:55]OFD Sender: No OFD packet to send [08:10:00]OFD Sender: No OFD packet to send [08:10:05]OFD Sender: No OFD packet to send [08:10:10]OFD Sender: No OFD packet to send [08:10:14]accept exits with 9 [08:10:14]New connection [08:10:14]New thread 3066928484 created [08:10:14]Thread 3066785124 joined [08:10:14]Waiting for new connection... [08:10:14] Sock 9.Parse request [08:10:14]Sock 9.Check first char [08:10:14]Sock 9.First char is OK [08:10:14]request: POST /json_proto HTTP/1.0 [08:10:14]Method: POST [08:10:14]URL: /json_proto [08:10:14]Method is POST - this is cgi request [08:10:14]url: /json_proto [08:10:14]query_string will be loaded in cgi processing [08:10:14]execute_cgi json_proto POST (null) [08:10:14]execute_cgi path=json_proto method=POST [08:10:14]POST find Content-Length [08:10:14]Host: 172.17.45.8:8080 [08:10:14]Content-Length: 639 [08:10:14]Content-Type: application/json [08:10:14] [08:10:14]POST finish read [08:10:14]Found Content-Length = 639 [08:10:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150513", "tax_sys" : 0, "items" : [ { "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 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:14]execute_script... [08:10: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)150513", "tax_sys" : 0, "items" : [ { "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 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:14]POST & json_proto [08:10:14]process_json_proto [08:10:14]json parsed OK: [08:10:14]protocol is kg_v1.0 [08:10:14]action value=close_receipt [08:10:14]process_action close_receipt [08:10:14]cmd_close_receipt [08:10:14]MH_GetDate [08:10:14]Write to MH i2c: F0 00 00 39 11 39 [08:10:14]Write i2c OK [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: F0 [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: F0 09 00 [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: F0 09 00 39 11 00 6A 4E A7 66 A6 1F 7F 64 AF [08:10:14]GetLastDocTimeStamp 1722239901 [08:10:14]current date 1722240618 [08:10:14]FM_GetShiftState [08:10:14]SAM_PROTO_GetShiftState [08:10:14]wFMCommunicate request_size=4 [08:10:14]MH_SAM_APDU [08:10:14]CAPDU: 80 13 01 00 [08:10:14]Write to MH i2c: E2 08 00 3A 11 80 13 01 00 00 00 00 00 C8 [08:10:14]Write i2c OK [08:10:14]MH_I2C_Read... [08:10:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:14]Read from MH i2c: E2 [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: E2 0E 00 [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: E2 0E 00 3A 11 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 49 [08:10:14]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [08:10:14]wFMCommunicate OK [08:10:14]SAM_PROTO_GetShiftState done [08:10:14]FM_GetShiftState done [08:10:14]opened in 1722213509 [08:10:14]opened+sec_in_day 1722299909 [08:10:14]quantity*price = 4000 [08:10:14]sum+1 = 4001 [08:10:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 19 29.07.2024 08:10 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27116 ФПД: 166997238389012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T081018&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27116&fm=166997238389012&tin=02508201610067®Number=0000000000092663&sum=4000 0 [08:10:15]StoreToDocumentArchive [08:10:15]shift 434 fd 27116 [08:10:15]save to /storage/0434/doc_00027116 [08:10:15]save last doc name /storage/0434/doc_00027116 to /storage/kkm_last_doc_name [08:10:15]save OK [08:10:15]Clear old archive folders... [08:10:15]ProcessDocumentItem done err = 0, tmpTLVsize=278 [08:10:15]tlvbuf is 001D3780 [08:10:15]SAM_PROTO_ClearQueue [08:10:15]wFMCommunicate request_size=4 [08:10:15]MH_SAM_APDU [08:10:15]CAPDU: 80 09 00 00 [08:10:15]Write to MH i2c: E2 08 00 47 11 80 09 00 00 00 00 00 00 CA [08:10:15]Write i2c OK [08:10:15]MH_I2C_Read... [08:10:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:10:15]Read from MH i2c: E2 [08:10:15]MH_I2C_Read... [08:10:15]Read from MH i2c: E2 03 00 [08:10:15]MH_I2C_Read... [08:10:15]Read from MH i2c: E2 03 00 47 11 00 90 00 CC [08:10:15]RAPDU: 90 00 [08:10:15]wFMCommunicate OK [08:10:15]SAM_PROTO_ClearQueue done [08:10:15]KKMCreateOFDPacket [08:10:15]OFDProtocolAddRootSTLVToBuf [08:10:15]FM_MakeSignedData [08:10:15]FM_MakeSignedData [08:10:15]SAM_PROTO_SignData [08:10:15]wFMCommunicate request_size=4 [08:10:15]MH_SAM_APDU [08:10:15]CAPDU: 80 0D 01 02 [08:10:15]Write to MH i2c: E2 08 00 48 11 80 0D 01 02 00 00 00 00 D2 [08:10:15]Write i2c OK [08:10:15]MH_I2C_Read... [08:10:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:10:15]Read from MH i2c: E2 [08:10:15]MH_I2C_Read... [08:10:15]Read from MH i2c: E2 03 00 [08:10:15]MH_I2C_Read... [08:10:15]Read from MH i2c: E2 03 00 48 11 00 90 00 CD [08:10:15]RAPDU: 90 00 [08:10:15]wFMCommunicate OK [08:10:15]wFMCommunicate request_size=255 [08:10:15]MH_SAM_APDU [08:10:15]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 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 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 13 00 00 00 F4 03 04 00 6A 4E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 [08:10:15]Write to MH i2c: E2 02 01 49 11 80 0D 02 02 FA 00 03 00 16 01 1E 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 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 13 00 00 00 F4 03 04 00 6A 4E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 00 00 DA [08:10:15]Write i2c OK [08:10:15]MH_I2C_Read... [08:10:15]OFD Sender: No OFD packet to send [08:10:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:15]Read from MH i2c: E2 [08:10:15]MH_I2C_Read... [08:10:15]Read from MH i2c: E2 03 00 [08:10:15]MH_I2C_Read... [08:10:15]Read from MH i2c: E2 03 00 49 11 00 90 00 CE [08:10:15]RAPDU: 90 00 [08:10:15]wFMCommunicate OK [08:10:15]wFMCommunicate request_size=37 [08:10:15]MH_SAM_APDU [08:10:15]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 EC 69 00 00 35 04 06 00 97 E2 13 12 99 14 [08:10:15]Write to MH i2c: E2 28 00 4A 11 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 EC 69 00 00 35 04 06 00 97 E2 13 12 99 14 00 00 D2 [08:10:15]Write i2c OK [08:10:15]MH_I2C_Read... [08:10:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:15]Read from MH i2c: E2 [08:10:15]MH_I2C_Read... [08:10:15]Read from MH i2c: E2 03 00 [08:10:15]MH_I2C_Read... [08:10:15]Read from MH i2c: E2 03 00 4A 11 00 90 00 CF [08:10:15]RAPDU: 90 00 [08:10:15]wFMCommunicate OK [08:10:15]wFMCommunicate request_size=4 [08:10:15]MH_SAM_APDU [08:10:15]CAPDU: 80 0D 03 02 [08:10:15]Write to MH i2c: E2 08 00 4B 11 80 0D 03 02 00 00 00 00 D7 [08:10:15]Write i2c OK [08:10:15]MH_I2C_Read... [08:10:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:10:15]Read from MH i2c: E2 [08:10:15]MH_I2C_Read... [08:10:15]Read from MH i2c: E2 0B 00 [08:10:15]MH_I2C_Read... [08:10:15]Read from MH i2c: E2 0B 00 4B 11 00 84 5F 52 64 1A B8 9C DA 90 00 B9 [08:10:15]RAPDU: 84 5F 52 64 1A B8 9C DA 90 00 [08:10:15]wFMCommunicate OK [08:10:15]SAM_PROTO_SignData done [08:10:15]FM_MakeSignedData done [08:10:15]CreateOFDProtocolMessage [08:10:15]wFMCommunicate request_size=4 [08:10:15]MH_SAM_APDU [08:10:15]CAPDU: 80 11 00 00 [08:10:15]Write to MH i2c: E2 08 00 4C 11 80 11 00 00 00 00 00 00 D7 [08:10:15]Write i2c OK [08:10:15]MH_I2C_Read... [08:10:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:15]Read from MH i2c: E2 [08:10:15]MH_I2C_Read... [08:10:15]Read from MH i2c: E2 17 00 [08:10:15]MH_I2C_Read... [08:10:15]Read from MH i2c: E2 17 00 4C 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 30 [08:10:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [08:10:15]wFMCommunicate OK [08:10:15]CreateOFDProtocolMessage done [08:10:15]OFDSenderStorePacket 27116 [08:10:15]StoreOFDPacket docnum=27116 [08:10:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 2A 01 00 00 A2 D7 22 01 E0 A5 5A 03 01 00 03 00 16 01 1E 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 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 13 00 00 00 F4 03 04 00 6A 4E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 EC 69 00 00 35 04 06 00 97 E2 13 12 99 14 84 5F 52 64 1A B8 9C DA [08:10:15]CheckFolder [08:10:15]dirname=/storage/ofd_packets [08:10:15]CheckFolder done [08:10:15]ProducePacketName [08:10:15]name=ofd_packets/00027116 [08:10:15]NVStorageSaveData ofd_packets/00027116 [08:10:15]File name is /storage/ofd_packets/00027116 [08:10:15]Write 328 bytes [08:10:15]NVStorageSaveData done [08:10:15]OFDSenderStorePacket done [08:10:15]KKMCreateOFDPacket done [08:10:15]NVStorageSaveData kkm_last_timestamp [08:10:15]File name is /storage/kkm_last_timestamp [08:10:15]Write 4 bytes [08:10:15]NVStorageSaveData done [08:10:15]ExternCall_PrintAddStr [08:10:15]wPrintStart [08:10:15]Write to MH i2c: 01 00 00 4D 11 5E [08:10:15]Write i2c OK [08:10:15]MH_I2C_Read... [08:10:15]Read from MH i2c: 01 [08:10:15]MH_I2C_Read... [08:10:15]Read from MH i2c: 01 07 00 [08:10:15]MH_I2C_Read... [08:10:15]Read from MH i2c: 01 07 00 4D 11 00 00 00 00 00 FF 0F 73 [08:10:15]RasterBufferAndPrint [08:10:15]line Счет N : (3)150513 [08:10:15]line ИНН: 02508201610067 [08:10:15]line Контрольно-Кассовый Чек [08:10:15]line ПРОДАЖА [08:10:15]line Товар: 4870001157913 [08:10:15]line Вода ASU 0,5л c без газа [08:10:15]line 1.000 * 40.00 [08:10:15]line = 40.00 [08:10:15]line НДС 12% НСП 1% [08:10:15]line > о реализуемом товаре [08:10:15]line ИТОГО: 40.00 [08:10:15]line НСП 1% : 0.35 [08:10:15]line НДС 12% : 4.25 [08:10:15]line Наличными: 40.00 [08:10:15]line Безнал.: 0.00 [08:10:15]line Место: АЗС № 134 "Партнер Нефть" [08:10:15]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:10:15]line СНО: Общий режим [08:10:15]line Чек 19 29.07.2024 08:10 [08:10:15]line Смена: 434 ФФД: 1.0 [08:10:15]line ЗНМ: 0300000043 [08:10:15]line РНМ: 0000000000092663 [08:10:15]line Версия ККМ: 001 [08:10:15]line ФМ: 0000000000874937 [08:10:15]line ФД: 27116 [08:10:15]line ФПД: 166997238389012 [08:10:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T081018&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27116&fm=166997238389012&tin=02508201610067®Number=0000000000092663&sum=4000 [08:10:16]line 0 [08:10:16]OFD Sender: Processing packet 27116 [packets to send 9, broken 8] [08:10:16]ProducePacketName [08:10:16]name=ofd_packets/00027116 [08:10:16]OFD Sender: To server: pG, [08:10:16]CommunicateWithHost lk.salyk.kg:30040 [08:10:16]ConnectInit lk.salyk.kg [08:10:16]written 0, free lines is 4095 [08:10:16]Connected sock=10 [08:10:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 2A 01 00 00 A2 D7 22 01 E0 A5 5A 03 01 00 03 00 16 01 1E 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 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 13 00 00 00 F4 03 04 00 6A 4E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 EC 69 00 00 35 04 06 00 97 E2 13 12 99 14 84 5F 52 64 1A B8 9C DA [08:10:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 0C CA 47 00 98 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 34 39 33 37 10 04 04 00 EC 69 00 00 F4 03 04 00 BC F4 A6 66 B6 04 01 00 00 31 E2 B9 66 7C BA B4 9F [08:10:16]CommunicateWithHost err = 0 [08:10:16]CheckOFDResponse [08:10:16]1017 (14) - 77093643461234 [08:10:16]1041 (16) - 0000000000874937 [08:10:16]1040 (4) - 27116 [08:10:16]1012 (4) - 29.07.2024 01:47 [08:10:16]1206 (1) - 0 [08:10:16]OFD Sender: Remove packet 27116 [08:10:16]ProducePacketName [08:10:16]name=ofd_packets/00027116 [08:10:16]NVStorageDeleteData [08:10:16]Write to MH i2c: 01 00 00 74 11 85 [08:10:16]Write i2c OK [08:10:16]MH_I2C_Read... [08:10:16]Read from MH i2c: 01 [08:10:16]MH_I2C_Read... [08:10:16]Read from MH i2c: 01 07 00 [08:10:16]MH_I2C_Read... [08:10:16]Read from MH i2c: 01 07 00 74 11 00 00 00 00 00 E9 0C 81 [08:10:16]RasterBufferAndPrint [08:10:16]line [08:10:16]line [08:10:16]line [08:10:16]line [08:10:16]line [08:10:16]written 0, free lines is 3311 [08:10:16]MH_Cut [08:10:16]Write to MH i2c: D1 01 00 7B 11 01 5E [08:10:16]Write i2c OK [08:10:16]MH_I2C_Read... [08:10:16]Read from MH i2c: D1 [08:10:16]MH_I2C_Read... [08:10:16]Read from MH i2c: D1 01 00 [08:10:16]MH_I2C_Read... [08:10:16]Read from MH i2c: D1 01 00 7B 11 00 5D [08:10:16]Write to MH i2c: 01 00 00 7C 11 8D [08:10:16]Write i2c OK [08:10:16]MH_I2C_Read... [08:10:17]OFD Sender: No OFD packet to send [08:10:17]*** Cut start [08:10:17]*** Partial cut [08:10:17]*** CUTSNS_PIN = 1 [08:10:17]*** CUTSNS_PIN = 0 [08:10:17]*** Brake cut motor [08:10:17]Read from MH i2c: 01 [08:10:17]MH_I2C_Read... [08:10:17]*** Stop cut motor [08:10:17]*** Cut end [08:10:17]Read from MH i2c: 01 07 00 [08:10:17]MH_I2C_Read... [08:10:17]Read from MH i2c: 01 07 00 7C 11 00 00 00 00 00 FF 0F A2 [08:10:17]process_action close_receipt done [08:10:17]requested_data is exist [08:10:17]produce_requested_data [08:10:17]requested_item fm.sn is exist - process it [08:10:17]wFMCommunicate request_size=4 [08:10:17]MH_SAM_APDU [08:10:17]CAPDU: 80 11 00 00 [08:10:17]Write to MH i2c: E2 08 00 7D 11 80 11 00 00 00 00 00 00 08 [08:10:17]Write i2c OK [08:10:17]MH_I2C_Read... [08:10:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:18]Read from MH i2c: E2 [08:10:18]MH_I2C_Read... [08:10:18]Read from MH i2c: E2 17 00 [08:10:18]MH_I2C_Read... [08:10:18]Read from MH i2c: E2 17 00 7D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 61 [08:10:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [08:10:18]wFMCommunicate OK [08:10:18]requested_item fd.num is exist - process it [08:10:18]SAM_PROTO_GetFieldsCounters [08:10:18]wFMCommunicate request_size=4 [08:10:18]MH_SAM_APDU [08:10:18]CAPDU: 80 13 00 00 [08:10:18]Write to MH i2c: E2 08 00 7E 11 80 13 00 00 00 00 00 00 0B [08:10:18]Write i2c OK [08:10:18]MH_I2C_Read... [08:10:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:10:18]Read from MH i2c: E2 [08:10:18]MH_I2C_Read... [08:10:18]Read from MH i2c: E2 62 00 [08:10:18]MH_I2C_Read... [08:10:18]Read from MH i2c: E2 62 00 7E 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 EC 69 00 00 0E 04 04 00 B2 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 74 [08:10:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 EC 69 00 00 0E 04 04 00 B2 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:10:18]wFMCommunicate OK [08:10:18]SAM_PROTO_GetFieldsCounters done [08:10:18]requested_item shift.num is exist - process it [08:10:18]requested_item shift.opened is exist - process it [08:10:18]req_shift_opened [08:10:18]FM_GetShiftState [08:10:18]SAM_PROTO_GetShiftState [08:10:18]wFMCommunicate request_size=4 [08:10:18]MH_SAM_APDU [08:10:18]CAPDU: 80 13 01 00 [08:10:18]Write to MH i2c: E2 08 00 7F 11 80 13 01 00 00 00 00 00 0D [08:10:18]Write i2c OK [08:10:18]MH_I2C_Read... [08:10:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:18]Read from MH i2c: E2 [08:10:18]MH_I2C_Read... [08:10:18]Read from MH i2c: E2 0E 00 [08:10:18]MH_I2C_Read... [08:10:18]Read from MH i2c: E2 0E 00 7F 11 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 8E [08:10:18]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [08:10:18]wFMCommunicate OK [08:10:18]SAM_PROTO_GetShiftState done [08:10:18]FM_GetShiftState done [08:10:18]req_shift_opened done [08:10:18]requested_item shift.open_date is exist - process it [08:10:18]req_shift_open_date [08:10:18]req_shift_open_date done [08:10:18]produce_requested_data done [08:10:18]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27116,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [08:10:18]process_action_free close_receipt [08:10:18]json_value_free [08:10:18]json_value_free done [08:10:18]process_json_proto returns [08:10:18]Send response to host [08:10:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27116,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [08:10:18]free response buf [08:10:18]execute_script done [08:10:18]execute_script returns [08:10:18]free content buf [08:10:18]Sock 9.Close socket [08:10:18]Sock 9.Thread stoped [08:10:22]OFD Sender: No OFD packet to send [08:10:27]OFD Sender: No OFD packet to send [08:10:32]OFD Sender: No OFD packet to send [08:10:37]OFD Sender: No OFD packet to send [08:10:42]OFD Sender: No OFD packet to send [08:10:47]OFD Sender: No OFD packet to send [08:10:52]OFD Sender: No OFD packet to send [08:10:57]OFD Sender: No OFD packet to send [08:11:02]OFD Sender: No OFD packet to send [08:11:07]OFD Sender: No OFD packet to send [08:11:12]OFD Sender: No OFD packet to send [08:11:17]OFD Sender: No OFD packet to send [08:11:22]OFD Sender: No OFD packet to send [08:11:27]OFD Sender: No OFD packet to send [08:11:32]OFD Sender: No OFD packet to send [08:11:37]OFD Sender: No OFD packet to send [08:11:42]OFD Sender: No OFD packet to send [08:11:47]OFD Sender: No OFD packet to send [08:11:52]OFD Sender: No OFD packet to send [08:11:57]OFD Sender: No OFD packet to send [08:12:02]OFD Sender: No OFD packet to send [08:12:07]OFD Sender: No OFD packet to send [08:12:12]OFD Sender: No OFD packet to send [08:12:17]OFD Sender: No OFD packet to send [08:12:22]OFD Sender: No OFD packet to send [08:12:27]OFD Sender: No OFD packet to send [08:12:32]OFD Sender: No OFD packet to send [08:12:37]OFD Sender: No OFD packet to send [08:12:42]OFD Sender: No OFD packet to send [08:12:47]OFD Sender: No OFD packet to send [08:12:52]OFD Sender: No OFD packet to send [08:12:57]OFD Sender: No OFD packet to send [08:13:02]OFD Sender: No OFD packet to send [08:13:07]OFD Sender: No OFD packet to send [08:13:12]OFD Sender: No OFD packet to send [08:13:17]OFD Sender: No OFD packet to send [08:13:22]OFD Sender: No OFD packet to send [08:13:27]OFD Sender: No OFD packet to send [08:13:32]OFD Sender: No OFD packet to send [08:13:37]OFD Sender: No OFD packet to send [08:13:40]accept exits with 8 [08:13:40]New connection [08:13:40]New thread 3066785124 created [08:13:40]Thread 3066928484 joined [08:13:40]Waiting for new connection... [08:13:40] Sock 8.Parse request [08:13:40]Sock 8.Check first char [08:13:40]Sock 8.First char is OK [08:13:40]request: POST /json_proto HTTP/1.0 [08:13:40]Method: POST [08:13:40]URL: /json_proto [08:13:40]Method is POST - this is cgi request [08:13:40]url: /json_proto [08:13:40]query_string will be loaded in cgi processing [08:13:40]execute_cgi json_proto POST (null) [08:13:40]execute_cgi path=json_proto method=POST [08:13:40]POST find Content-Length [08:13:40]Host: 172.17.45.8:8080 [08:13:40]Content-Length: 668 [08:13:40]Content-Type: application/json [08:13:40] [08:13:40]POST finish read [08:13:40]Found Content-Length = 668 [08:13:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150514", "tax_sys" : 0, "items" : [ { "code": "4670003195728", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:40]execute_script... [08:13: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 : (3)150514", "tax_sys" : 0, "items" : [ { "code": "4670003195728", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:40]POST & json_proto [08:13:40]process_json_proto [08:13:40]json parsed OK: [08:13:40]protocol is kg_v1.0 [08:13:40]action value=close_receipt [08:13:40]process_action close_receipt [08:13:40]cmd_close_receipt [08:13:40]MH_GetDate [08:13:40]Write to MH i2c: F0 00 00 80 11 80 [08:13:40]Write i2c OK [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: F0 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: F0 09 00 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: F0 09 00 80 11 00 38 4F A7 66 A6 1F 7F 64 C5 [08:13:40]GetLastDocTimeStamp 1722240618 [08:13:40]current date 1722240824 [08:13:40]FM_GetShiftState [08:13:40]SAM_PROTO_GetShiftState [08:13:40]wFMCommunicate request_size=4 [08:13:40]MH_SAM_APDU [08:13:40]CAPDU: 80 13 01 00 [08:13:40]Write to MH i2c: E2 08 00 81 11 80 13 01 00 00 00 00 00 0F [08:13:40]Write i2c OK [08:13:40]MH_I2C_Read... [08:13:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:40]Read from MH i2c: E2 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 0E 00 [08:13:40]MH_I2C_Read... [08:13:40]Read from MH i2c: E2 0E 00 81 11 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 90 [08:13:40]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [08:13:40]wFMCommunicate OK [08:13:40]SAM_PROTO_GetShiftState done [08:13:40]FM_GetShiftState done [08:13:40]opened in 1722213509 [08:13:40]opened+sec_in_day 1722299909 [08:13:40]quantity*price = 22500 [08:13:40]sum+1 = 22501 [08:13:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 20 29.07.2024 08:13 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27117 ФПД: 156407789368589 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T081344&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27117&fm=156407789368589&tin=02508201610067®Number=0000000000092663&sum=22500 0 [08:13:41]StoreToDocumentArchive [08:13:41]shift 434 fd 27117 [08:13:41]save to /storage/0434/doc_00027117 [08:13:41]save last doc name /storage/0434/doc_00027117 to /storage/kkm_last_doc_name [08:13:41]save OK [08:13:41]Clear old archive folders... [08:13:41]ProcessDocumentItem done err = 0, tmpTLVsize=296 [08:13:41]tlvbuf is 001B6810 [08:13:41]SAM_PROTO_ClearQueue [08:13:41]wFMCommunicate request_size=4 [08:13:41]MH_SAM_APDU [08:13:41]CAPDU: 80 09 00 00 [08:13:41]Write to MH i2c: E2 08 00 8E 11 80 09 00 00 00 00 00 00 11 [08:13:41]Write i2c OK [08:13:41]MH_I2C_Read... [08:13:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:13:41]Read from MH i2c: E2 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 03 00 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 03 00 8E 11 00 90 00 13 [08:13:41]RAPDU: 90 00 [08:13:41]wFMCommunicate OK [08:13:41]SAM_PROTO_ClearQueue done [08:13:41]KKMCreateOFDPacket [08:13:41]OFDProtocolAddRootSTLVToBuf [08:13:41]FM_MakeSignedData [08:13:41]FM_MakeSignedData [08:13:41]SAM_PROTO_SignData [08:13:41]wFMCommunicate request_size=4 [08:13:41]MH_SAM_APDU [08:13:41]CAPDU: 80 0D 01 02 [08:13:41]Write to MH i2c: E2 08 00 8F 11 80 0D 01 02 00 00 00 00 19 [08:13:41]Write i2c OK [08:13:41]MH_I2C_Read... [08:13:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:13:41]Read from MH i2c: E2 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 03 00 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 03 00 8F 11 00 90 00 14 [08:13:41]RAPDU: 90 00 [08:13:41]wFMCommunicate OK [08:13:41]wFMCommunicate request_size=255 [08:13:41]MH_SAM_APDU [08:13:41]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 35 37 32 38 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 38 4F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [08:13:41]Write to MH i2c: E2 02 01 90 11 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 35 37 32 38 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 38 4F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 07 [08:13:41]Write i2c OK [08:13:41]MH_I2C_Read... [08:13:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:41]Read from MH i2c: E2 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 03 00 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 03 00 90 11 00 90 00 15 [08:13:41]RAPDU: 90 00 [08:13:41]wFMCommunicate OK [08:13:41]wFMCommunicate request_size=55 [08:13:41]MH_SAM_APDU [08:13:41]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 ED 69 00 00 35 04 06 00 8E 40 86 B9 B5 0D [08:13:41]Write to MH i2c: E2 3A 00 91 11 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 ED 69 00 00 35 04 06 00 8E 40 86 B9 B5 0D 00 00 A1 [08:13:41]Write i2c OK [08:13:41]MH_I2C_Read... [08:13:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:41]Read from MH i2c: E2 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 03 00 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 03 00 91 11 00 90 00 16 [08:13:41]RAPDU: 90 00 [08:13:41]wFMCommunicate OK [08:13:41]wFMCommunicate request_size=4 [08:13:41]MH_SAM_APDU [08:13:41]CAPDU: 80 0D 03 02 [08:13:41]Write to MH i2c: E2 08 00 92 11 80 0D 03 02 00 00 00 00 1E [08:13:41]Write i2c OK [08:13:41]MH_I2C_Read... [08:13:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:13:41]Read from MH i2c: E2 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 0B 00 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 0B 00 92 11 00 77 CF CC 06 77 1A 5E 9A 90 00 C0 [08:13:41]RAPDU: 77 CF CC 06 77 1A 5E 9A 90 00 [08:13:41]wFMCommunicate OK [08:13:41]SAM_PROTO_SignData done [08:13:41]FM_MakeSignedData done [08:13:41]CreateOFDProtocolMessage [08:13:41]wFMCommunicate request_size=4 [08:13:41]MH_SAM_APDU [08:13:41]CAPDU: 80 11 00 00 [08:13:41]Write to MH i2c: E2 08 00 93 11 80 11 00 00 00 00 00 00 1E [08:13:41]Write i2c OK [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 [08:13:41]MH_I2C_Read... [08:13:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:41]Read from MH i2c: E2 17 00 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: E2 17 00 93 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 77 [08:13:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [08:13:41]wFMCommunicate OK [08:13:41]CreateOFDProtocolMessage done [08:13:41]OFDSenderStorePacket 27117 [08:13:41]StoreOFDPacket docnum=27117 [08:13:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 3C 01 00 00 0E AD 34 01 79 AA 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 35 37 32 38 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 38 4F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 ED 69 00 00 35 04 06 00 8E 40 86 B9 B5 0D 77 CF CC 06 77 1A 5E 9A [08:13:41]CheckFolder [08:13:41]dirname=/storage/ofd_packets [08:13:41]CheckFolder done [08:13:41]ProducePacketName [08:13:41]name=ofd_packets/00027117 [08:13:41]NVStorageSaveData ofd_packets/00027117 [08:13:41]File name is /storage/ofd_packets/00027117 [08:13:41]Write 346 bytes [08:13:41]NVStorageSaveData done [08:13:41]OFDSenderStorePacket done [08:13:41]KKMCreateOFDPacket done [08:13:41]NVStorageSaveData kkm_last_timestamp [08:13:41]File name is /storage/kkm_last_timestamp [08:13:41]Write 4 bytes [08:13:41]NVStorageSaveData done [08:13:41]ExternCall_PrintAddStr [08:13:41]wPrintStart [08:13:41]Write to MH i2c: 01 00 00 94 11 A5 [08:13:41]Write i2c OK [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: 01 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: 01 07 00 [08:13:41]MH_I2C_Read... [08:13:41]Read from MH i2c: 01 07 00 94 11 00 00 00 00 00 FF 0F BA [08:13:41]RasterBufferAndPrint [08:13:41]line Счет N : (3)150514 [08:13:41]line ИНН: 02508201610067 [08:13:41]line Контрольно-Кассовый Чек [08:13:41]line ПРОДАЖА [08:13:41]line Товар: 4670003195728 [08:13:41]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 жел 1л [08:13:41]line 1.000 * 225.00 [08:13:41]line = 225.00 [08:13:41]line НДС 12% НСП 1% [08:13:41]line > о реализуемом товаре [08:13:41]line ИТОГО: 225.00 [08:13:41]line НСП 1% : 1.99 [08:13:41]line НДС 12% : 23.89 [08:13:41]line Наличными: 225.00 [08:13:41]line Безнал.: 0.00 [08:13:41]line Место: АЗС № 134 "Партнер Нефть" [08:13:41]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:13:41]line СНО: Общий режим [08:13:41]line Чек 20 29.07.2024 08:13 [08:13:41]line Смена: 434 ФФД: 1.0 [08:13:41]line ЗНМ: 0300000043 [08:13:41]line РНМ: 0000000000092663 [08:13:41]line Версия ККМ: 001 [08:13:41]line ФМ: 0000000000874937 [08:13:41]line ФД: 27117 [08:13:41]line ФПД: 156407789368589 [08:13:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T081344&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27117&fm=156407789368589&tin=02508201610067®Number=0000000000092663&sum=22500 [08:13:41]line 0 [08:13:41]written 0, free lines is 4095 [08:13:41]OFD Sender: Processing packet 27117 [packets to send 9, broken 8] [08:13:41]ProducePacketName [08:13:41]name=ofd_packets/00027117 [08:13:41]OFD Sender: To server: pG, [08:13:41]CommunicateWithHost lk.salyk.kg:30040 [08:13:41]ConnectInit lk.salyk.kg [08:13:41]Connected sock=10 [08:13:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 3C 01 00 00 0E AD 34 01 79 AA 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 35 37 32 38 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 38 4F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 ED 69 00 00 35 04 06 00 8E 40 86 B9 B5 0D 77 CF CC 06 77 1A 5E 9A [08:13:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 4C C4 47 00 30 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 ED 69 00 00 F4 03 04 00 89 F5 A6 66 B6 04 01 00 00 E5 00 27 60 04 65 0E D5 [08:13:42]CommunicateWithHost err = 0 [08:13:42]CheckOFDResponse [08:13:42]1017 (14) - 77093643461234 [08:13:42]1041 (16) - 0000000000874937 [08:13:42]1040 (4) - 27117 [08:13:42]1012 (4) - 29.07.2024 01:51 [08:13:42]1206 (1) - 0 [08:13:42]OFD Sender: Remove packet 27117 [08:13:42]ProducePacketName [08:13:42]name=ofd_packets/00027117 [08:13:42]NVStorageDeleteData [08:13:42]Write to MH i2c: 01 00 00 BC 11 CD [08:13:42]Write i2c OK [08:13:42]MH_I2C_Read... [08:13:42]Read from MH i2c: 01 [08:13:42]MH_I2C_Read... [08:13:42]Read from MH i2c: 01 07 00 [08:13:42]MH_I2C_Read... [08:13:42]Read from MH i2c: 01 07 00 BC 11 00 00 00 00 00 F2 0C D2 [08:13:42]RasterBufferAndPrint [08:13:42]line [08:13:42]line [08:13:42]line [08:13:42]line [08:13:42]line [08:13:42]written 0, free lines is 3320 [08:13:42]MH_Cut [08:13:42]Write to MH i2c: D1 01 00 C3 11 01 A6 [08:13:42]Write i2c OK [08:13:42]MH_I2C_Read... [08:13:42]Read from MH i2c: D1 [08:13:42]MH_I2C_Read... [08:13:42]Read from MH i2c: D1 01 00 [08:13:42]MH_I2C_Read... [08:13:42]Read from MH i2c: D1 01 00 C3 11 00 A5 [08:13:42]Write to MH i2c: 01 00 00 C4 11 D5 [08:13:42]Write i2c OK [08:13:42]MH_I2C_Read... [08:13:42]OFD Sender: No OFD packet to send [08:13:43]*** Cut start [08:13:43]*** Partial cut [08:13:43]*** CUTSNS_PIN = 1 [08:13:43]*** CUTSNS_PIN = 0 [08:13:43]*** Brake cut motor [08:13:43]Read from MH i2c: 01 [08:13:43]MH_I2C_Read... [08:13:43]*** Stop cut motor [08:13:43]*** Cut end [08:13:43]Read from MH i2c: 01 07 00 [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: 01 07 00 C4 11 00 00 00 00 00 FF 0F EA [08:13:43]process_action close_receipt done [08:13:43]requested_data is exist [08:13:43]produce_requested_data [08:13:43]requested_item fm.sn is exist - process it [08:13:43]wFMCommunicate request_size=4 [08:13:43]MH_SAM_APDU [08:13:43]CAPDU: 80 11 00 00 [08:13:43]Write to MH i2c: E2 08 00 C5 11 80 11 00 00 00 00 00 00 50 [08:13:43]Write i2c OK [08:13:43]MH_I2C_Read... [08:13:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:43]Read from MH i2c: E2 [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: E2 17 00 [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: E2 17 00 C5 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 A9 [08:13:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [08:13:43]wFMCommunicate OK [08:13:43]requested_item fd.num is exist - process it [08:13:43]SAM_PROTO_GetFieldsCounters [08:13:43]wFMCommunicate request_size=4 [08:13:43]MH_SAM_APDU [08:13:43]CAPDU: 80 13 00 00 [08:13:43]Write to MH i2c: E2 08 00 C6 11 80 13 00 00 00 00 00 00 53 [08:13:43]Write i2c OK [08:13:43]MH_I2C_Read... [08:13:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:43]Read from MH i2c: E2 [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: E2 62 00 [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: E2 62 00 C6 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 ED 69 00 00 0E 04 04 00 B2 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 C0 [08:13:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 ED 69 00 00 0E 04 04 00 B2 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:13:43]wFMCommunicate OK [08:13:43]SAM_PROTO_GetFieldsCounters done [08:13:43]requested_item shift.num is exist - process it [08:13:43]requested_item shift.opened is exist - process it [08:13:43]req_shift_opened [08:13:43]FM_GetShiftState [08:13:43]SAM_PROTO_GetShiftState [08:13:43]wFMCommunicate request_size=4 [08:13:43]MH_SAM_APDU [08:13:43]CAPDU: 80 13 01 00 [08:13:43]Write to MH i2c: E2 08 00 C7 11 80 13 01 00 00 00 00 00 55 [08:13:43]Write i2c OK [08:13:43]MH_I2C_Read... [08:13:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:43]Read from MH i2c: E2 [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: E2 0E 00 [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: E2 0E 00 C7 11 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 D6 [08:13:43]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [08:13:43]wFMCommunicate OK [08:13:43]SAM_PROTO_GetShiftState done [08:13:43]FM_GetShiftState done [08:13:43]req_shift_opened done [08:13:43]requested_item shift.open_date is exist - process it [08:13:43]req_shift_open_date [08:13:43]req_shift_open_date done [08:13:43]produce_requested_data done [08:13:43]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27117,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [08:13:43]process_action_free close_receipt [08:13:43]json_value_free [08:13:43]json_value_free done [08:13:43]process_json_proto returns [08:13:43]Send response to host [08:13:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27117,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [08:13:43]free response buf [08:13:43]execute_script done [08:13:43]execute_script returns [08:13:43]free content buf [08:13:43]Sock 8.Close socket [08:13:43]Sock 8.Thread stoped [08:13:47]OFD Sender: No OFD packet to send [08:13:52]OFD Sender: No OFD packet to send [08:13:57]OFD Sender: No OFD packet to send [08:14:02]OFD Sender: No OFD packet to send [08:14:07]OFD Sender: No OFD packet to send [08:14:12]OFD Sender: No OFD packet to send [08:14:17]OFD Sender: No OFD packet to send [08:14:22]OFD Sender: No OFD packet to send [08:14:27]OFD Sender: No OFD packet to send [08:14:32]OFD Sender: No OFD packet to send [08:14:37]OFD Sender: No OFD packet to send [08:14:42]OFD Sender: No OFD packet to send [08:14:47]OFD Sender: No OFD packet to send [08:14:52]OFD Sender: No OFD packet to send [08:14:57]OFD Sender: No OFD packet to send [08:15:02]OFD Sender: No OFD packet to send [08:15:07]OFD Sender: No OFD packet to send [08:15:12]OFD Sender: No OFD packet to send [08:15:17]OFD Sender: No OFD packet to send [08:15:22]OFD Sender: No OFD packet to send [08:15:27]OFD Sender: No OFD packet to send [08:15:32]OFD Sender: No OFD packet to send [08:15:37]OFD Sender: No OFD packet to send [08:15:42]OFD Sender: No OFD packet to send [08:15:47]OFD Sender: No OFD packet to send [08:15:52]OFD Sender: No OFD packet to send [08:15:57]OFD Sender: No OFD packet to send [08:16:02]OFD Sender: No OFD packet to send [08:16:07]OFD Sender: No OFD packet to send [08:16:12]OFD Sender: No OFD packet to send [08:16:17]OFD Sender: No OFD packet to send [08:16:22]OFD Sender: No OFD packet to send [08:16:27]OFD Sender: No OFD packet to send [08:16:32]OFD Sender: No OFD packet to send [08:16:37]OFD Sender: No OFD packet to send [08:16:42]OFD Sender: No OFD packet to send [08:16:47]OFD Sender: No OFD packet to send [08:16:52]OFD Sender: No OFD packet to send [08:16:57]OFD Sender: No OFD packet to send [08:17:02]OFD Sender: No OFD packet to send [08:17:07]OFD Sender: No OFD packet to send [08:17:12]OFD Sender: No OFD packet to send [08:17:17]OFD Sender: No OFD packet to send [08:17:22]OFD Sender: No OFD packet to send [08:17:27]OFD Sender: No OFD packet to send [08:17:32]OFD Sender: No OFD packet to send [08:17:37]OFD Sender: No OFD packet to send [08:17:42]OFD Sender: No OFD packet to send [08:17:47]OFD Sender: No OFD packet to send [08:17:52]OFD Sender: No OFD packet to send [08:17:57]OFD Sender: No OFD packet to send [08:18:02]OFD Sender: No OFD packet to send [08:18:07]OFD Sender: No OFD packet to send [08:18:12]OFD Sender: No OFD packet to send [08:18:17]OFD Sender: No OFD packet to send [08:18:22]OFD Sender: No OFD packet to send [08:18:27]OFD Sender: No OFD packet to send [08:18:32]OFD Sender: No OFD packet to send [08:18:37]OFD Sender: No OFD packet to send [08:18:42]OFD Sender: No OFD packet to send [08:18:47]OFD Sender: No OFD packet to send [08:18:52]OFD Sender: No OFD packet to send [08:18:57]OFD Sender: No OFD packet to send [08:19:02]OFD Sender: No OFD packet to send [08:19:07]OFD Sender: No OFD packet to send [08:19:12]OFD Sender: No OFD packet to send [08:19:17]OFD Sender: No OFD packet to send [08:19:22]OFD Sender: No OFD packet to send [08:19:27]OFD Sender: No OFD packet to send [08:19:32]OFD Sender: No OFD packet to send [08:19:38]OFD Sender: No OFD packet to send [08:19:43]OFD Sender: No OFD packet to send [08:19:48]OFD Sender: No OFD packet to send [08:19:53]OFD Sender: No OFD packet to send [08:19:58]OFD Sender: No OFD packet to send [08:20:03]OFD Sender: No OFD packet to send [08:20:08]OFD Sender: No OFD packet to send [08:20:13]OFD Sender: No OFD packet to send [08:20:18]OFD Sender: No OFD packet to send [08:20:23]OFD Sender: No OFD packet to send [08:20:28]OFD Sender: No OFD packet to send [08:20:33]OFD Sender: No OFD packet to send [08:20:38]OFD Sender: No OFD packet to send [08:20:43]OFD Sender: No OFD packet to send [08:20:48]OFD Sender: No OFD packet to send [08:20:53]OFD Sender: No OFD packet to send [08:20:58]OFD Sender: No OFD packet to send [08:21:03]OFD Sender: No OFD packet to send [08:21:08]OFD Sender: No OFD packet to send [08:21:13]OFD Sender: No OFD packet to send [08:21:18]OFD Sender: No OFD packet to send [08:21:23]OFD Sender: No OFD packet to send [08:21:28]OFD Sender: No OFD packet to send [08:21:33]OFD Sender: No OFD packet to send [08:21:38]OFD Sender: No OFD packet to send [08:21:43]OFD Sender: No OFD packet to send [08:21:48]OFD Sender: No OFD packet to send [08:21:53]OFD Sender: No OFD packet to send [08:21:58]OFD Sender: No OFD packet to send [08:22:03]OFD Sender: No OFD packet to send [08:22:08]OFD Sender: No OFD packet to send [08:22:13]OFD Sender: No OFD packet to send [08:22:18]OFD Sender: No OFD packet to send [08:22:23]OFD Sender: No OFD packet to send [08:22:28]OFD Sender: No OFD packet to send [08:22:33]OFD Sender: No OFD packet to send [08:22:38]OFD Sender: No OFD packet to send [08:22:43]OFD Sender: No OFD packet to send [08:22:48]OFD Sender: No OFD packet to send [08:22:53]OFD Sender: No OFD packet to send [08:22:58]OFD Sender: No OFD packet to send [08:23:03]OFD Sender: No OFD packet to send [08:23:08]OFD Sender: No OFD packet to send [08:23:13]OFD Sender: No OFD packet to send [08:23:18]OFD Sender: No OFD packet to send [08:23:23]OFD Sender: No OFD packet to send [08:23:28]OFD Sender: No OFD packet to send [08:23:33]OFD Sender: No OFD packet to send [08:23:38]OFD Sender: No OFD packet to send [08:23:43]OFD Sender: No OFD packet to send [08:23:48]OFD Sender: No OFD packet to send [08:23:53]OFD Sender: No OFD packet to send [08:23:58]OFD Sender: No OFD packet to send [08:24:03]OFD Sender: No OFD packet to send [08:24:08]OFD Sender: No OFD packet to send [08:24:13]OFD Sender: No OFD packet to send [08:24:18]OFD Sender: No OFD packet to send [08:24:23]OFD Sender: No OFD packet to send [08:24:28]OFD Sender: No OFD packet to send [08:24:33]OFD Sender: No OFD packet to send [08:24:38]OFD Sender: No OFD packet to send [08:24:43]OFD Sender: No OFD packet to send [08:24:48]OFD Sender: No OFD packet to send [08:24:53]OFD Sender: No OFD packet to send [08:24:58]OFD Sender: No OFD packet to send [08:25:03]OFD Sender: No OFD packet to send [08:25:08]OFD Sender: No OFD packet to send [08:25:13]OFD Sender: No OFD packet to send [08:25:18]OFD Sender: No OFD packet to send [08:25:23]OFD Sender: No OFD packet to send [08:25:28]OFD Sender: No OFD packet to send [08:25:33]OFD Sender: No OFD packet to send [08:25:38]OFD Sender: No OFD packet to send [08:25:43]OFD Sender: No OFD packet to send [08:25:48]OFD Sender: No OFD packet to send [08:25:53]OFD Sender: No OFD packet to send [08:25:58]OFD Sender: No OFD packet to send [08:26:03]OFD Sender: No OFD packet to send [08:26:08]OFD Sender: No OFD packet to send [08:26:13]OFD Sender: No OFD packet to send [08:26:18]OFD Sender: No OFD packet to send [08:26:23]OFD Sender: No OFD packet to send [08:26:28]OFD Sender: No OFD packet to send [08:26:33]OFD Sender: No OFD packet to send [08:26:38]OFD Sender: No OFD packet to send [08:26:43]OFD Sender: No OFD packet to send [08:26:48]OFD Sender: No OFD packet to send [08:26:53]OFD Sender: No OFD packet to send [08:26:58]OFD Sender: No OFD packet to send [08:27:03]OFD Sender: No OFD packet to send [08:27:08]OFD Sender: No OFD packet to send [08:27:13]OFD Sender: No OFD packet to send [08:27:18]OFD Sender: No OFD packet to send [08:27:23]OFD Sender: No OFD packet to send [08:27:28]OFD Sender: No OFD packet to send [08:27:33]OFD Sender: No OFD packet to send [08:27:38]OFD Sender: No OFD packet to send [08:27:43]OFD Sender: No OFD packet to send [08:27:48]OFD Sender: No OFD packet to send [08:27:53]OFD Sender: No OFD packet to send [08:27:58]OFD Sender: No OFD packet to send [08:28:03]OFD Sender: No OFD packet to send [08:28:08]OFD Sender: No OFD packet to send [08:28:13]OFD Sender: No OFD packet to send [08:28:18]OFD Sender: No OFD packet to send [08:28:23]OFD Sender: No OFD packet to send [08:28:28]OFD Sender: No OFD packet to send [08:28:33]OFD Sender: No OFD packet to send [08:28:38]OFD Sender: No OFD packet to send [08:28:43]OFD Sender: No OFD packet to send [08:28:48]OFD Sender: No OFD packet to send [08:28:53]OFD Sender: No OFD packet to send [08:28:58]OFD Sender: No OFD packet to send [08:29:03]OFD Sender: No OFD packet to send [08:29:08]OFD Sender: No OFD packet to send [08:29:13]OFD Sender: No OFD packet to send [08:29:18]OFD Sender: No OFD packet to send [08:29:23]OFD Sender: No OFD packet to send [08:29:28]OFD Sender: No OFD packet to send [08:29:33]OFD Sender: No OFD packet to send [08:29:38]OFD Sender: No OFD packet to send [08:29:43]OFD Sender: No OFD packet to send [08:29:48]OFD Sender: No OFD packet to send [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:08]OFD Sender: No OFD packet to send [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:28]OFD Sender: No OFD packet to send [08:30:33]OFD Sender: No OFD packet to send [08:30:38]OFD Sender: No OFD packet to send [08:30:43]OFD Sender: No OFD packet to send [08:30:48]OFD Sender: No OFD packet to send [08:30:53]OFD Sender: No OFD packet to send [08:30:58]OFD Sender: No OFD packet to send [08:31:03]OFD Sender: No OFD packet to send [08:31:08]OFD Sender: No OFD packet to send [08:31:13]OFD Sender: No OFD packet to send [08:31:18]OFD Sender: No OFD packet to send [08:31:23]OFD Sender: No OFD packet to send [08:31:28]OFD Sender: No OFD packet to send [08:31:33]OFD Sender: No OFD packet to send [08:31:38]OFD Sender: No OFD packet to send [08:31:43]OFD Sender: No OFD packet to send [08:31:48]OFD Sender: No OFD packet to send [08:31:53]OFD Sender: No OFD packet to send [08:31:58]OFD Sender: No OFD packet to send [08:32:03]OFD Sender: No OFD packet to send [08:32:08]OFD Sender: No OFD packet to send [08:32:13]OFD Sender: No OFD packet to send [08:32:18]OFD Sender: No OFD packet to send [08:32:23]OFD Sender: No OFD packet to send [08:32:28]OFD Sender: No OFD packet to send [08:32:33]OFD Sender: No OFD packet to send [08:32:38]OFD Sender: No OFD packet to send [08:32:43]OFD Sender: No OFD packet to send [08:32:48]OFD Sender: No OFD packet to send [08:32:53]OFD Sender: No OFD packet to send [08:32:58]OFD Sender: No OFD packet to send [08:33:03]OFD Sender: No OFD packet to send [08:33:08]OFD Sender: No OFD packet to send [08:33:13]OFD Sender: No OFD packet to send [08:33:18]OFD Sender: No OFD packet to send [08:33:23]OFD Sender: No OFD packet to send [08:33:28]OFD Sender: No OFD packet to send [08:33:33]OFD Sender: No OFD packet to send [08:33:38]OFD Sender: No OFD packet to send [08:33:43]OFD Sender: No OFD packet to send [08:33:48]OFD Sender: No OFD packet to send [08:33:53]OFD Sender: No OFD packet to send [08:33:58]OFD Sender: No OFD packet to send [08:34:03]OFD Sender: No OFD packet to send [08:34:08]OFD Sender: No OFD packet to send [08:34:13]OFD Sender: No OFD packet to send [08:34:18]OFD Sender: No OFD packet to send [08:34:23]OFD Sender: No OFD packet to send [08:34:28]accept exits with 9 [08:34:28]New connection [08:34:28]New thread 3066928484 created [08:34:28]Thread 3066785124 joined [08:34:28]Waiting for new connection... [08:34:28] Sock 9.Parse request [08:34:28]Sock 9.Check first char [08:34:28]Sock 9.First char is OK [08:34:28]request: POST /json_proto HTTP/1.0 [08:34:28]Method: POST [08:34:28]URL: /json_proto [08:34:28]Method is POST - this is cgi request [08:34:28]url: /json_proto [08:34:28]query_string will be loaded in cgi processing [08:34:28]execute_cgi json_proto POST (null) [08:34:28]execute_cgi path=json_proto method=POST [08:34:28]POST find Content-Length [08:34:28]Host: 172.17.45.8:8080 [08:34:28]Content-Length: 683 [08:34:28]Content-Type: application/json [08:34:28] [08:34:28]POST finish read [08:34:28]Found Content-Length = 683 [08:34:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150515", "tax_sys" : 0, "items" : [ { "code": "4870002328398", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:28]execute_script... [08:34: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)150515", "tax_sys" : 0, "items" : [ { "code": "4870002328398", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:34:28]POST & json_proto [08:34:28]process_json_proto [08:34:28]json parsed OK: [08:34:28]protocol is kg_v1.0 [08:34:28]action value=close_receipt [08:34:28]process_action close_receipt [08:34:28]cmd_close_receipt [08:34:28]MH_GetDate [08:34:28]Write to MH i2c: F0 00 00 C8 11 C8 [08:34:28]Write i2c OK [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: F0 [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: F0 09 00 [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: F0 09 00 C8 11 00 18 54 A7 66 A6 1F 7F 64 F2 [08:34:28]GetLastDocTimeStamp 1722240824 [08:34:28]current date 1722242072 [08:34:28]FM_GetShiftState [08:34:28]SAM_PROTO_GetShiftState [08:34:28]wFMCommunicate request_size=4 [08:34:28]MH_SAM_APDU [08:34:28]CAPDU: 80 13 01 00 [08:34:28]Write to MH i2c: E2 08 00 C9 11 80 13 01 00 00 00 00 00 57 [08:34:28]Write i2c OK [08:34:28]MH_I2C_Read... [08:34:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:28]Read from MH i2c: E2 [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: E2 0E 00 [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: E2 0E 00 C9 11 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 D8 [08:34:28]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [08:34:28]wFMCommunicate OK [08:34:28]SAM_PROTO_GetShiftState done [08:34:28]FM_GetShiftState done [08:34:28]opened in 1722213509 [08:34:28]opened+sec_in_day 1722299909 [08:34:28]quantity*price = 10000 [08:34:28]sum+1 = 10001 [08:34:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 21 29.07.2024 08:34 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27118 ФПД: 211174633840171 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T083432&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27118&fm=211174633840171&tin=02508201610067®Number=0000000000092663&sum=10000 0 [08:34:29]StoreToDocumentArchive [08:34:29]shift 434 fd 27118 [08:34:29]save to /storage/0434/doc_00027118 [08:34:29]save last doc name /storage/0434/doc_00027118 to /storage/kkm_last_doc_name [08:34:29]save OK [08:34:29]Clear old archive folders... [08:34:29]ProcessDocumentItem done err = 0, tmpTLVsize=291 [08:34:29]tlvbuf is 001B65A0 [08:34:29]SAM_PROTO_ClearQueue [08:34:29]wFMCommunicate request_size=4 [08:34:29]MH_SAM_APDU [08:34:29]CAPDU: 80 09 00 00 [08:34:29]Write to MH i2c: E2 08 00 D6 11 80 09 00 00 00 00 00 00 59 [08:34:29]Write i2c OK [08:34:29]MH_I2C_Read... [08:34:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:29]Read from MH i2c: E2 [08:34:29]MH_I2C_Read... [08:34:29]Read from MH i2c: E2 03 00 [08:34:29]MH_I2C_Read... [08:34:29]Read from MH i2c: E2 03 00 D6 11 00 90 00 5B [08:34:29]RAPDU: 90 00 [08:34:29]wFMCommunicate OK [08:34:29]SAM_PROTO_ClearQueue done [08:34:29]KKMCreateOFDPacket [08:34:29]OFDProtocolAddRootSTLVToBuf [08:34:29]FM_MakeSignedData [08:34:29]FM_MakeSignedData [08:34:29]SAM_PROTO_SignData [08:34:29]wFMCommunicate request_size=4 [08:34:29]MH_SAM_APDU [08:34:29]CAPDU: 80 0D 01 02 [08:34:29]Write to MH i2c: E2 08 00 D7 11 80 0D 01 02 00 00 00 00 61 [08:34:29]Write i2c OK [08:34:29]MH_I2C_Read... [08:34:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:29]Read from MH i2c: E2 [08:34:29]MH_I2C_Read... [08:34:29]Read from MH i2c: E2 03 00 [08:34:29]MH_I2C_Read... [08:34:29]Read from MH i2c: E2 03 00 D7 11 00 90 00 5C [08:34:29]RAPDU: 90 00 [08:34:29]wFMCommunicate OK [08:34:29]wFMCommunicate request_size=255 [08:34:29]MH_SAM_APDU [08:34:29]CAPDU: 80 0D 02 02 FA 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 18 54 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 [08:34:29]Write to MH i2c: E2 02 01 D8 11 80 0D 02 02 FA 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 18 54 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 00 00 C6 [08:34:29]Write i2c OK [08:34:29]MH_I2C_Read... [08:34:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:29]Read from MH i2c: E2 [08:34:29]MH_I2C_Read... [08:34:29]Read from MH i2c: E2 03 00 [08:34:29]MH_I2C_Read... [08:34:29]Read from MH i2c: E2 03 00 D8 11 00 90 00 5D [08:34:29]RAPDU: 90 00 [08:34:29]wFMCommunicate OK [08:34:29]wFMCommunicate request_size=50 [08:34:29]MH_SAM_APDU [08:34:29]CAPDU: 80 0D 02 02 2D 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 EE 69 00 00 35 04 06 00 C0 0F ED 09 1E 2B [08:34:29]Write to MH i2c: E2 35 00 D9 11 80 0D 02 02 2D 00 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 EE 69 00 00 35 04 06 00 C0 0F ED 09 1E 2B 00 00 2F [08:34:29]Write i2c OK [08:34:29]MH_I2C_Read... [08:34:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:29]Read from MH i2c: E2 [08:34:29]MH_I2C_Read... [08:34:29]Read from MH i2c: E2 03 00 [08:34:29]MH_I2C_Read... [08:34:29]Read from MH i2c: E2 03 00 D9 11 00 90 00 5E [08:34:29]RAPDU: 90 00 [08:34:29]wFMCommunicate OK [08:34:29]wFMCommunicate request_size=4 [08:34:29]MH_SAM_APDU [08:34:29]CAPDU: 80 0D 03 02 [08:34:29]Write to MH i2c: E2 08 00 DA 11 80 0D 03 02 00 00 00 00 66 [08:34:29]Write i2c OK [08:34:29]MH_I2C_Read... [08:34:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:29]Read from MH i2c: E2 [08:34:29]MH_I2C_Read... [08:34:29]Read from MH i2c: E2 0B 00 [08:34:29]MH_I2C_Read... [08:34:29]Read from MH i2c: E2 0B 00 DA 11 00 7F 73 08 D6 4A 7C C4 45 90 00 06 [08:34:29]RAPDU: 7F 73 08 D6 4A 7C C4 45 90 00 [08:34:29]wFMCommunicate OK [08:34:29]SAM_PROTO_SignData done [08:34:29]FM_MakeSignedData done [08:34:29]CreateOFDProtocolMessage [08:34:29]wFMCommunicate request_size=4 [08:34:29]MH_SAM_APDU [08:34:29]CAPDU: 80 11 00 00 [08:34:29]Write to MH i2c: E2 08 00 DB 11 80 11 00 00 00 00 00 00 66 [08:34:29]Write i2c OK [08:34:29]MH_I2C_Read... [08:34:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:29]Read from MH i2c: E2 [08:34:29]MH_I2C_Read... [08:34:29]Read from MH i2c: E2 17 00 [08:34:29]MH_I2C_Read... [08:34:29]Read from MH i2c: E2 17 00 DB 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 BF [08:34:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [08:34:29]wFMCommunicate OK [08:34:29]CreateOFDProtocolMessage done [08:34:29]OFDSenderStorePacket 27118 [08:34:29]StoreOFDPacket docnum=27118 [08:34:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 37 01 00 00 A7 3C 2F 01 2B B9 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 18 54 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 EE 69 00 00 35 04 06 00 C0 0F ED 09 1E 2B 7F 73 08 D6 4A 7C C4 45 [08:34:29]CheckFolder [08:34:29]dirname=/storage/ofd_packets [08:34:29]CheckFolder done [08:34:29]ProducePacketName [08:34:29]name=ofd_packets/00027118 [08:34:29]NVStorageSaveData ofd_packets/00027118 [08:34:29]File name is /storage/ofd_packets/00027118 [08:34:29]Write 341 bytes [08:34:29]NVStorageSaveData done [08:34:29]OFDSenderStorePacket done [08:34:29]KKMCreateOFDPacket done [08:34:29]NVStorageSaveData kkm_last_timestamp [08:34:29]File name is /storage/kkm_last_timestamp [08:34:29]Write 4 bytes [08:34:29]NVStorageSaveData done [08:34:29]ExternCall_PrintAddStr [08:34:29]wPrintStart [08:34:29]Write to MH i2c: 01 00 00 DC 11 ED [08:34:29]Write i2c OK [08:34:29]MH_I2C_Read... [08:34:29]Read from MH i2c: 01 [08:34:29]MH_I2C_Read... [08:34:29]Read from MH i2c: 01 07 00 [08:34:29]MH_I2C_Read... [08:34:29]Read from MH i2c: 01 07 00 DC 11 00 00 00 00 00 FF 0F 02 [08:34:29]RasterBufferAndPrint [08:34:29]line Счет N : (3)150515 [08:34:29]line ИНН: 02508201610067 [08:34:29]line Контрольно-Кассовый Чек [08:34:29]line ПРОДАЖА [08:34:29]line Товар: 4870002328398 [08:34:29]line Вода ASU пит н.газ мята ПЭТ 1л [08:34:29]line 1.000 * 100.00 [08:34:29]line = 100.00 [08:34:29]line НДС 12% НСП 1% [08:34:29]line > о реализуемом товаре [08:34:29]line ИТОГО: 100.00 [08:34:29]line НСП 1% : 0.88 [08:34:29]line НДС 12% : 10.62 [08:34:29]line Наличными: 100.00 [08:34:29]line Безнал.: 0.00 [08:34:29]line Место: АЗС № 134 "Партнер Нефть" [08:34:29]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:34:29]line СНО: Общий режим [08:34:29]line Чек 21 29.07.2024 08:34 [08:34:29]line Смена: 434 ФФД: 1.0 [08:34:29]line ЗНМ: 0300000043 [08:34:29]line РНМ: 0000000000092663 [08:34:29]line Версия ККМ: 001 [08:34:29]line ФМ: 0000000000874937 [08:34:29]line ФД: 27118 [08:34:29]line ФПД: 211174633840171 [08:34:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T083432&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27118&fm=211174633840171&tin=02508201610067®Number=0000000000092663&sum=10000 [08:34:29]line 0 [08:34:30]written 0, free lines is 4095 [08:34:30]OFD Sender: Processing packet 27118 [packets to send 9, broken 8] [08:34:30]ProducePacketName [08:34:30]name=ofd_packets/00027118 [08:34:30]OFD Sender: To server: pG, [08:34:30]CommunicateWithHost lk.salyk.kg:30040 [08:34:30]ConnectInit lk.salyk.kg [08:34:30]Connected sock=10 [08:34:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 37 01 00 00 A7 3C 2F 01 2B B9 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 18 54 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 EE 69 00 00 35 04 06 00 C0 0F ED 09 1E 2B 7F 73 08 D6 4A 7C C4 45 [08:34:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 54 80 47 00 06 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 EE 69 00 00 F4 03 04 00 69 FA A6 66 B6 04 01 00 00 30 E1 E3 03 4E 95 19 CD [08:34:30]CommunicateWithHost err = 0 [08:34:30]CheckOFDResponse [08:34:30]1017 (14) - 77093643461234 [08:34:30]1041 (16) - 0000000000874937 [08:34:30]1040 (4) - 27118 [08:34:30]1012 (4) - 29.07.2024 02:11 [08:34:30]1206 (1) - 0 [08:34:30]OFD Sender: Remove packet 27118 [08:34:30]ProducePacketName [08:34:30]name=ofd_packets/00027118 [08:34:30]NVStorageDeleteData [08:34:30]Write to MH i2c: 01 00 00 04 12 16 [08:34:30]Write i2c OK [08:34:30]MH_I2C_Read... [08:34:30]Read from MH i2c: 01 [08:34:30]MH_I2C_Read... [08:34:30]Read from MH i2c: 01 07 00 [08:34:30]MH_I2C_Read... [08:34:30]Read from MH i2c: 01 07 00 04 12 00 00 00 00 00 D0 0C F9 [08:34:30]RasterBufferAndPrint [08:34:30]line [08:34:30]line [08:34:30]line [08:34:30]line [08:34:30]line [08:34:30]written 0, free lines is 3286 [08:34:30]MH_Cut [08:34:30]Write to MH i2c: D1 01 00 0B 12 01 EF [08:34:30]Write i2c OK [08:34:30]MH_I2C_Read... [08:34:30]Read from MH i2c: D1 [08:34:30]MH_I2C_Read... [08:34:30]Read from MH i2c: D1 01 00 [08:34:30]MH_I2C_Read... [08:34:30]Read from MH i2c: D1 01 00 0B 12 00 EE [08:34:30]Write to MH i2c: 01 00 00 0C 12 1E [08:34:30]Write i2c OK [08:34:30]MH_I2C_Read... [08:34:30]OFD Sender: No OFD packet to send [08:34:31]*** Cut start [08:34:31]*** Partial cut [08:34:31]*** CUTSNS_PIN = 1 [08:34:31]*** CUTSNS_PIN = 0 [08:34:31]*** Brake cut motor [08:34:31]Read from MH i2c: 01 [08:34:31]MH_I2C_Read... [08:34:31]*** Stop cut motor [08:34:31]*** Cut end [08:34:31]Read from MH i2c: 01 07 00 [08:34:31]MH_I2C_Read... [08:34:31]Read from MH i2c: 01 07 00 0C 12 00 00 00 00 00 FF 0F 33 [08:34:31]process_action close_receipt done [08:34:31]requested_data is exist [08:34:31]produce_requested_data [08:34:31]requested_item fm.sn is exist - process it [08:34:31]wFMCommunicate request_size=4 [08:34:31]MH_SAM_APDU [08:34:31]CAPDU: 80 11 00 00 [08:34:31]Write to MH i2c: E2 08 00 0D 12 80 11 00 00 00 00 00 00 99 [08:34:31]Write i2c OK [08:34:31]MH_I2C_Read... [08:34:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:31]Read from MH i2c: E2 [08:34:31]MH_I2C_Read... [08:34:31]Read from MH i2c: E2 17 00 [08:34:31]MH_I2C_Read... [08:34:31]Read from MH i2c: E2 17 00 0D 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 F2 [08:34:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [08:34:31]wFMCommunicate OK [08:34:31]requested_item fd.num is exist - process it [08:34:31]SAM_PROTO_GetFieldsCounters [08:34:31]wFMCommunicate request_size=4 [08:34:31]MH_SAM_APDU [08:34:31]CAPDU: 80 13 00 00 [08:34:31]Write to MH i2c: E2 08 00 0E 12 80 13 00 00 00 00 00 00 9C [08:34:31]Write i2c OK [08:34:31]MH_I2C_Read... [08:34:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:32]Read from MH i2c: E2 [08:34:32]MH_I2C_Read... [08:34:32]Read from MH i2c: E2 62 00 [08:34:32]MH_I2C_Read... [08:34:32]Read from MH i2c: E2 62 00 0E 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 EE 69 00 00 0E 04 04 00 B2 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 0D [08:34:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 EE 69 00 00 0E 04 04 00 B2 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:34:32]wFMCommunicate OK [08:34:32]SAM_PROTO_GetFieldsCounters done [08:34:32]requested_item shift.num is exist - process it [08:34:32]requested_item shift.opened is exist - process it [08:34:32]req_shift_opened [08:34:32]FM_GetShiftState [08:34:32]SAM_PROTO_GetShiftState [08:34:32]wFMCommunicate request_size=4 [08:34:32]MH_SAM_APDU [08:34:32]CAPDU: 80 13 01 00 [08:34:32]Write to MH i2c: E2 08 00 0F 12 80 13 01 00 00 00 00 00 9E [08:34:32]Write i2c OK [08:34:32]MH_I2C_Read... [08:34:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:32]Read from MH i2c: E2 [08:34:32]MH_I2C_Read... [08:34:32]Read from MH i2c: E2 0E 00 [08:34:32]MH_I2C_Read... [08:34:32]Read from MH i2c: E2 0E 00 0F 12 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 1F [08:34:32]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [08:34:32]wFMCommunicate OK [08:34:32]SAM_PROTO_GetShiftState done [08:34:32]FM_GetShiftState done [08:34:32]req_shift_opened done [08:34:32]requested_item shift.open_date is exist - process it [08:34:32]req_shift_open_date [08:34:32]req_shift_open_date done [08:34:32]produce_requested_data done [08:34:32]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27118,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [08:34:32]process_action_free close_receipt [08:34:32]json_value_free [08:34:32]json_value_free done [08:34:32]process_json_proto returns [08:34:32]Send response to host [08:34:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27118,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [08:34:32]free response buf [08:34:32]execute_script done [08:34:32]execute_script returns [08:34:32]free content buf [08:34:32]Sock 9.Close socket [08:34:32]Sock 9.Thread stoped [08:34:35]OFD Sender: No OFD packet to send [08:34:40]OFD Sender: No OFD packet to send [08:34:45]OFD Sender: No OFD packet to send [08:34:50]OFD Sender: No OFD packet to send [08:34:55]OFD Sender: No OFD packet to send [08:35:00]OFD Sender: No OFD packet to send [08:35:05]OFD Sender: No OFD packet to send [08:35:10]OFD Sender: No OFD packet to send [08:35:15]OFD Sender: No OFD packet to send [08:35:20]OFD Sender: No OFD packet to send [08:35:25]OFD Sender: No OFD packet to send [08:35:30]OFD Sender: No OFD packet to send [08:35:35]OFD Sender: No OFD packet to send [08:35:40]OFD Sender: No OFD packet to send [08:35:45]OFD Sender: No OFD packet to send [08:35:50]OFD Sender: No OFD packet to send [08:35:55]OFD Sender: No OFD packet to send [08:36:00]OFD Sender: No OFD packet to send [08:36:06]OFD Sender: No OFD packet to send [08:36:11]OFD Sender: No OFD packet to send [08:36:16]OFD Sender: No OFD packet to send [08:36:21]OFD Sender: No OFD packet to send [08:36:26]OFD Sender: No OFD packet to send [08:36:31]OFD Sender: No OFD packet to send [08:36:36]OFD Sender: No OFD packet to send [08:36:41]OFD Sender: No OFD packet to send [08:36:46]OFD Sender: No OFD packet to send [08:36:51]OFD Sender: No OFD packet to send [08:36:56]OFD Sender: No OFD packet to send [08:37:01]OFD Sender: No OFD packet to send [08:37:06]OFD Sender: No OFD packet to send [08:37:11]OFD Sender: No OFD packet to send [08:37:16]OFD Sender: No OFD packet to send [08:37:21]OFD Sender: No OFD packet to send [08:37:26]OFD Sender: No OFD packet to send [08:37:31]OFD Sender: No OFD packet to send [08:37:36]OFD Sender: No OFD packet to send [08:37:41]OFD Sender: No OFD packet to send [08:37:46]OFD Sender: No OFD packet to send [08:37:51]OFD Sender: No OFD packet to send [08:37:56]OFD Sender: No OFD packet to send [08:38:01]OFD Sender: No OFD packet to send [08:38:06]OFD Sender: No OFD packet to send [08:38:11]OFD Sender: No OFD packet to send [08:38:16]OFD Sender: No OFD packet to send [08:38:21]OFD Sender: No OFD packet to send [08:38:26]OFD Sender: No OFD packet to send [08:38:31]OFD Sender: No OFD packet to send [08:38:36]OFD Sender: No OFD packet to send [08:38:41]OFD Sender: No OFD packet to send [08:38:46]OFD Sender: No OFD packet to send [08:38:51]OFD Sender: No OFD packet to send [08:38:56]OFD Sender: No OFD packet to send [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:11]OFD Sender: No OFD packet to send [08:39:16]OFD Sender: No OFD packet to send [08:39:21]OFD Sender: No OFD packet to send [08:39:26]OFD Sender: No OFD packet to send [08:39:31]OFD Sender: No OFD packet to send [08:39:36]OFD Sender: No OFD packet to send [08:39:41]OFD Sender: No OFD packet to send [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:06]OFD Sender: No OFD packet to send [08:40:11]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:46]OFD Sender: No OFD packet to send [08:40:51]OFD Sender: No OFD packet to send [08:40:56]OFD Sender: No OFD packet to send [08:41:01]OFD Sender: No OFD packet to send [08:41:06]OFD Sender: No OFD packet to send [08:41:11]OFD Sender: No OFD packet to send [08:41:16]OFD Sender: No OFD packet to send [08:41:21]OFD Sender: No OFD packet to send [08:41:26]OFD Sender: No OFD packet to send [08:41:31]OFD Sender: No OFD packet to send [08:41:36]OFD Sender: No OFD packet to send [08:41:41]OFD Sender: No OFD packet to send [08:41:46]OFD Sender: No OFD packet to send [08:41:51]OFD Sender: No OFD packet to send [08:41:56]OFD Sender: No OFD packet to send [08:42:01]OFD Sender: No OFD packet to send [08:42:06]OFD Sender: No OFD packet to send [08:42:11]OFD Sender: No OFD packet to send [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:16]OFD Sender: No OFD packet to send [08:44:21]OFD Sender: No OFD packet to send [08:44:26]OFD Sender: No OFD packet to send [08:44:31]OFD Sender: No OFD packet to send [08:44:36]OFD Sender: No OFD packet to send [08:44:41]OFD Sender: No OFD packet to send [08:44:46]OFD Sender: No OFD packet to send [08:44:51]OFD Sender: No OFD packet to send [08:44:56]OFD Sender: No OFD packet to send [08:45:01]OFD Sender: No OFD packet to send [08:45:06]OFD Sender: No OFD packet to send [08:45:11]OFD Sender: No OFD packet to send [08:45:16]OFD Sender: No OFD packet to send [08:45:21]OFD Sender: No OFD packet to send [08:45:26]OFD Sender: No OFD packet to send [08:45:31]OFD Sender: No OFD packet to send [08:45:36]OFD Sender: No OFD packet to send [08:45:41]OFD Sender: No OFD packet to send [08:45:46]OFD Sender: No OFD packet to send [08:45:51]OFD Sender: No OFD packet to send [08:45:56]OFD Sender: No OFD packet to send [08:46:01]OFD Sender: No OFD packet to send [08:46:06]OFD Sender: No OFD packet to send [08:46:11]OFD Sender: No OFD packet to send [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:36]OFD Sender: No OFD packet to send [08:46:41]OFD Sender: No OFD packet to send [08:46:46]OFD Sender: No OFD packet to send [08:46:51]OFD Sender: No OFD packet to send [08:46:56]OFD Sender: No OFD packet to send [08:47:01]OFD Sender: No OFD packet to send [08:47:06]OFD Sender: No OFD packet to send [08:47:11]OFD Sender: No OFD packet to send [08:47:16]OFD Sender: No OFD packet to send [08:47:21]OFD Sender: No OFD packet to send [08:47:26]OFD Sender: No OFD packet to send [08:47:31]OFD Sender: No OFD packet to send [08:47:36]OFD Sender: No OFD packet to send [08:47:41]OFD Sender: No OFD packet to send [08:47:46]OFD Sender: No OFD packet to send [08:47:51]OFD Sender: No OFD packet to send [08:47:56]OFD Sender: No OFD packet to send [08:48:01]OFD Sender: No OFD packet to send [08:48:06]OFD Sender: No OFD packet to send [08:48:11]OFD Sender: No OFD packet to send [08:48:16]OFD Sender: No OFD packet to send [08:48:21]OFD Sender: No OFD packet to send [08:48:26]OFD Sender: No OFD packet to send [08:48:31]OFD Sender: No OFD packet to send [08:48:36]OFD Sender: No OFD packet to send [08:48:41]OFD Sender: No OFD packet to send [08:48:46]OFD Sender: No OFD packet to send [08:48:51]OFD Sender: No OFD packet to send [08:48:56]OFD Sender: No OFD packet to send [08:49:01]OFD Sender: No OFD packet to send [08:49:06]OFD Sender: No OFD packet to send [08:49:10]accept exits with 8 [08:49:10]New connection [08:49:10]New thread 3066785124 created [08:49:10]Thread 3066928484 joined [08:49:10]Waiting for new connection... [08:49:10] Sock 8.Parse request [08:49:10]Sock 8.Check first char [08:49:10]Sock 8.First char is OK [08:49:10]request: POST /json_proto HTTP/1.0 [08:49:10]Method: POST [08:49:10]URL: /json_proto [08:49:10]Method is POST - this is cgi request [08:49:10]url: /json_proto [08:49:10]query_string will be loaded in cgi processing [08:49:10]execute_cgi json_proto POST (null) [08:49:10]execute_cgi path=json_proto method=POST [08:49:10]POST find Content-Length [08:49:10]Host: 172.17.45.8:8080 [08:49:10]Content-Length: 644 [08:49:10]Content-Type: application/json [08:49:10] [08:49:10]POST finish read [08:49:10]Found Content-Length = 644 [08:49:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150516", "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" ] } } [08:49:10]execute_script... [08:49: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)150516", "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" ] } } [08:49:10]POST & json_proto [08:49:10]process_json_proto [08:49:10]json parsed OK: [08:49:10]protocol is kg_v1.0 [08:49:10]action value=close_receipt [08:49:10]process_action close_receipt [08:49:10]cmd_close_receipt [08:49:10]MH_GetDate [08:49:10]Write to MH i2c: F0 00 00 10 12 11 [08:49:10]Write i2c OK [08:49:10]MH_I2C_Read... [08:49:10]Read from MH i2c: F0 [08:49:10]MH_I2C_Read... [08:49:10]Read from MH i2c: F0 09 00 [08:49:10]MH_I2C_Read... [08:49:10]Read from MH i2c: F0 09 00 10 12 00 8B 57 A7 66 A6 1F 7F 64 B1 [08:49:10]GetLastDocTimeStamp 1722242072 [08:49:10]current date 1722242955 [08:49:10]FM_GetShiftState [08:49:10]SAM_PROTO_GetShiftState [08:49:10]wFMCommunicate request_size=4 [08:49:10]MH_SAM_APDU [08:49:10]CAPDU: 80 13 01 00 [08:49:10]Write to MH i2c: E2 08 00 11 12 80 13 01 00 00 00 00 00 A0 [08:49:10]Write i2c OK [08:49:10]MH_I2C_Read... [08:49:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:10]Read from MH i2c: E2 [08:49:10]MH_I2C_Read... [08:49:10]Read from MH i2c: E2 0E 00 [08:49:10]MH_I2C_Read... [08:49:10]Read from MH i2c: E2 0E 00 11 12 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 21 [08:49:10]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [08:49:10]wFMCommunicate OK [08:49:10]SAM_PROTO_GetShiftState done [08:49:10]FM_GetShiftState done [08:49:10]opened in 1722213509 [08:49:10]opened+sec_in_day 1722299909 [08:49:10]quantity*price = 3500 [08:49:10]sum+1 = 3501 [08:49:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 35.00 НСП 1% : 0.31 НДС 12% : 3.72 Наличными: 35.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 22 29.07.2024 08:49 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27119 ФПД: 266383549585541 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T084915&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27119&fm=266383549585541&tin=02508201610067®Number=0000000000092663&sum=3500 0 [08:49:12]StoreToDocumentArchive [08:49:12]shift 434 fd 27119 [08:49:12]save to /storage/0434/doc_00027119 [08:49:12]save last doc name /storage/0434/doc_00027119 to /storage/kkm_last_doc_name [08:49:12]save OK [08:49:12]Clear old archive folders... [08:49:12]ProcessDocumentItem done err = 0, tmpTLVsize=275 [08:49:12]tlvbuf is 001B5E00 [08:49:12]SAM_PROTO_ClearQueue [08:49:12]wFMCommunicate request_size=4 [08:49:12]MH_SAM_APDU [08:49:12]CAPDU: 80 09 00 00 [08:49:12]Write to MH i2c: E2 08 00 1E 12 80 09 00 00 00 00 00 00 A2 [08:49:12]Write i2c OK [08:49:12]MH_I2C_Read... [08:49:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:49:12]Read from MH i2c: E2 [08:49:12]MH_I2C_Read... [08:49:12]Read from MH i2c: E2 03 00 [08:49:12]MH_I2C_Read... [08:49:12]Read from MH i2c: E2 03 00 1E 12 00 90 00 A4 [08:49:12]RAPDU: 90 00 [08:49:12]wFMCommunicate OK [08:49:12]SAM_PROTO_ClearQueue done [08:49:12]KKMCreateOFDPacket [08:49:12]OFDProtocolAddRootSTLVToBuf [08:49:12]FM_MakeSignedData [08:49:12]FM_MakeSignedData [08:49:12]SAM_PROTO_SignData [08:49:12]wFMCommunicate request_size=4 [08:49:12]MH_SAM_APDU [08:49:12]CAPDU: 80 0D 01 02 [08:49:12]Write to MH i2c: E2 08 00 1F 12 80 0D 01 02 00 00 00 00 AA [08:49:12]Write i2c OK [08:49:12]MH_I2C_Read... [08:49:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:49:12]Read from MH i2c: E2 [08:49:12]MH_I2C_Read... [08:49:12]Read from MH i2c: E2 03 00 [08:49:12]MH_I2C_Read... [08:49:12]Read from MH i2c: E2 03 00 1F 12 00 90 00 A5 [08:49:12]RAPDU: 90 00 [08:49:12]wFMCommunicate OK [08:49:12]wFMCommunicate request_size=255 [08:49:12]MH_SAM_APDU [08:49:12]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 16 00 00 00 F4 03 04 00 8B 57 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 [08:49:12]Write to MH i2c: E2 02 01 20 12 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 16 00 00 00 F4 03 04 00 8B 57 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 00 00 4B [08:49:12]Write i2c OK [08:49:12]MH_I2C_Read... [08:49:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:12]Read from MH i2c: E2 [08:49:12]MH_I2C_Read... [08:49:12]Read from MH i2c: E2 03 00 [08:49:12]MH_I2C_Read... [08:49:12]Read from MH i2c: E2 03 00 20 12 00 90 00 A6 [08:49:12]RAPDU: 90 00 [08:49:12]wFMCommunicate OK [08:49:12]wFMCommunicate request_size=34 [08:49:12]MH_SAM_APDU [08:49:12]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 EF 69 00 00 35 04 06 00 F2 46 40 D8 D8 85 [08:49:12]Write to MH i2c: E2 25 00 21 12 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 EF 69 00 00 35 04 06 00 F2 46 40 D8 D8 85 00 00 79 [08:49:12]Write i2c OK [08:49:12]MH_I2C_Read... [08:49:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:12]Read from MH i2c: E2 [08:49:12]MH_I2C_Read... [08:49:12]Read from MH i2c: E2 03 00 [08:49:12]MH_I2C_Read... [08:49:12]Read from MH i2c: E2 03 00 21 12 00 90 00 A7 [08:49:12]RAPDU: 90 00 [08:49:12]wFMCommunicate OK [08:49:12]wFMCommunicate request_size=4 [08:49:12]MH_SAM_APDU [08:49:12]CAPDU: 80 0D 03 02 [08:49:12]Write to MH i2c: E2 08 00 22 12 80 0D 03 02 00 00 00 00 AF [08:49:12]Write i2c OK [08:49:12]MH_I2C_Read... [08:49:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:49:12]Read from MH i2c: E2 [08:49:12]MH_I2C_Read... [08:49:12]Read from MH i2c: E2 0B 00 [08:49:12]MH_I2C_Read... [08:49:12]Read from MH i2c: E2 0B 00 22 12 00 87 06 5E 57 2E 50 74 8D 90 00 71 [08:49:12]RAPDU: 87 06 5E 57 2E 50 74 8D 90 00 [08:49:12]wFMCommunicate OK [08:49:12]SAM_PROTO_SignData done [08:49:12]FM_MakeSignedData done [08:49:12]CreateOFDProtocolMessage [08:49:12]wFMCommunicate request_size=4 [08:49:12]MH_SAM_APDU [08:49:12]CAPDU: 80 11 00 00 [08:49:12]Write to MH i2c: E2 08 00 23 12 80 11 00 00 00 00 00 00 AF [08:49:12]Write i2c OK [08:49:12]MH_I2C_Read... [08:49:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:12]Read from MH i2c: E2 [08:49:12]MH_I2C_Read... [08:49:12]Read from MH i2c: E2 17 00 [08:49:12]MH_I2C_Read... [08:49:12]Read from MH i2c: E2 17 00 23 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 08 [08:49:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [08:49:12]wFMCommunicate OK [08:49:12]CreateOFDProtocolMessage done [08:49:12]OFDSenderStorePacket 27119 [08:49:12]StoreOFDPacket docnum=27119 [08:49:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 27 01 00 00 6D 76 1F 01 BE 0B 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 16 00 00 00 F4 03 04 00 8B 57 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 EF 69 00 00 35 04 06 00 F2 46 40 D8 D8 85 87 06 5E 57 2E 50 74 8D [08:49:12]CheckFolder [08:49:12]dirname=/storage/ofd_packets [08:49:12]CheckFolder done [08:49:12]ProducePacketName [08:49:12]name=ofd_packets/00027119 [08:49:12]NVStorageSaveData ofd_packets/00027119 [08:49:12]File name is /storage/ofd_packets/00027119 [08:49:12]Write 325 bytes [08:49:12]NVStorageSaveData done [08:49:12]OFDSenderStorePacket done [08:49:12]KKMCreateOFDPacket done [08:49:12]NVStorageSaveData kkm_last_timestamp [08:49:12]File name is /storage/kkm_last_timestamp [08:49:12]Write 4 bytes [08:49:12]NVStorageSaveData done [08:49:12]ExternCall_PrintAddStr [08:49:12]wPrintStart [08:49:12]Write to MH i2c: 01 00 00 24 12 36 [08:49:12]Write i2c OK [08:49:12]MH_I2C_Read... [08:49:12]Read from MH i2c: 01 [08:49:12]MH_I2C_Read... [08:49:12]Read from MH i2c: 01 07 00 [08:49:12]MH_I2C_Read... [08:49:12]Read from MH i2c: 01 07 00 24 12 00 00 00 00 00 FF 0F 4B [08:49:12]RasterBufferAndPrint [08:49:12]line Счет N : (3)150516 [08:49:12]line ИНН: 02508201610067 [08:49:12]line Контрольно-Кассовый Чек [08:49:12]line ПРОДАЖА [08:49:12]line Товар: 4700000310326 [08:49:12]line Вода Адыгене 1л б/г [08:49:12]line 1.000 * 35.00 [08:49:12]line = 35.00 [08:49:12]line НДС 12% НСП 1% [08:49:12]line > о реализуемом товаре [08:49:12]line ИТОГО: 35.00 [08:49:12]line НСП 1% : 0.31 [08:49:12]line НДС 12% : 3.72 [08:49:12]line Наличными: 35.00 [08:49:12]line Безнал.: 0.00 [08:49:12]line Место: АЗС № 134 "Партнер Нефть" [08:49:12]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [08:49:12]line СНО: Общий режим [08:49:12]line Чек 22 29.07.2024 08:49 [08:49:12]line Смена: 434 ФФД: 1.0 [08:49:12]line ЗНМ: 0300000043 [08:49:12]line РНМ: 0000000000092663 [08:49:12]line Версия ККМ: 001 [08:49:12]line ФМ: 0000000000874937 [08:49:12]line ФД: 27119 [08:49:12]line ФПД: 266383549585541 [08:49:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T084915&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27119&fm=266383549585541&tin=02508201610067®Number=0000000000092663&sum=3500 [08:49:12]OFD Sender: Processing packet 27119 [packets to send 9, broken 8] [08:49:12]ProducePacketName [08:49:12]name=ofd_packets/00027119 [08:49:12]OFD Sender: To server: pG, [08:49:12]CommunicateWithHost lk.salyk.kg:30040 [08:49:12]ConnectInit lk.salyk.kg [08:49:12]line 0 [08:49:12]written 0, free lines is 4095 [08:49:13]Write to MH i2c: 01 00 00 4B 12 5D [08:49:13]Write i2c OK [08:49:13]MH_I2C_Read... [08:49:13]Read from MH i2c: 01 [08:49:13]MH_I2C_Read... [08:49:13]Read from MH i2c: 01 07 00 [08:49:13]MH_I2C_Read... [08:49:13]Read from MH i2c: 01 07 00 4B 12 00 00 00 00 00 EB 0C 5B [08:49:13]RasterBufferAndPrint [08:49:13]line [08:49:13]line [08:49:13]line [08:49:13]line [08:49:13]line [08:49:13]written 0, free lines is 3313 [08:49:13]MH_Cut [08:49:13]Write to MH i2c: D1 01 00 52 12 01 36 [08:49:13]Write i2c OK [08:49:13]MH_I2C_Read... [08:49:13]Read from MH i2c: D1 [08:49:13]MH_I2C_Read... [08:49:13]Read from MH i2c: D1 01 00 [08:49:13]MH_I2C_Read... [08:49:13]Read from MH i2c: D1 01 00 52 12 00 35 [08:49:13]Write to MH i2c: 01 00 00 53 12 65 [08:49:13]Write i2c OK [08:49:13]MH_I2C_Read... [08:49:14]*** Cut start [08:49:14]*** Partial cut [08:49:14]*** CUTSNS_PIN = 1 [08:49:14]*** CUTSNS_PIN = 0 [08:49:14]*** Brake cut motor [08:49:14]Read from MH i2c: 01 [08:49:14]MH_I2C_Read... [08:49:14]*** Stop cut motor [08:49:14]*** Cut end [08:49:14]Read from MH i2c: 01 07 00 [08:49:14]MH_I2C_Read... [08:49:14]Read from MH i2c: 01 07 00 53 12 00 00 00 00 00 FF 0F 7A [08:49:14]process_action close_receipt done [08:49:14]requested_data is exist [08:49:14]produce_requested_data [08:49:14]requested_item fm.sn is exist - process it [08:49:14]wFMCommunicate request_size=4 [08:49:14]MH_SAM_APDU [08:49:14]CAPDU: 80 11 00 00 [08:49:14]Write to MH i2c: E2 08 00 54 12 80 11 00 00 00 00 00 00 E0 [08:49:14]Write i2c OK [08:49:14]MH_I2C_Read... [08:49:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:14]Read from MH i2c: E2 [08:49:14]MH_I2C_Read... [08:49:14]Read from MH i2c: E2 17 00 [08:49:14]MH_I2C_Read... [08:49:14]Read from MH i2c: E2 17 00 54 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 39 [08:49:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [08:49:14]wFMCommunicate OK [08:49:14]requested_item fd.num is exist - process it [08:49:14]SAM_PROTO_GetFieldsCounters [08:49:14]wFMCommunicate request_size=4 [08:49:14]MH_SAM_APDU [08:49:14]CAPDU: 80 13 00 00 [08:49:14]Write to MH i2c: E2 08 00 55 12 80 13 00 00 00 00 00 00 E3 [08:49:14]Write i2c OK [08:49:14]MH_I2C_Read... [08:49:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:49:14]Read from MH i2c: E2 [08:49:14]MH_I2C_Read... [08:49:14]Read from MH i2c: E2 62 00 [08:49:14]MH_I2C_Read... [08:49:14]Read from MH i2c: E2 62 00 55 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 EF 69 00 00 0E 04 04 00 B2 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 58 [08:49:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 EF 69 00 00 0E 04 04 00 B2 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:49:14]wFMCommunicate OK [08:49:14]SAM_PROTO_GetFieldsCounters done [08:49:14]requested_item shift.num is exist - process it [08:49:14]requested_item shift.opened is exist - process it [08:49:14]req_shift_opened [08:49:14]FM_GetShiftState [08:49:14]SAM_PROTO_GetShiftState [08:49:14]wFMCommunicate request_size=4 [08:49:14]MH_SAM_APDU [08:49:14]CAPDU: 80 13 01 00 [08:49:14]Write to MH i2c: E2 08 00 56 12 80 13 01 00 00 00 00 00 E5 [08:49:14]Write i2c OK [08:49:14]MH_I2C_Read... [08:49:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:15]Read from MH i2c: E2 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: E2 0E 00 [08:49:15]MH_I2C_Read... [08:49:15]Read from MH i2c: E2 0E 00 56 12 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 66 [08:49:15]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [08:49:15]wFMCommunicate OK [08:49:15]SAM_PROTO_GetShiftState done [08:49:15]FM_GetShiftState done [08:49:15]req_shift_opened done [08:49:15]requested_item shift.open_date is exist - process it [08:49:15]req_shift_open_date [08:49:15]req_shift_open_date done [08:49:15]produce_requested_data done [08:49:15]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27119,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [08:49:15]process_action_free close_receipt [08:49:15]json_value_free [08:49:15]json_value_free done [08:49:15]process_json_proto returns [08:49:15]Send response to host [08:49:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27119,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [08:49:15]free response buf [08:49:15]execute_script done [08:49:15]execute_script returns [08:49:15]free content buf [08:49:15]Sock 8.Close socket [08:49:15]Sock 8.Thread stoped [08:51:22]ConnectInit Can't connect to host [08:51:22]CommunicateWithHost connect error [08:51:22]CommunicateWithHost err = -1 [08:51:22]OFD Sender: Server communicate error [08:51:27]OFD Sender: Processing packet 27119 [packets to send 9, broken 8] [08:51:27]ProducePacketName [08:51:27]name=ofd_packets/00027119 [08:51:27]OFD Sender: To server: pG, [08:51:27]CommunicateWithHost lk.salyk.kg:30040 [08:51:27]ConnectInit lk.salyk.kg [08:51:28]Connected sock=8 [08:51:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 27 01 00 00 6D 76 1F 01 BE 0B 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 16 00 00 00 F4 03 04 00 8B 57 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 EF 69 00 00 35 04 06 00 F2 46 40 D8 D8 85 87 06 5E 57 2E 50 74 8D [08:51:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 20 EC 47 00 46 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 34 39 33 37 10 04 04 00 EF 69 00 00 F4 03 04 00 63 FE A6 66 B6 04 01 00 00 48 05 30 D8 73 C4 04 F8 [08:51:28]CommunicateWithHost err = 0 [08:51:28]CheckOFDResponse [08:51:28]1017 (14) - 77093643461234 [08:51:28]1041 (16) - 0000000000874937 [08:51:28]1040 (4) - 27119 [08:51:28]1012 (4) - 29.07.2024 02:28 [08:51:28]1206 (1) - 0 [08:51:28]OFD Sender: Remove packet 27119 [08:51:28]ProducePacketName [08:51:28]name=ofd_packets/00027119 [08:51:28]NVStorageDeleteData [08:51:28]OFD Sender: No OFD packet to send [08:51:33]OFD Sender: No OFD packet to send [08:51:38]OFD Sender: No OFD packet to send [08:51:43]OFD Sender: No OFD packet to send [08:51:48]OFD Sender: No OFD packet to send [08:51:53]OFD Sender: No OFD packet to send [08:51:58]OFD Sender: No OFD packet to send [08:52:03]OFD Sender: No OFD packet to send [08:52:08]OFD Sender: No OFD packet to send [08:52:13]OFD Sender: No OFD packet to send [08:52:18]OFD Sender: No OFD packet to send [08:52:23]OFD Sender: No OFD packet to send [08:52:28]OFD Sender: No OFD packet to send [08:52:33]OFD Sender: No OFD packet to send [08:52:38]OFD Sender: No OFD packet to send [08:52:43]OFD Sender: No OFD packet to send [08:52:48]OFD Sender: No OFD packet to send [08:52:53]OFD Sender: No OFD packet to send [08:52:58]OFD Sender: No OFD packet to send [08:53:03]OFD Sender: No OFD packet to send [08:53:08]OFD Sender: No OFD packet to send [08:53:13]OFD Sender: No OFD packet to send [08:53:18]OFD Sender: No OFD packet to send [08:53:23]OFD Sender: No OFD packet to send [08:53:28]OFD Sender: No OFD packet to send [08:53:33]OFD Sender: No OFD packet to send [08:53:38]OFD Sender: No OFD packet to send [08:53:43]OFD Sender: No OFD packet to send [08:53:48]OFD Sender: No OFD packet to send [08:53:53]OFD Sender: No OFD packet to send [08:53:58]OFD Sender: No OFD packet to send [08:54:03]OFD Sender: No OFD packet to send [08:54:08]OFD Sender: No OFD packet to send [08:54:13]OFD Sender: No OFD packet to send [08:54:18]OFD Sender: No OFD packet to send [08:54:23]OFD Sender: No OFD packet to send [08:54:28]OFD Sender: No OFD packet to send [08:54:33]OFD Sender: No OFD packet to send [08:54:38]OFD Sender: No OFD packet to send [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]OFD Sender: No OFD packet to send [08:54:58]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55: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:14]OFD Sender: No OFD packet to send [08:57:19]OFD Sender: No OFD packet to send [08:57:24]OFD Sender: No OFD packet to send [08:57:29]OFD Sender: No OFD packet to send [08:57:34]OFD Sender: No OFD packet to send [08:57:39]OFD Sender: No OFD packet to send [08:57:44]OFD Sender: No OFD packet to send [08:57:49]OFD Sender: No OFD packet to send [08:57:54]OFD Sender: No OFD packet to send [08:57:59]OFD Sender: No OFD packet to send [08:58:04]OFD Sender: No OFD packet to send [08:58:09]OFD Sender: No OFD packet to send [08:58:14]OFD Sender: No OFD packet to send [08:58:19]OFD Sender: No OFD packet to send [08:58:24]OFD Sender: No OFD packet to send [08:58:29]OFD Sender: No OFD packet to send [08:58:34]OFD Sender: No OFD packet to send [08:58:39]OFD Sender: No OFD packet to send [08:58:44]OFD Sender: No OFD packet to send [08:58:49]OFD Sender: No OFD packet to send [08:58:54]OFD Sender: No OFD packet to send [08:58:59]OFD Sender: No OFD packet to send [08:59:04]OFD Sender: No OFD packet to send [08:59:09]OFD Sender: No OFD packet to send [08:59:14]OFD Sender: No OFD packet to send [08:59:19]OFD Sender: No OFD packet to send [08:59:24]OFD Sender: No OFD packet to send [08:59:29]OFD Sender: No OFD packet to send [08:59:34]OFD Sender: No OFD packet to send [08:59:39]OFD Sender: No OFD packet to send [08:59:44]OFD Sender: No OFD packet to send [08:59:49]OFD Sender: No OFD packet to send [08:59:54]OFD Sender: No OFD packet to send [08:59:59]OFD Sender: No OFD packet to send [09:00:04]OFD Sender: No OFD packet to send [09:00:09]OFD Sender: No OFD packet to send [09:00:14]OFD Sender: No OFD packet to send [09:00:19]OFD Sender: No OFD packet to send [09:00:24]OFD Sender: No OFD packet to send [09:00:29]OFD Sender: No OFD packet to send [09:00:34]OFD Sender: No OFD packet to send [09:00:39]OFD Sender: No OFD packet to send [09:00:44]OFD Sender: No OFD packet to send [09:00:49]OFD Sender: No OFD packet to send [09:00:54]OFD Sender: No OFD packet to send [09:00:59]OFD Sender: No OFD packet to send [09:01:04]OFD Sender: No OFD packet to send [09:01:09]OFD Sender: No OFD packet to send [09:01:14]OFD Sender: No OFD packet to send [09:01:19]OFD Sender: No OFD packet to send [09:01:24]OFD Sender: No OFD packet to send [09:01:29]OFD Sender: No OFD packet to send [09:01:34]OFD Sender: No OFD packet to send [09:01:39]OFD Sender: No OFD packet to send [09:01:44]OFD Sender: No OFD packet to send [09:01:49]OFD Sender: No OFD packet to send [09:01:54]OFD Sender: No OFD packet to send [09:01:59]OFD Sender: No OFD packet to send [09:02:04]OFD Sender: No OFD packet to send [09:02:06]accept exits with 9 [09:02:06]New connection [09:02:06]New thread 3066928484 created [09:02:06]Thread 3066785124 joined [09:02:06]Waiting for new connection... [09:02:06] Sock 9.Parse request [09:02:06]Sock 9.Check first char [09:02:06]Sock 9.First char is OK [09:02:06]request: POST /json_proto HTTP/1.0 [09:02:06]Method: POST [09:02:06]URL: /json_proto [09:02:06]Method is POST - this is cgi request [09:02:06]url: /json_proto [09:02:06]query_string will be loaded in cgi processing [09:02:06]execute_cgi json_proto POST (null) [09:02:06]execute_cgi path=json_proto method=POST [09:02:06]POST find Content-Length [09:02:06]Host: 172.17.45.8:8080 [09:02:06]Content-Length: 830 [09:02:06]Content-Type: application/json [09:02:06] [09:02:06]POST finish read [09:02:06]Found Content-Length = 830 [09:02:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150517", "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" : 110.00, "quantity" : 1.000, "sum" : 110.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" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:06]execute_script... [09:02:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150517", "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" : 110.00, "quantity" : 1.000, "sum" : 110.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" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:06]POST & json_proto [09:02:06]process_json_proto [09:02:06]json parsed OK: [09:02:06]protocol is kg_v1.0 [09:02:06]action value=close_receipt [09:02:06]process_action close_receipt [09:02:06]cmd_close_receipt [09:02:06]MH_GetDate [09:02:06]Write to MH i2c: F0 00 00 57 12 58 [09:02:06]Write i2c OK [09:02:06]MH_I2C_Read... [09:02:06]Read from MH i2c: F0 [09:02:06]MH_I2C_Read... [09:02:06]Read from MH i2c: F0 09 00 [09:02:06]MH_I2C_Read... [09:02:06]Read from MH i2c: F0 09 00 57 12 00 93 5A A7 66 A6 1F 7F 64 03 [09:02:06]GetLastDocTimeStamp 1722242955 [09:02:06]current date 1722243731 [09:02:06]FM_GetShiftState [09:02:06]SAM_PROTO_GetShiftState [09:02:06]wFMCommunicate request_size=4 [09:02:06]MH_SAM_APDU [09:02:06]CAPDU: 80 13 01 00 [09:02:06]Write to MH i2c: E2 08 00 58 12 80 13 01 00 00 00 00 00 E7 [09:02:06]Write i2c OK [09:02:06]MH_I2C_Read... [09:02:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:06]Read from MH i2c: E2 [09:02:06]MH_I2C_Read... [09:02:06]Read from MH i2c: E2 0E 00 [09:02:06]MH_I2C_Read... [09:02:06]Read from MH i2c: E2 0E 00 58 12 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 68 [09:02:06]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [09:02:06]wFMCommunicate OK [09:02:06]SAM_PROTO_GetShiftState done [09:02:06]FM_GetShiftState done [09:02:06]opened in 1722213509 [09:02:06]opened+sec_in_day 1722299909 [09:02:06]quantity*price = 11000 [09:02:06]sum+1 = 11001 [09:02:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 0.00 Безнал.: 110.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 23 29.07.2024 09:02 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874937 ФД: 27120 ФПД: 175418499793235 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T090211&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27120&fm=175418499793235&tin=02508201610067®Number=0000000000092663&sum=11000 0 [09:02:08]StoreToDocumentArchive [09:02:08]shift 434 fd 27120 [09:02:08]save to /storage/0434/doc_00027120 [09:02:08]save last doc name /storage/0434/doc_00027120 to /storage/kkm_last_doc_name [09:02:08]save OK [09:02:08]Clear old archive folders... [09:02:08]ProcessDocumentItem done err = 0, tmpTLVsize=293 [09:02:08]tlvbuf is 001A5E70 [09:02:08]SAM_PROTO_ClearQueue [09:02:08]wFMCommunicate request_size=4 [09:02:08]MH_SAM_APDU [09:02:08]CAPDU: 80 09 00 00 [09:02:08]Write to MH i2c: E2 08 00 65 12 80 09 00 00 00 00 00 00 E9 [09:02:08]Write i2c OK [09:02:08]MH_I2C_Read... [09:02:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:08]Read from MH i2c: E2 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: E2 03 00 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: E2 03 00 65 12 00 90 00 EB [09:02:08]RAPDU: 90 00 [09:02:08]wFMCommunicate OK [09:02:08]SAM_PROTO_ClearQueue done [09:02:08]KKMCreateOFDPacket [09:02:08]OFDProtocolAddRootSTLVToBuf [09:02:08]FM_MakeSignedData [09:02:08]FM_MakeSignedData [09:02:08]SAM_PROTO_SignData [09:02:08]wFMCommunicate request_size=4 [09:02:08]MH_SAM_APDU [09:02:08]CAPDU: 80 0D 01 02 [09:02:08]Write to MH i2c: E2 08 00 66 12 80 0D 01 02 00 00 00 00 F1 [09:02:08]Write i2c OK [09:02:08]MH_I2C_Read... [09:02:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:08]Read from MH i2c: E2 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: E2 03 00 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: E2 03 00 66 12 00 90 00 EC [09:02:08]RAPDU: 90 00 [09:02:08]wFMCommunicate OK [09:02:08]wFMCommunicate request_size=255 [09:02:08]MH_SAM_APDU [09:02:08]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 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 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 93 5A A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [09:02:08]Write to MH i2c: E2 02 01 67 12 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 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 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 93 5A A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 CF [09:02:08]Write i2c OK [09:02:08]MH_I2C_Read... [09:02:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:08]Read from MH i2c: E2 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: E2 03 00 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: E2 03 00 67 12 00 90 00 ED [09:02:08]RAPDU: 90 00 [09:02:08]wFMCommunicate OK [09:02:08]wFMCommunicate request_size=52 [09:02:08]MH_SAM_APDU [09:02:08]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F0 69 00 00 35 04 06 00 9F 8A CD 5E 01 53 [09:02:08]Write to MH i2c: E2 37 00 68 12 80 0D 02 02 2F 00 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F0 69 00 00 35 04 06 00 9F 8A CD 5E 01 53 00 00 BF [09:02:08]Write i2c OK [09:02:08]MH_I2C_Read... [09:02:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:08]Read from MH i2c: E2 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: E2 03 00 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: E2 03 00 68 12 00 90 00 EE [09:02:08]RAPDU: 90 00 [09:02:08]wFMCommunicate OK [09:02:08]wFMCommunicate request_size=4 [09:02:08]MH_SAM_APDU [09:02:08]CAPDU: 80 0D 03 02 [09:02:08]Write to MH i2c: E2 08 00 69 12 80 0D 03 02 00 00 00 00 F6 [09:02:08]Write i2c OK [09:02:08]MH_I2C_Read... [09:02:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:08]Read from MH i2c: E2 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: E2 0B 00 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: E2 0B 00 69 12 00 59 25 31 64 F4 FE 05 F1 90 00 F2 [09:02:08]RAPDU: 59 25 31 64 F4 FE 05 F1 90 00 [09:02:08]wFMCommunicate OK [09:02:08]SAM_PROTO_SignData done [09:02:08]FM_MakeSignedData done [09:02:08]CreateOFDProtocolMessage [09:02:08]wFMCommunicate request_size=4 [09:02:08]MH_SAM_APDU [09:02:08]CAPDU: 80 11 00 00 [09:02:08]Write to MH i2c: E2 08 00 6A 12 80 11 00 00 00 00 00 00 F6 [09:02:08]Write i2c OK [09:02:08]MH_I2C_Read... [09:02:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:08]Read from MH i2c: E2 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: E2 17 00 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: E2 17 00 6A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 4F [09:02:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [09:02:08]wFMCommunicate OK [09:02:08]CreateOFDProtocolMessage done [09:02:08]OFDSenderStorePacket 27120 [09:02:08]StoreOFDPacket docnum=27120 [09:02:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 39 01 00 00 56 BD 31 01 37 C1 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 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 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 93 5A A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F0 69 00 00 35 04 06 00 9F 8A CD 5E 01 53 59 25 31 64 F4 FE 05 F1 [09:02:08]CheckFolder [09:02:08]dirname=/storage/ofd_packets [09:02:08]CheckFolder done [09:02:08]ProducePacketName [09:02:08]name=ofd_packets/00027120 [09:02:08]NVStorageSaveData ofd_packets/00027120 [09:02:08]File name is /storage/ofd_packets/00027120 [09:02:08]Write 343 bytes [09:02:08]NVStorageSaveData done [09:02:08]OFDSenderStorePacket done [09:02:08]KKMCreateOFDPacket done [09:02:08]NVStorageSaveData kkm_last_timestamp [09:02:08]File name is /storage/kkm_last_timestamp [09:02:08]Write 4 bytes [09:02:08]NVStorageSaveData done [09:02:08]ExternCall_PrintAddStr [09:02:08]wPrintStart [09:02:08]Write to MH i2c: 01 00 00 6B 12 7D [09:02:08]Write i2c OK [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: 01 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: 01 07 00 [09:02:08]MH_I2C_Read... [09:02:08]Read from MH i2c: 01 07 00 6B 12 00 00 00 00 00 FF 0F 92 [09:02:08]RasterBufferAndPrint [09:02:08]line Счет N : (3)150517 [09:02:08]line ИНН: 02508201610067 [09:02:08]line Контрольно-Кассовый Чек [09:02:08]line ПРОДАЖА [09:02:08]line Товар: 4870022003305 [09:02:08]line Напиток Gorilla эн нат ж/б 0,5/0,45л [09:02:08]line 1.000 * 110.00 [09:02:08]line = 110.00 [09:02:08]line НДС 12% НСП 1% [09:02:08]line > о реализуемом товаре [09:02:08]line ИТОГО: 110.00 [09:02:08]line НСП 1% : 0.97 [09:02:08]line НДС 12% : 11.68 [09:02:08]line Наличными: 0.00 [09:02:08]line Безнал.: 110.00 [09:02:08]line Место: АЗС № 134 "Партнер Нефть" [09:02:08]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:02:08]line СНО: Общий режим [09:02:08]line Чек 23 29.07.2024 09:02 [09:02:08]line Смена: 434 ФФД: 1.0 [09:02:08]line ЗНМ: 0300000043 [09:02:08]line РНМ: 0000000000092663 [09:02:08]line Версия ККМ: 001 [09:02:08]line Платежная система: O! деньги [09:02:08]line ФМ: 0000000000874937 [09:02:08]line ФД: 27120 [09:02:08]line ФПД: 175418499793235 [09:02:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T090211&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27120&fm=175418499793235&tin=02508201610067®Number=0000000000092663&sum=11000 [09:02:09]OFD Sender: Processing packet 27120 [packets to send 9, broken 8] [09:02:09]ProducePacketName [09:02:09]name=ofd_packets/00027120 [09:02:09]OFD Sender: To server: pG, [09:02:09]CommunicateWithHost lk.salyk.kg:30040 [09:02:09]ConnectInit lk.salyk.kg [09:02:09]line 0 [09:02:09]written 0, free lines is 4095 [09:02:09]Connected sock=10 [09:02:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 39 01 00 00 56 BD 31 01 37 C1 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 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 00 00 00 00 00 00 39 04 06 00 F8 2A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 93 5A A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F0 69 00 00 35 04 06 00 9F 8A CD 5E 01 53 59 25 31 64 F4 FE 05 F1 [09:02:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 D0 3B 47 00 4C 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F0 69 00 00 F4 03 04 00 E4 00 A7 66 B6 04 01 00 00 02 07 D0 37 28 34 93 1C [09:02:09]CommunicateWithHost err = 0 [09:02:09]CheckOFDResponse [09:02:09]1017 (14) - 77093643461234 [09:02:09]1041 (16) - 0000000000874937 [09:02:09]1040 (4) - 27120 [09:02:09]1012 (4) - 29.07.2024 02:39 [09:02:09]1206 (1) - 0 [09:02:09]OFD Sender: Remove packet 27120 [09:02:09]ProducePacketName [09:02:09]name=ofd_packets/00027120 [09:02:09]NVStorageDeleteData [09:02:09]Write to MH i2c: 01 00 00 95 12 A7 [09:02:09]Write i2c OK [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: 01 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: 01 07 00 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: 01 07 00 95 12 00 00 00 00 00 B4 0C 6E [09:02:09]RasterBufferAndPrint [09:02:09]line [09:02:09]line [09:02:09]line [09:02:09]line [09:02:09]line [09:02:09]written 0, free lines is 3258 [09:02:09]MH_Cut [09:02:09]Write to MH i2c: D1 01 00 9C 12 01 80 [09:02:09]Write i2c OK [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: D1 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: D1 01 00 [09:02:09]MH_I2C_Read... [09:02:09]Read from MH i2c: D1 01 00 9C 12 00 7F [09:02:09]Write to MH i2c: 01 00 00 9D 12 AF [09:02:09]Write i2c OK [09:02:09]MH_I2C_Read... [09:02:09]OFD Sender: No OFD packet to send [09:02:10]*** Cut start [09:02:10]*** Partial cut [09:02:10]*** CUTSNS_PIN = 1 [09:02:10]*** CUTSNS_PIN = 0 [09:02:10]*** Brake cut motor [09:02:10]Read from MH i2c: 01 [09:02:10]MH_I2C_Read... [09:02:10]*** Stop cut motor [09:02:10]*** Cut end [09:02:10]Read from MH i2c: 01 07 00 [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: 01 07 00 9D 12 00 00 00 00 00 FF 0F C4 [09:02:10]process_action close_receipt done [09:02:10]requested_data is exist [09:02:10]produce_requested_data [09:02:10]requested_item fm.sn is exist - process it [09:02:10]wFMCommunicate request_size=4 [09:02:10]MH_SAM_APDU [09:02:10]CAPDU: 80 11 00 00 [09:02:10]Write to MH i2c: E2 08 00 9E 12 80 11 00 00 00 00 00 00 2A [09:02:10]Write i2c OK [09:02:10]MH_I2C_Read... [09:02:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:10]Read from MH i2c: E2 [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: E2 17 00 [09:02:10]MH_I2C_Read... [09:02:10]Read from MH i2c: E2 17 00 9E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 83 [09:02:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [09:02:10]wFMCommunicate OK [09:02:10]requested_item fd.num is exist - process it [09:02:10]SAM_PROTO_GetFieldsCounters [09:02:10]wFMCommunicate request_size=4 [09:02:10]MH_SAM_APDU [09:02:10]CAPDU: 80 13 00 00 [09:02:10]Write to MH i2c: E2 08 00 9F 12 80 13 00 00 00 00 00 00 2D [09:02:10]Write i2c OK [09:02:10]MH_I2C_Read... [09:02:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:11]Read from MH i2c: E2 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 62 00 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 62 00 9F 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 F0 69 00 00 0E 04 04 00 B2 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 A6 [09:02:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 F0 69 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:02:11]wFMCommunicate OK [09:02:11]SAM_PROTO_GetFieldsCounters done [09:02:11]requested_item shift.num is exist - process it [09:02:11]requested_item shift.opened is exist - process it [09:02:11]req_shift_opened [09:02:11]FM_GetShiftState [09:02:11]SAM_PROTO_GetShiftState [09:02:11]wFMCommunicate request_size=4 [09:02:11]MH_SAM_APDU [09:02:11]CAPDU: 80 13 01 00 [09:02:11]Write to MH i2c: E2 08 00 A0 12 80 13 01 00 00 00 00 00 2F [09:02:11]Write i2c OK [09:02:11]MH_I2C_Read... [09:02:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:11]Read from MH i2c: E2 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 0E 00 [09:02:11]MH_I2C_Read... [09:02:11]Read from MH i2c: E2 0E 00 A0 12 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 B0 [09:02:11]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [09:02:11]wFMCommunicate OK [09:02:11]SAM_PROTO_GetShiftState done [09:02:11]FM_GetShiftState done [09:02:11]req_shift_opened done [09:02:11]requested_item shift.open_date is exist - process it [09:02:11]req_shift_open_date [09:02:11]req_shift_open_date done [09:02:11]produce_requested_data done [09:02:11]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27120,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [09:02:11]process_action_free close_receipt [09:02:11]json_value_free [09:02:11]json_value_free done [09:02:11]process_json_proto returns [09:02:11]Send response to host [09:02:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27120,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [09:02:11]free response buf [09:02:11]execute_script done [09:02:11]execute_script returns [09:02:11]free content buf [09:02:11]Sock 9.Close socket [09:02:11]Sock 9.Thread stoped [09:02:14]OFD Sender: No OFD packet to send [09:02:19]OFD Sender: No OFD packet to send [09:02:24]OFD Sender: No OFD packet to send [09:02:29]OFD Sender: No OFD packet to send [09:02:34]OFD Sender: No OFD packet to send [09:02:39]OFD Sender: No OFD packet to send [09:02:44]OFD Sender: No OFD packet to send [09:02:49]OFD Sender: No OFD packet to send [09:02:54]OFD Sender: No OFD packet to send [09:02:59]OFD Sender: No OFD packet to send [09:03:04]OFD Sender: No OFD packet to send [09:03:09]OFD Sender: No OFD packet to send [09:03:14]OFD Sender: No OFD packet to send [09:03:19]OFD Sender: No OFD packet to send [09:03:24]OFD Sender: No OFD packet to send [09:03:29]OFD Sender: No OFD packet to send [09:03:34]OFD Sender: No OFD packet to send [09:03:39]OFD Sender: No OFD packet to send [09:03:44]OFD Sender: No OFD packet to send [09:03:49]OFD Sender: No OFD packet to send [09:03:54]OFD Sender: No OFD packet to send [09:03:59]OFD Sender: No OFD packet to send [09:04:04]OFD Sender: No OFD packet to send [09:04:09]OFD Sender: No OFD packet to send [09:04:14]OFD Sender: No OFD packet to send [09:04:19]OFD Sender: No OFD packet to send [09:04:24]OFD Sender: No OFD packet to send [09:04:29]OFD Sender: No OFD packet to send [09:04:34]OFD Sender: No OFD packet to send [09:04:39]OFD Sender: No OFD packet to send [09:04:44]OFD Sender: No OFD packet to send [09:04:49]OFD Sender: No OFD packet to send [09:04:54]OFD Sender: No OFD packet to send [09:04:59]OFD Sender: No OFD packet to send [09:05:04]OFD Sender: No OFD packet to send [09:05:09]OFD Sender: No OFD packet to send [09:05:14]OFD Sender: No OFD packet to send [09:05:19]OFD Sender: No OFD packet to send [09:05:24]OFD Sender: No OFD packet to send [09:05:29]OFD Sender: No OFD packet to send [09:05:34]OFD Sender: No OFD packet to send [09:05:39]OFD Sender: No OFD packet to send [09:05:45]OFD Sender: No OFD packet to send [09:05:50]OFD Sender: No OFD packet to send [09:05:55]OFD Sender: No OFD packet to send [09:06:00]OFD Sender: No OFD packet to send [09:06:05]OFD Sender: No OFD packet to send [09:06:10]OFD Sender: No OFD packet to send [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:35]OFD Sender: No OFD packet to send [09:11:40]OFD Sender: No OFD packet to send [09:11:45]OFD Sender: No OFD packet to send [09:11:50]OFD Sender: No OFD packet to send [09:11:55]OFD Sender: No OFD packet to send [09:12:00]OFD Sender: No OFD packet to send [09:12:05]OFD Sender: No OFD packet to send [09:12:10]OFD Sender: No OFD packet to send [09:12:15]OFD Sender: No OFD packet to send [09:12:20]OFD Sender: No OFD packet to send [09:12:25]OFD Sender: No OFD packet to send [09:12:30]OFD Sender: No OFD packet to send [09:12:35]OFD Sender: No OFD packet to send [09:12:40]OFD Sender: No OFD packet to send [09:12:45]OFD Sender: No OFD packet to send [09:12:50]OFD Sender: No OFD packet to send [09:12:55]OFD Sender: No OFD packet to send [09:13:00]OFD Sender: No OFD packet to send [09:13:05]OFD Sender: No OFD packet to send [09:13:10]OFD Sender: No OFD packet to send [09:13:15]OFD Sender: No OFD packet to send [09:13:20]OFD Sender: No OFD packet to send [09:13:25]OFD Sender: No OFD packet to send [09:13:30]OFD Sender: No OFD packet to send [09:13:35]OFD Sender: No OFD packet to send [09:13:40]OFD Sender: No OFD packet to send [09:13:45]OFD Sender: No OFD packet to send [09:13:50]OFD Sender: No OFD packet to send [09:13:55]OFD Sender: No OFD packet to send [09:14:00]OFD Sender: No OFD packet to send [09:14:05]OFD Sender: No OFD packet to send [09:14:10]OFD Sender: No OFD packet to send [09:14:15]OFD Sender: No OFD packet to send [09:14:20]OFD Sender: No OFD packet to send [09:14:25]OFD Sender: No OFD packet to send [09:14:30]OFD Sender: No OFD packet to send [09:14:35]OFD Sender: No OFD packet to send [09:14:40]OFD Sender: No OFD packet to send [09:14:45]OFD Sender: No OFD packet to send [09:14:50]OFD Sender: No OFD packet to send [09:14:55]OFD Sender: No OFD packet to send [09:15:00]OFD Sender: No OFD packet to send [09:15:05]OFD Sender: No OFD packet to send [09:15:10]OFD Sender: No OFD packet to send [09:15:15]OFD Sender: No OFD packet to send [09:15:20]OFD Sender: No OFD packet to send [09:15:25]OFD Sender: No OFD packet to send [09:15:30]OFD Sender: No OFD packet to send [09:15:35]OFD Sender: No OFD packet to send [09:15:40]OFD Sender: No OFD packet to send [09:15:45]OFD Sender: No OFD packet to send [09:15:50]OFD Sender: No OFD packet to send [09:15:55]OFD Sender: No OFD packet to send [09:16:00]OFD Sender: No OFD packet to send [09:16:05]OFD Sender: No OFD packet to send [09:16:10]OFD Sender: No OFD packet to send [09:16:15]OFD Sender: No OFD packet to send [09:16:20]OFD Sender: No OFD packet to send [09:16:25]OFD Sender: No OFD packet to send [09:16:30]OFD Sender: No OFD packet to send [09:16:35]OFD Sender: No OFD packet to send [09:16:40]OFD Sender: No OFD packet to send [09:16:45]OFD Sender: No OFD packet to send [09:16:50]OFD Sender: No OFD packet to send [09:16:55]OFD Sender: No OFD packet to send [09:17:00]OFD Sender: No OFD packet to send [09:17:05]OFD Sender: No OFD packet to send [09:17:10]OFD Sender: No OFD packet to send [09:17:15]OFD Sender: No OFD packet to send [09:17:20]OFD Sender: No OFD packet to send [09:17:25]OFD Sender: No OFD packet to send [09:17:30]OFD Sender: No OFD packet to send [09:17:35]OFD Sender: No OFD packet to send [09:17:40]OFD Sender: No OFD packet to send [09:17:45]OFD Sender: No OFD packet to send [09:17:50]OFD Sender: No OFD packet to send [09:17:55]OFD Sender: No OFD packet to send [09:18:00]OFD Sender: No OFD packet to send [09:18:05]OFD Sender: No OFD packet to send [09:18:10]OFD Sender: No OFD packet to send [09:18:15]OFD Sender: No OFD packet to send [09:18:20]OFD Sender: No OFD packet to send [09:18:25]OFD Sender: No OFD packet to send [09:18:30]OFD Sender: No OFD packet to send [09:18:35]OFD Sender: No OFD packet to send [09:18:40]OFD Sender: No OFD packet to send [09:18:45]OFD Sender: No OFD packet to send [09:18:50]OFD Sender: No OFD packet to send [09:18:55]OFD Sender: No OFD packet to send [09:19:00]OFD Sender: No OFD packet to send [09:19:05]OFD Sender: No OFD packet to send [09:19:10]OFD Sender: No OFD packet to send [09:19:15]OFD Sender: No OFD packet to send [09:19:20]OFD Sender: No OFD packet to send [09:19:25]OFD Sender: No OFD packet to send [09:19:30]OFD Sender: No OFD packet to send [09:19:35]OFD Sender: No OFD packet to send [09:19:40]OFD Sender: No OFD packet to send [09:19:45]OFD Sender: No OFD packet to send [09:19:50]OFD Sender: No OFD packet to send [09:19:55]OFD Sender: No OFD packet to send [09:20:00]OFD Sender: No OFD packet to send [09:20:05]OFD Sender: No OFD packet to send [09:20:10]OFD Sender: No OFD packet to send [09:20:15]OFD Sender: No OFD packet to send [09:20:20]OFD Sender: No OFD packet to send [09:20:25]OFD Sender: No OFD packet to send [09:20:30]OFD Sender: No OFD packet to send [09:20:35]OFD Sender: No OFD packet to send [09:20:40]OFD Sender: No OFD packet to send [09:20:45]OFD Sender: No OFD packet to send [09:20:50]OFD Sender: No OFD packet to send [09:20:55]OFD Sender: No OFD packet to send [09:21:00]OFD Sender: No OFD packet to send [09:21:05]OFD Sender: No OFD packet to send [09:21:10]OFD Sender: No OFD packet to send [09:21:15]OFD Sender: No OFD packet to send [09:21:20]OFD Sender: No OFD packet to send [09:21:25]OFD Sender: No OFD packet to send [09:21:30]OFD Sender: No OFD packet to send [09:21:35]OFD Sender: No OFD packet to send [09:21:40]OFD Sender: No OFD packet to send [09:21:45]OFD Sender: No OFD packet to send [09:21:50]OFD Sender: No OFD packet to send [09:21:55]OFD Sender: No OFD packet to send [09:22:00]OFD Sender: No OFD packet to send [09:22:05]OFD Sender: No OFD packet to send [09:22:10]OFD Sender: No OFD packet to send [09:22:15]OFD Sender: No OFD packet to send [09:22:20]OFD Sender: No OFD packet to send [09:22:25]OFD Sender: No OFD packet to send [09:22:30]OFD Sender: No OFD packet to send [09:22:32]accept exits with 8 [09:22:32]New connection [09:22:32]New thread 3066785124 created [09:22:32]Thread 3066928484 joined [09:22:32]Waiting for new connection... [09:22:32] Sock 8.Parse request [09:22:32]Sock 8.Check first char [09:22:32]Sock 8.First char is OK [09:22:32]request: POST /json_proto HTTP/1.0 [09:22:32]Method: POST [09:22:32]URL: /json_proto [09:22:32]Method is POST - this is cgi request [09:22:32]url: /json_proto [09:22:32]query_string will be loaded in cgi processing [09:22:32]execute_cgi json_proto POST (null) [09:22:32]execute_cgi path=json_proto method=POST [09:22:32]POST find Content-Length [09:22:32]Host: 172.17.45.8:8080 [09:22:32]Content-Length: 654 [09:22:32]Content-Type: application/json [09:22:32] [09:22:32]POST finish read [09:22:32]Found Content-Length = 654 [09:22:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150518", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\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" ] } } [09:22:32]execute_script... [09: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)150518", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\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" ] } } [09:22:32]POST & json_proto [09:22:32]process_json_proto [09:22:32]json parsed OK: [09:22:32]protocol is kg_v1.0 [09:22:32]action value=close_receipt [09:22:32]process_action close_receipt [09:22:32]cmd_close_receipt [09:22:32]MH_GetDate [09:22:32]Write to MH i2c: F0 00 00 A1 12 A2 [09:22:32]Write i2c OK [09:22:32]MH_I2C_Read... [09:22:32]Read from MH i2c: F0 [09:22:32]MH_I2C_Read... [09:22:32]Read from MH i2c: F0 09 00 [09:22:32]MH_I2C_Read... [09:22:32]Read from MH i2c: F0 09 00 A1 12 00 5D 5F A7 66 A6 1F 7F 64 1C [09:22:32]GetLastDocTimeStamp 1722243731 [09:22:32]current date 1722244957 [09:22:32]FM_GetShiftState [09:22:32]SAM_PROTO_GetShiftState [09:22:32]wFMCommunicate request_size=4 [09:22:32]MH_SAM_APDU [09:22:32]CAPDU: 80 13 01 00 [09:22:32]Write to MH i2c: E2 08 00 A2 12 80 13 01 00 00 00 00 00 31 [09:22:32]Write i2c OK [09:22:32]MH_I2C_Read... [09:22:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:32]Read from MH i2c: E2 [09:22:32]MH_I2C_Read... [09:22:32]Read from MH i2c: E2 0E 00 [09:22:32]MH_I2C_Read... [09:22:32]Read from MH i2c: E2 0E 00 A2 12 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 B2 [09:22:32]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [09:22:32]wFMCommunicate OK [09:22:32]SAM_PROTO_GetShiftState done [09:22:32]FM_GetShiftState done [09:22:32]opened in 1722213509 [09:22:32]opened+sec_in_day 1722299909 [09:22:32]quantity*price = 9500 [09:22:32]sum+1 = 9501 [09:22:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 24 29.07.2024 09:22 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27121 ФПД: 27068085977607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T092237&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27121&fm=27068085977607&tin=02508201610067®Number=0000000000092663&sum=9500 0 [09:22:33]StoreToDocumentArchive [09:22:33]shift 434 fd 27121 [09:22:33]save to /storage/0434/doc_00027121 [09:22:33]save last doc name /storage/0434/doc_00027121 to /storage/kkm_last_doc_name [09:22:33]save OK [09:22:33]Clear old archive folders... [09:22:33]ProcessDocumentItem done err = 0, tmpTLVsize=293 [09:22:33]tlvbuf is 001B69D0 [09:22:33]SAM_PROTO_ClearQueue [09:22:33]wFMCommunicate request_size=4 [09:22:33]MH_SAM_APDU [09:22:33]CAPDU: 80 09 00 00 [09:22:33]Write to MH i2c: E2 08 00 AF 12 80 09 00 00 00 00 00 00 33 [09:22:33]Write i2c OK [09:22:33]MH_I2C_Read... [09:22:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:34]Read from MH i2c: E2 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 03 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 03 00 AF 12 00 90 00 35 [09:22:34]RAPDU: 90 00 [09:22:34]wFMCommunicate OK [09:22:34]SAM_PROTO_ClearQueue done [09:22:34]KKMCreateOFDPacket [09:22:34]OFDProtocolAddRootSTLVToBuf [09:22:34]FM_MakeSignedData [09:22:34]FM_MakeSignedData [09:22:34]SAM_PROTO_SignData [09:22:34]wFMCommunicate request_size=4 [09:22:34]MH_SAM_APDU [09:22:34]CAPDU: 80 0D 01 02 [09:22:34]Write to MH i2c: E2 08 00 B0 12 80 0D 01 02 00 00 00 00 3B [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:34]Read from MH i2c: E2 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 03 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 03 00 B0 12 00 90 00 36 [09:22:34]RAPDU: 90 00 [09:22:34]wFMCommunicate OK [09:22:34]wFMCommunicate request_size=255 [09:22:34]MH_SAM_APDU [09:22:34]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 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 18 00 00 00 F4 03 04 00 5D 5F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [09:22:34]Write to MH i2c: E2 02 01 B1 12 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 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 18 00 00 00 F4 03 04 00 5D 5F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 6F [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:34]Read from MH i2c: E2 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 03 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 03 00 B1 12 00 90 00 37 [09:22:34]RAPDU: 90 00 [09:22:34]wFMCommunicate OK [09:22:34]wFMCommunicate request_size=52 [09:22:34]MH_SAM_APDU [09:22:34]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F1 69 00 00 35 04 06 00 18 9E 47 A6 42 07 [09:22:34]Write to MH i2c: E2 37 00 B2 12 80 0D 02 02 2F 00 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F1 69 00 00 35 04 06 00 18 9E 47 A6 42 07 00 00 4E [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:34]Read from MH i2c: E2 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 03 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 03 00 B2 12 00 90 00 38 [09:22:34]RAPDU: 90 00 [09:22:34]wFMCommunicate OK [09:22:34]wFMCommunicate request_size=4 [09:22:34]MH_SAM_APDU [09:22:34]CAPDU: 80 0D 03 02 [09:22:34]Write to MH i2c: E2 08 00 B3 12 80 0D 03 02 00 00 00 00 40 [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:34]Read from MH i2c: E2 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 0B 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 0B 00 B3 12 00 C1 87 39 32 39 98 47 AD 90 00 B9 [09:22:34]RAPDU: C1 87 39 32 39 98 47 AD 90 00 [09:22:34]wFMCommunicate OK [09:22:34]SAM_PROTO_SignData done [09:22:34]FM_MakeSignedData done [09:22:34]CreateOFDProtocolMessage [09:22:34]wFMCommunicate request_size=4 [09:22:34]MH_SAM_APDU [09:22:34]CAPDU: 80 11 00 00 [09:22:34]Write to MH i2c: E2 08 00 B4 12 80 11 00 00 00 00 00 00 40 [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:34]Read from MH i2c: E2 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 17 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: E2 17 00 B4 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 99 [09:22:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [09:22:34]wFMCommunicate OK [09:22:34]CreateOFDProtocolMessage done [09:22:34]OFDSenderStorePacket 27121 [09:22:34]StoreOFDPacket docnum=27121 [09:22:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 39 01 00 00 18 3C 31 01 0F 12 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 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 18 00 00 00 F4 03 04 00 5D 5F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F1 69 00 00 35 04 06 00 18 9E 47 A6 42 07 C1 87 39 32 39 98 47 AD [09:22:34]CheckFolder [09:22:34]dirname=/storage/ofd_packets [09:22:34]CheckFolder done [09:22:34]ProducePacketName [09:22:34]name=ofd_packets/00027121 [09:22:34]NVStorageSaveData ofd_packets/00027121 [09:22:34]File name is /storage/ofd_packets/00027121 [09:22:34]Write 343 bytes [09:22:34]NVStorageSaveData done [09:22:34]OFDSenderStorePacket done [09:22:34]KKMCreateOFDPacket done [09:22:34]NVStorageSaveData kkm_last_timestamp [09:22:34]File name is /storage/kkm_last_timestamp [09:22:34]Write 4 bytes [09:22:34]NVStorageSaveData done [09:22:34]ExternCall_PrintAddStr [09:22:34]wPrintStart [09:22:34]Write to MH i2c: 01 00 00 B5 12 C7 [09:22:34]Write i2c OK [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: 01 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: 01 07 00 [09:22:34]MH_I2C_Read... [09:22:34]Read from MH i2c: 01 07 00 B5 12 00 00 00 00 00 FF 0F DC [09:22:34]RasterBufferAndPrint [09:22:34]line Счет N : (3)150518 [09:22:34]line ИНН: 02508201610067 [09:22:34]line Контрольно-Кассовый Чек [09:22:34]line ПРОДАЖА [09:22:34]line Товар: 4700000480050 [09:22:34]line Напиток Nitro Energy эн green ж/б 0,45л [09:22:34]line 1.000 * 95.00 [09:22:34]line = 95.00 [09:22:34]line НДС 12% НСП 1% [09:22:34]line > о реализуемом товаре [09:22:34]line ИТОГО: 95.00 [09:22:34]line НСП 1% : 0.84 [09:22:34]line НДС 12% : 10.09 [09:22:34]line Наличными: 95.00 [09:22:34]line Безнал.: 0.00 [09:22:34]line Место: АЗС № 134 "Партнер Нефть" [09:22:34]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:22:34]line СНО: Общий режим [09:22:34]line Чек 24 29.07.2024 09:22 [09:22:34]line Смена: 434 ФФД: 1.0 [09:22:34]line ЗНМ: 0300000043 [09:22:34]line РНМ: 0000000000092663 [09:22:34]line Версия ККМ: 001 [09:22:34]line ФМ: 0000000000874937 [09:22:34]line ФД: 27121 [09:22:34]line ФПД: 27068085977607 [09:22:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T092237&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27121&fm=27068085977607&tin=02508201610067®Number=0000000000092663&sum=9500 [09:22:34]line 0 [09:22:34]OFD Sender: Processing packet 27121 [packets to send 9, broken 8] [09:22:34]ProducePacketName [09:22:34]name=ofd_packets/00027121 [09:22:34]OFD Sender: To server: pG, [09:22:34]CommunicateWithHost lk.salyk.kg:30040 [09:22:34]ConnectInit lk.salyk.kg [09:22:34]written 0, free lines is 4095 [09:22:34]Connected sock=10 [09: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 34 39 33 37 39 01 00 00 18 3C 31 01 0F 12 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 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 18 00 00 00 F4 03 04 00 5D 5F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F1 69 00 00 35 04 06 00 18 9E 47 A6 42 07 C1 87 39 32 39 98 47 AD [09:22:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 1F 52 47 00 FE 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F1 69 00 00 F4 03 04 00 AE 05 A7 66 B6 04 01 00 00 5D F6 8B 82 17 EE 3B 19 [09:22:35]CommunicateWithHost err = 0 [09:22:35]CheckOFDResponse [09:22:35]1017 (14) - 77093643461234 [09:22:35]1041 (16) - 0000000000874937 [09:22:35]1040 (4) - 27121 [09:22:35]1012 (4) - 29.07.2024 02:59 [09:22:35]1206 (1) - 0 [09:22:35]OFD Sender: Remove packet 27121 [09:22:35]ProducePacketName [09:22:35]name=ofd_packets/00027121 [09:22:35]NVStorageDeleteData [09:22:35]Write to MH i2c: 01 00 00 DD 12 EF [09:22:35]Write i2c OK [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: 01 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: 01 07 00 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: 01 07 00 DD 12 00 00 00 00 00 D6 0C D8 [09:22:35]RasterBufferAndPrint [09:22:35]line [09:22:35]line [09:22:35]line [09:22:35]line [09:22:35]line [09:22:35]written 0, free lines is 3290 [09:22:35]MH_Cut [09:22:35]Write to MH i2c: D1 01 00 E4 12 01 C8 [09:22:35]Write i2c OK [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: D1 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: D1 01 00 [09:22:35]MH_I2C_Read... [09:22:35]Read from MH i2c: D1 01 00 E4 12 00 C7 [09:22:35]Write to MH i2c: 01 00 00 E5 12 F7 [09:22:35]Write i2c OK [09:22:35]MH_I2C_Read... [09:22:35]OFD Sender: No OFD packet to send [09:22:36]*** Cut start [09:22:36]*** Partial cut [09:22:36]*** CUTSNS_PIN = 1 [09:22:36]*** CUTSNS_PIN = 0 [09:22:36]*** Brake cut motor [09:22:36]Read from MH i2c: 01 [09:22:36]MH_I2C_Read... [09:22:36]*** Stop cut motor [09:22:36]*** Cut end [09:22:36]Read from MH i2c: 01 07 00 [09:22:36]MH_I2C_Read... [09:22:36]Read from MH i2c: 01 07 00 E5 12 00 00 00 00 00 FF 0F 0C [09:22:36]process_action close_receipt done [09:22:36]requested_data is exist [09:22:36]produce_requested_data [09:22:36]requested_item fm.sn is exist - process it [09:22:36]wFMCommunicate request_size=4 [09:22:36]MH_SAM_APDU [09:22:36]CAPDU: 80 11 00 00 [09:22:36]Write to MH i2c: E2 08 00 E6 12 80 11 00 00 00 00 00 00 72 [09:22:36]Write i2c OK [09:22:36]MH_I2C_Read... [09:22:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:36]Read from MH i2c: E2 [09:22:36]MH_I2C_Read... [09:22:36]Read from MH i2c: E2 17 00 [09:22:36]MH_I2C_Read... [09:22:36]Read from MH i2c: E2 17 00 E6 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 CB [09:22:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [09:22:36]wFMCommunicate OK [09:22:36]requested_item fd.num is exist - process it [09:22:36]SAM_PROTO_GetFieldsCounters [09:22:36]wFMCommunicate request_size=4 [09:22:36]MH_SAM_APDU [09:22:36]CAPDU: 80 13 00 00 [09:22:36]Write to MH i2c: E2 08 00 E7 12 80 13 00 00 00 00 00 00 75 [09:22:36]Write i2c OK [09:22:36]MH_I2C_Read... [09:22:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:36]Read from MH i2c: E2 [09:22:36]MH_I2C_Read... [09:22:36]Read from MH i2c: E2 62 00 [09:22:36]MH_I2C_Read... [09:22:36]Read from MH i2c: E2 62 00 E7 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 F1 69 00 00 0E 04 04 00 B2 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 F2 [09:22:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 F1 69 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:22:36]wFMCommunicate OK [09:22:36]SAM_PROTO_GetFieldsCounters done [09:22:36]requested_item shift.num is exist - process it [09:22:36]requested_item shift.opened is exist - process it [09:22:36]req_shift_opened [09:22:36]FM_GetShiftState [09:22:36]SAM_PROTO_GetShiftState [09:22:36]wFMCommunicate request_size=4 [09:22:36]MH_SAM_APDU [09:22:36]CAPDU: 80 13 01 00 [09:22:36]Write to MH i2c: E2 08 00 E8 12 80 13 01 00 00 00 00 00 77 [09:22:36]Write i2c OK [09:22:36]MH_I2C_Read... [09:22:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:36]Read from MH i2c: E2 [09:22:36]MH_I2C_Read... [09:22:36]Read from MH i2c: E2 0E 00 [09:22:36]MH_I2C_Read... [09:22:36]Read from MH i2c: E2 0E 00 E8 12 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 F8 [09:22:36]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [09:22:36]wFMCommunicate OK [09:22:36]SAM_PROTO_GetShiftState done [09:22:36]FM_GetShiftState done [09:22:36]req_shift_opened done [09:22:36]requested_item shift.open_date is exist - process it [09:22:36]req_shift_open_date [09:22:36]req_shift_open_date done [09:22:36]produce_requested_data done [09:22:36]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27121,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [09:22:36]process_action_free close_receipt [09:22:36]json_value_free [09:22:36]json_value_free done [09:22:36]process_json_proto returns [09:22:36]Send response to host [09:22:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27121,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [09:22:36]free response buf [09:22:36]execute_script done [09:22:36]execute_script returns [09:22:36]free content buf [09:22:36]Sock 8.Close socket [09:22:36]Sock 8.Thread stoped [09:22:40]OFD Sender: No OFD packet to send [09:22:45]OFD Sender: No OFD packet to send [09:22:50]OFD Sender: No OFD packet to send [09:22:55]OFD Sender: No OFD packet to send [09:23:00]OFD Sender: No OFD packet to send [09:23:05]OFD Sender: No OFD packet to send [09:23:10]OFD Sender: No OFD packet to send [09:23:15]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [09:23:55]OFD Sender: No OFD packet to send [09:24:00]OFD Sender: No OFD packet to send [09:24:05]OFD Sender: No OFD packet to send [09:24:10]OFD Sender: No OFD packet to send [09:24:15]OFD Sender: No OFD packet to send [09:24:20]OFD Sender: No OFD packet to send [09:24:25]OFD Sender: No OFD packet to send [09:24:30]OFD Sender: No OFD packet to send [09:24:35]OFD Sender: No OFD packet to send [09:24:40]OFD Sender: No OFD packet to send [09:24:45]OFD Sender: No OFD packet to send [09:24:50]OFD Sender: No OFD packet to send [09:24:55]OFD Sender: No OFD packet to send [09:25:00]OFD Sender: No OFD packet to send [09:25:05]OFD Sender: No OFD packet to send [09:25:10]OFD Sender: No OFD packet to send [09:25:15]OFD Sender: No OFD packet to send [09:25:20]OFD Sender: No OFD packet to send [09:25:25]OFD Sender: No OFD packet to send [09:25:30]OFD Sender: No OFD packet to send [09:25:35]OFD Sender: No OFD packet to send [09:25:40]OFD Sender: No OFD packet to send [09:25:45]OFD Sender: No OFD packet to send [09:25:50]OFD Sender: No OFD packet to send [09:25:55]OFD Sender: No OFD packet to send [09:26:00]OFD Sender: No OFD packet to send [09:26:05]OFD Sender: No OFD packet to send [09:26:10]OFD Sender: No OFD packet to send [09:26:15]OFD Sender: No OFD packet to send [09:26:20]OFD Sender: No OFD packet to send [09:26:25]OFD Sender: No OFD packet to send [09:26:30]OFD Sender: No OFD packet to send [09:26:35]OFD Sender: No OFD packet to send [09:26:40]OFD Sender: No OFD packet to send [09:26:45]OFD Sender: No OFD packet to send [09:26:50]OFD Sender: No OFD packet to send [09:26:55]OFD Sender: No OFD packet to send [09:27:00]OFD Sender: No OFD packet to send [09:27:05]OFD Sender: No OFD packet to send [09:27:10]OFD Sender: No OFD packet to send [09:27:15]OFD Sender: No OFD packet to send [09:27:20]OFD Sender: No OFD packet to send [09:27:25]OFD Sender: No OFD packet to send [09:27:30]OFD Sender: No OFD packet to send [09:27:35]OFD Sender: No OFD packet to send [09:27:40]OFD Sender: No OFD packet to send [09:27:45]OFD Sender: No OFD packet to send [09:27:50]OFD Sender: No OFD packet to send [09:27:55]OFD Sender: No OFD packet to send [09:28:00]OFD Sender: No OFD packet to send [09:28:05]OFD Sender: No OFD packet to send [09:28:10]OFD Sender: No OFD packet to send [09:28:15]OFD Sender: No OFD packet to send [09:28:20]OFD Sender: No OFD packet to send [09:28:25]OFD Sender: No OFD packet to send [09:28:30]OFD Sender: No OFD packet to send [09:28:35]OFD Sender: No OFD packet to send [09:28:40]OFD Sender: No OFD packet to send [09:28:45]OFD Sender: No OFD packet to send [09:28:50]OFD Sender: No OFD packet to send [09:28:56]OFD Sender: No OFD packet to send [09:29:01]OFD Sender: No OFD packet to send [09:29:06]OFD Sender: No OFD packet to send [09:29:11]OFD Sender: No OFD packet to send [09:29:16]OFD Sender: No OFD packet to send [09:29:21]OFD Sender: No OFD packet to send [09:29:26]OFD Sender: No OFD packet to send [09:29:31]OFD Sender: No OFD packet to send [09:29:36]OFD Sender: No OFD packet to send [09:29:41]OFD Sender: No OFD packet to send [09:29:46]OFD Sender: No OFD packet to send [09:29:51]OFD Sender: No OFD packet to send [09:29:56]OFD Sender: No OFD packet to send [09:30:01]OFD Sender: No OFD packet to send [09:30:06]OFD Sender: No OFD packet to send [09:30:11]OFD Sender: No OFD packet to send [09:30:16]OFD Sender: No OFD packet to send [09:30:21]OFD Sender: No OFD packet to send [09:30:26]OFD Sender: No OFD packet to send [09:30:31]OFD Sender: No OFD packet to send [09:30:36]OFD Sender: No OFD packet to send [09:30:41]OFD Sender: No OFD packet to send [09:30:46]OFD Sender: No OFD packet to send [09:30:51]OFD Sender: No OFD packet to send [09:30:56]OFD Sender: No OFD packet to send [09:31:01]OFD Sender: No OFD packet to send [09:31:06]OFD Sender: No OFD packet to send [09:31:11]OFD Sender: No OFD packet to send [09:31:16]OFD Sender: No OFD packet to send [09:31:21]OFD Sender: No OFD packet to send [09:31:26]OFD Sender: No OFD packet to send [09:31:31]OFD Sender: No OFD packet to send [09:31:36]OFD Sender: No OFD packet to send [09:31:41]OFD Sender: No OFD packet to send [09:31:46]OFD Sender: No OFD packet to send [09:31:51]OFD Sender: No OFD packet to send [09:31:56]OFD Sender: No OFD packet to send [09:32:01]OFD Sender: No OFD packet to send [09:32:06]OFD Sender: No OFD packet to send [09:32:11]OFD Sender: No OFD packet to send [09:32:16]OFD Sender: No OFD packet to send [09:32:21]OFD Sender: No OFD packet to send [09:32:26]OFD Sender: No OFD packet to send [09:32:31]OFD Sender: No OFD packet to send [09:32:36]OFD Sender: No OFD packet to send [09:32:41]OFD Sender: No OFD packet to send [09:32:46]OFD Sender: No OFD packet to send [09:32:51]OFD Sender: No OFD packet to send [09:32:56]OFD Sender: No OFD packet to send [09:33:01]OFD Sender: No OFD packet to send [09:33:06]OFD Sender: No OFD packet to send [09:33:11]OFD Sender: No OFD packet to send [09:33:16]OFD Sender: No OFD packet to send [09:33:21]OFD Sender: No OFD packet to send [09:33:26]OFD Sender: No OFD packet to send [09:33:31]OFD Sender: No OFD packet to send [09:33:36]OFD Sender: No OFD packet to send [09:33:41]OFD Sender: No OFD packet to send [09:33:46]OFD Sender: No OFD packet to send [09:33:51]OFD Sender: No OFD packet to send [09:33:56]OFD Sender: No OFD packet to send [09:34:01]OFD Sender: No OFD packet to send [09:34:06]OFD Sender: No OFD packet to send [09:34:11]OFD Sender: No OFD packet to send [09:34:16]OFD Sender: No OFD packet to send [09:34:21]OFD Sender: No OFD packet to send [09:34:26]OFD Sender: No OFD packet to send [09:34:26]accept exits with 9 [09:34:26]New connection [09:34:26]New thread 3066928484 created [09:34:26]Thread 3066785124 joined [09:34:26]Waiting for new connection... [09:34:26] Sock 9.Parse request [09:34:26]Sock 9.Check first char [09:34:26]Sock 9.First char is OK [09:34:26]request: POST /json_proto HTTP/1.0 [09:34:26]Method: POST [09:34:26]URL: /json_proto [09:34:26]Method is POST - this is cgi request [09:34:26]url: /json_proto [09:34:26]query_string will be loaded in cgi processing [09:34:26]execute_cgi json_proto POST (null) [09:34:26]execute_cgi path=json_proto method=POST [09:34:26]POST find Content-Length [09:34:26]Host: 172.17.45.8:8080 [09:34:26]Content-Length: 662 [09:34:26]Content-Type: application/json [09:34:26] [09:34:26]POST finish read [09:34:26]Found Content-Length = 662 [09:34:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150520", "tax_sys" : 0, "items" : [ { "code": "4600682000280", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up \u043C\u043E\u0445\u0438\u0442\u043E 0,45 \u0436/\u0431", "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" ] } } [09:34:26]execute_script... [09:34: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)150520", "tax_sys" : 0, "items" : [ { "code": "4600682000280", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up \u043C\u043E\u0445\u0438\u0442\u043E 0,45 \u0436/\u0431", "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" ] } } [09:34:26]POST & json_proto [09:34:26]process_json_proto [09:34:26]json parsed OK: [09:34:26]protocol is kg_v1.0 [09:34:26]action value=close_receipt [09:34:26]process_action close_receipt [09:34:26]cmd_close_receipt [09:34:26]MH_GetDate [09:34:26]Write to MH i2c: F0 00 00 E9 12 EA [09:34:26]Write i2c OK [09:34:26]MH_I2C_Read... [09:34:26]Read from MH i2c: F0 [09:34:26]MH_I2C_Read... [09:34:26]Read from MH i2c: F0 09 00 [09:34:26]MH_I2C_Read... [09:34:26]Read from MH i2c: F0 09 00 E9 12 00 27 62 A7 66 A6 1F 7F 64 31 [09:34:26]GetLastDocTimeStamp 1722244957 [09:34:26]current date 1722245671 [09:34:26]FM_GetShiftState [09:34:26]SAM_PROTO_GetShiftState [09:34:26]wFMCommunicate request_size=4 [09:34:26]MH_SAM_APDU [09:34:26]CAPDU: 80 13 01 00 [09:34:26]Write to MH i2c: E2 08 00 EA 12 80 13 01 00 00 00 00 00 79 [09:34:26]Write i2c OK [09:34:26]MH_I2C_Read... [09:34:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:26]Read from MH i2c: E2 [09:34:26]MH_I2C_Read... [09:34:26]Read from MH i2c: E2 0E 00 [09:34:26]MH_I2C_Read... [09:34:26]Read from MH i2c: E2 0E 00 EA 12 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 FA [09:34:26]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [09:34:26]wFMCommunicate OK [09:34:26]SAM_PROTO_GetShiftState done [09:34:26]FM_GetShiftState done [09:34:26]opened in 1722213509 [09:34:26]opened+sec_in_day 1722299909 [09:34:26]quantity*price = 8500 [09:34:26]sum+1 = 8501 [09:34:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 25 29.07.2024 09:34 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27122 ФПД: 217041814930048 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T093431&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27122&fm=217041814930048&tin=02508201610067®Number=0000000000092663&sum=8500 0 [09:34:28]StoreToDocumentArchive [09:34:28]shift 434 fd 27122 [09:34:28]save to /storage/0434/doc_00027122 [09:34:28]save last doc name /storage/0434/doc_00027122 to /storage/kkm_last_doc_name [09:34:28]save OK [09:34:28]Clear old archive folders... [09:34:28]ProcessDocumentItem done err = 0, tmpTLVsize=289 [09:34:28]tlvbuf is 001D3C40 [09:34:28]SAM_PROTO_ClearQueue [09:34:28]wFMCommunicate request_size=4 [09:34:28]MH_SAM_APDU [09:34:28]CAPDU: 80 09 00 00 [09:34:28]Write to MH i2c: E2 08 00 F7 12 80 09 00 00 00 00 00 00 7B [09:34:28]Write i2c OK [09:34:28]MH_I2C_Read... [09:34:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:34:28]Read from MH i2c: E2 [09:34:28]MH_I2C_Read... [09:34:28]Read from MH i2c: E2 03 00 [09:34:28]MH_I2C_Read... [09:34:28]Read from MH i2c: E2 03 00 F7 12 00 90 00 7D [09:34:28]RAPDU: 90 00 [09:34:28]wFMCommunicate OK [09:34:28]SAM_PROTO_ClearQueue done [09:34:28]KKMCreateOFDPacket [09:34:28]OFDProtocolAddRootSTLVToBuf [09:34:28]FM_MakeSignedData [09:34:28]FM_MakeSignedData [09:34:28]SAM_PROTO_SignData [09:34:28]wFMCommunicate request_size=4 [09:34:28]MH_SAM_APDU [09:34:28]CAPDU: 80 0D 01 02 [09:34:28]Write to MH i2c: E2 08 00 F8 12 80 0D 01 02 00 00 00 00 83 [09:34:28]Write i2c OK [09:34:28]MH_I2C_Read... [09:34:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:34:28]Read from MH i2c: E2 [09:34:28]MH_I2C_Read... [09:34:28]Read from MH i2c: E2 03 00 [09:34:28]MH_I2C_Read... [09:34:28]Read from MH i2c: E2 03 00 F8 12 00 90 00 7E [09:34:28]RAPDU: 90 00 [09:34:28]wFMCommunicate OK [09:34:28]wFMCommunicate request_size=255 [09:34:28]MH_SAM_APDU [09:34:28]CAPDU: 80 0D 02 02 FA 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 30 32 38 30 06 04 2F 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 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 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 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 19 00 00 00 F4 03 04 00 27 62 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 [09:34:28]Write to MH i2c: E2 02 01 F9 12 80 0D 02 02 FA 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 30 32 38 30 06 04 2F 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 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 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 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 19 00 00 00 F4 03 04 00 27 62 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 00 00 8D [09:34:28]Write i2c OK [09:34:28]MH_I2C_Read... [09:34:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:28]Read from MH i2c: E2 [09:34:28]MH_I2C_Read... [09:34:28]Read from MH i2c: E2 03 00 [09:34:28]MH_I2C_Read... [09:34:28]Read from MH i2c: E2 03 00 F9 12 00 90 00 7F [09:34:28]RAPDU: 90 00 [09:34:28]wFMCommunicate OK [09:34:28]wFMCommunicate request_size=48 [09:34:28]MH_SAM_APDU [09:34:28]CAPDU: 80 0D 02 02 2B 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F2 69 00 00 35 04 06 00 C5 65 FC 47 C2 80 [09:34:28]Write to MH i2c: E2 33 00 FA 12 80 0D 02 02 2B 00 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F2 69 00 00 35 04 06 00 C5 65 FC 47 C2 80 00 00 92 [09:34:28]Write i2c OK [09:34:28]MH_I2C_Read... [09:34:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:28]Read from MH i2c: E2 [09:34:28]MH_I2C_Read... [09:34:28]Read from MH i2c: E2 03 00 [09:34:28]MH_I2C_Read... [09:34:28]Read from MH i2c: E2 03 00 FA 12 00 90 00 80 [09:34:28]RAPDU: 90 00 [09:34:28]wFMCommunicate OK [09:34:28]wFMCommunicate request_size=4 [09:34:28]MH_SAM_APDU [09:34:28]CAPDU: 80 0D 03 02 [09:34:28]Write to MH i2c: E2 08 00 FB 12 80 0D 03 02 00 00 00 00 88 [09:34:28]Write i2c OK [09:34:28]MH_I2C_Read... [09:34:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:34:28]Read from MH i2c: E2 [09:34:28]MH_I2C_Read... [09:34:28]Read from MH i2c: E2 0B 00 [09:34:28]MH_I2C_Read... [09:34:28]Read from MH i2c: E2 0B 00 FB 12 00 7B BE 45 8C 84 EF D9 CF 90 00 AE [09:34:28]RAPDU: 7B BE 45 8C 84 EF D9 CF 90 00 [09:34:28]wFMCommunicate OK [09:34:28]SAM_PROTO_SignData done [09:34:28]FM_MakeSignedData done [09:34:28]CreateOFDProtocolMessage [09:34:28]wFMCommunicate request_size=4 [09:34:28]MH_SAM_APDU [09:34:28]CAPDU: 80 11 00 00 [09:34:28]Write to MH i2c: E2 08 00 FC 12 80 11 00 00 00 00 00 00 88 [09:34:28]Write i2c OK [09:34:28]MH_I2C_Read... [09:34:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:28]Read from MH i2c: E2 [09:34:28]MH_I2C_Read... [09:34:28]Read from MH i2c: E2 17 00 [09:34:28]MH_I2C_Read... [09:34:28]Read from MH i2c: E2 17 00 FC 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 E1 [09:34:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [09:34:28]wFMCommunicate OK [09:34:28]CreateOFDProtocolMessage done [09:34:28]OFDSenderStorePacket 27122 [09:34:28]StoreOFDPacket docnum=27122 [09:34:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 35 01 00 00 BF 8A 2D 01 CA DE 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 30 32 38 30 06 04 2F 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 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 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 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 19 00 00 00 F4 03 04 00 27 62 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F2 69 00 00 35 04 06 00 C5 65 FC 47 C2 80 7B BE 45 8C 84 EF D9 CF [09:34:28]CheckFolder [09:34:28]dirname=/storage/ofd_packets [09:34:28]CheckFolder done [09:34:28]ProducePacketName [09:34:28]name=ofd_packets/00027122 [09:34:28]NVStorageSaveData ofd_packets/00027122 [09:34:28]File name is /storage/ofd_packets/00027122 [09:34:28]Write 339 bytes [09:34:28]NVStorageSaveData done [09:34:28]OFDSenderStorePacket done [09:34:28]KKMCreateOFDPacket done [09:34:28]NVStorageSaveData kkm_last_timestamp [09:34:28]File name is /storage/kkm_last_timestamp [09:34:28]Write 4 bytes [09:34:28]NVStorageSaveData done [09:34:28]ExternCall_PrintAddStr [09:34:28]wPrintStart [09:34:28]Write to MH i2c: 01 00 00 FD 12 0F [09:34:28]Write i2c OK [09:34:28]MH_I2C_Read... [09:34:28]Read from MH i2c: 01 [09:34:28]MH_I2C_Read... [09:34:28]Read from MH i2c: 01 07 00 [09:34:28]MH_I2C_Read... [09:34:28]Read from MH i2c: 01 07 00 FD 12 00 00 00 00 00 FF 0F 24 [09:34:28]RasterBufferAndPrint [09:34:28]line Счет N : (3)150520 [09:34:28]line ИНН: 02508201610067 [09:34:28]line Контрольно-Кассовый Чек [09:34:28]line ПРОДАЖА [09:34:28]line Товар: 4600682000280 [09:34:28]line Напиток FLash up мохито 0,45 ж/б [09:34:28]line 1.000 * 85.00 [09:34:28]line = 85.00 [09:34:28]line НДС 12% НСП 1% [09:34:28]line > о реализуемом товаре [09:34:28]line ИТОГО: 85.00 [09:34:28]line НСП 1% : 0.75 [09:34:28]line НДС 12% : 9.03 [09:34:28]line Наличными: 85.00 [09:34:28]line Безнал.: 0.00 [09:34:28]line Место: АЗС № 134 "Партнер Нефть" [09:34:28]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [09:34:28]line СНО: Общий режим [09:34:28]line Чек 25 29.07.2024 09:34 [09:34:28]line Смена: 434 ФФД: 1.0 [09:34:28]line ЗНМ: 0300000043 [09:34:28]line РНМ: 0000000000092663 [09:34:28]line Версия ККМ: 001 [09:34:28]line ФМ: 0000000000874937 [09:34:28]line ФД: 27122 [09:34:28]line ФПД: 217041814930048 [09:34:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T093431&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27122&fm=217041814930048&tin=02508201610067®Number=0000000000092663&sum=8500 [09:34:28]line 0 [09:34:29]written 0, free lines is 4095 [09:34:29]OFD Sender: Processing packet 27122 [packets to send 9, broken 8] [09:34:29]ProducePacketName [09:34:29]name=ofd_packets/00027122 [09:34:29]OFD Sender: To server: pG, [09:34:29]CommunicateWithHost lk.salyk.kg:30040 [09:34:29]ConnectInit lk.salyk.kg [09:34:29]Connected sock=10 [09:34:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 35 01 00 00 BF 8A 2D 01 CA DE 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 30 32 38 30 06 04 2F 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 D0 BC D0 BE D1 85 D0 B8 D1 82 D0 BE 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 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 19 00 00 00 F4 03 04 00 27 62 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F2 69 00 00 35 04 06 00 C5 65 FC 47 C2 80 7B BE 45 8C 84 EF D9 CF [09:34:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 F4 68 47 00 6C 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 34 39 33 37 10 04 04 00 F2 69 00 00 F4 03 04 00 78 08 A7 66 B6 04 01 00 00 CD 95 3D 9D B4 DE CF 85 [09:34:29]CommunicateWithHost err = 0 [09:34:29]CheckOFDResponse [09:34:29]1017 (14) - 77093643461234 [09:34:29]1041 (16) - 0000000000874937 [09:34:29]1040 (4) - 27122 [09:34:29]1012 (4) - 29.07.2024 03:11 [09:34:29]1206 (1) - 0 [09:34:29]OFD Sender: Remove packet 27122 [09:34:29]ProducePacketName [09:34:29]name=ofd_packets/00027122 [09:34:29]NVStorageDeleteData [09:34:29]Write to MH i2c: 01 00 00 25 13 38 [09:34:29]Write i2c OK [09:34:29]MH_I2C_Read... [09:34:29]Read from MH i2c: 01 [09:34:29]MH_I2C_Read... [09:34:29]Read from MH i2c: 01 07 00 [09:34:29]MH_I2C_Read... [09:34:29]Read from MH i2c: 01 07 00 25 13 00 00 00 00 00 D6 0C 21 [09:34:29]RasterBufferAndPrint [09:34:29]line [09:34:29]line [09:34:29]line [09:34:29]line [09:34:29]line [09:34:29]written 0, free lines is 3292 [09:34:29]MH_Cut [09:34:29]Write to MH i2c: D1 01 00 2C 13 01 11 [09:34:29]Write i2c OK [09:34:29]MH_I2C_Read... [09:34:29]Read from MH i2c: D1 [09:34:29]MH_I2C_Read... [09:34:29]Read from MH i2c: D1 01 00 [09:34:29]MH_I2C_Read... [09:34:29]Read from MH i2c: D1 01 00 2C 13 00 10 [09:34:29]Write to MH i2c: 01 00 00 2D 13 40 [09:34:29]Write i2c OK [09:34:29]MH_I2C_Read... [09:34:29]OFD Sender: No OFD packet to send [09:34:30]*** Cut start [09:34:30]*** Partial cut [09:34:30]*** CUTSNS_PIN = 1 [09:34:30]*** CUTSNS_PIN = 0 [09:34:30]*** Brake cut motor [09:34:30]Read from MH i2c: 01 [09:34:30]MH_I2C_Read... [09:34:30]*** Stop cut motor [09:34:30]*** Cut end [09:34:30]Read from MH i2c: 01 07 00 [09:34:30]MH_I2C_Read... [09:34:30]Read from MH i2c: 01 07 00 2D 13 00 00 00 00 00 FF 0F 55 [09:34:30]process_action close_receipt done [09:34:30]requested_data is exist [09:34:30]produce_requested_data [09:34:30]requested_item fm.sn is exist - process it [09:34:30]wFMCommunicate request_size=4 [09:34:30]MH_SAM_APDU [09:34:30]CAPDU: 80 11 00 00 [09:34:30]Write to MH i2c: E2 08 00 2E 13 80 11 00 00 00 00 00 00 BB [09:34:30]Write i2c OK [09:34:30]MH_I2C_Read... [09:34:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:30]Read from MH i2c: E2 [09:34:30]MH_I2C_Read... [09:34:30]Read from MH i2c: E2 17 00 [09:34:30]MH_I2C_Read... [09:34:30]Read from MH i2c: E2 17 00 2E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 14 [09:34:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [09:34:30]wFMCommunicate OK [09:34:30]requested_item fd.num is exist - process it [09:34:30]SAM_PROTO_GetFieldsCounters [09:34:30]wFMCommunicate request_size=4 [09:34:30]MH_SAM_APDU [09:34:30]CAPDU: 80 13 00 00 [09:34:30]Write to MH i2c: E2 08 00 2F 13 80 13 00 00 00 00 00 00 BE [09:34:30]Write i2c OK [09:34:30]MH_I2C_Read... [09:34:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:34:30]Read from MH i2c: E2 [09:34:30]MH_I2C_Read... [09:34:30]Read from MH i2c: E2 62 00 [09:34:30]MH_I2C_Read... [09:34:30]Read from MH i2c: E2 62 00 2F 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 F2 69 00 00 0E 04 04 00 B2 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 3F [09:34:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 F2 69 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:34:30]wFMCommunicate OK [09:34:30]SAM_PROTO_GetFieldsCounters done [09:34:30]requested_item shift.num is exist - process it [09:34:30]requested_item shift.opened is exist - process it [09:34:30]req_shift_opened [09:34:30]FM_GetShiftState [09:34:30]SAM_PROTO_GetShiftState [09:34:30]wFMCommunicate request_size=4 [09:34:31]MH_SAM_APDU [09:34:31]CAPDU: 80 13 01 00 [09:34:31]Write to MH i2c: E2 08 00 30 13 80 13 01 00 00 00 00 00 C0 [09:34:31]Write i2c OK [09:34:31]MH_I2C_Read... [09:34:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:31]Read from MH i2c: E2 [09:34:31]MH_I2C_Read... [09:34:31]Read from MH i2c: E2 0E 00 [09:34:31]MH_I2C_Read... [09:34:31]Read from MH i2c: E2 0E 00 30 13 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 41 [09:34:31]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [09:34:31]wFMCommunicate OK [09:34:31]SAM_PROTO_GetShiftState done [09:34:31]FM_GetShiftState done [09:34:31]req_shift_opened done [09:34:31]requested_item shift.open_date is exist - process it [09:34:31]req_shift_open_date [09:34:31]req_shift_open_date done [09:34:31]produce_requested_data done [09:34:31]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27122,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [09:34:31]process_action_free close_receipt [09:34:31]json_value_free [09:34:31]json_value_free done [09:34:31]process_json_proto returns [09:34:31]Send response to host [09:34:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27122,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [09:34:31]free response buf [09:34:31]execute_script done [09:34:31]execute_script returns [09:34:31]free content buf [09:34:31]Sock 9.Close socket [09:34:31]Sock 9.Thread stoped [09:34:34]OFD Sender: No OFD packet to send [09:34:39]OFD Sender: No OFD packet to send [09:34:44]OFD Sender: No OFD packet to send [09:34:49]OFD Sender: No OFD packet to send [09:34:54]OFD Sender: No OFD packet to send [09:34:59]OFD Sender: No OFD packet to send [09:35:04]OFD Sender: No OFD packet to send [09:35:09]OFD Sender: No OFD packet to send [09:35:14]OFD Sender: No OFD packet to send [09:35:19]OFD Sender: No OFD packet to send [09:35:24]OFD Sender: No OFD packet to send [09:35:29]OFD Sender: No OFD packet to send [09:35:34]OFD Sender: No OFD packet to send [09:35:39]OFD Sender: No OFD packet to send [09:35:44]OFD Sender: No OFD packet to send [09:35:49]OFD Sender: No OFD packet to send [09:35:54]OFD Sender: No OFD packet to send [09:35:59]OFD Sender: No OFD packet to send [09:36:04]OFD Sender: No OFD packet to send [09:36:09]OFD Sender: No OFD packet to send [09:36:14]OFD Sender: No OFD packet to send [09:36:19]OFD Sender: No OFD packet to send [09:36:24]OFD Sender: No OFD packet to send [09:36:29]OFD Sender: No OFD packet to send [09:36:34]OFD Sender: No OFD packet to send [09:36:39]OFD Sender: No OFD packet to send [09:36:44]OFD Sender: No OFD packet to send [09:36:49]OFD Sender: No OFD packet to send [09:36:54]OFD Sender: No OFD packet to send [09:36:59]OFD Sender: No OFD packet to send [09:37:04]OFD Sender: No OFD packet to send [09:37:09]OFD Sender: No OFD packet to send [09:37:14]OFD Sender: No OFD packet to send [09:37:19]OFD Sender: No OFD packet to send [09:37:24]OFD Sender: No OFD packet to send [09:37:29]OFD Sender: No OFD packet to send [09:37:34]OFD Sender: No OFD packet to send [09:37:39]OFD Sender: No OFD packet to send [09:37:44]OFD Sender: No OFD packet to send [09:37:49]OFD Sender: No OFD packet to send [09:37:54]OFD Sender: No OFD packet to send [09:37:59]OFD Sender: No OFD packet to send [09:38:04]OFD Sender: No OFD packet to send [09:38:09]OFD Sender: No OFD packet to send [09:38:14]OFD Sender: No OFD packet to send [09:38:20]OFD Sender: No OFD packet to send [09:38:25]OFD Sender: No OFD packet to send [09:38:30]OFD Sender: No OFD packet to send [09:38:35]OFD Sender: No OFD packet to send [09:38:40]OFD Sender: No OFD packet to send [09:38:45]OFD Sender: No OFD packet to send [09:38:50]OFD Sender: No OFD packet to send [09:38:55]OFD Sender: No OFD packet to send [09:39:00]OFD Sender: No OFD packet to send [09:39:05]OFD Sender: No OFD packet to send [09:39:10]OFD Sender: No OFD packet to send [09:39:15]OFD Sender: No OFD packet to send [09:39:20]OFD Sender: No OFD packet to send [09:39:25]OFD Sender: No OFD packet to send [09:39:30]OFD Sender: No OFD packet to send [09:39:35]OFD Sender: No OFD packet to send [09:39:40]OFD Sender: No OFD packet to send [09:39:45]OFD Sender: No OFD packet to send [09:39:50]OFD Sender: No OFD packet to send [09:39:55]OFD Sender: No OFD packet to send [09:40:00]OFD Sender: No OFD packet to send [09:40:05]OFD Sender: No OFD packet to send [09:40:10]OFD Sender: No OFD packet to send [09:40:15]OFD Sender: No OFD packet to send [09:40:20]OFD Sender: No OFD packet to send [09:40:25]OFD Sender: No OFD packet to send [09:40:30]OFD Sender: No OFD packet to send [09:40:35]OFD Sender: No OFD packet to send [09:40:40]OFD Sender: No OFD packet to send [09:40:45]OFD Sender: No OFD packet to send [09:40:50]OFD Sender: No OFD packet to send [09:40:55]OFD Sender: No OFD packet to send [09:41:00]OFD Sender: No OFD packet to send [09:41:05]OFD Sender: No OFD packet to send [09:41:10]OFD Sender: No OFD packet to send [09:41:15]OFD Sender: No OFD packet to send [09:41:20]OFD Sender: No OFD packet to send [09:41:25]OFD Sender: No OFD packet to send [09:41:30]OFD Sender: No OFD packet to send [09:41:35]OFD Sender: No OFD packet to send [09:41:40]OFD Sender: No OFD packet to send [09:41:45]OFD Sender: No OFD packet to send [09:41:50]OFD Sender: No OFD packet to send [09:41:55]OFD Sender: No OFD packet to send [09:42:00]OFD Sender: No OFD packet to send [09:42:05]OFD Sender: No OFD packet to send [09:42:10]OFD Sender: No OFD packet to send [09:42:15]OFD Sender: No OFD packet to send [09:42:20]OFD Sender: No OFD packet to send [09:42:25]OFD Sender: No OFD packet to send [09:42:30]OFD Sender: No OFD packet to send [09:42:35]OFD Sender: No OFD packet to send [09:42:40]OFD Sender: No OFD packet to send [09:42:45]OFD Sender: No OFD packet to send [09:42:50]OFD Sender: No OFD packet to send [09:42:55]OFD Sender: No OFD packet to send [09:43:00]OFD Sender: No OFD packet to send [09:43:05]OFD Sender: No OFD packet to send [09:43:10]OFD Sender: No OFD packet to send [09:43:15]OFD Sender: No OFD packet to send [09:43:20]OFD Sender: No OFD packet to send [09:43:25]OFD Sender: No OFD packet to send [09:43:30]OFD Sender: No OFD packet to send [09:43:35]OFD Sender: No OFD packet to send [09:43:40]OFD Sender: No OFD packet to send [09:43:45]OFD Sender: No OFD packet to send [09:43:50]OFD Sender: No OFD packet to send [09:43:55]OFD Sender: No OFD packet to send [09:44:00]OFD Sender: No OFD packet to send [09:44:05]OFD Sender: No OFD packet to send [09:44:10]OFD Sender: No OFD packet to send [09:44:15]OFD Sender: No OFD packet to send [09:44:20]OFD Sender: No OFD packet to send [09:44:25]OFD Sender: No OFD packet to send [09:44:30]OFD Sender: No OFD packet to send [09:44:35]OFD Sender: No OFD packet to send [09:44:40]OFD Sender: No OFD packet to send [09:44:45]OFD Sender: No OFD packet to send [09:44:50]OFD Sender: No OFD packet to send [09:44:55]OFD Sender: No OFD packet to send [09:45:00]OFD Sender: No OFD packet to send [09:45:05]OFD Sender: No OFD packet to send [09:45:10]OFD Sender: No OFD packet to send [09:45:15]OFD Sender: No OFD packet to send [09:45:20]OFD Sender: No OFD packet to send [09:45:25]OFD Sender: No OFD packet to send [09:45:30]OFD Sender: No OFD packet to send [09:45:35]OFD Sender: No OFD packet to send [09:45:40]OFD Sender: No OFD packet to send [09:45:45]OFD Sender: No OFD packet to send [09:45:50]OFD Sender: No OFD packet to send [09:45:55]OFD Sender: No OFD packet to send [09:46:00]OFD Sender: No OFD packet to send [09:46:05]OFD Sender: No OFD packet to send [09:46:10]OFD Sender: No OFD packet to send [09:46:15]OFD Sender: No OFD packet to send [09:46:20]OFD Sender: No OFD packet to send [09:46:25]OFD Sender: No OFD packet to send [09:46:30]OFD Sender: No OFD packet to send [09:46:35]OFD Sender: No OFD packet to send [09:46:40]OFD Sender: No OFD packet to send [09:46:45]OFD Sender: No OFD packet to send [09:46:50]OFD Sender: No OFD packet to send [09:46:55]OFD Sender: No OFD packet to send [09:47:00]OFD Sender: No OFD packet to send [09:47:05]OFD Sender: No OFD packet to send [09:47:10]OFD Sender: No OFD packet to send [09:47:15]OFD Sender: No OFD packet to send [09:47:20]OFD Sender: No OFD packet to send [09:47:25]OFD Sender: No OFD packet to send [09:47:30]OFD Sender: No OFD packet to send [09:47:35]OFD Sender: No OFD packet to send [09:47:40]OFD Sender: No OFD packet to send [09:47:45]OFD Sender: No OFD packet to send [09:47:50]OFD Sender: No OFD packet to send [09:47:55]OFD Sender: No OFD packet to send [09:48:00]OFD Sender: No OFD packet to send [09:48:05]OFD Sender: No OFD packet to send [09:48:10]OFD Sender: No OFD packet to send [09:48:15]OFD Sender: No OFD packet to send [09:48:20]OFD Sender: No OFD packet to send [09:48:25]OFD Sender: No OFD packet to send [09:48:30]OFD Sender: No OFD packet to send [09:48:35]OFD Sender: No OFD packet to send [09:48:40]OFD Sender: No OFD packet to send [09:48:45]OFD Sender: No OFD packet to send [09:48:50]OFD Sender: No OFD packet to send [09:48:55]OFD Sender: No OFD packet to send [09:49:00]OFD Sender: No OFD packet to send [09:49:05]OFD Sender: No OFD packet to send [09:49:10]OFD Sender: No OFD packet to send [09:49:15]OFD Sender: No OFD packet to send [09:49:20]OFD Sender: No OFD packet to send [09:49:25]OFD Sender: No OFD packet to send [09:49:30]OFD Sender: No OFD packet to send [09:49:35]OFD Sender: No OFD packet to send [09:49:40]OFD Sender: No OFD packet to send [09:49:45]OFD Sender: No OFD packet to send [09:49:50]OFD Sender: No OFD packet to send [09:49:55]OFD Sender: No OFD packet to send [09:50:00]OFD Sender: No OFD packet to send [09:50:05]OFD Sender: No OFD packet to send [09:50:10]OFD Sender: No OFD packet to send [09:50:15]OFD Sender: No OFD packet to send [09:50:20]OFD Sender: No OFD packet to send [09:50:25]OFD Sender: No OFD packet to send [09:50:30]OFD Sender: No OFD packet to send [09:50:35]OFD Sender: No OFD packet to send [09:50:40]OFD Sender: No OFD packet to send [09:50:45]OFD Sender: No OFD packet to send [09:50:50]OFD Sender: No OFD packet to send [09:50:55]OFD Sender: No OFD packet to send [09:51:00]OFD Sender: No OFD packet to send [09:51:05]OFD Sender: No OFD packet to send [09:51:10]OFD Sender: No OFD packet to send [09:51:15]OFD Sender: No OFD packet to send [09:51:20]OFD Sender: No OFD packet to send [09:51:25]OFD Sender: No OFD packet to send [09:51:30]OFD Sender: No OFD packet to send [09:51:35]OFD Sender: No OFD packet to send [09:51:40]OFD Sender: No OFD packet to send [09:51:45]OFD Sender: No OFD packet to send [09:51:50]OFD Sender: No OFD packet to send [09:51:55]OFD Sender: No OFD packet to send [09:52:00]OFD Sender: No OFD packet to send [09:52:05]OFD Sender: No OFD packet to send [09:52:10]OFD Sender: No OFD packet to send [09:52:15]OFD Sender: No OFD packet to send [09:52:20]OFD Sender: No OFD packet to send [09:52:25]OFD Sender: No OFD packet to send [09:52:30]OFD Sender: No OFD packet to send [09:52:35]OFD Sender: No OFD packet to send [09:52:40]OFD Sender: No OFD packet to send [09:52:45]OFD Sender: No OFD packet to send [09:52:50]OFD Sender: No OFD packet to send [09:52:55]OFD Sender: No OFD packet to send [09:53:00]OFD Sender: No OFD packet to send [09:53:05]OFD Sender: No OFD packet to send [09:53:10]OFD Sender: No OFD packet to send [09:53:15]OFD Sender: No OFD packet to send [09:53:20]OFD Sender: No OFD packet to send [09:53:25]OFD Sender: No OFD packet to send [09:53:30]OFD Sender: No OFD packet to send [09:53:35]OFD Sender: No OFD packet to send [09:53:40]OFD Sender: No OFD packet to send [09:53:45]OFD Sender: No OFD packet to send [09:53:50]OFD Sender: No OFD packet to send [09:53:55]OFD Sender: No OFD packet to send [09:54:00]OFD Sender: No OFD packet to send [09:54:05]OFD Sender: No OFD packet to send [09:54:10]OFD Sender: No OFD packet to send [09:54:15]OFD Sender: No OFD packet to send [09:54:20]OFD Sender: No OFD packet to send [09:54:25]OFD Sender: No OFD packet to send [09:54:30]OFD Sender: No OFD packet to send [09:54:35]OFD Sender: No OFD packet to send [09:54:40]OFD Sender: No OFD packet to send [09:54:45]OFD Sender: No OFD packet to send [09:54:50]OFD Sender: No OFD packet to send [09:54:55]OFD Sender: No OFD packet to send [09:55:00]OFD Sender: No OFD packet to send [09:55:05]OFD Sender: No OFD packet to send [09:55:10]OFD Sender: No OFD packet to send [09:55:15]OFD Sender: No OFD packet to send [09:55:20]OFD Sender: No OFD packet to send [09:55:25]OFD Sender: No OFD packet to send [09:55:30]OFD Sender: No OFD packet to send [09:55:35]OFD Sender: No OFD packet to send [09:55:40]OFD Sender: No OFD packet to send [09:55:45]OFD Sender: No OFD packet to send [09:55:50]OFD Sender: No OFD packet to send [09:55:55]OFD Sender: No OFD packet to send [09:56:00]OFD Sender: No OFD packet to send [09:56:05]OFD Sender: No OFD packet to send [09:56:10]OFD Sender: No OFD packet to send [09:56:15]OFD Sender: No OFD packet to send [09:56:20]OFD Sender: No OFD packet to send [09:56:25]OFD Sender: No OFD packet to send [09:56:30]OFD Sender: No OFD packet to send [09:56:35]OFD Sender: No OFD packet to send [09:56:40]OFD Sender: No OFD packet to send [09:56:45]OFD Sender: No OFD packet to send [09:56:50]OFD Sender: No OFD packet to send [09:56:55]OFD Sender: No OFD packet to send [09:57:00]OFD Sender: No OFD packet to send [09:57:05]OFD Sender: No OFD packet to send [09:57:10]OFD Sender: No OFD packet to send [09:57:15]OFD Sender: No OFD packet to send [09:57:20]OFD Sender: No OFD packet to send [09:57:25]OFD Sender: No OFD packet to send [09:57:30]OFD Sender: No OFD packet to send [09:57:35]OFD Sender: No OFD packet to send [09:57:40]OFD Sender: No OFD packet to send [09:57:45]OFD Sender: No OFD packet to send [09:57:50]OFD Sender: No OFD packet to send [09:57:55]OFD Sender: No OFD packet to send [09:58:00]OFD Sender: No OFD packet to send [09:58:05]OFD Sender: No OFD packet to send [09:58:10]OFD Sender: No OFD packet to send [09:58:15]OFD Sender: No OFD packet to send [09:58:20]OFD Sender: No OFD packet to send [09:58:25]OFD Sender: No OFD packet to send [09:58:30]OFD Sender: No OFD packet to send [09:58:35]OFD Sender: No OFD packet to send [09:58:40]OFD Sender: No OFD packet to send [09:58:45]OFD Sender: No OFD packet to send [09:58:50]OFD Sender: No OFD packet to send [09:58:55]OFD Sender: No OFD packet to send [09:59:00]OFD Sender: No OFD packet to send [09:59:05]OFD Sender: No OFD packet to send [09:59:10]OFD Sender: No OFD packet to send [09:59:16]OFD Sender: No OFD packet to send [09:59:21]OFD Sender: No OFD packet to send [09:59:26]OFD Sender: No OFD packet to send [09:59:31]OFD Sender: No OFD packet to send [09:59:36]OFD Sender: No OFD packet to send [09:59:41]OFD Sender: No OFD packet to send [09:59:46]OFD Sender: No OFD packet to send [09:59:51]OFD Sender: No OFD packet to send [09:59:56]OFD Sender: No OFD packet to send [10:00:01]OFD Sender: No OFD packet to send [10:00:06]OFD Sender: No OFD packet to send [10:00:11]OFD Sender: No OFD packet to send [10:00:16]OFD Sender: No OFD packet to send [10:00:21]OFD Sender: No OFD packet to send [10:00:26]OFD Sender: No OFD packet to send [10:00:31]OFD Sender: No OFD packet to send [10:00:36]OFD Sender: No OFD packet to send [10:00:41]OFD Sender: No OFD packet to send [10:00:46]OFD Sender: No OFD packet to send [10:00:51]OFD Sender: No OFD packet to send [10:00:56]OFD Sender: No OFD packet to send [10:01:01]OFD Sender: No OFD packet to send [10:01:06]OFD Sender: No OFD packet to send [10:01:11]OFD Sender: No OFD packet to send [10:01:16]OFD Sender: No OFD packet to send [10:01:21]OFD Sender: No OFD packet to send [10:01:26]OFD Sender: No OFD packet to send [10:01:31]OFD Sender: No OFD packet to send [10:01:36]OFD Sender: No OFD packet to send [10:01:41]OFD Sender: No OFD packet to send [10:01:46]OFD Sender: No OFD packet to send [10:01:51]OFD Sender: No OFD packet to send [10:01:56]OFD Sender: No OFD packet to send [10:02:01]OFD Sender: No OFD packet to send [10:02:06]OFD Sender: No OFD packet to send [10:02:11]OFD Sender: No OFD packet to send [10:02:16]OFD Sender: No OFD packet to send [10:02:21]OFD Sender: No OFD packet to send [10:02:26]OFD Sender: No OFD packet to send [10:02:31]OFD Sender: No OFD packet to send [10:02:36]OFD Sender: No OFD packet to send [10:02:41]OFD Sender: No OFD packet to send [10:02:46]OFD Sender: No OFD packet to send [10:02:51]OFD Sender: No OFD packet to send [10:02:56]OFD Sender: No OFD packet to send [10:03:01]OFD Sender: No OFD packet to send [10:03:06]OFD Sender: No OFD packet to send [10:03:11]OFD Sender: No OFD packet to send [10:03:16]OFD Sender: No OFD packet to send [10:03:21]OFD Sender: No OFD packet to send [10:03:26]OFD Sender: No OFD packet to send [10:03:31]OFD Sender: No OFD packet to send [10:03:36]OFD Sender: No OFD packet to send [10:03:41]OFD Sender: No OFD packet to send [10:03:46]OFD Sender: No OFD packet to send [10:03:51]OFD Sender: No OFD packet to send [10:03:56]OFD Sender: No OFD packet to send [10:04:01]OFD Sender: No OFD packet to send [10:04:06]OFD Sender: No OFD packet to send [10:04:11]OFD Sender: No OFD packet to send [10:04:16]OFD Sender: No OFD packet to send [10:04:21]OFD Sender: No OFD packet to send [10:04:26]OFD Sender: No OFD packet to send [10:04:31]OFD Sender: No OFD packet to send [10:04:36]OFD Sender: No OFD packet to send [10:04:41]OFD Sender: No OFD packet to send [10:04:46]OFD Sender: No OFD packet to send [10:04:51]OFD Sender: No OFD packet to send [10:04:56]OFD Sender: No OFD packet to send [10:05:01]OFD Sender: No OFD packet to send [10:05:06]OFD Sender: No OFD packet to send [10:05:11]OFD Sender: No OFD packet to send [10:05:16]OFD Sender: No OFD packet to send [10:05:21]OFD Sender: No OFD packet to send [10:05:26]OFD Sender: No OFD packet to send [10:05:31]OFD Sender: No OFD packet to send [10:05:36]OFD Sender: No OFD packet to send [10:05:41]OFD Sender: No OFD packet to send [10:05:46]OFD Sender: No OFD packet to send [10:05:51]OFD Sender: No OFD packet to send [10:05:56]OFD Sender: No OFD packet to send [10:06:01]OFD Sender: No OFD packet to send [10:06:06]OFD Sender: No OFD packet to send [10:06:11]OFD Sender: No OFD packet to send [10:06:16]OFD Sender: No OFD packet to send [10:06:21]OFD Sender: No OFD packet to send [10:06:26]OFD Sender: No OFD packet to send [10:06:31]OFD Sender: No OFD packet to send [10:06:36]OFD Sender: No OFD packet to send [10:06:41]OFD Sender: No OFD packet to send [10:06:46]OFD Sender: No OFD packet to send [10:06:51]OFD Sender: No OFD packet to send [10:06:56]OFD Sender: No OFD packet to send [10:07:01]OFD Sender: No OFD packet to send [10:07:06]OFD Sender: No OFD packet to send [10:07:11]OFD Sender: No OFD packet to send [10:07:16]OFD Sender: No OFD packet to send [10:07:21]OFD Sender: No OFD packet to send [10:07:26]OFD Sender: No OFD packet to send [10:07:31]OFD Sender: No OFD packet to send [10:07:36]OFD Sender: No OFD packet to send [10:07:41]OFD Sender: No OFD packet to send [10:07:46]OFD Sender: No OFD packet to send [10:07:51]OFD Sender: No OFD packet to send [10:07:56]OFD Sender: No OFD packet to send [10:08:01]OFD Sender: No OFD packet to send [10:08:06]OFD Sender: No OFD packet to send [10:08:11]OFD Sender: No OFD packet to send [10:08:16]OFD Sender: No OFD packet to send [10:08:21]OFD Sender: No OFD packet to send [10:08:26]OFD Sender: No OFD packet to send [10:08:31]OFD Sender: No OFD packet to send [10:08:36]OFD Sender: No OFD packet to send [10:08:41]OFD Sender: No OFD packet to send [10:08:46]OFD Sender: No OFD packet to send [10:08:51]OFD Sender: No OFD packet to send [10:08:56]OFD Sender: No OFD packet to send [10:09:01]OFD Sender: No OFD packet to send [10:09:06]OFD Sender: No OFD packet to send [10:09:11]OFD Sender: No OFD packet to send [10:09:16]OFD Sender: No OFD packet to send [10:09:21]OFD Sender: No OFD packet to send [10:09:26]OFD Sender: No OFD packet to send [10:09:31]OFD Sender: No OFD packet to send [10:09:36]OFD Sender: No OFD packet to send [10:09:41]OFD Sender: No OFD packet to send [10:09:46]OFD Sender: No OFD packet to send [10:09:51]OFD Sender: No OFD packet to send [10:09:56]OFD Sender: No OFD packet to send [10:10:01]OFD Sender: No OFD packet to send [10:10:06]OFD Sender: No OFD packet to send [10:10:11]OFD Sender: No OFD packet to send [10:10:16]OFD Sender: No OFD packet to send [10:10:21]OFD Sender: No OFD packet to send [10:10:26]OFD Sender: No OFD packet to send [10:10:31]OFD Sender: No OFD packet to send [10:10:36]OFD Sender: No OFD packet to send [10:10:41]OFD Sender: No OFD packet to send [10:10:46]OFD Sender: No OFD packet to send [10:10:51]OFD Sender: No OFD packet to send [10:10:56]OFD Sender: No OFD packet to send [10:11:01]OFD Sender: No OFD packet to send [10:11:06]OFD Sender: No OFD packet to send [10:11:11]OFD Sender: No OFD packet to send [10:11:16]OFD Sender: No OFD packet to send [10:11:21]OFD Sender: No OFD packet to send [10:11:26]OFD Sender: No OFD packet to send [10:11:31]OFD Sender: No OFD packet to send [10:11:36]OFD Sender: No OFD packet to send [10:11:41]OFD Sender: No OFD packet to send [10:11:46]OFD Sender: No OFD packet to send [10:11:51]OFD Sender: No OFD packet to send [10:11:56]OFD Sender: No OFD packet to send [10:12:01]OFD Sender: No OFD packet to send [10:12:06]OFD Sender: No OFD packet to send [10:12:11]OFD Sender: No OFD packet to send [10:12:16]OFD Sender: No OFD packet to send [10:12:21]OFD Sender: No OFD packet to send [10:12:26]OFD Sender: No OFD packet to send [10:12:31]OFD Sender: No OFD packet to send [10:12:36]OFD Sender: No OFD packet to send [10:12:41]OFD Sender: No OFD packet to send [10:12:46]OFD Sender: No OFD packet to send [10:12:51]OFD Sender: No OFD packet to send [10:12:56]OFD Sender: No OFD packet to send [10:13:01]OFD Sender: No OFD packet to send [10:13:06]OFD Sender: No OFD packet to send [10:13:11]OFD Sender: No OFD packet to send [10:13:16]OFD Sender: No OFD packet to send [10:13:21]OFD Sender: No OFD packet to send [10:13:26]OFD Sender: No OFD packet to send [10:13:31]OFD Sender: No OFD packet to send [10:13:36]OFD Sender: No OFD packet to send [10:13:41]OFD Sender: No OFD packet to send [10:13:46]OFD Sender: No OFD packet to send [10:13:51]OFD Sender: No OFD packet to send [10:13:56]OFD Sender: No OFD packet to send [10:14:01]OFD Sender: No OFD packet to send [10:14:06]OFD Sender: No OFD packet to send [10:14:11]OFD Sender: No OFD packet to send [10:14:16]OFD Sender: No OFD packet to send [10:14:21]OFD Sender: No OFD packet to send [10:14:26]OFD Sender: No OFD packet to send [10:14:31]OFD Sender: No OFD packet to send [10:14:36]OFD Sender: No OFD packet to send [10:14:41]OFD Sender: No OFD packet to send [10:14:46]OFD Sender: No OFD packet to send [10:14:51]OFD Sender: No OFD packet to send [10:14:56]OFD Sender: No OFD packet to send [10:15:01]OFD Sender: No OFD packet to send [10:15:06]OFD Sender: No OFD packet to send [10:15:11]OFD Sender: No OFD packet to send [10:15:16]OFD Sender: No OFD packet to send [10:15:21]OFD Sender: No OFD packet to send [10:15:26]OFD Sender: No OFD packet to send [10:15:31]OFD Sender: No OFD packet to send [10:15:36]OFD Sender: No OFD packet to send [10:15:41]OFD Sender: No OFD packet to send [10:15:46]OFD Sender: No OFD packet to send [10:15:51]OFD Sender: No OFD packet to send [10:15:56]OFD Sender: No OFD packet to send [10:16:01]OFD Sender: No OFD packet to send [10:16:06]OFD Sender: No OFD packet to send [10:16:11]OFD Sender: No OFD packet to send [10:16:16]OFD Sender: No OFD packet to send [10:16:21]OFD Sender: No OFD packet to send [10:16:26]OFD Sender: No OFD packet to send [10:16:31]OFD Sender: No OFD packet to send [10:16:36]OFD Sender: No OFD packet to send [10:16:41]OFD Sender: No OFD packet to send [10:16:46]OFD Sender: No OFD packet to send [10:16:51]OFD Sender: No OFD packet to send [10:16:56]OFD Sender: No OFD packet to send [10:17:01]OFD Sender: No OFD packet to send [10:17:06]OFD Sender: No OFD packet to send [10:17:11]OFD Sender: No OFD packet to send [10:17:16]OFD Sender: No OFD packet to send [10:17:21]OFD Sender: No OFD packet to send [10:17:26]OFD Sender: No OFD packet to send [10:17:31]OFD Sender: No OFD packet to send [10:17:36]OFD Sender: No OFD packet to send [10:17:41]OFD Sender: No OFD packet to send [10:17:46]OFD Sender: No OFD packet to send [10:17:51]OFD Sender: No OFD packet to send [10:17:56]OFD Sender: No OFD packet to send [10:18:01]OFD Sender: No OFD packet to send [10:18:06]OFD Sender: No OFD packet to send [10:18:11]OFD Sender: No OFD packet to send [10:18:16]OFD Sender: No OFD packet to send [10:18:21]OFD Sender: No OFD packet to send [10:18:26]OFD Sender: No OFD packet to send [10:18:31]OFD Sender: No OFD packet to send [10:18:36]OFD Sender: No OFD packet to send [10:18:41]OFD Sender: No OFD packet to send [10:18:46]OFD Sender: No OFD packet to send [10:18:51]OFD Sender: No OFD packet to send [10:18:56]OFD Sender: No OFD packet to send [10:19:01]OFD Sender: No OFD packet to send [10:19:06]OFD Sender: No OFD packet to send [10:19:11]OFD Sender: No OFD packet to send [10:19:16]OFD Sender: No OFD packet to send [10:19:21]OFD Sender: No OFD packet to send [10:19:26]OFD Sender: No OFD packet to send [10:19:31]OFD Sender: No OFD packet to send [10:19:36]OFD Sender: No OFD packet to send [10:19:41]OFD Sender: No OFD packet to send [10:19:46]OFD Sender: No OFD packet to send [10:19:51]OFD Sender: No OFD packet to send [10:19:56]OFD Sender: No OFD packet to send [10:20:01]OFD Sender: No OFD packet to send [10:20:06]OFD Sender: No OFD packet to send [10:20:12]OFD Sender: No OFD packet to send [10:20:17]OFD Sender: No OFD packet to send [10:20:22]OFD Sender: No OFD packet to send [10:20:27]OFD Sender: No OFD packet to send [10:20:32]OFD Sender: No OFD packet to send [10:20:37]OFD Sender: No OFD packet to send [10:20:42]OFD Sender: No OFD packet to send [10:20:47]OFD Sender: No OFD packet to send [10:20:52]OFD Sender: No OFD packet to send [10:20:57]OFD Sender: No OFD packet to send [10:21:02]OFD Sender: No OFD packet to send [10:21:07]OFD Sender: No OFD packet to send [10:21:12]OFD Sender: No OFD packet to send [10:21:17]OFD Sender: No OFD packet to send [10:21:22]OFD Sender: No OFD packet to send [10:21:27]OFD Sender: No OFD packet to send [10:21:32]OFD Sender: No OFD packet to send [10:21:37]OFD Sender: No OFD packet to send [10:21:42]OFD Sender: No OFD packet to send [10:21:47]OFD Sender: No OFD packet to send [10:21:52]OFD Sender: No OFD packet to send [10:21:57]OFD Sender: No OFD packet to send [10:22:02]OFD Sender: No OFD packet to send [10:22:07]OFD Sender: No OFD packet to send [10:22:12]OFD Sender: No OFD packet to send [10:22:17]OFD Sender: No OFD packet to send [10:22:22]OFD Sender: No OFD packet to send [10:22:27]OFD Sender: No OFD packet to send [10:22:32]OFD Sender: No OFD packet to send [10:22:37]OFD Sender: No OFD packet to send [10:22:42]OFD Sender: No OFD packet to send [10:22:47]OFD Sender: No OFD packet to send [10:22:52]OFD Sender: No OFD packet to send [10:22:57]OFD Sender: No OFD packet to send [10:23:02]OFD Sender: No OFD packet to send [10:23:07]OFD Sender: No OFD packet to send [10:23:12]OFD Sender: No OFD packet to send [10:23:17]OFD Sender: No OFD packet to send [10:23:22]OFD Sender: No OFD packet to send [10:23:27]OFD Sender: No OFD packet to send [10:23:32]OFD Sender: No OFD packet to send [10:23:37]OFD Sender: No OFD packet to send [10:23:42]OFD Sender: No OFD packet to send [10:23:47]OFD Sender: No OFD packet to send [10:23:52]OFD Sender: No OFD packet to send [10:23:57]OFD Sender: No OFD packet to send [10:24:02]OFD Sender: No OFD packet to send [10:24:07]OFD Sender: No OFD packet to send [10:24:12]OFD Sender: No OFD packet to send [10:24:17]OFD Sender: No OFD packet to send [10:24:22]OFD Sender: No OFD packet to send [10:24:27]OFD Sender: No OFD packet to send [10:24:32]OFD Sender: No OFD packet to send [10:24:37]OFD Sender: No OFD packet to send [10:24:42]OFD Sender: No OFD packet to send [10:24:47]OFD Sender: No OFD packet to send [10:24:52]OFD Sender: No OFD packet to send [10:24:57]OFD Sender: No OFD packet to send [10:25:02]OFD Sender: No OFD packet to send [10:25:07]OFD Sender: No OFD packet to send [10:25:12]OFD Sender: No OFD packet to send [10:25:17]OFD Sender: No OFD packet to send [10:25:22]OFD Sender: No OFD packet to send [10:25:27]OFD Sender: No OFD packet to send [10:25:32]OFD Sender: No OFD packet to send [10:25:37]OFD Sender: No OFD packet to send [10:25:42]OFD Sender: No OFD packet to send [10:25:47]OFD Sender: No OFD packet to send [10:25:52]OFD Sender: No OFD packet to send [10:25:57]OFD Sender: No OFD packet to send [10:26:02]OFD Sender: No OFD packet to send [10:26:07]OFD Sender: No OFD packet to send [10:26:12]OFD Sender: No OFD packet to send [10:26:17]OFD Sender: No OFD packet to send [10:26:22]OFD Sender: No OFD packet to send [10:26:27]OFD Sender: No OFD packet to send [10:26:32]OFD Sender: No OFD packet to send [10:26:37]OFD Sender: No OFD packet to send [10:26:42]OFD Sender: No OFD packet to send [10:26:47]OFD Sender: No OFD packet to send [10:26:52]OFD Sender: No OFD packet to send [10:26:57]OFD Sender: No OFD packet to send [10:27:02]OFD Sender: No OFD packet to send [10:27:07]OFD Sender: No OFD packet to send [10:27:12]OFD Sender: No OFD packet to send [10:27:17]OFD Sender: No OFD packet to send [10:27:22]OFD Sender: No OFD packet to send [10:27:27]OFD Sender: No OFD packet to send [10:27:32]OFD Sender: No OFD packet to send [10:27:37]OFD Sender: No OFD packet to send [10:27:42]OFD Sender: No OFD packet to send [10:27:47]OFD Sender: No OFD packet to send [10:27:52]OFD Sender: No OFD packet to send [10:27:52]accept exits with 8 [10:27:52]New connection [10:27:52]New thread 3066785124 created [10:27:52]Thread 3066928484 joined [10:27:52]Waiting for new connection... [10:27:52] Sock 8.Parse request [10:27:52]Sock 8.Check first char [10:27:52]Sock 8.First char is OK [10:27:52]request: POST /json_proto HTTP/1.0 [10:27:52]Method: POST [10:27:52]URL: /json_proto [10:27:52]Method is POST - this is cgi request [10:27:52]url: /json_proto [10:27:52]query_string will be loaded in cgi processing [10:27:52]execute_cgi json_proto POST (null) [10:27:52]execute_cgi path=json_proto method=POST [10:27:52]POST find Content-Length [10:27:52]Host: 172.17.45.8:8080 [10:27:52]Content-Length: 614 [10:27:52]Content-Type: application/json [10:27:52] [10:27:52]POST finish read [10:27:52]Found Content-Length = 614 [10:27:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150521", "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 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:52]execute_script... [10:27: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)150521", "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 }]} ], "payments": [ { "type": 0, "sum" : 111.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:52]POST & json_proto [10:27:52]process_json_proto [10:27:52]json parsed OK: [10:27:52]protocol is kg_v1.0 [10:27:52]action value=close_receipt [10:27:52]process_action close_receipt [10:27:52]cmd_close_receipt [10:27:52]MH_GetDate [10:27:52]Write to MH i2c: F0 00 00 31 13 33 [10:27:52]Write i2c OK [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: F0 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: F0 09 00 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: F0 09 00 31 13 00 AD 6E A7 66 A6 1F 7F 64 0C [10:27:52]GetLastDocTimeStamp 1722245671 [10:27:52]current date 1722248877 [10:27:52]FM_GetShiftState [10:27:52]SAM_PROTO_GetShiftState [10:27:52]wFMCommunicate request_size=4 [10:27:52]MH_SAM_APDU [10:27:52]CAPDU: 80 13 01 00 [10:27:52]Write to MH i2c: E2 08 00 32 13 80 13 01 00 00 00 00 00 C2 [10:27:52]Write i2c OK [10:27:52]MH_I2C_Read... [10:27:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:52]Read from MH i2c: E2 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: E2 0E 00 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: E2 0E 00 32 13 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 43 [10:27:52]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [10:27:52]wFMCommunicate OK [10:27:52]SAM_PROTO_GetShiftState done [10:27:52]FM_GetShiftState done [10:27:52]opened in 1722213509 [10:27:52]opened+sec_in_day 1722299909 [10:27:52]quantity*price = 11100 [10:27:52]sum+1 = 11101 [10:27:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 111.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 26 29.07.2024 10:27 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27123 ФПД: 67397027302161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T102757&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27123&fm=67397027302161&tin=02508201610067®Number=0000000000092663&sum=11100 0 [10:27:53]StoreToDocumentArchive [10:27:53]shift 434 fd 27123 [10:27:53]save to /storage/0434/doc_00027123 [10:27:53]save last doc name /storage/0434/doc_00027123 to /storage/kkm_last_doc_name [10:27:53]save OK [10:27:53]Clear old archive folders... [10:27:53]ProcessDocumentItem done err = 0, tmpTLVsize=266 [10:27:53]tlvbuf is 001D3B20 [10:27:53]SAM_PROTO_ClearQueue [10:27:53]wFMCommunicate request_size=4 [10:27:53]MH_SAM_APDU [10:27:53]CAPDU: 80 09 00 00 [10:27:53]Write to MH i2c: E2 08 00 3F 13 80 09 00 00 00 00 00 00 C4 [10:27:53]Write i2c OK [10:27:53]MH_I2C_Read... [10:27:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:53]Read from MH i2c: E2 [10:27:53]MH_I2C_Read... [10:27:53]Read from MH i2c: E2 03 00 [10:27:53]MH_I2C_Read... [10:27:53]Read from MH i2c: E2 03 00 3F 13 00 90 00 C6 [10:27:53]RAPDU: 90 00 [10:27:53]wFMCommunicate OK [10:27:53]SAM_PROTO_ClearQueue done [10:27:53]KKMCreateOFDPacket [10:27:53]OFDProtocolAddRootSTLVToBuf [10:27:53]FM_MakeSignedData [10:27:53]FM_MakeSignedData [10:27:53]SAM_PROTO_SignData [10:27:53]wFMCommunicate request_size=4 [10:27:53]MH_SAM_APDU [10:27:53]CAPDU: 80 0D 01 02 [10:27:53]Write to MH i2c: E2 08 00 40 13 80 0D 01 02 00 00 00 00 CC [10:27:53]Write i2c OK [10:27:53]MH_I2C_Read... [10:27:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:53]Read from MH i2c: E2 [10:27:53]MH_I2C_Read... [10:27:53]Read from MH i2c: E2 03 00 [10:27:53]MH_I2C_Read... [10:27:53]Read from MH i2c: E2 03 00 40 13 00 90 00 C7 [10:27:53]RAPDU: 90 00 [10:27:53]wFMCommunicate OK [10:27:53]wFMCommunicate request_size=255 [10:27:53]MH_SAM_APDU [10:27:53]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 5C 2B 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 AD 6E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 [10:27:53]Write to MH i2c: E2 02 01 41 13 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 5C 2B 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 AD 6E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 00 00 DD [10:27:53]Write i2c OK [10:27:53]MH_I2C_Read... [10:27:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:54]Read from MH i2c: E2 [10:27:54]MH_I2C_Read... [10:27:54]Read from MH i2c: E2 03 00 [10:27:54]MH_I2C_Read... [10:27:54]Read from MH i2c: E2 03 00 41 13 00 90 00 C8 [10:27:54]RAPDU: 90 00 [10:27:54]wFMCommunicate OK [10:27:54]wFMCommunicate request_size=25 [10:27:54]MH_SAM_APDU [10:27:54]CAPDU: 80 0D 02 02 14 33 37 10 04 04 00 F3 69 00 00 35 04 06 00 3D 4C 17 DF 0B 11 [10:27:54]Write to MH i2c: E2 1C 00 42 13 80 0D 02 02 14 00 33 37 10 04 04 00 F3 69 00 00 35 04 06 00 3D 4C 17 DF 0B 11 00 00 AF [10:27:54]Write i2c OK [10:27:54]MH_I2C_Read... [10:27:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:54]Read from MH i2c: E2 [10:27:54]MH_I2C_Read... [10:27:54]Read from MH i2c: E2 03 00 [10:27:54]MH_I2C_Read... [10:27:54]Read from MH i2c: E2 03 00 42 13 00 90 00 C9 [10:27:54]RAPDU: 90 00 [10:27:54]wFMCommunicate OK [10:27:54]wFMCommunicate request_size=4 [10:27:54]MH_SAM_APDU [10:27:54]CAPDU: 80 0D 03 02 [10:27:54]Write to MH i2c: E2 08 00 43 13 80 0D 03 02 00 00 00 00 D1 [10:27:54]Write i2c OK [10:27:54]MH_I2C_Read... [10:27:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:54]Read from MH i2c: E2 [10:27:54]MH_I2C_Read... [10:27:54]Read from MH i2c: E2 0B 00 [10:27:54]MH_I2C_Read... [10:27:54]Read from MH i2c: E2 0B 00 43 13 00 CF FA 6C AE C6 09 9A FC 90 00 1A [10:27:54]RAPDU: CF FA 6C AE C6 09 9A FC 90 00 [10:27:54]wFMCommunicate OK [10:27:54]SAM_PROTO_SignData done [10:27:54]FM_MakeSignedData done [10:27:54]CreateOFDProtocolMessage [10:27:54]wFMCommunicate request_size=4 [10:27:54]MH_SAM_APDU [10:27:54]CAPDU: 80 11 00 00 [10:27:54]Write to MH i2c: E2 08 00 44 13 80 11 00 00 00 00 00 00 D1 [10:27:54]Write i2c OK [10:27:54]MH_I2C_Read... [10:27:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:54]Read from MH i2c: E2 [10:27:54]MH_I2C_Read... [10:27:54]Read from MH i2c: E2 17 00 [10:27:54]MH_I2C_Read... [10:27:54]Read from MH i2c: E2 17 00 44 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 2A [10:27:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [10:27:54]wFMCommunicate OK [10:27:54]CreateOFDProtocolMessage done [10:27:54]OFDSenderStorePacket 27123 [10:27:54]StoreOFDPacket docnum=27123 [10:27:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 1E 01 00 00 5E 86 16 01 6D 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 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 5C 2B 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 AD 6E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F3 69 00 00 35 04 06 00 3D 4C 17 DF 0B 11 CF FA 6C AE C6 09 9A FC [10:27:54]CheckFolder [10:27:54]dirname=/storage/ofd_packets [10:27:54]CheckFolder done [10:27:54]ProducePacketName [10:27:54]name=ofd_packets/00027123 [10:27:54]NVStorageSaveData ofd_packets/00027123 [10:27:54]File name is /storage/ofd_packets/00027123 [10:27:54]Write 316 bytes [10:27:54]NVStorageSaveData done [10:27:54]OFDSenderStorePacket done [10:27:54]KKMCreateOFDPacket done [10:27:54]NVStorageSaveData kkm_last_timestamp [10:27:54]File name is /storage/kkm_last_timestamp [10:27:54]Write 4 bytes [10:27:54]NVStorageSaveData done [10:27:54]ExternCall_PrintAddStr [10:27:54]wPrintStart [10:27:54]Write to MH i2c: 01 00 00 45 13 58 [10:27:54]Write i2c OK [10:27:54]MH_I2C_Read... [10:27:54]Read from MH i2c: 01 [10:27:54]MH_I2C_Read... [10:27:54]Read from MH i2c: 01 07 00 [10:27:54]MH_I2C_Read... [10:27:54]Read from MH i2c: 01 07 00 45 13 00 00 00 00 00 FF 0F 6D [10:27:54]RasterBufferAndPrint [10:27:54]line Счет N : (3)150521 [10:27:54]line ИНН: 02508201610067 [10:27:54]line Контрольно-Кассовый Чек [10:27:54]line ПРОДАЖА [10:27:54]line Товар: 4870001570071 [10:27:54]line Напиток Pepsi 1л [10:27:54]line 1.000 * 111.00 [10:27:54]line = 111.00 [10:27:54]line НДС 12% НСП 1% [10:27:54]line > о реализуемом товаре [10:27:54]line ИТОГО: 111.00 [10:27:54]line НСП 1% : 0.98 [10:27:54]line НДС 12% : 11.79 [10:27:54]line Наличными: 111.00 [10:27:54]line Безнал.: 0.00 [10:27:54]line Место: АЗС № 134 "Партнер Нефть" [10:27:54]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:27:54]line СНО: Общий режим [10:27:54]line Чек 26 29.07.2024 10:27 [10:27:54]line Смена: 434 ФФД: 1.0 [10:27:54]line ЗНМ: 0300000043 [10:27:54]line РНМ: 0000000000092663 [10:27:54]line Версия ККМ: 001 [10:27:54]line ФМ: 0000000000874937 [10:27:54]line ФД: 27123 [10:27:54]line ФПД: 67397027302161 [10:27:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T102757&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27123&fm=67397027302161&tin=02508201610067®Number=0000000000092663&sum=11100 [10:27:54]line 0 [10:27:54]written 0, free lines is 4095 [10:27:54]OFD Sender: Processing packet 27123 [packets to send 9, broken 8] [10:27:54]ProducePacketName [10:27:54]name=ofd_packets/00027123 [10:27:54]OFD Sender: To server: pG, [10:27:54]CommunicateWithHost lk.salyk.kg:30040 [10:27:54]ConnectInit lk.salyk.kg [10:27:54]Connected sock=10 [10:27:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 1E 01 00 00 5E 86 16 01 6D 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 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 5C 2B 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 AD 6E A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F3 69 00 00 35 04 06 00 3D 4C 17 DF 0B 11 CF FA 6C AE C6 09 9A FC [10:27:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 45 83 47 00 45 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F3 69 00 00 F4 03 04 00 FE 14 A7 66 B6 04 01 00 00 D3 68 52 87 65 81 B5 C7 [10:27:54]CommunicateWithHost err = 0 [10:27:54]CheckOFDResponse [10:27:54]1017 (14) - 77093643461234 [10:27:54]1041 (16) - 0000000000874937 [10:27:54]1040 (4) - 27123 [10:27:54]1012 (4) - 29.07.2024 04:05 [10:27:54]1206 (1) - 0 [10:27:54]OFD Sender: Remove packet 27123 [10:27:54]ProducePacketName [10:27:54]name=ofd_packets/00027123 [10:27:54]NVStorageDeleteData [10:27:55]Write to MH i2c: 01 00 00 6C 13 7F [10:27:55]Write i2c OK [10:27:55]MH_I2C_Read... [10:27:55]Read from MH i2c: 01 [10:27:55]MH_I2C_Read... [10:27:55]Read from MH i2c: 01 07 00 [10:27:55]MH_I2C_Read... [10:27:55]Read from MH i2c: 01 07 00 6C 13 00 00 00 00 00 FC 0C 8E [10:27:55]RasterBufferAndPrint [10:27:55]line [10:27:55]line [10:27:55]line [10:27:55]line [10:27:55]line [10:27:55]written 0, free lines is 3330 [10:27:55]MH_Cut [10:27:55]Write to MH i2c: D1 01 00 73 13 01 58 [10:27:55]Write i2c OK [10:27:55]MH_I2C_Read... [10:27:55]Read from MH i2c: D1 [10:27:55]MH_I2C_Read... [10:27:55]Read from MH i2c: D1 01 00 [10:27:55]MH_I2C_Read... [10:27:55]Read from MH i2c: D1 01 00 73 13 00 57 [10:27:55]Write to MH i2c: 01 00 00 74 13 87 [10:27:55]Write i2c OK [10:27:55]MH_I2C_Read... [10:27:55]OFD Sender: No OFD packet to send [10:27:55]*** Cut start [10:27:55]*** Partial cut [10:27:55]*** CUTSNS_PIN = 1 [10:27:55]*** CUTSNS_PIN = 0 [10:27:56]*** Brake cut motor [10:27:56]Read from MH i2c: 01 [10:27:56]MH_I2C_Read... [10:27:56]*** Stop cut motor [10:27:56]*** Cut end [10:27:56]Read from MH i2c: 01 07 00 [10:27:56]MH_I2C_Read... [10:27:56]Read from MH i2c: 01 07 00 74 13 00 00 00 00 00 FF 0F 9C [10:27:56]process_action close_receipt done [10:27:56]requested_data is exist [10:27:56]produce_requested_data [10:27:56]requested_item fm.sn is exist - process it [10:27:56]wFMCommunicate request_size=4 [10:27:56]MH_SAM_APDU [10:27:56]CAPDU: 80 11 00 00 [10:27:56]Write to MH i2c: E2 08 00 75 13 80 11 00 00 00 00 00 00 02 [10:27:56]Write i2c OK [10:27:56]MH_I2C_Read... [10:27:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:56]Read from MH i2c: E2 [10:27:56]MH_I2C_Read... [10:27:56]Read from MH i2c: E2 17 00 [10:27:56]MH_I2C_Read... [10:27:56]Read from MH i2c: E2 17 00 75 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 5B [10:27:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [10:27:56]wFMCommunicate OK [10:27:56]requested_item fd.num is exist - process it [10:27:56]SAM_PROTO_GetFieldsCounters [10:27:56]wFMCommunicate request_size=4 [10:27:56]MH_SAM_APDU [10:27:56]CAPDU: 80 13 00 00 [10:27:56]Write to MH i2c: E2 08 00 76 13 80 13 00 00 00 00 00 00 05 [10:27:56]Write i2c OK [10:27:56]MH_I2C_Read... [10:27:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:56]Read from MH i2c: E2 [10:27:56]MH_I2C_Read... [10:27:56]Read from MH i2c: E2 62 00 [10:27:56]MH_I2C_Read... [10:27:56]Read from MH i2c: E2 62 00 76 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 F3 69 00 00 0E 04 04 00 B2 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 8A [10:27:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 F3 69 00 00 0E 04 04 00 B2 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 [10:27:56]wFMCommunicate OK [10:27:56]SAM_PROTO_GetFieldsCounters done [10:27:56]requested_item shift.num is exist - process it [10:27:56]requested_item shift.opened is exist - process it [10:27:56]req_shift_opened [10:27:56]FM_GetShiftState [10:27:56]SAM_PROTO_GetShiftState [10:27:56]wFMCommunicate request_size=4 [10:27:56]MH_SAM_APDU [10:27:56]CAPDU: 80 13 01 00 [10:27:56]Write to MH i2c: E2 08 00 77 13 80 13 01 00 00 00 00 00 07 [10:27:56]Write i2c OK [10:27:56]MH_I2C_Read... [10:27:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:56]Read from MH i2c: E2 [10:27:56]MH_I2C_Read... [10:27:56]Read from MH i2c: E2 0E 00 [10:27:56]MH_I2C_Read... [10:27:56]Read from MH i2c: E2 0E 00 77 13 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 88 [10:27:56]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [10:27:56]wFMCommunicate OK [10:27:56]SAM_PROTO_GetShiftState done [10:27:56]FM_GetShiftState done [10:27:56]req_shift_opened done [10:27:56]requested_item shift.open_date is exist - process it [10:27:56]req_shift_open_date [10:27:56]req_shift_open_date done [10:27:56]produce_requested_data done [10:27:56]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27123,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [10:27:56]process_action_free close_receipt [10:27:56]json_value_free [10:27:56]json_value_free done [10:27:56]process_json_proto returns [10:27:56]Send response to host [10:27:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27123,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [10:27:56]free response buf [10:27:56]execute_script done [10:27:56]execute_script returns [10:27:56]free content buf [10:27:56]Sock 8.Close socket [10:27:56]Sock 8.Thread stoped [10:28:00]OFD Sender: No OFD packet to send [10:28:05]OFD Sender: No OFD packet to send [10:28:10]OFD Sender: No OFD packet to send [10:28:15]OFD Sender: No OFD packet to send [10:28:20]OFD Sender: No OFD packet to send [10:28:25]OFD Sender: No OFD packet to send [10:28:30]OFD Sender: No OFD packet to send [10:28:35]OFD Sender: No OFD packet to send [10:28:40]OFD Sender: No OFD packet to send [10:28:45]OFD Sender: No OFD packet to send [10:28:50]OFD Sender: No OFD packet to send [10:28:55]OFD Sender: No OFD packet to send [10:29:00]OFD Sender: No OFD packet to send [10:29:05]OFD Sender: No OFD packet to send [10:29:10]OFD Sender: No OFD packet to send [10:29:15]OFD Sender: No OFD packet to send [10:29:20]OFD Sender: No OFD packet to send [10:29:21]accept exits with 9 [10:29:21]New connection [10:29:21]New thread 3066928484 created [10:29:21]Thread 3066785124 joined [10:29:21]Waiting for new connection... [10:29:21] Sock 9.Parse request [10:29:21]Sock 9.Check first char [10:29:21]Sock 9.First char is OK [10:29:21]request: POST /json_proto HTTP/1.0 [10:29:21]Method: POST [10:29:21]URL: /json_proto [10:29:21]Method is POST - this is cgi request [10:29:21]url: /json_proto [10:29:21]query_string will be loaded in cgi processing [10:29:21]execute_cgi json_proto POST (null) [10:29:21]execute_cgi path=json_proto method=POST [10:29:21]POST find Content-Length [10:29:21]Host: 172.17.45.8:8080 [10:29:21]Content-Length: 1166 [10:29:21]Content-Type: application/json [10:29:21] [10:29:21]POST finish read [10:29:21]Found Content-Length = 1166 [10:29:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150522", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:21]execute_script... [10:29:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150522", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:21]POST & json_proto [10:29:21]process_json_proto [10:29:21]json parsed OK: [10:29:21]protocol is kg_v1.0 [10:29:21]action value=close_receipt [10:29:21]process_action close_receipt [10:29:21]cmd_close_receipt [10:29:21]MH_GetDate [10:29:21]Write to MH i2c: F0 00 00 78 13 7A [10:29:21]Write i2c OK [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: F0 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: F0 09 00 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: F0 09 00 78 13 00 06 6F A7 66 A6 1F 7F 64 AD [10:29:21]GetLastDocTimeStamp 1722248877 [10:29:21]current date 1722248966 [10:29:21]FM_GetShiftState [10:29:21]SAM_PROTO_GetShiftState [10:29:21]wFMCommunicate request_size=4 [10:29:21]MH_SAM_APDU [10:29:21]CAPDU: 80 13 01 00 [10:29:21]Write to MH i2c: E2 08 00 79 13 80 13 01 00 00 00 00 00 09 [10:29:21]Write i2c OK [10:29:21]MH_I2C_Read... [10:29:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:21]Read from MH i2c: E2 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: E2 0E 00 [10:29:21]MH_I2C_Read... [10:29:21]Read from MH i2c: E2 0E 00 79 13 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 8A [10:29:21]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [10:29:21]wFMCommunicate OK [10:29:21]SAM_PROTO_GetShiftState done [10:29:21]FM_GetShiftState done [10:29:21]opened in 1722213509 [10:29:21]opened+sec_in_day 1722299909 [10:29:21]quantity*price = 11000 [10:29:21]sum+1 = 11001 [10:29:21]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 42069942 Жев Orbit White Fresh Mint 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.77 Наличными: 205.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 27 29.07.2024 10:29 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27124 ФПД: 158082656331079 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T102926&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27124&fm=158082656331079&tin=02508201610067®Number=0000000000092663&sum=20500 0 [10:29:22]StoreToDocumentArchive [10:29:22]shift 434 fd 27124 [10:29:22]save to /storage/0434/doc_00027124 [10:29:22]save last doc name /storage/0434/doc_00027124 to /storage/kkm_last_doc_name [10:29:22]save OK [10:29:22]Clear old archive folders... [10:29:22]ProcessDocumentItem done err = 0, tmpTLVsize=498 [10:29:22]tlvbuf is 001C55C0 [10:29:22]SAM_PROTO_ClearQueue [10:29:22]wFMCommunicate request_size=4 [10:29:22]MH_SAM_APDU [10:29:22]CAPDU: 80 09 00 00 [10:29:22]Write to MH i2c: E2 08 00 86 13 80 09 00 00 00 00 00 00 0B [10:29:22]Write i2c OK [10:29:22]MH_I2C_Read... [10:29:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:22]Read from MH i2c: E2 [10:29:22]MH_I2C_Read... [10:29:22]Read from MH i2c: E2 03 00 [10:29:22]MH_I2C_Read... [10:29:22]Read from MH i2c: E2 03 00 86 13 00 90 00 0D [10:29:22]RAPDU: 90 00 [10:29:22]wFMCommunicate OK [10:29:22]SAM_PROTO_ClearQueue done [10:29:22]KKMCreateOFDPacket [10:29:22]OFDProtocolAddRootSTLVToBuf [10:29:22]FM_MakeSignedData [10:29:22]FM_MakeSignedData [10:29:22]SAM_PROTO_SignData [10:29:22]wFMCommunicate request_size=4 [10:29:22]MH_SAM_APDU [10:29:22]CAPDU: 80 0D 01 02 [10:29:22]Write to MH i2c: E2 08 00 87 13 80 0D 01 02 00 00 00 00 13 [10:29:22]Write i2c OK [10:29:22]MH_I2C_Read... [10:29:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:22]Read from MH i2c: E2 [10:29:22]MH_I2C_Read... [10:29:22]Read from MH i2c: E2 03 00 [10:29:22]MH_I2C_Read... [10:29:22]Read from MH i2c: E2 03 00 87 13 00 90 00 0E [10:29:22]RAPDU: 90 00 [10:29:22]wFMCommunicate OK [10:29:22]wFMCommunicate request_size=255 [10:29:22]MH_SAM_APDU [10:29:22]CAPDU: 80 0D 02 02 FA 03 00 F2 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 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 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 5C 00 8A 04 08 00 34 [10:29:22]Write to MH i2c: E2 02 01 88 13 80 0D 02 02 FA 00 03 00 F2 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 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 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 5C 00 8A 04 08 00 34 00 00 F2 [10:29:22]Write i2c OK [10:29:22]MH_I2C_Read... [10:29:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:22]Read from MH i2c: E2 [10:29:22]MH_I2C_Read... [10:29:22]Read from MH i2c: E2 03 00 [10:29:22]MH_I2C_Read... [10:29:22]Read from MH i2c: E2 03 00 88 13 00 90 00 0F [10:29:22]RAPDU: 90 00 [10:29:22]wFMCommunicate OK [10:29:22]wFMCommunicate request_size=255 [10:29:22]MH_SAM_APDU [10:29:22]CAPDU: 80 0D 02 02 FA 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 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 1B 00 00 00 F4 03 04 00 06 6F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F4 69 00 00 35 04 06 00 8F C6 7C 93 [10:29:22]Write to MH i2c: E2 02 01 89 13 80 0D 02 02 FA 00 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 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 1B 00 00 00 F4 03 04 00 06 6F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F4 69 00 00 35 04 06 00 8F C6 7C 93 00 00 D4 [10:29:22]Write i2c OK [10:29:22]MH_I2C_Read... [10:29:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:23]Read from MH i2c: E2 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 03 00 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 03 00 89 13 00 90 00 10 [10:29:23]RAPDU: 90 00 [10:29:23]wFMCommunicate OK [10:29:23]wFMCommunicate request_size=7 [10:29:23]MH_SAM_APDU [10:29:23]CAPDU: 80 0D 02 02 02 65 47 [10:29:23]Write to MH i2c: E2 0A 00 8A 13 80 0D 02 02 02 00 65 47 00 00 C7 [10:29:23]Write i2c OK [10:29:23]MH_I2C_Read... [10:29:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:23]Read from MH i2c: E2 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 03 00 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 03 00 8A 13 00 90 00 11 [10:29:23]RAPDU: 90 00 [10:29:23]wFMCommunicate OK [10:29:23]wFMCommunicate request_size=4 [10:29:23]MH_SAM_APDU [10:29:23]CAPDU: 80 0D 03 02 [10:29:23]Write to MH i2c: E2 08 00 8B 13 80 0D 03 02 00 00 00 00 19 [10:29:23]Write i2c OK [10:29:23]MH_I2C_Read... [10:29:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:23]Read from MH i2c: E2 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 0B 00 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 0B 00 8B 13 00 26 70 70 7F 21 CF BB 3B 90 00 85 [10:29:23]RAPDU: 26 70 70 7F 21 CF BB 3B 90 00 [10:29:23]wFMCommunicate OK [10:29:23]SAM_PROTO_SignData done [10:29:23]FM_MakeSignedData done [10:29:23]CreateOFDProtocolMessage [10:29:23]wFMCommunicate request_size=4 [10:29:23]MH_SAM_APDU [10:29:23]CAPDU: 80 11 00 00 [10:29:23]Write to MH i2c: E2 08 00 8C 13 80 11 00 00 00 00 00 00 19 [10:29:23]Write i2c OK [10:29:23]MH_I2C_Read... [10:29:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:23]Read from MH i2c: E2 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 17 00 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: E2 17 00 8C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 72 [10:29:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [10:29:23]wFMCommunicate OK [10:29:23]CreateOFDProtocolMessage done [10:29:23]OFDSenderStorePacket 27124 [10:29:23]StoreOFDPacket docnum=27124 [10:29:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 06 02 00 00 CA 9A FE 01 AE 83 5A 03 01 00 03 00 F2 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 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 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 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 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 1B 00 00 00 F4 03 04 00 06 6F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F4 69 00 00 35 04 06 00 8F C6 7C 93 65 47 26 70 70 7F 21 CF BB 3B [10:29:23]CheckFolder [10:29:23]dirname=/storage/ofd_packets [10:29:23]CheckFolder done [10:29:23]ProducePacketName [10:29:23]name=ofd_packets/00027124 [10:29:23]NVStorageSaveData ofd_packets/00027124 [10:29:23]File name is /storage/ofd_packets/00027124 [10:29:23]Write 548 bytes [10:29:23]NVStorageSaveData done [10:29:23]OFDSenderStorePacket done [10:29:23]KKMCreateOFDPacket done [10:29:23]NVStorageSaveData kkm_last_timestamp [10:29:23]File name is /storage/kkm_last_timestamp [10:29:23]Write 4 bytes [10:29:23]NVStorageSaveData done [10:29:23]ExternCall_PrintAddStr [10:29:23]wPrintStart [10:29:23]Write to MH i2c: 01 00 00 8D 13 A0 [10:29:23]Write i2c OK [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: 01 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: 01 07 00 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: 01 07 00 8D 13 00 00 00 00 00 FF 0F B5 [10:29:23]RasterBufferAndPrint [10:29:23]line Счет N : (3)150522 [10:29:23]line ИНН: 02508201610067 [10:29:23]line Контрольно-Кассовый Чек [10:29:23]line ПРОДАЖА [10:29:23]line Товар: 4870202521216 [10:29:23]line Напиток MAXI чай 1,2 зел.лимон (новый) [10:29:23]line 1.000 * 110.00 [10:29:23]line = 110.00 [10:29:23]line НДС 12% НСП 1% [10:29:23]line > о реализуемом товаре [10:29:23]line Товар: 4700000160358 [10:29:23]line Вода Легенда 1л [10:29:23]line 1.000 * 50.00 [10:29:23]line = 50.00 [10:29:23]line НДС 12% НСП 1% [10:29:23]line > о реализуемом товаре [10:29:23]line Товар: 42069942 [10:29:23]line Жев Orbit White Fresh Mint [10:29:23]line 1.000 * 45.00 [10:29:23]line = 45.00 [10:29:23]line НДС 12% НСП 1% [10:29:23]line > о реализуемом товаре [10:29:23]line ИТОГО: 205.00 [10:29:23]line НСП 1% : 1.81 [10:29:23]line НДС 12% : 21.77 [10:29:23]line Наличными: 205.00 [10:29:23]line Безнал.: 0.00 [10:29:23]line Место: АЗС № 134 "Партнер Нефть" [10:29:23]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:29:23]line СНО: Общий режим [10:29:23]line Чек 27 29.07.2024 10:29 [10:29:23]line Смена: 434 ФФД: 1.0 [10:29:23]line ЗНМ: 0300000043 [10:29:23]line РНМ: 0000000000092663 [10:29:23]line Версия ККМ: 001 [10:29:23]line ФМ: 0000000000874937 [10:29:23]line ФД: 27124 [10:29:23]line ФПД: 158082656331079 [10:29:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T102926&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27124&fm=158082656331079&tin=02508201610067®Number=0000000000092663&sum=20500 [10:29:23]line 0 [10:29:23]written 0, free lines is 4095 [10:29:23]OFD Sender: Processing packet 27124 [packets to send 9, broken 8] [10:29:23]ProducePacketName [10:29:23]name=ofd_packets/00027124 [10:29:23]OFD Sender: To server: pG, [10:29:23]CommunicateWithHost lk.salyk.kg:30040 [10:29:23]ConnectInit lk.salyk.kg [10:29:23]Connected sock=10 [10:29:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 06 02 00 00 CA 9A FE 01 AE 83 5A 03 01 00 03 00 F2 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 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 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 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 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 1B 00 00 00 F4 03 04 00 06 6F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F4 69 00 00 35 04 06 00 8F C6 7C 93 65 47 26 70 70 7F 21 CF BB 3B [10:29:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 18 87 47 00 1B C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F4 69 00 00 F4 03 04 00 57 15 A7 66 B6 04 01 00 00 53 42 BA C5 DF BE E0 08 [10:29:23]CommunicateWithHost err = 0 [10:29:23]CheckOFDResponse [10:29:23]1017 (14) - 77093643461234 [10:29:23]1041 (16) - 0000000000874937 [10:29:23]1040 (4) - 27124 [10:29:23]1012 (4) - 29.07.2024 04:06 [10:29:23]1206 (1) - 0 [10:29:23]OFD Sender: Remove packet 27124 [10:29:23]ProducePacketName [10:29:23]name=ofd_packets/00027124 [10:29:23]NVStorageDeleteData [10:29:23]Write to MH i2c: 01 00 00 C1 13 D4 [10:29:23]Write i2c OK [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: 01 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: 01 07 00 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: 01 07 00 C1 13 00 00 00 00 00 44 0C 2B [10:29:23]RasterBufferAndPrint [10:29:23]line [10:29:23]line [10:29:23]line [10:29:23]line [10:29:23]line [10:29:23]written 0, free lines is 3148 [10:29:23]MH_Cut [10:29:23]Write to MH i2c: D1 01 00 C8 13 01 AD [10:29:23]Write i2c OK [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: D1 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: D1 01 00 [10:29:23]MH_I2C_Read... [10:29:23]Read from MH i2c: D1 01 00 C8 13 00 AC [10:29:23]Write to MH i2c: 01 00 00 C9 13 DC [10:29:23]Write i2c OK [10:29:23]MH_I2C_Read... [10:29:24]OFD Sender: No OFD packet to send [10:29:24]*** Cut start [10:29:24]*** Partial cut [10:29:24]*** CUTSNS_PIN = 1 [10:29:24]*** CUTSNS_PIN = 0 [10:29:25]*** Brake cut motor [10:29:25]Read from MH i2c: 01 [10:29:25]MH_I2C_Read... [10:29:25]*** Stop cut motor [10:29:25]*** Cut end [10:29:25]Read from MH i2c: 01 07 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: 01 07 00 C9 13 00 00 00 00 00 FF 0F F1 [10:29:25]process_action close_receipt done [10:29:25]requested_data is exist [10:29:25]produce_requested_data [10:29:25]requested_item fm.sn is exist - process it [10:29:25]wFMCommunicate request_size=4 [10:29:25]MH_SAM_APDU [10:29:25]CAPDU: 80 11 00 00 [10:29:25]Write to MH i2c: E2 08 00 CA 13 80 11 00 00 00 00 00 00 57 [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:25]Read from MH i2c: E2 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 17 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 17 00 CA 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 B0 [10:29:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [10:29:25]wFMCommunicate OK [10:29:25]requested_item fd.num is exist - process it [10:29:25]SAM_PROTO_GetFieldsCounters [10:29:25]wFMCommunicate request_size=4 [10:29:25]MH_SAM_APDU [10:29:25]CAPDU: 80 13 00 00 [10:29:25]Write to MH i2c: E2 08 00 CB 13 80 13 00 00 00 00 00 00 5A [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:25]Read from MH i2c: E2 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 62 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 62 00 CB 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 F4 69 00 00 0E 04 04 00 B2 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 E3 [10:29:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 F4 69 00 00 0E 04 04 00 B2 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 [10:29:25]wFMCommunicate OK [10:29:25]SAM_PROTO_GetFieldsCounters done [10:29:25]requested_item shift.num is exist - process it [10:29:25]requested_item shift.opened is exist - process it [10:29:25]req_shift_opened [10:29:25]FM_GetShiftState [10:29:25]SAM_PROTO_GetShiftState [10:29:25]wFMCommunicate request_size=4 [10:29:25]MH_SAM_APDU [10:29:25]CAPDU: 80 13 01 00 [10:29:25]Write to MH i2c: E2 08 00 CC 13 80 13 01 00 00 00 00 00 5C [10:29:25]Write i2c OK [10:29:25]MH_I2C_Read... [10:29:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:25]Read from MH i2c: E2 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 0E 00 [10:29:25]MH_I2C_Read... [10:29:25]Read from MH i2c: E2 0E 00 CC 13 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 DD [10:29:25]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [10:29:25]wFMCommunicate OK [10:29:25]SAM_PROTO_GetShiftState done [10:29:25]FM_GetShiftState done [10:29:25]req_shift_opened done [10:29:25]requested_item shift.open_date is exist - process it [10:29:25]req_shift_open_date [10:29:25]req_shift_open_date done [10:29:25]produce_requested_data done [10:29:25]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27124,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [10:29:25]process_action_free close_receipt [10:29:25]json_value_free [10:29:25]json_value_free done [10:29:25]process_json_proto returns [10:29:25]Send response to host [10:29:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27124,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [10:29:25]free response buf [10:29:25]execute_script done [10:29:25]execute_script returns [10:29:25]free content buf [10:29:25]Sock 9.Close socket [10:29:25]Sock 9.Thread stoped [10:29:29]OFD Sender: No OFD packet to send [10:29:34]OFD Sender: No OFD packet to send [10:29:39]OFD Sender: No OFD packet to send [10:29:44]OFD Sender: No OFD packet to send [10:29:49]OFD Sender: No OFD packet to send [10:29:54]OFD Sender: No OFD packet to send [10:29:59]OFD Sender: No OFD packet to send [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:54]OFD Sender: No OFD packet to send [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:09]OFD Sender: No OFD packet to send [10:31:14]OFD Sender: No OFD packet to send [10:31:19]OFD Sender: No OFD packet to send [10:31:24]OFD Sender: No OFD packet to send [10:31:29]OFD Sender: No OFD packet to send [10:31:34]OFD Sender: No OFD packet to send [10:31:39]OFD Sender: No OFD packet to send [10:31:44]OFD Sender: No OFD packet to send [10:31:49]OFD Sender: No OFD packet to send [10:31:54]OFD Sender: No OFD packet to send [10:31:59]OFD Sender: No OFD packet to send [10:32:04]OFD Sender: No OFD packet to send [10:32:09]OFD Sender: No OFD packet to send [10:32:14]OFD Sender: No OFD packet to send [10:32:19]OFD Sender: No OFD packet to send [10:32:24]OFD Sender: No OFD packet to send [10:32:29]OFD Sender: No OFD packet to send [10:32:34]OFD Sender: No OFD packet to send [10:32:39]OFD Sender: No OFD packet to send [10:32:44]OFD Sender: No OFD packet to send [10:32:49]OFD Sender: No OFD packet to send [10:32:54]OFD Sender: No OFD packet to send [10:32:59]OFD Sender: No OFD packet to send [10:33:04]OFD Sender: No OFD packet to send [10:33:09]OFD Sender: No OFD packet to send [10:33:14]OFD Sender: No OFD packet to send [10:33:19]OFD Sender: No OFD packet to send [10:33:24]OFD Sender: No OFD packet to send [10:33:29]OFD Sender: No OFD packet to send [10:33:34]OFD Sender: No OFD packet to send [10:33:39]OFD Sender: No OFD packet to send [10:33:44]OFD Sender: No OFD packet to send [10:33:49]OFD Sender: No OFD packet to send [10:33:54]OFD Sender: No OFD packet to send [10:33:59]OFD Sender: No OFD packet to send [10:34:04]OFD Sender: No OFD packet to send [10:34:09]OFD Sender: No OFD packet to send [10:34:14]OFD Sender: No OFD packet to send [10:34:19]OFD Sender: No OFD packet to send [10:34:24]OFD Sender: No OFD packet to send [10:34:29]OFD Sender: No OFD packet to send [10:34:34]OFD Sender: No OFD packet to send [10:34:39]OFD Sender: No OFD packet to send [10:34:44]OFD Sender: No OFD packet to send [10:34:49]OFD Sender: No OFD packet to send [10:34:54]OFD Sender: No OFD packet to send [10:34:59]OFD Sender: No OFD packet to send [10:35:04]OFD Sender: No OFD packet to send [10:35:09]OFD Sender: No OFD packet to send [10:35:14]OFD Sender: No OFD packet to send [10:35:19]OFD Sender: No OFD packet to send [10:35:21]accept exits with 8 [10:35:21]New connection [10:35:21]New thread 3066785124 created [10:35:21]Thread 3066928484 joined [10:35:21]Waiting for new connection... [10:35:21] Sock 8.Parse request [10:35:21]Sock 8.Check first char [10:35:21]Sock 8.First char is OK [10:35:21]request: POST /json_proto HTTP/1.0 [10:35:21]Method: POST [10:35:21]URL: /json_proto [10:35:21]Method is POST - this is cgi request [10:35:21]url: /json_proto [10:35:21]query_string will be loaded in cgi processing [10:35:21]execute_cgi json_proto POST (null) [10:35:21]execute_cgi path=json_proto method=POST [10:35:21]POST find Content-Length [10:35:21]Host: 172.17.45.8:8080 [10:35:21]Content-Length: 899 [10:35:21]Content-Type: application/json [10:35:21] [10:35:21]POST finish read [10:35:21]Found Content-Length = 899 [10:35:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150523", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:21]execute_script... [10:35:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150523", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:21]POST & json_proto [10:35:21]process_json_proto [10:35:21]json parsed OK: [10:35:21]protocol is kg_v1.0 [10:35:21]action value=close_receipt [10:35:21]process_action close_receipt [10:35:21]cmd_close_receipt [10:35:21]MH_GetDate [10:35:21]Write to MH i2c: F0 00 00 CD 13 CF [10:35:21]Write i2c OK [10:35:21]MH_I2C_Read... [10:35:21]Read from MH i2c: F0 [10:35:21]MH_I2C_Read... [10:35:21]Read from MH i2c: F0 09 00 [10:35:21]MH_I2C_Read... [10:35:21]Read from MH i2c: F0 09 00 CD 13 00 6E 70 A7 66 A6 1F 7F 64 6B [10:35:21]GetLastDocTimeStamp 1722248966 [10:35:21]current date 1722249326 [10:35:21]FM_GetShiftState [10:35:21]SAM_PROTO_GetShiftState [10:35:21]wFMCommunicate request_size=4 [10:35:21]MH_SAM_APDU [10:35:21]CAPDU: 80 13 01 00 [10:35:21]Write to MH i2c: E2 08 00 CE 13 80 13 01 00 00 00 00 00 5E [10:35:21]Write i2c OK [10:35:21]MH_I2C_Read... [10:35:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:21]Read from MH i2c: E2 [10:35:21]MH_I2C_Read... [10:35:21]Read from MH i2c: E2 0E 00 [10:35:21]MH_I2C_Read... [10:35:21]Read from MH i2c: E2 0E 00 CE 13 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 DF [10:35:21]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [10:35:21]wFMCommunicate OK [10:35:21]SAM_PROTO_GetShiftState done [10:35:21]FM_GetShiftState done [10:35:21]opened in 1722213509 [10:35:21]opened+sec_in_day 1722299909 [10:35:21]quantity*price = 5000 [10:35:21]sum+1 = 5001 [10:35:21]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036190018 Кофе Американо XL(GABB TRADE) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 175.00 НСП 1% : 1.55 НДС 12% : 18.58 Наличными: 175.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 28 29.07.2024 10:35 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27125 ФПД: 124143617521104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T103526&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27125&fm=124143617521104&tin=02508201610067®Number=0000000000092663&sum=17500 0 [10:35:22]StoreToDocumentArchive [10:35:22]shift 434 fd 27125 [10:35:22]save to /storage/0434/doc_00027125 [10:35:22]save last doc name /storage/0434/doc_00027125 to /storage/kkm_last_doc_name [10:35:22]save OK [10:35:22]Clear old archive folders... [10:35:22]ProcessDocumentItem done err = 0, tmpTLVsize=383 [10:35:22]tlvbuf is B6EBB8B0 [10:35:22]SAM_PROTO_ClearQueue [10:35:22]wFMCommunicate request_size=4 [10:35:22]MH_SAM_APDU [10:35:22]CAPDU: 80 09 00 00 [10:35:22]Write to MH i2c: E2 08 00 DB 13 80 09 00 00 00 00 00 00 60 [10:35:22]Write i2c OK [10:35:22]MH_I2C_Read... [10:35:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:23]Read from MH i2c: E2 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: E2 03 00 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: E2 03 00 DB 13 00 90 00 62 [10:35:23]RAPDU: 90 00 [10:35:23]wFMCommunicate OK [10:35:23]SAM_PROTO_ClearQueue done [10:35:23]KKMCreateOFDPacket [10:35:23]OFDProtocolAddRootSTLVToBuf [10:35:23]FM_MakeSignedData [10:35:23]FM_MakeSignedData [10:35:23]SAM_PROTO_SignData [10:35:23]wFMCommunicate request_size=4 [10:35:23]MH_SAM_APDU [10:35:23]CAPDU: 80 0D 01 02 [10:35:23]Write to MH i2c: E2 08 00 DC 13 80 0D 01 02 00 00 00 00 68 [10:35:23]Write i2c OK [10:35:23]MH_I2C_Read... [10:35:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:23]Read from MH i2c: E2 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: E2 03 00 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: E2 03 00 DC 13 00 90 00 63 [10:35:23]RAPDU: 90 00 [10:35:23]wFMCommunicate OK [10:35:23]wFMCommunicate request_size=255 [10:35:23]MH_SAM_APDU [10:35:23]CAPDU: 80 0D 02 02 FA 03 00 7F 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 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 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 [10:35:23]Write to MH i2c: E2 02 01 DD 13 80 0D 02 02 FA 00 03 00 7F 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 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 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 FD [10:35:23]Write i2c OK [10:35:23]MH_I2C_Read... [10:35:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:23]Read from MH i2c: E2 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: E2 03 00 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: E2 03 00 DD 13 00 90 00 64 [10:35:23]RAPDU: 90 00 [10:35:23]wFMCommunicate OK [10:35:23]wFMCommunicate request_size=142 [10:35:23]MH_SAM_APDU [10:35:23]CAPDU: 80 0D 02 02 89 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 1C 00 00 00 F4 03 04 00 6E 70 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F5 69 00 00 35 04 06 00 70 E8 70 39 35 D0 [10:35:23]Write to MH i2c: E2 91 00 DE 13 80 0D 02 02 89 00 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 1C 00 00 00 F4 03 04 00 6E 70 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F5 69 00 00 35 04 06 00 70 E8 70 39 35 D0 00 00 B8 [10:35:23]Write i2c OK [10:35:23]MH_I2C_Read... [10:35:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:23]Read from MH i2c: E2 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: E2 03 00 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: E2 03 00 DE 13 00 90 00 65 [10:35:23]RAPDU: 90 00 [10:35:23]wFMCommunicate OK [10:35:23]wFMCommunicate request_size=4 [10:35:23]MH_SAM_APDU [10:35:23]CAPDU: 80 0D 03 02 [10:35:23]Write to MH i2c: E2 08 00 DF 13 80 0D 03 02 00 00 00 00 6D [10:35:23]Write i2c OK [10:35:23]MH_I2C_Read... [10:35:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:23]Read from MH i2c: E2 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: E2 0B 00 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: E2 0B 00 DF 13 00 77 58 84 9A 42 14 73 9A 90 00 BE [10:35:23]RAPDU: 77 58 84 9A 42 14 73 9A 90 00 [10:35:23]wFMCommunicate OK [10:35:23]SAM_PROTO_SignData done [10:35:23]FM_MakeSignedData done [10:35:23]CreateOFDProtocolMessage [10:35:23]wFMCommunicate request_size=4 [10:35:23]MH_SAM_APDU [10:35:23]CAPDU: 80 11 00 00 [10:35:23]Write to MH i2c: E2 08 00 E0 13 80 11 00 00 00 00 00 00 6D [10:35:23]Write i2c OK [10:35:23]MH_I2C_Read... [10:35:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:23]Read from MH i2c: E2 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: E2 17 00 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: E2 17 00 E0 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 C6 [10:35:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [10:35:23]wFMCommunicate OK [10:35:23]CreateOFDProtocolMessage done [10:35:23]OFDSenderStorePacket 27125 [10:35:23]StoreOFDPacket docnum=27125 [10:35:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 93 01 00 00 56 D7 8B 01 DE D9 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 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 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 1C 00 00 00 F4 03 04 00 6E 70 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F5 69 00 00 35 04 06 00 70 E8 70 39 35 D0 77 58 84 9A 42 14 73 9A [10:35:23]CheckFolder [10:35:23]dirname=/storage/ofd_packets [10:35:23]CheckFolder done [10:35:23]ProducePacketName [10:35:23]name=ofd_packets/00027125 [10:35:23]NVStorageSaveData ofd_packets/00027125 [10:35:23]File name is /storage/ofd_packets/00027125 [10:35:23]Write 433 bytes [10:35:23]NVStorageSaveData done [10:35:23]OFDSenderStorePacket done [10:35:23]KKMCreateOFDPacket done [10:35:23]NVStorageSaveData kkm_last_timestamp [10:35:23]File name is /storage/kkm_last_timestamp [10:35:23]Write 4 bytes [10:35:23]NVStorageSaveData done [10:35:23]ExternCall_PrintAddStr [10:35:23]wPrintStart [10:35:23]Write to MH i2c: 01 00 00 E1 13 F4 [10:35:23]Write i2c OK [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: 01 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: 01 07 00 [10:35:23]MH_I2C_Read... [10:35:23]Read from MH i2c: 01 07 00 E1 13 00 00 00 00 00 FF 0F 09 [10:35:23]RasterBufferAndPrint [10:35:23]line Счет N : (3)150523 [10:35:23]line ИНН: 02508201610067 [10:35:23]line Контрольно-Кассовый Чек [10:35:23]line ПРОДАЖА [10:35:23]line Товар: 4700000160358 [10:35:23]line Вода Легенда 1л [10:35:23]line 1.000 * 50.00 [10:35:23]line = 50.00 [10:35:23]line НДС 12% НСП 1% [10:35:23]line > о реализуемом товаре [10:35:23]line Товар: 2000036190018 [10:35:23]line Кофе Американо XL(GABB TRADE) [10:35:23]line 1.000 * 125.00 [10:35:23]line = 125.00 [10:35:23]line НДС 12% НСП 1% [10:35:23]line > о реализуемом товаре [10:35:23]line ИТОГО: 175.00 [10:35:23]line НСП 1% : 1.55 [10:35:23]line НДС 12% : 18.58 [10:35:23]line Наличными: 175.00 [10:35:23]line Безнал.: 0.00 [10:35:23]line Место: АЗС № 134 "Партнер Нефть" [10:35:23]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:35:23]line СНО: Общий режим [10:35:23]line Чек 28 29.07.2024 10:35 [10:35:23]line Смена: 434 ФФД: 1.0 [10:35:23]line ЗНМ: 0300000043 [10:35:23]line РНМ: 0000000000092663 [10:35:23]line Версия ККМ: 001 [10:35:23]line ФМ: 0000000000874937 [10:35:23]line ФД: 27125 [10:35:23]line ФПД: 124143617521104 [10:35:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T103526&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27125&fm=124143617521104&tin=02508201610067®Number=0000000000092663&sum=17500 [10:35:23]line 0 [10:35:23]OFD Sender: Processing packet 27125 [packets to send 9, broken 8] [10:35:23]ProducePacketName [10:35:23]name=ofd_packets/00027125 [10:35:23]OFD Sender: To server: pG, [10:35:23]CommunicateWithHost lk.salyk.kg:30040 [10:35:23]ConnectInit lk.salyk.kg [10:35:23]written 0, free lines is 4095 [10:35:24]Connected sock=10 [10:35:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 93 01 00 00 56 D7 8B 01 DE D9 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 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 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 1C 00 00 00 F4 03 04 00 6E 70 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F5 69 00 00 35 04 06 00 70 E8 70 39 35 D0 77 58 84 9A 42 14 73 9A [10:35:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 FB 15 47 00 88 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 34 39 33 37 10 04 04 00 F5 69 00 00 F4 03 04 00 C0 16 A7 66 B6 04 01 00 00 1F 95 8A 46 F9 B5 6D 62 [10:35:24]CommunicateWithHost err = 0 [10:35:24]CheckOFDResponse [10:35:24]1017 (14) - 77093643461234 [10:35:24]1041 (16) - 0000000000874937 [10:35:24]1040 (4) - 27125 [10:35:24]1012 (4) - 29.07.2024 04:12 [10:35:24]1206 (1) - 0 [10:35:24]OFD Sender: Remove packet 27125 [10:35:24]ProducePacketName [10:35:24]name=ofd_packets/00027125 [10:35:24]NVStorageDeleteData [10:35:24]Write to MH i2c: 01 00 00 0F 14 23 [10:35:24]Write i2c OK [10:35:24]MH_I2C_Read... [10:35:24]Read from MH i2c: 01 [10:35:24]MH_I2C_Read... [10:35:24]Read from MH i2c: 01 07 00 [10:35:24]MH_I2C_Read... [10:35:24]Read from MH i2c: 01 07 00 0F 14 00 00 00 00 00 95 0C CB [10:35:24]RasterBufferAndPrint [10:35:24]line [10:35:24]line [10:35:24]line [10:35:24]line [10:35:24]line [10:35:24]written 0, free lines is 3227 [10:35:24]MH_Cut [10:35:24]Write to MH i2c: D1 01 00 16 14 01 FC [10:35:24]Write i2c OK [10:35:24]MH_I2C_Read... [10:35:24]Read from MH i2c: D1 [10:35:24]MH_I2C_Read... [10:35:24]Read from MH i2c: D1 01 00 [10:35:24]MH_I2C_Read... [10:35:24]Read from MH i2c: D1 01 00 16 14 00 FB [10:35:24]Write to MH i2c: 01 00 00 17 14 2B [10:35:24]Write i2c OK [10:35:24]MH_I2C_Read... [10:35:24]OFD Sender: No OFD packet to send [10:35:25]*** Cut start [10:35:25]*** Partial cut [10:35:25]*** CUTSNS_PIN = 1 [10:35:25]*** CUTSNS_PIN = 0 [10:35:25]*** Brake cut motor [10:35:25]Read from MH i2c: 01 [10:35:25]MH_I2C_Read... [10:35:25]*** Stop cut motor [10:35:25]*** Cut end [10:35:25]Read from MH i2c: 01 07 00 [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: 01 07 00 17 14 00 00 00 00 00 FF 0F 40 [10:35:25]process_action close_receipt done [10:35:25]requested_data is exist [10:35:25]produce_requested_data [10:35:25]requested_item fm.sn is exist - process it [10:35:25]wFMCommunicate request_size=4 [10:35:25]MH_SAM_APDU [10:35:25]CAPDU: 80 11 00 00 [10:35:25]Write to MH i2c: E2 08 00 18 14 80 11 00 00 00 00 00 00 A6 [10:35:25]Write i2c OK [10:35:25]MH_I2C_Read... [10:35:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:25]Read from MH i2c: E2 [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: E2 17 00 [10:35:25]MH_I2C_Read... [10:35:25]Read from MH i2c: E2 17 00 18 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 FF [10:35:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [10:35:25]wFMCommunicate OK [10:35:25]requested_item fd.num is exist - process it [10:35:25]SAM_PROTO_GetFieldsCounters [10:35:25]wFMCommunicate request_size=4 [10:35:25]MH_SAM_APDU [10:35:25]CAPDU: 80 13 00 00 [10:35:25]Write to MH i2c: E2 08 00 19 14 80 13 00 00 00 00 00 00 A9 [10:35:25]Write i2c OK [10:35:25]MH_I2C_Read... [10:35:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:26]Read from MH i2c: E2 [10:35:26]MH_I2C_Read... [10:35:26]Read from MH i2c: E2 62 00 [10:35:26]MH_I2C_Read... [10:35:26]Read from MH i2c: E2 62 00 19 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 F5 69 00 00 0E 04 04 00 B2 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 36 [10:35: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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 F5 69 00 00 0E 04 04 00 B2 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 [10:35:26]wFMCommunicate OK [10:35:26]SAM_PROTO_GetFieldsCounters done [10:35:26]requested_item shift.num is exist - process it [10:35:26]requested_item shift.opened is exist - process it [10:35:26]req_shift_opened [10:35:26]FM_GetShiftState [10:35:26]SAM_PROTO_GetShiftState [10:35:26]wFMCommunicate request_size=4 [10:35:26]MH_SAM_APDU [10:35:26]CAPDU: 80 13 01 00 [10:35:26]Write to MH i2c: E2 08 00 1A 14 80 13 01 00 00 00 00 00 AB [10:35:26]Write i2c OK [10:35:26]MH_I2C_Read... [10:35:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:26]Read from MH i2c: E2 [10:35:26]MH_I2C_Read... [10:35:26]Read from MH i2c: E2 0E 00 [10:35:26]MH_I2C_Read... [10:35:26]Read from MH i2c: E2 0E 00 1A 14 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 2C [10:35:26]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [10:35:26]wFMCommunicate OK [10:35:26]SAM_PROTO_GetShiftState done [10:35:26]FM_GetShiftState done [10:35:26]req_shift_opened done [10:35:26]requested_item shift.open_date is exist - process it [10:35:26]req_shift_open_date [10:35:26]req_shift_open_date done [10:35:26]produce_requested_data done [10:35:26]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27125,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [10:35:26]process_action_free close_receipt [10:35:26]json_value_free [10:35:26]json_value_free done [10:35:26]process_json_proto returns [10:35:26]Send response to host [10:35:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27125,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [10:35:26]free response buf [10:35:26]execute_script done [10:35:26]execute_script returns [10:35:26]free content buf [10:35:26]Sock 8.Close socket [10:35:26]Sock 8.Thread stoped [10:35:29]OFD Sender: No OFD packet to send [10:35:34]OFD Sender: No OFD packet to send [10:35:39]OFD Sender: No OFD packet to send [10:35:44]OFD Sender: No OFD packet to send [10:35:49]OFD Sender: No OFD packet to send [10:35:54]OFD Sender: No OFD packet to send [10:35:59]OFD Sender: No OFD packet to send [10:36:04]OFD Sender: No OFD packet to send [10:36:09]OFD Sender: No OFD packet to send [10:36:14]OFD Sender: No OFD packet to send [10:36:19]OFD Sender: No OFD packet to send [10:36:24]OFD Sender: No OFD packet to send [10:36:29]OFD Sender: No OFD packet to send [10:36:31]accept exits with 9 [10:36:31]New connection [10:36:31]New thread 3066928484 created [10:36:31]Thread 3066785124 joined [10:36:31]Waiting for new connection... [10:36:31] Sock 9.Parse request [10:36:31]Sock 9.Check first char [10:36:31]Sock 9.First char is OK [10:36:31]request: POST /json_proto HTTP/1.0 [10:36:31]Method: POST [10:36:31]URL: /json_proto [10:36:31]Method is POST - this is cgi request [10:36:31]url: /json_proto [10:36:31]query_string will be loaded in cgi processing [10:36:31]execute_cgi json_proto POST (null) [10:36:31]execute_cgi path=json_proto method=POST [10:36:31]POST find Content-Length [10:36:31]Host: 172.17.45.8:8080 [10:36:31]Content-Length: 675 [10:36:31]Content-Type: application/json [10:36:31] [10:36:31]POST finish read [10:36:31]Found Content-Length = 675 [10:36:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150524", "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" ] } } [10:36:31]execute_script... [10:36: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)150524", "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" ] } } [10:36:31]POST & json_proto [10:36:31]process_json_proto [10:36:31]json parsed OK: [10:36:31]protocol is kg_v1.0 [10:36:31]action value=close_receipt [10:36:31]process_action close_receipt [10:36:31]cmd_close_receipt [10:36:31]MH_GetDate [10:36:31]Write to MH i2c: F0 00 00 1B 14 1E [10:36:31]Write i2c OK [10:36:31]MH_I2C_Read... [10:36:31]Read from MH i2c: F0 [10:36:31]MH_I2C_Read... [10:36:31]Read from MH i2c: F0 09 00 [10:36:31]MH_I2C_Read... [10:36:31]Read from MH i2c: F0 09 00 1B 14 00 B4 70 A7 66 A6 1F 7F 64 00 [10:36:31]GetLastDocTimeStamp 1722249326 [10:36:31]current date 1722249396 [10:36:31]FM_GetShiftState [10:36:31]SAM_PROTO_GetShiftState [10:36:31]wFMCommunicate request_size=4 [10:36:31]MH_SAM_APDU [10:36:31]CAPDU: 80 13 01 00 [10:36:31]Write to MH i2c: E2 08 00 1C 14 80 13 01 00 00 00 00 00 AD [10:36:31]Write i2c OK [10:36:31]MH_I2C_Read... [10:36:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:31]Read from MH i2c: E2 [10:36:31]MH_I2C_Read... [10:36:31]Read from MH i2c: E2 0E 00 [10:36:31]MH_I2C_Read... [10:36:31]Read from MH i2c: E2 0E 00 1C 14 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 2E [10:36:31]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [10:36:31]wFMCommunicate OK [10:36:31]SAM_PROTO_GetShiftState done [10:36:31]FM_GetShiftState done [10:36:31]opened in 1722213509 [10:36:31]opened+sec_in_day 1722299909 [10:36:31]quantity*price = 6500 [10:36:31]sum+1 = 6501 [10:36:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 29 29.07.2024 10:36 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27126 ФПД: 279799299590881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T103636&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27126&fm=279799299590881&tin=02508201610067®Number=0000000000092663&sum=6500 0 [10:36:32]StoreToDocumentArchive [10:36:32]shift 434 fd 27126 [10:36:32]save to /storage/0434/doc_00027126 [10:36:32]save last doc name /storage/0434/doc_00027126 to /storage/kkm_last_doc_name [10:36:32]save OK [10:36:32]Clear old archive folders... [10:36:32]ProcessDocumentItem done err = 0, tmpTLVsize=286 [10:36:32]tlvbuf is B6F52D40 [10:36:32]SAM_PROTO_ClearQueue [10:36:32]wFMCommunicate request_size=4 [10:36:32]MH_SAM_APDU [10:36:32]CAPDU: 80 09 00 00 [10:36:32]Write to MH i2c: E2 08 00 29 14 80 09 00 00 00 00 00 00 AF [10:36:32]Write i2c OK [10:36:32]MH_I2C_Read... [10:36:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:32]Read from MH i2c: E2 [10:36:32]MH_I2C_Read... [10:36:32]Read from MH i2c: E2 03 00 [10:36:32]MH_I2C_Read... [10:36:32]Read from MH i2c: E2 03 00 29 14 00 90 00 B1 [10:36:32]RAPDU: 90 00 [10:36:32]wFMCommunicate OK [10:36:32]SAM_PROTO_ClearQueue done [10:36:32]KKMCreateOFDPacket [10:36:32]OFDProtocolAddRootSTLVToBuf [10:36:32]FM_MakeSignedData [10:36:32]FM_MakeSignedData [10:36:32]SAM_PROTO_SignData [10:36:32]wFMCommunicate request_size=4 [10:36:32]MH_SAM_APDU [10:36:32]CAPDU: 80 0D 01 02 [10:36:32]Write to MH i2c: E2 08 00 2A 14 80 0D 01 02 00 00 00 00 B7 [10:36:32]Write i2c OK [10:36:32]MH_I2C_Read... [10:36:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:32]Read from MH i2c: E2 [10:36:32]MH_I2C_Read... [10:36:32]Read from MH i2c: E2 03 00 [10:36:32]MH_I2C_Read... [10:36:32]Read from MH i2c: E2 03 00 2A 14 00 90 00 B2 [10:36:32]RAPDU: 90 00 [10:36:32]wFMCommunicate OK [10:36:32]wFMCommunicate request_size=255 [10:36:32]MH_SAM_APDU [10:36:32]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 1D 00 00 00 F4 03 04 00 B4 70 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 [10:36:32]Write to MH i2c: E2 02 01 2B 14 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 1D 00 00 00 F4 03 04 00 B4 70 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 00 00 80 [10:36:32]Write i2c OK [10:36:32]MH_I2C_Read... [10:36:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:33]Read from MH i2c: E2 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: E2 03 00 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: E2 03 00 2B 14 00 90 00 B3 [10:36:33]RAPDU: 90 00 [10:36:33]wFMCommunicate OK [10:36:33]wFMCommunicate request_size=45 [10:36:33]MH_SAM_APDU [10:36:33]CAPDU: 80 0D 02 02 28 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F6 69 00 00 35 04 06 00 FE 79 D9 DC 4A E1 [10:36:33]Write to MH i2c: E2 30 00 2C 14 80 0D 02 02 28 00 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F6 69 00 00 35 04 06 00 FE 79 D9 DC 4A E1 00 00 CB [10:36:33]Write i2c OK [10:36:33]MH_I2C_Read... [10:36:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:33]Read from MH i2c: E2 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: E2 03 00 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: E2 03 00 2C 14 00 90 00 B4 [10:36:33]RAPDU: 90 00 [10:36:33]wFMCommunicate OK [10:36:33]wFMCommunicate request_size=4 [10:36:33]MH_SAM_APDU [10:36:33]CAPDU: 80 0D 03 02 [10:36:33]Write to MH i2c: E2 08 00 2D 14 80 0D 03 02 00 00 00 00 BC [10:36:33]Write i2c OK [10:36:33]MH_I2C_Read... [10:36:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:33]Read from MH i2c: E2 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: E2 0B 00 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: E2 0B 00 2D 14 00 77 B1 55 08 9C 4F 84 5E 90 00 0F [10:36:33]RAPDU: 77 B1 55 08 9C 4F 84 5E 90 00 [10:36:33]wFMCommunicate OK [10:36:33]SAM_PROTO_SignData done [10:36:33]FM_MakeSignedData done [10:36:33]CreateOFDProtocolMessage [10:36:33]wFMCommunicate request_size=4 [10:36:33]MH_SAM_APDU [10:36:33]CAPDU: 80 11 00 00 [10:36:33]Write to MH i2c: E2 08 00 2E 14 80 11 00 00 00 00 00 00 BC [10:36:33]Write i2c OK [10:36:33]MH_I2C_Read... [10:36:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:33]Read from MH i2c: E2 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: E2 17 00 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: E2 17 00 2E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 15 [10:36:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [10:36:33]wFMCommunicate OK [10:36:33]CreateOFDProtocolMessage done [10:36:33]OFDSenderStorePacket 27126 [10:36:33]StoreOFDPacket docnum=27126 [10:36:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 32 01 00 00 31 66 2A 01 14 FE 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 1D 00 00 00 F4 03 04 00 B4 70 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F6 69 00 00 35 04 06 00 FE 79 D9 DC 4A E1 77 B1 55 08 9C 4F 84 5E [10:36:33]CheckFolder [10:36:33]dirname=/storage/ofd_packets [10:36:33]CheckFolder done [10:36:33]ProducePacketName [10:36:33]name=ofd_packets/00027126 [10:36:33]NVStorageSaveData ofd_packets/00027126 [10:36:33]File name is /storage/ofd_packets/00027126 [10:36:33]Write 336 bytes [10:36:33]NVStorageSaveData done [10:36:33]OFDSenderStorePacket done [10:36:33]KKMCreateOFDPacket done [10:36:33]NVStorageSaveData kkm_last_timestamp [10:36:33]File name is /storage/kkm_last_timestamp [10:36:33]Write 4 bytes [10:36:33]NVStorageSaveData done [10:36:33]ExternCall_PrintAddStr [10:36:33]wPrintStart [10:36:33]Write to MH i2c: 01 00 00 2F 14 43 [10:36:33]Write i2c OK [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: 01 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: 01 07 00 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: 01 07 00 2F 14 00 00 00 00 00 FF 0F 58 [10:36:33]RasterBufferAndPrint [10:36:33]line Счет N : (3)150524 [10:36:33]line ИНН: 02508201610067 [10:36:33]line Контрольно-Кассовый Чек [10:36:33]line ПРОДАЖА [10:36:33]line Товар: 4700040114120 [10:36:33]line Султан чай 1л. чер персик [10:36:33]line 1.000 * 65.00 [10:36:33]line = 65.00 [10:36:33]line НДС 12% НСП 1% [10:36:33]line > о реализуемом товаре [10:36:33]line ИТОГО: 65.00 [10:36:33]line НСП 1% : 0.57 [10:36:33]line НДС 12% : 6.90 [10:36:33]line Наличными: 65.00 [10:36:33]line Безнал.: 0.00 [10:36:33]line Место: АЗС № 134 "Партнер Нефть" [10:36:33]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:36:33]line СНО: Общий режим [10:36:33]line Чек 29 29.07.2024 10:36 [10:36:33]line Смена: 434 ФФД: 1.0 [10:36:33]line ЗНМ: 0300000043 [10:36:33]line РНМ: 0000000000092663 [10:36:33]line Версия ККМ: 001 [10:36:33]line ФМ: 0000000000874937 [10:36:33]line ФД: 27126 [10:36:33]line ФПД: 279799299590881 [10:36:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T103636&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27126&fm=279799299590881&tin=02508201610067®Number=0000000000092663&sum=6500 [10:36:33]line 0 [10:36:33]written 0, free lines is 4095 [10:36:33]OFD Sender: Processing packet 27126 [packets to send 9, broken 8] [10:36:33]ProducePacketName [10:36:33]name=ofd_packets/00027126 [10:36:33]OFD Sender: To server: pG, [10:36:33]CommunicateWithHost lk.salyk.kg:30040 [10:36:33]ConnectInit lk.salyk.kg [10:36:33]Connected sock=10 [10:36:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 32 01 00 00 31 66 2A 01 14 FE 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 1D 00 00 00 F4 03 04 00 B4 70 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F6 69 00 00 35 04 06 00 FE 79 D9 DC 4A E1 77 B1 55 08 9C 4F 84 5E [10:36:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 37 F2 47 00 44 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 34 39 33 37 10 04 04 00 F6 69 00 00 F4 03 04 00 05 17 A7 66 B6 04 01 00 00 CF CA FC 8E 8B 7F 9A B3 [10:36:33]CommunicateWithHost err = 0 [10:36:33]CheckOFDResponse [10:36:33]1017 (14) - 77093643461234 [10:36:33]1041 (16) - 0000000000874937 [10:36:33]1040 (4) - 27126 [10:36:33]1012 (4) - 29.07.2024 04:13 [10:36:33]1206 (1) - 0 [10:36:33]OFD Sender: Remove packet 27126 [10:36:33]ProducePacketName [10:36:33]name=ofd_packets/00027126 [10:36:33]NVStorageDeleteData [10:36:33]Write to MH i2c: 01 00 00 56 14 6A [10:36:33]Write i2c OK [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: 01 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: 01 07 00 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: 01 07 00 56 14 00 00 00 00 00 FD 0C 7A [10:36:33]RasterBufferAndPrint [10:36:33]line [10:36:33]line [10:36:33]line [10:36:33]line [10:36:33]line [10:36:33]written 0, free lines is 3334 [10:36:33]MH_Cut [10:36:33]Write to MH i2c: D1 01 00 5D 14 01 43 [10:36:33]Write i2c OK [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: D1 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: D1 01 00 [10:36:33]MH_I2C_Read... [10:36:33]Read from MH i2c: D1 01 00 5D 14 00 42 [10:36:33]Write to MH i2c: 01 00 00 5E 14 72 [10:36:33]Write i2c OK [10:36:33]MH_I2C_Read... [10:36:34]OFD Sender: No OFD packet to send [10:36:34]*** Cut start [10:36:34]*** Partial cut [10:36:34]*** CUTSNS_PIN = 1 [10:36:34]*** CUTSNS_PIN = 0 [10:36:34]*** Brake cut motor [10:36:35]Read from MH i2c: 01 [10:36:35]MH_I2C_Read... [10:36:35]*** Stop cut motor [10:36:35]*** Cut end [10:36:35]Read from MH i2c: 01 07 00 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: 01 07 00 5E 14 00 00 00 00 00 FF 0F 87 [10:36:35]process_action close_receipt done [10:36:35]requested_data is exist [10:36:35]produce_requested_data [10:36:35]requested_item fm.sn is exist - process it [10:36:35]wFMCommunicate request_size=4 [10:36:35]MH_SAM_APDU [10:36:35]CAPDU: 80 11 00 00 [10:36:35]Write to MH i2c: E2 08 00 5F 14 80 11 00 00 00 00 00 00 ED [10:36:35]Write i2c OK [10:36:35]MH_I2C_Read... [10:36:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:35]Read from MH i2c: E2 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: E2 17 00 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: E2 17 00 5F 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 46 [10:36:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [10:36:35]wFMCommunicate OK [10:36:35]requested_item fd.num is exist - process it [10:36:35]SAM_PROTO_GetFieldsCounters [10:36:35]wFMCommunicate request_size=4 [10:36:35]MH_SAM_APDU [10:36:35]CAPDU: 80 13 00 00 [10:36:35]Write to MH i2c: E2 08 00 60 14 80 13 00 00 00 00 00 00 F0 [10:36:35]Write i2c OK [10:36:35]MH_I2C_Read... [10:36:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:35]Read from MH i2c: E2 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: E2 62 00 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: E2 62 00 60 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 F6 69 00 00 0E 04 04 00 B2 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 81 [10:36:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 F6 69 00 00 0E 04 04 00 B2 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 [10:36:35]wFMCommunicate OK [10:36:35]SAM_PROTO_GetFieldsCounters done [10:36:35]requested_item shift.num is exist - process it [10:36:35]requested_item shift.opened is exist - process it [10:36:35]req_shift_opened [10:36:35]FM_GetShiftState [10:36:35]SAM_PROTO_GetShiftState [10:36:35]wFMCommunicate request_size=4 [10:36:35]MH_SAM_APDU [10:36:35]CAPDU: 80 13 01 00 [10:36:35]Write to MH i2c: E2 08 00 61 14 80 13 01 00 00 00 00 00 F2 [10:36:35]Write i2c OK [10:36:35]MH_I2C_Read... [10:36:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:35]Read from MH i2c: E2 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: E2 0E 00 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: E2 0E 00 61 14 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 73 [10:36:35]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [10:36:35]wFMCommunicate OK [10:36:35]SAM_PROTO_GetShiftState done [10:36:35]FM_GetShiftState done [10:36:35]req_shift_opened done [10:36:35]requested_item shift.open_date is exist - process it [10:36:35]req_shift_open_date [10:36:35]req_shift_open_date done [10:36:35]produce_requested_data done [10:36:35]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27126,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [10:36:35]process_action_free close_receipt [10:36:35]json_value_free [10:36:35]json_value_free done [10:36:35]process_json_proto returns [10:36:35]Send response to host [10:36:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27126,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [10:36:35]free response buf [10:36:35]execute_script done [10:36:35]execute_script returns [10:36:35]free content buf [10:36:35]Sock 9.Close socket [10:36:35]Sock 9.Thread stoped [10:36:39]OFD Sender: No OFD packet to send [10:36:44]OFD Sender: No OFD packet to send [10:36:49]OFD Sender: No OFD packet to send [10:36:54]OFD Sender: No OFD packet to send [10:36:59]OFD Sender: No OFD packet to send [10:37:04]OFD Sender: No OFD packet to send [10:37:09]OFD Sender: No OFD packet to send [10:37:12]accept exits with 8 [10:37:12]New connection [10:37:12]New thread 3066785124 created [10:37:12]Thread 3066928484 joined [10:37:12]Waiting for new connection... [10:37:12] Sock 8.Parse request [10:37:12]Sock 8.Check first char [10:37:12]Sock 8.First char is OK [10:37:12]request: POST /json_proto HTTP/1.0 [10:37:12]Method: POST [10:37:12]URL: /json_proto [10:37:12]Method is POST - this is cgi request [10:37:12]url: /json_proto [10:37:12]query_string will be loaded in cgi processing [10:37:12]execute_cgi json_proto POST (null) [10:37:12]execute_cgi path=json_proto method=POST [10:37:12]POST find Content-Length [10:37:12]Host: 172.17.45.8:8080 [10:37:12]Content-Length: 709 [10:37:12]Content-Type: application/json [10:37:12] [10:37:12]POST finish read [10:37:12]Found Content-Length = 709 [10:37:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150525", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 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" ] } } [10:37:12]execute_script... [10:37: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)150525", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 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" ] } } [10:37:12]POST & json_proto [10:37:12]process_json_proto [10:37:12]json parsed OK: [10:37:12]protocol is kg_v1.0 [10:37:12]action value=close_receipt [10:37:12]process_action close_receipt [10:37:12]cmd_close_receipt [10:37:12]MH_GetDate [10:37:12]Write to MH i2c: F0 00 00 62 14 65 [10:37:12]Write i2c OK [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: F0 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: F0 09 00 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: F0 09 00 62 14 00 DD 70 A7 66 A6 1F 7F 64 70 [10:37:12]GetLastDocTimeStamp 1722249396 [10:37:12]current date 1722249437 [10:37:12]FM_GetShiftState [10:37:12]SAM_PROTO_GetShiftState [10:37:12]wFMCommunicate request_size=4 [10:37:12]MH_SAM_APDU [10:37:12]CAPDU: 80 13 01 00 [10:37:12]Write to MH i2c: E2 08 00 63 14 80 13 01 00 00 00 00 00 F4 [10:37:12]Write i2c OK [10:37:12]MH_I2C_Read... [10:37:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:12]Read from MH i2c: E2 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: E2 0E 00 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: E2 0E 00 63 14 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 75 [10:37:12]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [10:37:12]wFMCommunicate OK [10:37:12]SAM_PROTO_GetShiftState done [10:37:12]FM_GetShiftState done [10:37:12]opened in 1722213509 [10:37:12]opened+sec_in_day 1722299909 [10:37:12]quantity*price = 9500 [10:37:12]sum+1 = 9501 [10:37:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 30 29.07.2024 10:37 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27127 ФПД: 135609287589 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T103717&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27127&fm=135609287589&tin=02508201610067®Number=0000000000092663&sum=9500 0 [10:37:13]StoreToDocumentArchive [10:37:13]shift 434 fd 27127 [10:37:13]save to /storage/0434/doc_00027127 [10:37:13]save last doc name /storage/0434/doc_00027127 to /storage/kkm_last_doc_name [10:37:13]save OK [10:37:13]Clear old archive folders... [10:37:13]ProcessDocumentItem done err = 0, tmpTLVsize=304 [10:37:13]tlvbuf is B6F526E0 [10:37:13]SAM_PROTO_ClearQueue [10:37:13]wFMCommunicate request_size=4 [10:37:13]MH_SAM_APDU [10:37:13]CAPDU: 80 09 00 00 [10:37:13]Write to MH i2c: E2 08 00 70 14 80 09 00 00 00 00 00 00 F6 [10:37:13]Write i2c OK [10:37:13]MH_I2C_Read... [10:37:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:13]Read from MH i2c: E2 [10:37:13]MH_I2C_Read... [10:37:13]Read from MH i2c: E2 03 00 [10:37:13]MH_I2C_Read... [10:37:13]Read from MH i2c: E2 03 00 70 14 00 90 00 F8 [10:37:13]RAPDU: 90 00 [10:37:13]wFMCommunicate OK [10:37:13]SAM_PROTO_ClearQueue done [10:37:13]KKMCreateOFDPacket [10:37:13]OFDProtocolAddRootSTLVToBuf [10:37:13]FM_MakeSignedData [10:37:13]FM_MakeSignedData [10:37:13]SAM_PROTO_SignData [10:37:13]wFMCommunicate request_size=4 [10:37:13]MH_SAM_APDU [10:37:13]CAPDU: 80 0D 01 02 [10:37:13]Write to MH i2c: E2 08 00 71 14 80 0D 01 02 00 00 00 00 FE [10:37:13]Write i2c OK [10:37:13]MH_I2C_Read... [10:37:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:13]Read from MH i2c: E2 [10:37:13]MH_I2C_Read... [10:37:13]Read from MH i2c: E2 03 00 [10:37:13]MH_I2C_Read... [10:37:13]Read from MH i2c: E2 03 00 71 14 00 90 00 F9 [10:37:13]RAPDU: 90 00 [10:37:13]wFMCommunicate OK [10:37:13]wFMCommunicate request_size=255 [10:37:13]MH_SAM_APDU [10:37:13]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 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 1E 00 00 00 F4 03 04 00 DD 70 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 [10:37:13]Write to MH i2c: E2 02 01 72 14 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 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 1E 00 00 00 F4 03 04 00 DD 70 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 00 00 6F [10:37:13]Write i2c OK [10:37:13]MH_I2C_Read... [10:37:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:14]Read from MH i2c: E2 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 03 00 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 03 00 72 14 00 90 00 FA [10:37:14]RAPDU: 90 00 [10:37:14]wFMCommunicate OK [10:37:14]wFMCommunicate request_size=63 [10:37:14]MH_SAM_APDU [10:37:14]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F7 69 00 00 35 04 06 00 00 1F 92 F1 83 A5 [10:37:14]Write to MH i2c: E2 42 00 73 14 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F7 69 00 00 35 04 06 00 00 1F 92 F1 83 A5 00 00 7C [10:37:14]Write i2c OK [10:37:14]MH_I2C_Read... [10:37:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:14]Read from MH i2c: E2 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 03 00 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 03 00 73 14 00 90 00 FB [10:37:14]RAPDU: 90 00 [10:37:14]wFMCommunicate OK [10:37:14]wFMCommunicate request_size=4 [10:37:14]MH_SAM_APDU [10:37:14]CAPDU: 80 0D 03 02 [10:37:14]Write to MH i2c: E2 08 00 74 14 80 0D 03 02 00 00 00 00 03 [10:37:14]Write i2c OK [10:37:14]MH_I2C_Read... [10:37:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:14]Read from MH i2c: E2 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 0B 00 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 0B 00 74 14 00 4D CF E9 3D ED AD DC 14 90 00 D0 [10:37:14]RAPDU: 4D CF E9 3D ED AD DC 14 90 00 [10:37:14]wFMCommunicate OK [10:37:14]SAM_PROTO_SignData done [10:37:14]FM_MakeSignedData done [10:37:14]CreateOFDProtocolMessage [10:37:14]wFMCommunicate request_size=4 [10:37:14]MH_SAM_APDU [10:37:14]CAPDU: 80 11 00 00 [10:37:14]Write to MH i2c: E2 08 00 75 14 80 11 00 00 00 00 00 00 03 [10:37:14]Write i2c OK [10:37:14]MH_I2C_Read... [10:37:14]OFD Sender: No OFD packet to send [10:37:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:14]Read from MH i2c: E2 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 17 00 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 17 00 75 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 5C [10:37:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [10:37:14]wFMCommunicate OK [10:37:14]CreateOFDProtocolMessage done [10:37:14]OFDSenderStorePacket 27127 [10:37:14]StoreOFDPacket docnum=27127 [10:37:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 44 01 00 00 3B 9E 3C 01 F9 75 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 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 1E 00 00 00 F4 03 04 00 DD 70 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F7 69 00 00 35 04 06 00 00 1F 92 F1 83 A5 4D CF E9 3D ED AD DC 14 [10:37:14]CheckFolder [10:37:14]dirname=/storage/ofd_packets [10:37:14]CheckFolder done [10:37:14]ProducePacketName [10:37:14]name=ofd_packets/00027127 [10:37:14]NVStorageSaveData ofd_packets/00027127 [10:37:14]File name is /storage/ofd_packets/00027127 [10:37:14]Write 354 bytes [10:37:14]NVStorageSaveData done [10:37:14]OFDSenderStorePacket done [10:37:14]KKMCreateOFDPacket done [10:37:14]NVStorageSaveData kkm_last_timestamp [10:37:14]File name is /storage/kkm_last_timestamp [10:37:14]Write 4 bytes [10:37:14]NVStorageSaveData done [10:37:14]ExternCall_PrintAddStr [10:37:14]wPrintStart [10:37:14]Write to MH i2c: 01 00 00 76 14 8A [10:37:14]Write i2c OK [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: 01 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: 01 07 00 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: 01 07 00 76 14 00 00 00 00 00 FF 0F 9F [10:37:14]RasterBufferAndPrint [10:37:14]line Счет N : (3)150525 [10:37:14]line ИНН: 02508201610067 [10:37:14]line Контрольно-Кассовый Чек [10:37:14]line ПРОДАЖА [10:37:14]line Товар: 4700000480302 [10:37:14]line Напиток энерг Nitro манго-клуб 0.45 ж/б [10:37:14]line 1.000 * 95.00 [10:37:14]line = 95.00 [10:37:14]line НДС 12% НСП 1% [10:37:14]line > о реализуемом товаре [10:37:14]line ИТОГО: 95.00 [10:37:14]line НСП 1% : 0.84 [10:37:14]line НДС 12% : 10.09 [10:37:14]line Наличными: 95.00 [10:37:14]line Безнал.: 0.00 [10:37:14]line Место: АЗС № 134 "Партнер Нефть" [10:37:14]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:37:14]line СНО: Общий режим [10:37:14]line Чек 30 29.07.2024 10:37 [10:37:14]line Смена: 434 ФФД: 1.0 [10:37:14]line ЗНМ: 0300000043 [10:37:14]line РНМ: 0000000000092663 [10:37:14]line Версия ККМ: 001 [10:37:14]line ФМ: 0000000000874937 [10:37:14]line ФД: 27127 [10:37:14]line ФПД: 135609287589 [10:37:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T103717&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27127&fm=135609287589&tin=02508201610067®Number=0000000000092663&sum=9500 [10:37:14]line 0 [10:37:14]OFD Sender: Processing packet 27127 [packets to send 9, broken 8] [10:37:14]ProducePacketName [10:37:14]name=ofd_packets/00027127 [10:37:14]OFD Sender: To server: pG, [10:37:14]CommunicateWithHost lk.salyk.kg:30040 [10:37:14]ConnectInit lk.salyk.kg [10:37:14]written 0, free lines is 4095 [10:37:14]Connected sock=10 [10:37:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 44 01 00 00 3B 9E 3C 01 F9 75 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 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 1E 00 00 00 F4 03 04 00 DD 70 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F7 69 00 00 35 04 06 00 00 1F 92 F1 83 A5 4D CF E9 3D ED AD DC 14 [10:37:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 C4 B3 47 00 06 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F7 69 00 00 F4 03 04 00 2E 17 A7 66 B6 04 01 00 00 2D 44 76 EB 20 D0 51 BC [10:37:15]CommunicateWithHost err = 0 [10:37:15]CheckOFDResponse [10:37:15]1017 (14) - 77093643461234 [10:37:15]1041 (16) - 0000000000874937 [10:37:15]1040 (4) - 27127 [10:37:15]1012 (4) - 29.07.2024 04:14 [10:37:15]1206 (1) - 0 [10:37:15]OFD Sender: Remove packet 27127 [10:37:15]ProducePacketName [10:37:15]name=ofd_packets/00027127 [10:37:15]NVStorageDeleteData [10:37:15]Write to MH i2c: 01 00 00 9E 14 B2 [10:37:15]Write i2c OK [10:37:15]MH_I2C_Read... [10:37:15]Read from MH i2c: 01 [10:37:15]MH_I2C_Read... [10:37:15]Read from MH i2c: 01 07 00 [10:37:15]MH_I2C_Read... [10:37:15]Read from MH i2c: 01 07 00 9E 14 00 00 00 00 00 E3 0C A8 [10:37:15]RasterBufferAndPrint [10:37:15]line [10:37:15]line [10:37:15]line [10:37:15]line [10:37:15]line [10:37:15]written 0, free lines is 3306 [10:37:15]MH_Cut [10:37:15]Write to MH i2c: D1 01 00 A5 14 01 8B [10:37:15]Write i2c OK [10:37:15]MH_I2C_Read... [10:37:15]Read from MH i2c: D1 [10:37:15]MH_I2C_Read... [10:37:15]Read from MH i2c: D1 01 00 [10:37:15]MH_I2C_Read... [10:37:15]Read from MH i2c: D1 01 00 A5 14 00 8A [10:37:15]Write to MH i2c: 01 00 00 A6 14 BA [10:37:15]Write i2c OK [10:37:15]MH_I2C_Read... [10:37:15]OFD Sender: No OFD packet to send [10:37:15]*** Cut start [10:37:15]*** Partial cut [10:37:15]*** CUTSNS_PIN = 1 [10:37:15]*** CUTSNS_PIN = 0 [10:37:16]*** Brake cut motor [10:37:16]Read from MH i2c: 01 [10:37:16]MH_I2C_Read... [10:37:16]*** Stop cut motor [10:37:16]*** Cut end [10:37:16]Read from MH i2c: 01 07 00 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: 01 07 00 A6 14 00 00 00 00 00 FF 0F CF [10:37:16]process_action close_receipt done [10:37:16]requested_data is exist [10:37:16]produce_requested_data [10:37:16]requested_item fm.sn is exist - process it [10:37:16]wFMCommunicate request_size=4 [10:37:16]MH_SAM_APDU [10:37:16]CAPDU: 80 11 00 00 [10:37:16]Write to MH i2c: E2 08 00 A7 14 80 11 00 00 00 00 00 00 35 [10:37:16]Write i2c OK [10:37:16]MH_I2C_Read... [10:37:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:16]Read from MH i2c: E2 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 17 00 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 17 00 A7 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 8E [10:37:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [10:37:16]wFMCommunicate OK [10:37:16]requested_item fd.num is exist - process it [10:37:16]SAM_PROTO_GetFieldsCounters [10:37:16]wFMCommunicate request_size=4 [10:37:16]MH_SAM_APDU [10:37:16]CAPDU: 80 13 00 00 [10:37:16]Write to MH i2c: E2 08 00 A8 14 80 13 00 00 00 00 00 00 38 [10:37:16]Write i2c OK [10:37:16]MH_I2C_Read... [10:37:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:16]Read from MH i2c: E2 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 62 00 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 62 00 A8 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 F7 69 00 00 0E 04 04 00 B2 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 CD [10:37: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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 F7 69 00 00 0E 04 04 00 B2 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 [10:37:16]wFMCommunicate OK [10:37:16]SAM_PROTO_GetFieldsCounters done [10:37:16]requested_item shift.num is exist - process it [10:37:16]requested_item shift.opened is exist - process it [10:37:16]req_shift_opened [10:37:16]FM_GetShiftState [10:37:16]SAM_PROTO_GetShiftState [10:37:16]wFMCommunicate request_size=4 [10:37:16]MH_SAM_APDU [10:37:16]CAPDU: 80 13 01 00 [10:37:16]Write to MH i2c: E2 08 00 A9 14 80 13 01 00 00 00 00 00 3A [10:37:16]Write i2c OK [10:37:16]MH_I2C_Read... [10:37:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:16]Read from MH i2c: E2 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 0E 00 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 0E 00 A9 14 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 BB [10:37:16]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [10:37:16]wFMCommunicate OK [10:37:16]SAM_PROTO_GetShiftState done [10:37:16]FM_GetShiftState done [10:37:16]req_shift_opened done [10:37:16]requested_item shift.open_date is exist - process it [10:37:16]req_shift_open_date [10:37:16]req_shift_open_date done [10:37:16]produce_requested_data done [10:37:16]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27127,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [10:37:16]process_action_free close_receipt [10:37:16]json_value_free [10:37:16]json_value_free done [10:37:16]process_json_proto returns [10:37:16]Send response to host [10:37:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27127,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [10:37:16]free response buf [10:37:16]execute_script done [10:37:16]execute_script returns [10:37:16]free content buf [10:37:16]Sock 8.Close socket [10:37:16]Sock 8.Thread stoped [10:37:20]OFD Sender: No OFD packet to send [10:37:25]OFD Sender: No OFD packet to send [10:37:30]OFD Sender: No OFD packet to send [10:37:35]OFD Sender: No OFD packet to send [10:37:40]OFD Sender: No OFD packet to send [10:37:45]OFD Sender: No OFD packet to send [10:37:50]OFD Sender: No OFD packet to send [10:37:55]OFD Sender: No OFD packet to send [10:38:00]OFD Sender: No OFD packet to send [10:38:05]OFD Sender: No OFD packet to send [10:38:10]OFD Sender: No OFD packet to send [10:38:15]OFD Sender: No OFD packet to send [10:38:20]OFD Sender: No OFD packet to send [10:38:25]OFD Sender: No OFD packet to send [10:38:30]OFD Sender: No OFD packet to send [10:38:35]OFD Sender: No OFD packet to send [10:38:40]OFD Sender: No OFD packet to send [10:38:45]OFD Sender: No OFD packet to send [10:38:50]OFD Sender: No OFD packet to send [10:38:55]OFD Sender: No OFD packet to send [10:39:00]OFD Sender: No OFD packet to send [10:39:05]OFD Sender: No OFD packet to send [10:39:10]OFD Sender: No OFD packet to send [10:39:15]OFD Sender: No OFD packet to send [10:39:20]OFD Sender: No OFD packet to send [10:39:25]OFD Sender: No OFD packet to send [10:39:30]OFD Sender: No OFD packet to send [10:39:35]OFD Sender: No OFD packet to send [10:39:40]OFD Sender: No OFD packet to send [10:39:45]OFD Sender: No OFD packet to send [10:39:50]OFD Sender: No OFD packet to send [10:39:55]OFD Sender: No OFD packet to send [10:40:00]OFD Sender: No OFD packet to send [10:40:05]OFD Sender: No OFD packet to send [10:40:10]OFD Sender: No OFD packet to send [10:40:15]OFD Sender: No OFD packet to send [10:40:20]OFD Sender: No OFD packet to send [10:40:25]OFD Sender: No OFD packet to send [10:40:30]OFD Sender: No OFD packet to send [10:40:35]OFD Sender: No OFD packet to send [10:40:40]OFD Sender: No OFD packet to send [10:40:45]OFD Sender: No OFD packet to send [10:40:46]accept exits with 9 [10:40:46]New connection [10:40:46]New thread 3066928484 created [10:40:46]Thread 3066785124 joined [10:40:46]Waiting for new connection... [10:40:46] Sock 9.Parse request [10:40:46]Sock 9.Check first char [10:40:46]Sock 9.First char is OK [10:40:46]request: POST /json_proto HTTP/1.0 [10:40:46]Method: POST [10:40:46]URL: /json_proto [10:40:46]Method is POST - this is cgi request [10:40:46]url: /json_proto [10:40:46]query_string will be loaded in cgi processing [10:40:46]execute_cgi json_proto POST (null) [10:40:46]execute_cgi path=json_proto method=POST [10:40:46]POST find Content-Length [10:40:46]Host: 172.17.45.8:8080 [10:40:46]Content-Length: 1124 [10:40:46]Content-Type: application/json [10:40:46] [10:40:46]POST finish read [10:40:46]Found Content-Length = 1124 [10:40:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150526", "tax_sys" : 0, "items" : [ { "code": "5449000088680", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E, \u0430\u043D\u0430\u043D\u0430\u0441 0,33 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.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" ] } } [10:40:46]execute_script... [10:40:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150526", "tax_sys" : 0, "items" : [ { "code": "5449000088680", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E, \u0430\u043D\u0430\u043D\u0430\u0441 0,33 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.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" ] } } [10:40:46]POST & json_proto [10:40:46]process_json_proto [10:40:46]json parsed OK: [10:40:46]protocol is kg_v1.0 [10:40:46]action value=close_receipt [10:40:46]process_action close_receipt [10:40:46]cmd_close_receipt [10:40:46]MH_GetDate [10:40:46]Write to MH i2c: F0 00 00 AA 14 AD [10:40:46]Write i2c OK [10:40:46]MH_I2C_Read... [10:40:46]Read from MH i2c: F0 [10:40:46]MH_I2C_Read... [10:40:46]Read from MH i2c: F0 09 00 [10:40:46]MH_I2C_Read... [10:40:46]Read from MH i2c: F0 09 00 AA 14 00 B3 71 A7 66 A6 1F 7F 64 8F [10:40:46]GetLastDocTimeStamp 1722249437 [10:40:46]current date 1722249651 [10:40:46]FM_GetShiftState [10:40:46]SAM_PROTO_GetShiftState [10:40:46]wFMCommunicate request_size=4 [10:40:46]MH_SAM_APDU [10:40:46]CAPDU: 80 13 01 00 [10:40:46]Write to MH i2c: E2 08 00 AB 14 80 13 01 00 00 00 00 00 3C [10:40:46]Write i2c OK [10:40:46]MH_I2C_Read... [10:40:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:46]Read from MH i2c: E2 [10:40:46]MH_I2C_Read... [10:40:46]Read from MH i2c: E2 0E 00 [10:40:46]MH_I2C_Read... [10:40:46]Read from MH i2c: E2 0E 00 AB 14 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 BD [10:40:46]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [10:40:46]wFMCommunicate OK [10:40:46]SAM_PROTO_GetShiftState done [10:40:46]FM_GetShiftState done [10:40:46]opened in 1722213509 [10:40:46]opened+sec_in_day 1722299909 [10:40:46]quantity*price = 9000 [10:40:46]sum+1 = 9001 [10:40:46]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 31 29.07.2024 10:40 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874937 ФД: 27128 ФПД: 157684295186777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T104052&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27128&fm=157684295186777&tin=02508201610067®Number=0000000000092663&sum=14000 0 [10:40:47]StoreToDocumentArchive [10:40:47]shift 434 fd 27128 [10:40:47]save to /storage/0434/doc_00027128 [10:40:47]save last doc name /storage/0434/doc_00027128 to /storage/kkm_last_doc_name [10:40:47]save OK [10:40:47]Clear old archive folders... [10:40:47]ProcessDocumentItem done err = 0, tmpTLVsize=405 [10:40:47]tlvbuf is 001D3040 [10:40:47]SAM_PROTO_ClearQueue [10:40:47]wFMCommunicate request_size=4 [10:40:47]MH_SAM_APDU [10:40:47]CAPDU: 80 09 00 00 [10:40:47]Write to MH i2c: E2 08 00 B8 14 80 09 00 00 00 00 00 00 3E [10:40:47]Write i2c OK [10:40:47]MH_I2C_Read... [10:40:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:48]Read from MH i2c: E2 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: E2 03 00 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: E2 03 00 B8 14 00 90 00 40 [10:40:48]RAPDU: 90 00 [10:40:48]wFMCommunicate OK [10:40:48]SAM_PROTO_ClearQueue done [10:40:48]KKMCreateOFDPacket [10:40:48]OFDProtocolAddRootSTLVToBuf [10:40:48]FM_MakeSignedData [10:40:48]FM_MakeSignedData [10:40:48]SAM_PROTO_SignData [10:40:48]wFMCommunicate request_size=4 [10:40:48]MH_SAM_APDU [10:40:48]CAPDU: 80 0D 01 02 [10:40:48]Write to MH i2c: E2 08 00 B9 14 80 0D 01 02 00 00 00 00 46 [10:40:48]Write i2c OK [10:40:48]MH_I2C_Read... [10:40:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:48]Read from MH i2c: E2 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: E2 03 00 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: E2 03 00 B9 14 00 90 00 41 [10:40:48]RAPDU: 90 00 [10:40:48]wFMCommunicate OK [10:40:48]wFMCommunicate request_size=255 [10:40:48]MH_SAM_APDU [10:40:48]CAPDU: 80 0D 02 02 FA 03 00 95 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 35 34 34 39 30 30 30 30 38 38 36 38 30 06 04 40 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 2C 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 B0 36 [10:40:48]Write to MH i2c: E2 02 01 BA 14 80 0D 02 02 FA 00 03 00 95 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 35 34 34 39 30 30 30 30 38 38 36 38 30 06 04 40 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 2C 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 B0 36 00 00 CA [10:40:48]Write i2c OK [10:40:48]MH_I2C_Read... [10:40:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:48]Read from MH i2c: E2 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: E2 03 00 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: E2 03 00 BA 14 00 90 00 42 [10:40:48]RAPDU: 90 00 [10:40:48]wFMCommunicate OK [10:40:48]wFMCommunicate request_size=164 [10:40:48]MH_SAM_APDU [10:40:48]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 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 1F 00 00 00 F4 03 04 00 B4 71 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F8 69 00 00 35 04 06 00 8F 69 BC 66 B9 59 [10:40:48]Write to MH i2c: E2 A7 00 BB 14 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 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 1F 00 00 00 F4 03 04 00 B4 71 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F8 69 00 00 35 04 06 00 8F 69 BC 66 B9 59 00 00 92 [10:40:48]Write i2c OK [10:40:48]MH_I2C_Read... [10:40:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:48]Read from MH i2c: E2 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: E2 03 00 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: E2 03 00 BB 14 00 90 00 43 [10:40:48]RAPDU: 90 00 [10:40:48]wFMCommunicate OK [10:40:48]wFMCommunicate request_size=4 [10:40:48]MH_SAM_APDU [10:40:48]CAPDU: 80 0D 03 02 [10:40:48]Write to MH i2c: E2 08 00 BC 14 80 0D 03 02 00 00 00 00 4B [10:40:48]Write i2c OK [10:40:48]MH_I2C_Read... [10:40:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:48]Read from MH i2c: E2 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: E2 0B 00 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: E2 0B 00 BC 14 00 71 DC 64 4E A7 11 8F 6B 90 00 FD [10:40:48]RAPDU: 71 DC 64 4E A7 11 8F 6B 90 00 [10:40:48]wFMCommunicate OK [10:40:48]SAM_PROTO_SignData done [10:40:48]FM_MakeSignedData done [10:40:48]CreateOFDProtocolMessage [10:40:48]wFMCommunicate request_size=4 [10:40:48]MH_SAM_APDU [10:40:48]CAPDU: 80 11 00 00 [10:40:48]Write to MH i2c: E2 08 00 BD 14 80 11 00 00 00 00 00 00 4B [10:40:48]Write i2c OK [10:40:48]MH_I2C_Read... [10:40:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:48]Read from MH i2c: E2 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: E2 17 00 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: E2 17 00 BD 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 A4 [10:40:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [10:40:48]wFMCommunicate OK [10:40:48]CreateOFDProtocolMessage done [10:40:48]OFDSenderStorePacket 27128 [10:40:48]StoreOFDPacket docnum=27128 [10:40:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 A9 01 00 00 97 CD A1 01 E2 A4 5A 03 01 00 03 00 95 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 35 34 34 39 30 30 30 30 38 38 36 38 30 06 04 40 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 2C 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 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 1F 00 00 00 F4 03 04 00 B4 71 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F8 69 00 00 35 04 06 00 8F 69 BC 66 B9 59 71 DC 64 4E A7 11 8F 6B [10:40:48]CheckFolder [10:40:48]dirname=/storage/ofd_packets [10:40:48]CheckFolder done [10:40:48]ProducePacketName [10:40:48]name=ofd_packets/00027128 [10:40:48]NVStorageSaveData ofd_packets/00027128 [10:40:48]File name is /storage/ofd_packets/00027128 [10:40:48]Write 455 bytes [10:40:48]NVStorageSaveData done [10:40:48]OFDSenderStorePacket done [10:40:48]KKMCreateOFDPacket done [10:40:48]NVStorageSaveData kkm_last_timestamp [10:40:48]File name is /storage/kkm_last_timestamp [10:40:48]Write 4 bytes [10:40:48]NVStorageSaveData done [10:40:48]ExternCall_PrintAddStr [10:40:48]wPrintStart [10:40:48]Write to MH i2c: 01 00 00 BE 14 D2 [10:40:48]OFD Sender: Processing packet 27128 [packets to send 9, broken 8] [10:40:48]ProducePacketName [10:40:48]name=ofd_packets/00027128 [10:40:48]OFD Sender: To server: pG, [10:40:48]CommunicateWithHost lk.salyk.kg:30040 [10:40:48]ConnectInit lk.salyk.kg [10:40:48]Write i2c OK [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: 01 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: 01 07 00 [10:40:48]MH_I2C_Read... [10:40:48]Read from MH i2c: 01 07 00 BE 14 00 00 00 00 00 FF 0F E7 [10:40:48]RasterBufferAndPrint [10:40:48]line Счет N : (3)150526 [10:40:48]line ИНН: 02508201610067 [10:40:48]line Контрольно-Кассовый Чек [10:40:48]line ПРОДАЖА [10:40:48]line Товар: 5449000088680 [10:40:48]line Холодный чай Fuse манго, ананас 0,33 ж/б [10:40:48]line 1.000 * 90.00 [10:40:48]line = 90.00 [10:40:48]line НДС 12% НСП 1% [10:40:48]line > о реализуемом товаре [10:40:48]line Товар: 4700000160358 [10:40:48]line Вода Легенда 1л [10:40:48]line 1.000 * 50.00 [10:40:48]line = 50.00 [10:40:48]line НДС 12% НСП 1% [10:40:48]line > о реализуемом товаре [10:40:48]line ИТОГО: 140.00 [10:40:48]line НСП 1% : 1.24 [10:40:48]line НДС 12% : 14.87 [10:40:48]line Наличными: 0.00 [10:40:48]line Безнал.: 140.00 [10:40:48]line Место: АЗС № 134 "Партнер Нефть" [10:40:48]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:40:49]line СНО: Общий режим [10:40:49]line Чек 31 29.07.2024 10:40 [10:40:49]line Смена: 434 ФФД: 1.0 [10:40:49]line ЗНМ: 0300000043 [10:40:49]line РНМ: 0000000000092663 [10:40:49]line Версия ККМ: 001 [10:40:49]line Платежная система: O! деньги [10:40:49]line ФМ: 0000000000874937 [10:40:49]line ФД: 27128 [10:40:49]line ФПД: 157684295186777 [10:40:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T104052&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27128&fm=157684295186777&tin=02508201610067®Number=0000000000092663&sum=14000 [10:40:49]line 0 [10:40:49]written 0, free lines is 4095 [10:40:49]Connected sock=10 [10:40:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 A9 01 00 00 97 CD A1 01 E2 A4 5A 03 01 00 03 00 95 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 35 34 34 39 30 30 30 30 38 38 36 38 30 06 04 40 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 2C 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 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 1F 00 00 00 F4 03 04 00 B4 71 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F8 69 00 00 35 04 06 00 8F 69 BC 66 B9 59 71 DC 64 4E A7 11 8F 6B [10:40:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 C1 1C 47 00 08 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 34 39 33 37 10 04 04 00 F8 69 00 00 F4 03 04 00 05 18 A7 66 B6 04 01 00 00 6A 94 D3 8B F1 43 80 47 [10:40:49]CommunicateWithHost err = 0 [10:40:49]CheckOFDResponse [10:40:49]1017 (14) - 77093643461234 [10:40:49]1041 (16) - 0000000000874937 [10:40:49]1040 (4) - 27128 [10:40:49]1012 (4) - 29.07.2024 04:18 [10:40:49]1206 (1) - 0 [10:40:49]OFD Sender: Remove packet 27128 [10:40:49]ProducePacketName [10:40:49]name=ofd_packets/00027128 [10:40:49]NVStorageDeleteData [10:40:49]Write to MH i2c: 01 00 00 EE 14 02 [10:40:49]Write i2c OK [10:40:49]MH_I2C_Read... [10:40:49]Read from MH i2c: 01 [10:40:49]MH_I2C_Read... [10:40:49]Read from MH i2c: 01 07 00 [10:40:49]MH_I2C_Read... [10:40:49]Read from MH i2c: 01 07 00 EE 14 00 00 00 00 00 73 0C 88 [10:40:49]RasterBufferAndPrint [10:40:49]line [10:40:49]line [10:40:49]line [10:40:49]line [10:40:49]line [10:40:49]written 0, free lines is 3194 [10:40:49]MH_Cut [10:40:49]Write to MH i2c: D1 01 00 F5 14 01 DB [10:40:49]Write i2c OK [10:40:49]MH_I2C_Read... [10:40:49]Read from MH i2c: D1 [10:40:49]MH_I2C_Read... [10:40:49]Read from MH i2c: D1 01 00 [10:40:49]MH_I2C_Read... [10:40:49]Read from MH i2c: D1 01 00 F5 14 00 DA [10:40:49]Write to MH i2c: 01 00 00 F6 14 0A [10:40:49]Write i2c OK [10:40:49]MH_I2C_Read... [10:40:49]OFD Sender: No OFD packet to send [10:40:50]*** Cut start [10:40:50]*** Partial cut [10:40:50]*** CUTSNS_PIN = 1 [10:40:50]*** CUTSNS_PIN = 0 [10:40:50]*** Brake cut motor [10:40:50]Read from MH i2c: 01 [10:40:50]MH_I2C_Read... [10:40:50]*** Stop cut motor [10:40:50]*** Cut end [10:40:50]Read from MH i2c: 01 07 00 [10:40:50]MH_I2C_Read... [10:40:50]Read from MH i2c: 01 07 00 F6 14 00 00 00 00 00 FF 0F 1F [10:40:50]process_action close_receipt done [10:40:50]requested_data is exist [10:40:50]produce_requested_data [10:40:50]requested_item fm.sn is exist - process it [10:40:50]wFMCommunicate request_size=4 [10:40:50]MH_SAM_APDU [10:40:50]CAPDU: 80 11 00 00 [10:40:50]Write to MH i2c: E2 08 00 F7 14 80 11 00 00 00 00 00 00 85 [10:40:50]Write i2c OK [10:40:50]MH_I2C_Read... [10:40:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:51]Read from MH i2c: E2 [10:40:51]MH_I2C_Read... [10:40:51]Read from MH i2c: E2 17 00 [10:40:51]MH_I2C_Read... [10:40:51]Read from MH i2c: E2 17 00 F7 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 DE [10:40:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [10:40:51]wFMCommunicate OK [10:40:51]requested_item fd.num is exist - process it [10:40:51]SAM_PROTO_GetFieldsCounters [10:40:51]wFMCommunicate request_size=4 [10:40:51]MH_SAM_APDU [10:40:51]CAPDU: 80 13 00 00 [10:40:51]Write to MH i2c: E2 08 00 F8 14 80 13 00 00 00 00 00 00 88 [10:40:51]Write i2c OK [10:40:51]MH_I2C_Read... [10:40:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:51]Read from MH i2c: E2 [10:40:51]MH_I2C_Read... [10:40:51]Read from MH i2c: E2 62 00 [10:40:51]MH_I2C_Read... [10:40:51]Read from MH i2c: E2 62 00 F8 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 F8 69 00 00 0E 04 04 00 B2 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 21 [10:40:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 F8 69 00 00 0E 04 04 00 B2 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 [10:40:51]wFMCommunicate OK [10:40:51]SAM_PROTO_GetFieldsCounters done [10:40:51]requested_item shift.num is exist - process it [10:40:51]requested_item shift.opened is exist - process it [10:40:51]req_shift_opened [10:40:51]FM_GetShiftState [10:40:51]SAM_PROTO_GetShiftState [10:40:51]wFMCommunicate request_size=4 [10:40:51]MH_SAM_APDU [10:40:51]CAPDU: 80 13 01 00 [10:40:51]Write to MH i2c: E2 08 00 F9 14 80 13 01 00 00 00 00 00 8A [10:40:51]Write i2c OK [10:40:51]MH_I2C_Read... [10:40:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:51]Read from MH i2c: E2 [10:40:51]MH_I2C_Read... [10:40:51]Read from MH i2c: E2 0E 00 [10:40:51]MH_I2C_Read... [10:40:51]Read from MH i2c: E2 0E 00 F9 14 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 0B [10:40:51]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [10:40:51]wFMCommunicate OK [10:40:51]SAM_PROTO_GetShiftState done [10:40:51]FM_GetShiftState done [10:40:51]req_shift_opened done [10:40:51]requested_item shift.open_date is exist - process it [10:40:51]req_shift_open_date [10:40:51]req_shift_open_date done [10:40:51]produce_requested_data done [10:40:51]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27128,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [10:40:51]process_action_free close_receipt [10:40:51]json_value_free [10:40:51]json_value_free done [10:40:51]process_json_proto returns [10:40:51]Send response to host [10:40:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27128,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [10:40:51]free response buf [10:40:51]execute_script done [10:40:51]execute_script returns [10:40:51]free content buf [10:40:51]Sock 9.Close socket [10:40:51]Sock 9.Thread stoped [10:40:54]OFD Sender: No OFD packet to send [10:40:59]OFD Sender: No OFD packet to send [10:41:04]OFD Sender: No OFD packet to send [10:41:09]OFD Sender: No OFD packet to send [10:41:14]OFD Sender: No OFD packet to send [10:41:19]OFD Sender: No OFD packet to send [10:41:24]OFD Sender: No OFD packet to send [10:41:29]OFD Sender: No OFD packet to send [10:41:34]OFD Sender: No OFD packet to send [10:41:39]OFD Sender: No OFD packet to send [10:41:44]OFD Sender: No OFD packet to send [10:41:49]OFD Sender: No OFD packet to send [10:41:54]OFD Sender: No OFD packet to send [10:41:59]OFD Sender: No OFD packet to send [10:42:04]OFD Sender: No OFD packet to send [10:42:09]OFD Sender: No OFD packet to send [10:42:14]OFD Sender: No OFD packet to send [10:42:19]OFD Sender: No OFD packet to send [10:42:24]OFD Sender: No OFD packet to send [10:42:29]OFD Sender: No OFD packet to send [10:42:34]OFD Sender: No OFD packet to send [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:40]OFD Sender: No OFD packet to send [10:44:45]OFD Sender: No OFD packet to send [10:44:50]OFD Sender: No OFD packet to send [10:44:55]OFD Sender: No OFD packet to send [10:45:00]OFD Sender: No OFD packet to send [10:45:05]OFD Sender: No OFD packet to send [10:45:10]OFD Sender: No OFD packet to send [10:45:15]OFD Sender: No OFD packet to send [10:45:20]OFD Sender: No OFD packet to send [10:45:25]OFD Sender: No OFD packet to send [10:45:30]OFD Sender: No OFD packet to send [10:45:35]OFD Sender: No OFD packet to send [10:45:40]OFD Sender: No OFD packet to send [10:45:45]OFD Sender: No OFD packet to send [10:45:50]OFD Sender: No OFD packet to send [10:45:55]OFD Sender: No OFD packet to send [10:46:00]OFD Sender: No OFD packet to send [10:46:05]OFD Sender: No OFD packet to send [10:46:10]OFD Sender: No OFD packet to send [10:46:15]OFD Sender: No OFD packet to send [10:46:20]OFD Sender: No OFD packet to send [10:46:25]OFD Sender: No OFD packet to send [10:46:30]OFD Sender: No OFD packet to send [10:46:35]OFD Sender: No OFD packet to send [10:46:40]OFD Sender: No OFD packet to send [10:46:45]OFD Sender: No OFD packet to send [10:46:50]OFD Sender: No OFD packet to send [10:46:55]OFD Sender: No OFD packet to send [10:47:00]OFD Sender: No OFD packet to send [10:47:05]OFD Sender: No OFD packet to send [10:47:10]OFD Sender: No OFD packet to send [10:47:15]OFD Sender: No OFD packet to send [10:47:20]OFD Sender: No OFD packet to send [10:47:25]OFD Sender: No OFD packet to send [10:47:30]OFD Sender: No OFD packet to send [10:47:35]OFD Sender: No OFD packet to send [10:47:40]OFD Sender: No OFD packet to send [10:47:45]OFD Sender: No OFD packet to send [10:47:50]OFD Sender: No OFD packet to send [10:47:55]OFD Sender: No OFD packet to send [10:48:00]OFD Sender: No OFD packet to send [10:48:05]OFD Sender: No OFD packet to send [10:48:10]OFD Sender: No OFD packet to send [10:48:15]OFD Sender: No OFD packet to send [10:48:20]OFD Sender: No OFD packet to send [10:48:25]OFD Sender: No OFD packet to send [10:48:30]OFD Sender: No OFD packet to send [10:48:35]OFD Sender: No OFD packet to send [10:48:40]OFD Sender: No OFD packet to send [10:48:45]OFD Sender: No OFD packet to send [10:48:50]OFD Sender: No OFD packet to send [10:48:55]OFD Sender: No OFD packet to send [10:49:00]OFD Sender: No OFD packet to send [10:49:05]OFD Sender: No OFD packet to send [10:49:10]OFD Sender: No OFD packet to send [10:49:15]OFD Sender: No OFD packet to send [10:49:20]OFD Sender: No OFD packet to send [10:49:25]OFD Sender: No OFD packet to send [10:49:30]OFD Sender: No OFD packet to send [10:49:35]OFD Sender: No OFD packet to send [10:49:40]OFD Sender: No OFD packet to send [10:49:45]OFD Sender: No OFD packet to send [10:49:50]OFD Sender: No OFD packet to send [10:49:55]OFD Sender: No OFD packet to send [10:50:00]OFD Sender: No OFD packet to send [10:50:05]OFD Sender: No OFD packet to send [10:50:10]OFD Sender: No OFD packet to send [10:50:15]OFD Sender: No OFD packet to send [10:50:20]OFD Sender: No OFD packet to send [10:50:25]OFD Sender: No OFD packet to send [10:50:30]OFD Sender: No OFD packet to send [10:50:35]OFD Sender: No OFD packet to send [10:50:40]OFD Sender: No OFD packet to send [10:50:45]OFD Sender: No OFD packet to send [10:50:50]OFD Sender: No OFD packet to send [10:50:55]OFD Sender: No OFD packet to send [10:51:00]OFD Sender: No OFD packet to send [10:51:05]OFD Sender: No OFD packet to send [10:51:10]OFD Sender: No OFD packet to send [10:51:15]OFD Sender: No OFD packet to send [10:51:20]OFD Sender: No OFD packet to send [10:51:25]OFD Sender: No OFD packet to send [10:51:30]OFD Sender: No OFD packet to send [10:51:35]OFD Sender: No OFD packet to send [10:51:40]OFD Sender: No OFD packet to send [10:51:45]OFD Sender: No OFD packet to send [10:51:50]OFD Sender: No OFD packet to send [10:51:55]OFD Sender: No OFD packet to send [10:52:00]OFD Sender: No OFD packet to send [10:52:05]OFD Sender: No OFD packet to send [10:52:10]OFD Sender: No OFD packet to send [10:52:15]OFD Sender: No OFD packet to send [10:52:20]OFD Sender: No OFD packet to send [10:52:25]OFD Sender: No OFD packet to send [10:52:30]OFD Sender: No OFD packet to send [10:52:35]OFD Sender: No OFD packet to send [10:52:40]OFD Sender: No OFD packet to send [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:05]OFD Sender: No OFD packet to send [10:53:10]OFD Sender: No OFD packet to send [10:53:15]OFD Sender: No OFD packet to send [10:53:20]OFD Sender: No OFD packet to send [10:53:25]OFD Sender: No OFD packet to send [10:53:30]OFD Sender: No OFD packet to send [10:53:35]OFD Sender: No OFD packet to send [10:53:40]OFD Sender: No OFD packet to send [10:53:45]OFD Sender: No OFD packet to send [10:53:50]OFD Sender: No OFD packet to send [10:53:55]OFD Sender: No OFD packet to send [10:54:00]OFD Sender: No OFD packet to send [10:54:05]OFD Sender: No OFD packet to send [10:54:06]accept exits with 8 [10:54:06]New connection [10:54:06]New thread 3066785124 created [10:54:06]Thread 3066928484 joined [10:54:06]Waiting for new connection... [10:54:06] Sock 8.Parse request [10:54:06]Sock 8.Check first char [10:54:06]Sock 8.First char is OK [10:54:06]request: POST /json_proto HTTP/1.0 [10:54:06]Method: POST [10:54:06]URL: /json_proto [10:54:06]Method is POST - this is cgi request [10:54:06]url: /json_proto [10:54:06]query_string will be loaded in cgi processing [10:54:06]execute_cgi json_proto POST (null) [10:54:06]execute_cgi path=json_proto method=POST [10:54:06]POST find Content-Length [10:54:06]Host: 172.17.45.8:8080 [10:54:06]Content-Length: 624 [10:54:06]Content-Type: application/json [10:54:06] [10:54:06]POST finish read [10:54:06]Found Content-Length = 624 [10:54:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150527", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 10.000, "sum" : 1400.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1400.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:06]execute_script... [10: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)150527", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 10.000, "sum" : 1400.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1400.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:06]POST & json_proto [10:54:06]process_json_proto [10:54:06]json parsed OK: [10:54:06]protocol is kg_v1.0 [10:54:06]action value=close_receipt [10:54:06]process_action close_receipt [10:54:06]cmd_close_receipt [10:54:06]MH_GetDate [10:54:06]Write to MH i2c: F0 00 00 FA 14 FD [10:54:06]Write i2c OK [10:54:06]MH_I2C_Read... [10:54:06]Read from MH i2c: F0 [10:54:06]MH_I2C_Read... [10:54:06]Read from MH i2c: F0 09 00 [10:54:06]MH_I2C_Read... [10:54:06]Read from MH i2c: F0 09 00 FA 14 00 D3 74 A7 66 A6 1F 7F 64 02 [10:54:06]GetLastDocTimeStamp 1722249652 [10:54:06]current date 1722250451 [10:54:06]FM_GetShiftState [10:54:06]SAM_PROTO_GetShiftState [10:54:06]wFMCommunicate request_size=4 [10:54:06]MH_SAM_APDU [10:54:06]CAPDU: 80 13 01 00 [10:54:06]Write to MH i2c: E2 08 00 FB 14 80 13 01 00 00 00 00 00 8C [10:54:06]Write i2c OK [10:54:06]MH_I2C_Read... [10:54:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:06]Read from MH i2c: E2 [10:54:06]MH_I2C_Read... [10:54:06]Read from MH i2c: E2 0E 00 [10:54:06]MH_I2C_Read... [10:54:06]Read from MH i2c: E2 0E 00 FB 14 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 0D [10:54:06]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [10:54:06]wFMCommunicate OK [10:54:06]SAM_PROTO_GetShiftState done [10:54:06]FM_GetShiftState done [10:54:06]opened in 1722213509 [10:54:06]opened+sec_in_day 1722299909 [10:54:06]quantity*price = 140000 [10:54:06]sum+1 = 140001 [10:54:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1400.00 НСП 1% : 12.39 НДС 12% : 148.67 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 32 29.07.2024 10:54 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27129 ФПД: 236246377674535 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T105411&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27129&fm=236246377674535&tin=02508201610067®Number=0000000000092663&sum=140000 0 [10:54:07]StoreToDocumentArchive [10:54:07]shift 434 fd 27129 [10:54:07]save to /storage/0434/doc_00027129 [10:54:07]save last doc name /storage/0434/doc_00027129 to /storage/kkm_last_doc_name [10:54:07]save OK [10:54:07]Clear old archive folders... [10:54:07]ProcessDocumentItem done err = 0, tmpTLVsize=273 [10:54:07]tlvbuf is 001ACC10 [10:54:07]SAM_PROTO_ClearQueue [10:54:07]wFMCommunicate request_size=4 [10:54:07]MH_SAM_APDU [10:54:07]CAPDU: 80 09 00 00 [10:54:07]Write to MH i2c: E2 08 00 08 15 80 09 00 00 00 00 00 00 8F [10:54:07]Write i2c OK [10:54:07]MH_I2C_Read... [10:54:07]Read from MH i2c: E2 [10:54:07]MH_I2C_Read... [10:54:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:07]Read from MH i2c: E2 03 00 [10:54:07]MH_I2C_Read... [10:54:07]Read from MH i2c: E2 03 00 08 15 00 90 00 91 [10:54:07]RAPDU: 90 00 [10:54:07]wFMCommunicate OK [10:54:07]SAM_PROTO_ClearQueue done [10:54:07]KKMCreateOFDPacket [10:54:07]OFDProtocolAddRootSTLVToBuf [10:54:07]FM_MakeSignedData [10:54:07]FM_MakeSignedData [10:54:07]SAM_PROTO_SignData [10:54:07]wFMCommunicate request_size=4 [10:54:07]MH_SAM_APDU [10:54:07]CAPDU: 80 0D 01 02 [10:54:07]Write to MH i2c: E2 08 00 09 15 80 0D 01 02 00 00 00 00 97 [10:54:07]Write i2c OK [10:54:07]MH_I2C_Read... [10:54:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:07]Read from MH i2c: E2 [10:54:07]MH_I2C_Read... [10:54:07]Read from MH i2c: E2 03 00 [10:54:07]MH_I2C_Read... [10:54:07]Read from MH i2c: E2 03 00 09 15 00 90 00 92 [10:54:07]RAPDU: 90 00 [10:54:07]wFMCommunicate OK [10:54:07]wFMCommunicate request_size=255 [10:54:07]MH_SAM_APDU [10:54:07]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 10 27 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 E0 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 D3 74 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 [10:54:07]Write to MH i2c: E2 02 01 0A 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 10 27 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 E0 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 D3 74 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 00 00 32 [10:54:07]Write i2c OK [10:54:07]MH_I2C_Read... [10:54:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:08]Read from MH i2c: E2 [10:54:08]MH_I2C_Read... [10:54:08]Read from MH i2c: E2 03 00 [10:54:08]MH_I2C_Read... [10:54:08]Read from MH i2c: E2 03 00 0A 15 00 90 00 93 [10:54:08]RAPDU: 90 00 [10:54:08]wFMCommunicate OK [10:54:08]wFMCommunicate request_size=32 [10:54:08]MH_SAM_APDU [10:54:08]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 39 33 37 10 04 04 00 F9 69 00 00 35 04 06 00 D6 DD 65 6B B7 27 [10:54:08]Write to MH i2c: E2 23 00 0B 15 80 0D 02 02 1B 00 30 30 30 38 37 34 39 33 37 10 04 04 00 F9 69 00 00 35 04 06 00 D6 DD 65 6B B7 27 00 00 C0 [10:54:08]Write i2c OK [10:54:08]MH_I2C_Read... [10:54:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:08]Read from MH i2c: E2 [10:54:08]MH_I2C_Read... [10:54:08]Read from MH i2c: E2 03 00 [10:54:08]MH_I2C_Read... [10:54:08]Read from MH i2c: E2 03 00 0B 15 00 90 00 94 [10:54:08]RAPDU: 90 00 [10:54:08]wFMCommunicate OK [10:54:08]wFMCommunicate request_size=4 [10:54:08]MH_SAM_APDU [10:54:08]CAPDU: 80 0D 03 02 [10:54:08]Write to MH i2c: E2 08 00 0C 15 80 0D 03 02 00 00 00 00 9C [10:54:08]Write i2c OK [10:54:08]MH_I2C_Read... [10:54:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:08]Read from MH i2c: E2 [10:54:08]MH_I2C_Read... [10:54:08]Read from MH i2c: E2 0B 00 [10:54:08]MH_I2C_Read... [10:54:08]Read from MH i2c: E2 0B 00 0C 15 00 99 E9 07 6B EC A2 7A EC 90 00 85 [10:54:08]RAPDU: 99 E9 07 6B EC A2 7A EC 90 00 [10:54:08]wFMCommunicate OK [10:54:08]SAM_PROTO_SignData done [10:54:08]FM_MakeSignedData done [10:54:08]CreateOFDProtocolMessage [10:54:08]wFMCommunicate request_size=4 [10:54:08]MH_SAM_APDU [10:54:08]CAPDU: 80 11 00 00 [10:54:08]Write to MH i2c: E2 08 00 0D 15 80 11 00 00 00 00 00 00 9C [10:54:08]Write i2c OK [10:54:08]MH_I2C_Read... [10:54:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:08]Read from MH i2c: E2 [10:54:08]MH_I2C_Read... [10:54:08]Read from MH i2c: E2 17 00 [10:54:08]MH_I2C_Read... [10:54:08]Read from MH i2c: E2 17 00 0D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 F5 [10:54:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [10:54:08]wFMCommunicate OK [10:54:08]CreateOFDProtocolMessage done [10:54:08]OFDSenderStorePacket 27129 [10:54:08]StoreOFDPacket docnum=27129 [10:54:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 25 01 00 00 0E 39 1D 01 7C 08 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 10 27 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 E0 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 D3 74 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F9 69 00 00 35 04 06 00 D6 DD 65 6B B7 27 99 E9 07 6B EC A2 7A EC [10:54:08]CheckFolder [10:54:08]dirname=/storage/ofd_packets [10:54:08]CheckFolder done [10:54:08]ProducePacketName [10:54:08]name=ofd_packets/00027129 [10:54:08]NVStorageSaveData ofd_packets/00027129 [10:54:08]File name is /storage/ofd_packets/00027129 [10:54:08]Write 323 bytes [10:54:08]NVStorageSaveData done [10:54:08]OFDSenderStorePacket done [10:54:08]KKMCreateOFDPacket done [10:54:08]NVStorageSaveData kkm_last_timestamp [10:54:08]File name is /storage/kkm_last_timestamp [10:54:08]Write 4 bytes [10:54:08]NVStorageSaveData done [10:54:08]ExternCall_PrintAddStr [10:54:08]wPrintStart [10:54:08]Write to MH i2c: 01 00 00 0E 15 23 [10:54:08]Write i2c OK [10:54:08]MH_I2C_Read... [10:54:08]Read from MH i2c: 01 [10:54:08]MH_I2C_Read... [10:54:08]Read from MH i2c: 01 07 00 [10:54:08]MH_I2C_Read... [10:54:08]Read from MH i2c: 01 07 00 0E 15 00 00 00 00 00 FF 0F 38 [10:54:08]RasterBufferAndPrint [10:54:08]line Счет N : (3)150527 [10:54:08]line ИНН: 02508201610067 [10:54:08]line Контрольно-Кассовый Чек [10:54:08]line ПРОДАЖА [10:54:08]line Товар: 48743570 [10:54:08]line Сигареты Winston XStyle Blue [10:54:08]line 10.000 * 140.00 [10:54:08]line = 1400.00 [10:54:08]line НДС 12% НСП 1% [10:54:08]line > о реализуемом товаре [10:54:08]line ИТОГО: 1400.00 [10:54:08]line НСП 1% : 12.39 [10:54:08]line НДС 12% : 148.67 [10:54:08]line Наличными: 1400.00 [10:54:08]line Безнал.: 0.00 [10:54:08]line Место: АЗС № 134 "Партнер Нефть" [10:54:08]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [10:54:08]line СНО: Общий режим [10:54:08]line Чек 32 29.07.2024 10:54 [10:54:08]line Смена: 434 ФФД: 1.0 [10:54:08]line ЗНМ: 0300000043 [10:54:08]line РНМ: 0000000000092663 [10:54:08]line Версия ККМ: 001 [10:54:08]line ФМ: 0000000000874937 [10:54:08]line ФД: 27129 [10:54:08]line ФПД: 236246377674535 [10:54:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T105411&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27129&fm=236246377674535&tin=02508201610067®Number=0000000000092663&sum=140000 [10:54:08]line 0 [10:54:08]OFD Sender: Processing packet 27129 [packets to send 9, broken 8] [10:54:08]ProducePacketName [10:54:08]name=ofd_packets/00027129 [10:54:08]OFD Sender: To server: pG, [10:54:08]CommunicateWithHost lk.salyk.kg:30040 [10:54:08]ConnectInit lk.salyk.kg [10:54:08]written 0, free lines is 4095 [10:54:08]Connected sock=10 [10: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 34 39 33 37 25 01 00 00 0E 39 1D 01 7C 08 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 10 27 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 E0 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 D3 74 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F9 69 00 00 35 04 06 00 D6 DD 65 6B B7 27 99 E9 07 6B EC A2 7A EC [10:54:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 23 76 47 00 53 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 F9 69 00 00 F4 03 04 00 24 1B A7 66 B6 04 01 00 00 90 8F E4 1E CC 60 BA 12 [10:54:08]CommunicateWithHost err = 0 [10:54:08]CheckOFDResponse [10:54:08]1017 (14) - 77093643461234 [10:54:08]1041 (16) - 0000000000874937 [10:54:08]1040 (4) - 27129 [10:54:08]1012 (4) - 29.07.2024 04:31 [10:54:08]1206 (1) - 0 [10:54:08]OFD Sender: Remove packet 27129 [10:54:08]ProducePacketName [10:54:08]name=ofd_packets/00027129 [10:54:08]NVStorageDeleteData [10:54:09]Write to MH i2c: 01 00 00 35 15 4A [10:54:09]Write i2c OK [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: 01 [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: 01 07 00 [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: 01 07 00 35 15 00 00 00 00 00 F3 0C 50 [10:54:09]RasterBufferAndPrint [10:54:09]line [10:54:09]line [10:54:09]line [10:54:09]line [10:54:09]line [10:54:09]written 0, free lines is 3322 [10:54:09]MH_Cut [10:54:09]Write to MH i2c: D1 01 00 3C 15 01 23 [10:54:09]Write i2c OK [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: D1 [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: D1 01 00 [10:54:09]MH_I2C_Read... [10:54:09]Read from MH i2c: D1 01 00 3C 15 00 22 [10:54:09]Write to MH i2c: 01 00 00 3D 15 52 [10:54:09]Write i2c OK [10:54:09]MH_I2C_Read... [10:54:09]OFD Sender: No OFD packet to send [10:54:09]*** Cut start [10:54:09]*** Partial cut [10:54:09]*** CUTSNS_PIN = 1 [10:54:09]*** CUTSNS_PIN = 0 [10:54:10]*** Brake cut motor [10:54:10]Read from MH i2c: 01 [10:54:10]MH_I2C_Read... [10:54:10]*** Stop cut motor [10:54:10]*** Cut end [10:54:10]Read from MH i2c: 01 07 00 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: 01 07 00 3D 15 00 00 00 00 00 FF 0F 67 [10:54:10]process_action close_receipt done [10:54:10]requested_data is exist [10:54:10]produce_requested_data [10:54:10]requested_item fm.sn is exist - process it [10:54:10]wFMCommunicate request_size=4 [10:54:10]MH_SAM_APDU [10:54:10]CAPDU: 80 11 00 00 [10:54:10]Write to MH i2c: E2 08 00 3E 15 80 11 00 00 00 00 00 00 CD [10:54:10]Write i2c OK [10:54:10]MH_I2C_Read... [10:54:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:10]Read from MH i2c: E2 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 17 00 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 17 00 3E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 26 [10:54:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [10:54:10]wFMCommunicate OK [10:54:10]requested_item fd.num is exist - process it [10:54:10]SAM_PROTO_GetFieldsCounters [10:54:10]wFMCommunicate request_size=4 [10:54:10]MH_SAM_APDU [10:54:10]CAPDU: 80 13 00 00 [10:54:10]Write to MH i2c: E2 08 00 3F 15 80 13 00 00 00 00 00 00 D0 [10:54:10]Write i2c OK [10:54:10]MH_I2C_Read... [10:54:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:10]Read from MH i2c: E2 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 62 00 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 62 00 3F 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 F9 69 00 00 0E 04 04 00 B2 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 6D [10:54:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 F9 69 00 00 0E 04 04 00 B2 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 [10:54:10]wFMCommunicate OK [10:54:10]SAM_PROTO_GetFieldsCounters done [10:54:10]requested_item shift.num is exist - process it [10:54:10]requested_item shift.opened is exist - process it [10:54:10]req_shift_opened [10:54:10]FM_GetShiftState [10:54:10]SAM_PROTO_GetShiftState [10:54:10]wFMCommunicate request_size=4 [10:54:10]MH_SAM_APDU [10:54:10]CAPDU: 80 13 01 00 [10:54:10]Write to MH i2c: E2 08 00 40 15 80 13 01 00 00 00 00 00 D2 [10:54:10]Write i2c OK [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 [10:54:10]MH_I2C_Read... [10:54:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:10]Read from MH i2c: E2 0E 00 [10:54:10]MH_I2C_Read... [10:54:10]Read from MH i2c: E2 0E 00 40 15 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 53 [10:54:10]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [10:54:10]wFMCommunicate OK [10:54:10]SAM_PROTO_GetShiftState done [10:54:10]FM_GetShiftState done [10:54:10]req_shift_opened done [10:54:10]requested_item shift.open_date is exist - process it [10:54:10]req_shift_open_date [10:54:10]req_shift_open_date done [10:54:10]produce_requested_data done [10:54:10]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27129,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [10:54:10]process_action_free close_receipt [10:54:10]json_value_free [10:54:10]json_value_free done [10:54:10]process_json_proto returns [10:54:10]Send response to host [10:54:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27129,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [10:54:10]free response buf [10:54:10]execute_script done [10:54:10]execute_script returns [10:54:10]free content buf [10:54:10]Sock 8.Close socket [10:54:10]Sock 8.Thread stoped [10:54:14]OFD Sender: No OFD packet to send [10:54:19]OFD Sender: No OFD packet to send [10:54:24]OFD Sender: No OFD packet to send [10:54:29]OFD Sender: No OFD packet to send [10:54:34]OFD Sender: No OFD packet to send [10:54:39]OFD Sender: No OFD packet to send [10:54:44]OFD Sender: No OFD packet to send [10:54:49]OFD Sender: No OFD packet to send [10:54:54]OFD Sender: No OFD packet to send [10:54:59]OFD Sender: No OFD packet to send [10:55:04]OFD Sender: No OFD packet to send [10:55:09]OFD Sender: No OFD packet to send [10:55:14]OFD Sender: No OFD packet to send [10:55:19]OFD Sender: No OFD packet to send [10:55:24]OFD Sender: No OFD packet to send [10:55:29]OFD Sender: No OFD packet to send [10:55:34]OFD Sender: No OFD packet to send [10:55:39]OFD Sender: No OFD packet to send [10:55:44]OFD Sender: No OFD packet to send [10:55:49]OFD Sender: No OFD packet to send [10:55:54]OFD Sender: No OFD packet to send [10:55:59]OFD Sender: No OFD packet to send [10:56:04]OFD Sender: No OFD packet to send [10:56:09]OFD Sender: No OFD packet to send [10:56:14]OFD Sender: No OFD packet to send [10:56:19]OFD Sender: No OFD packet to send [10:56:24]OFD Sender: No OFD packet to send [10:56:29]OFD Sender: No OFD packet to send [10:56:34]OFD Sender: No OFD packet to send [10:56:39]OFD Sender: No OFD packet to send [10:56:44]OFD Sender: No OFD packet to send [10:56:49]OFD Sender: No OFD packet to send [10:56:54]OFD Sender: No OFD packet to send [10:56:59]OFD Sender: No OFD packet to send [10:57:04]OFD Sender: No OFD packet to send [10:57:09]OFD Sender: No OFD packet to send [10:57:14]OFD Sender: No OFD packet to send [10:57:19]OFD Sender: No OFD packet to send [10:57:24]OFD Sender: No OFD packet to send [10:57:29]OFD Sender: No OFD packet to send [10:57:34]OFD Sender: No OFD packet to send [10:57:39]OFD Sender: No OFD packet to send [10:57:44]OFD Sender: No OFD packet to send [10:57:49]OFD Sender: No OFD packet to send [10:57:54]OFD Sender: No OFD packet to send [10:57:59]OFD Sender: No OFD packet to send [10:58:04]OFD Sender: No OFD packet to send [10:58:09]OFD Sender: No OFD packet to send [10:58:14]OFD Sender: No OFD packet to send [10:58:19]OFD Sender: No OFD packet to send [10:58:24]OFD Sender: No OFD packet to send [10:58:29]OFD Sender: No OFD packet to send [10:58:34]OFD Sender: No OFD packet to send [10:58:39]OFD Sender: No OFD packet to send [10:58:44]OFD Sender: No OFD packet to send [10:58:49]OFD Sender: No OFD packet to send [10:58:54]OFD Sender: No OFD packet to send [10:58:59]OFD Sender: No OFD packet to send [10:59:04]OFD Sender: No OFD packet to send [10:59:09]OFD Sender: No OFD packet to send [10:59:14]OFD Sender: No OFD packet to send [10:59:19]OFD Sender: No OFD packet to send [10:59:24]OFD Sender: No OFD packet to send [10:59:29]OFD Sender: No OFD packet to send [10:59:34]OFD Sender: No OFD packet to send [10:59:39]OFD Sender: No OFD packet to send [10:59:44]OFD Sender: No OFD packet to send [10:59:49]OFD Sender: No OFD packet to send [10:59:54]OFD Sender: No OFD packet to send [10:59:59]OFD Sender: No OFD packet to send [11:00:04]OFD Sender: No OFD packet to send [11:00:09]OFD Sender: No OFD packet to send [11:00:14]OFD Sender: No OFD packet to send [11:00:19]OFD Sender: No OFD packet to send [11:00:24]OFD Sender: No OFD packet to send [11:00:29]OFD Sender: No OFD packet to send [11:00:34]OFD Sender: No OFD packet to send [11:00:39]OFD Sender: No OFD packet to send [11:00:44]OFD Sender: No OFD packet to send [11:00:49]OFD Sender: No OFD packet to send [11:00:54]OFD Sender: No OFD packet to send [11:00:59]OFD Sender: No OFD packet to send [11:01:04]OFD Sender: No OFD packet to send [11:01:09]OFD Sender: No OFD packet to send [11:01:14]OFD Sender: No OFD packet to send [11:01:19]OFD Sender: No OFD packet to send [11:01:24]OFD Sender: No OFD packet to send [11:01:29]OFD Sender: No OFD packet to send [11:01:34]OFD Sender: No OFD packet to send [11:01:39]OFD Sender: No OFD packet to send [11:01:44]OFD Sender: No OFD packet to send [11:01:49]OFD Sender: No OFD packet to send [11:01:54]OFD Sender: No OFD packet to send [11:01:59]OFD Sender: No OFD packet to send [11:02:04]OFD Sender: No OFD packet to send [11:02:09]OFD Sender: No OFD packet to send [11:02:14]OFD Sender: No OFD packet to send [11:02:19]OFD Sender: No OFD packet to send [11:02:24]OFD Sender: No OFD packet to send [11:02:29]OFD Sender: No OFD packet to send [11:02:34]OFD Sender: No OFD packet to send [11:02:39]OFD Sender: No OFD packet to send [11:02:44]OFD Sender: No OFD packet to send [11:02:49]OFD Sender: No OFD packet to send [11:02:54]OFD Sender: No OFD packet to send [11:02:59]OFD Sender: No OFD packet to send [11:03:04]OFD Sender: No OFD packet to send [11:03:09]OFD Sender: No OFD packet to send [11:03:13]accept exits with 9 [11:03:13]New connection [11:03:13]New thread 3066928484 created [11:03:13]Thread 3066785124 joined [11:03:13]Waiting for new connection... [11:03:13] Sock 9.Parse request [11:03:13]Sock 9.Check first char [11:03:13]Sock 9.First char is OK [11:03:13]request: POST /json_proto HTTP/1.0 [11:03:13]Method: POST [11:03:13]URL: /json_proto [11:03:13]Method is POST - this is cgi request [11:03:13]url: /json_proto [11:03:13]query_string will be loaded in cgi processing [11:03:13]execute_cgi json_proto POST (null) [11:03:13]execute_cgi path=json_proto method=POST [11:03:13]POST find Content-Length [11:03:13]Host: 172.17.45.8:8080 [11:03:13]Content-Length: 679 [11:03:13]Content-Type: application/json [11:03:13] [11:03:13]POST finish read [11:03:13]Found Content-Length = 679 [11:03:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150528", "tax_sys" : 0, "items" : [ { "code": "4602441014019", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 0,5\u043B \u0441\u0442 (Gabb trade)", "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:03:13]execute_script... [11:03: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)150528", "tax_sys" : 0, "items" : [ { "code": "4602441014019", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041B\u0438\u043C\u043E\u043D\u0430\u0434 0,5\u043B \u0441\u0442 (Gabb trade)", "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:03:13]POST & json_proto [11:03:13]process_json_proto [11:03:13]json parsed OK: [11:03:13]protocol is kg_v1.0 [11:03:13]action value=close_receipt [11:03:13]process_action close_receipt [11:03:13]cmd_close_receipt [11:03:13]MH_GetDate [11:03:13]Write to MH i2c: F0 00 00 41 15 45 [11:03:13]Write i2c OK [11:03:13]MH_I2C_Read... [11:03:13]Read from MH i2c: F0 [11:03:13]MH_I2C_Read... [11:03:13]Read from MH i2c: F0 09 00 [11:03:13]MH_I2C_Read... [11:03:13]Read from MH i2c: F0 09 00 41 15 00 F6 76 A7 66 A6 1F 7F 64 6F [11:03:13]GetLastDocTimeStamp 1722250451 [11:03:13]current date 1722250998 [11:03:13]FM_GetShiftState [11:03:13]SAM_PROTO_GetShiftState [11:03:13]wFMCommunicate request_size=4 [11:03:13]MH_SAM_APDU [11:03:13]CAPDU: 80 13 01 00 [11:03:13]Write to MH i2c: E2 08 00 42 15 80 13 01 00 00 00 00 00 D4 [11:03:13]Write i2c OK [11:03:13]MH_I2C_Read... [11:03:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:13]Read from MH i2c: E2 [11:03:13]MH_I2C_Read... [11:03:13]Read from MH i2c: E2 0E 00 [11:03:13]MH_I2C_Read... [11:03:13]Read from MH i2c: E2 0E 00 42 15 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 55 [11:03:13]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [11:03:13]wFMCommunicate OK [11:03:13]SAM_PROTO_GetShiftState done [11:03:13]FM_GetShiftState done [11:03:13]opened in 1722213509 [11:03:13]opened+sec_in_day 1722299909 [11:03:13]quantity*price = 12500 [11:03:13]sum+1 = 12501 [11:03:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 33 29.07.2024 11:03 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27130 ФПД: 137646584306394 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T110318&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27130&fm=137646584306394&tin=02508201610067®Number=0000000000092663&sum=12500 0 [11:03:14]StoreToDocumentArchive [11:03:14]shift 434 fd 27130 [11:03:14]save to /storage/0434/doc_00027130 [11:03:14]save last doc name /storage/0434/doc_00027130 to /storage/kkm_last_doc_name [11:03:14]save OK [11:03:14]Clear old archive folders... [11:03:14]ProcessDocumentItem done err = 0, tmpTLVsize=295 [11:03:14]tlvbuf is 001B69D0 [11:03:14]SAM_PROTO_ClearQueue [11:03:14]wFMCommunicate request_size=4 [11:03:14]MH_SAM_APDU [11:03:14]CAPDU: 80 09 00 00 [11:03:14]Write to MH i2c: E2 08 00 4F 15 80 09 00 00 00 00 00 00 D6 [11:03:14]Write i2c OK [11:03:14]MH_I2C_Read... [11:03:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:14]Read from MH i2c: E2 [11:03:14]MH_I2C_Read... [11:03:14]Read from MH i2c: E2 03 00 [11:03:14]MH_I2C_Read... [11:03:14]Read from MH i2c: E2 03 00 4F 15 00 90 00 D8 [11:03:14]RAPDU: 90 00 [11:03:14]wFMCommunicate OK [11:03:14]SAM_PROTO_ClearQueue done [11:03:14]KKMCreateOFDPacket [11:03:14]OFDProtocolAddRootSTLVToBuf [11:03:14]FM_MakeSignedData [11:03:14]FM_MakeSignedData [11:03:14]SAM_PROTO_SignData [11:03:14]wFMCommunicate request_size=4 [11:03:14]MH_SAM_APDU [11:03:14]CAPDU: 80 0D 01 02 [11:03:14]Write to MH i2c: E2 08 00 50 15 80 0D 01 02 00 00 00 00 DE [11:03:14]Write i2c OK [11:03:14]MH_I2C_Read... [11:03:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:14]Read from MH i2c: E2 [11:03:14]MH_I2C_Read... [11:03:14]Read from MH i2c: E2 03 00 [11:03:14]MH_I2C_Read... [11:03:14]Read from MH i2c: E2 03 00 50 15 00 90 00 D9 [11:03:14]RAPDU: 90 00 [11:03:14]wFMCommunicate OK [11:03:14]wFMCommunicate request_size=255 [11:03:14]MH_SAM_APDU [11:03:14]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 34 30 31 39 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 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 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 21 00 00 00 F4 03 04 00 F6 76 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [11:03:14]Write to MH i2c: E2 02 01 51 15 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 34 30 31 39 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 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 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 21 00 00 00 F4 03 04 00 F6 76 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 F4 [11:03:14]Write i2c OK [11:03:14]MH_I2C_Read... [11:03:14]OFD Sender: No OFD packet to send [11:03:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:15]Read from MH i2c: E2 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: E2 03 00 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: E2 03 00 51 15 00 90 00 DA [11:03:15]RAPDU: 90 00 [11:03:15]wFMCommunicate OK [11:03:15]wFMCommunicate request_size=54 [11:03:15]MH_SAM_APDU [11:03:15]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 FA 69 00 00 35 04 06 00 7D 30 57 C3 1A DA [11:03:15]Write to MH i2c: E2 39 00 52 15 80 0D 02 02 31 00 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 FA 69 00 00 35 04 06 00 7D 30 57 C3 1A DA 00 00 2D [11:03:15]Write i2c OK [11:03:15]MH_I2C_Read... [11:03:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:15]Read from MH i2c: E2 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: E2 03 00 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: E2 03 00 52 15 00 90 00 DB [11:03:15]RAPDU: 90 00 [11:03:15]wFMCommunicate OK [11:03:15]wFMCommunicate request_size=4 [11:03:15]MH_SAM_APDU [11:03:15]CAPDU: 80 0D 03 02 [11:03:15]Write to MH i2c: E2 08 00 53 15 80 0D 03 02 00 00 00 00 E3 [11:03:15]Write i2c OK [11:03:15]MH_I2C_Read... [11:03:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:15]Read from MH i2c: E2 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: E2 0B 00 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: E2 0B 00 53 15 00 DA 56 4C 22 43 A4 8E D0 90 00 C7 [11:03:15]RAPDU: DA 56 4C 22 43 A4 8E D0 90 00 [11:03:15]wFMCommunicate OK [11:03:15]SAM_PROTO_SignData done [11:03:15]FM_MakeSignedData done [11:03:15]CreateOFDProtocolMessage [11:03:15]wFMCommunicate request_size=4 [11:03:15]MH_SAM_APDU [11:03:15]CAPDU: 80 11 00 00 [11:03:15]Write to MH i2c: E2 08 00 54 15 80 11 00 00 00 00 00 00 E3 [11:03:15]Write i2c OK [11:03:15]MH_I2C_Read... [11:03:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:15]Read from MH i2c: E2 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: E2 17 00 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: E2 17 00 54 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 3C [11:03:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [11:03:15]wFMCommunicate OK [11:03:15]CreateOFDProtocolMessage done [11:03:15]OFDSenderStorePacket 27130 [11:03:15]StoreOFDPacket docnum=27130 [11:03:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 3B 01 00 00 E1 01 33 01 06 EB 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 34 30 31 39 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 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 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 21 00 00 00 F4 03 04 00 F6 76 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 FA 69 00 00 35 04 06 00 7D 30 57 C3 1A DA DA 56 4C 22 43 A4 8E D0 [11:03:15]CheckFolder [11:03:15]dirname=/storage/ofd_packets [11:03:15]CheckFolder done [11:03:15]ProducePacketName [11:03:15]name=ofd_packets/00027130 [11:03:15]NVStorageSaveData ofd_packets/00027130 [11:03:15]File name is /storage/ofd_packets/00027130 [11:03:15]Write 345 bytes [11:03:15]NVStorageSaveData done [11:03:15]OFDSenderStorePacket done [11:03:15]KKMCreateOFDPacket done [11:03:15]NVStorageSaveData kkm_last_timestamp [11:03:15]File name is /storage/kkm_last_timestamp [11:03:15]Write 4 bytes [11:03:15]NVStorageSaveData done [11:03:15]ExternCall_PrintAddStr [11:03:15]wPrintStart [11:03:15]Write to MH i2c: 01 00 00 55 15 6A [11:03:15]Write i2c OK [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: 01 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: 01 07 00 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: 01 07 00 55 15 00 00 00 00 00 FF 0F 7F [11:03:15]RasterBufferAndPrint [11:03:15]line Счет N : (3)150528 [11:03:15]line ИНН: 02508201610067 [11:03:15]line Контрольно-Кассовый Чек [11:03:15]line ПРОДАЖА [11:03:15]line Товар: 4602441014019 [11:03:15]line Напиток Лимонад 0,5л ст (Gabb trade) [11:03:15]line 1.000 * 125.00 [11:03:15]line = 125.00 [11:03:15]line НДС 12% НСП 1% [11:03:15]line > о реализуемом товаре [11:03:15]line ИТОГО: 125.00 [11:03:15]line НСП 1% : 1.11 [11:03:15]line НДС 12% : 13.27 [11:03:15]line Наличными: 125.00 [11:03:15]line Безнал.: 0.00 [11:03:15]line Место: АЗС № 134 "Партнер Нефть" [11:03:15]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [11:03:15]line СНО: Общий режим [11:03:15]line Чек 33 29.07.2024 11:03 [11:03:15]line Смена: 434 ФФД: 1.0 [11:03:15]line ЗНМ: 0300000043 [11:03:15]line РНМ: 0000000000092663 [11:03:15]line Версия ККМ: 001 [11:03:15]line ФМ: 0000000000874937 [11:03:15]line ФД: 27130 [11:03:15]line ФПД: 137646584306394 [11:03:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T110318&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27130&fm=137646584306394&tin=02508201610067®Number=0000000000092663&sum=12500 [11:03:15]line 0 [11:03:15]written 0, free lines is 4095 [11:03:15]OFD Sender: Processing packet 27130 [packets to send 9, broken 8] [11:03:15]ProducePacketName [11:03:15]name=ofd_packets/00027130 [11:03:15]OFD Sender: To server: pG, [11:03:15]CommunicateWithHost lk.salyk.kg:30040 [11:03:15]ConnectInit lk.salyk.kg [11:03:15]Connected sock=10 [11: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 34 39 33 37 3B 01 00 00 E1 01 33 01 06 EB 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 32 34 34 31 30 31 34 30 31 39 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 30 2C 35 D0 BB 20 D1 81 D1 82 20 28 47 61 62 62 20 74 72 61 64 65 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 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 21 00 00 00 F4 03 04 00 F6 76 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 FA 69 00 00 35 04 06 00 7D 30 57 C3 1A DA DA 56 4C 22 43 A4 8E D0 [11:03:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 3A C9 47 00 7A 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 FA 69 00 00 F4 03 04 00 47 1D A7 66 B6 04 01 00 00 F9 DE 82 C4 10 62 7B B0 [11:03:15]CommunicateWithHost err = 0 [11:03:15]CheckOFDResponse [11:03:15]1017 (14) - 77093643461234 [11:03:15]1041 (16) - 0000000000874937 [11:03:15]1040 (4) - 27130 [11:03:15]1012 (4) - 29.07.2024 04:40 [11:03:15]1206 (1) - 0 [11:03:15]OFD Sender: Remove packet 27130 [11:03:15]ProducePacketName [11:03:15]name=ofd_packets/00027130 [11:03:15]NVStorageDeleteData [11:03:15]Write to MH i2c: 01 00 00 7D 15 92 [11:03:15]Write i2c OK [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: 01 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: 01 07 00 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: 01 07 00 7D 15 00 00 00 00 00 F2 0C 97 [11:03:15]RasterBufferAndPrint [11:03:15]line [11:03:15]line [11:03:15]line [11:03:15]line [11:03:15]line [11:03:15]written 0, free lines is 3320 [11:03:15]MH_Cut [11:03:15]Write to MH i2c: D1 01 00 84 15 01 6B [11:03:15]Write i2c OK [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: D1 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: D1 01 00 [11:03:15]MH_I2C_Read... [11:03:15]Read from MH i2c: D1 01 00 84 15 00 6A [11:03:15]Write to MH i2c: 01 00 00 85 15 9A [11:03:15]Write i2c OK [11:03:15]MH_I2C_Read... [11:03:16]OFD Sender: No OFD packet to send [11:03:16]*** Cut start [11:03:16]*** Partial cut [11:03:16]*** CUTSNS_PIN = 1 [11:03:16]*** CUTSNS_PIN = 0 [11:03:16]*** Brake cut motor [11:03:17]Read from MH i2c: 01 [11:03:17]MH_I2C_Read... [11:03:17]*** Stop cut motor [11:03:17]*** Cut end [11:03:17]Read from MH i2c: 01 07 00 [11:03:17]MH_I2C_Read... [11:03:17]Read from MH i2c: 01 07 00 85 15 00 00 00 00 00 FF 0F AF [11:03:17]process_action close_receipt done [11:03:17]requested_data is exist [11:03:17]produce_requested_data [11:03:17]requested_item fm.sn is exist - process it [11:03:17]wFMCommunicate request_size=4 [11:03:17]MH_SAM_APDU [11:03:17]CAPDU: 80 11 00 00 [11:03:17]Write to MH i2c: E2 08 00 86 15 80 11 00 00 00 00 00 00 15 [11:03:17]Write i2c OK [11:03:17]MH_I2C_Read... [11:03:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:17]Read from MH i2c: E2 [11:03:17]MH_I2C_Read... [11:03:17]Read from MH i2c: E2 17 00 [11:03:17]MH_I2C_Read... [11:03:17]Read from MH i2c: E2 17 00 86 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 6E [11:03:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [11:03:17]wFMCommunicate OK [11:03:17]requested_item fd.num is exist - process it [11:03:17]SAM_PROTO_GetFieldsCounters [11:03:17]wFMCommunicate request_size=4 [11:03:17]MH_SAM_APDU [11:03:17]CAPDU: 80 13 00 00 [11:03:17]Write to MH i2c: E2 08 00 87 15 80 13 00 00 00 00 00 00 18 [11:03:17]Write i2c OK [11:03:17]MH_I2C_Read... [11:03:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:17]Read from MH i2c: E2 [11:03:17]MH_I2C_Read... [11:03:17]Read from MH i2c: E2 62 00 [11:03:17]MH_I2C_Read... [11:03:17]Read from MH i2c: E2 62 00 87 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 FA 69 00 00 0E 04 04 00 B2 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 B9 [11:03:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 FA 69 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:03:17]wFMCommunicate OK [11:03:17]SAM_PROTO_GetFieldsCounters done [11:03:17]requested_item shift.num is exist - process it [11:03:17]requested_item shift.opened is exist - process it [11:03:17]req_shift_opened [11:03:17]FM_GetShiftState [11:03:17]SAM_PROTO_GetShiftState [11:03:17]wFMCommunicate request_size=4 [11:03:17]MH_SAM_APDU [11:03:17]CAPDU: 80 13 01 00 [11:03:17]Write to MH i2c: E2 08 00 88 15 80 13 01 00 00 00 00 00 1A [11:03:17]Write i2c OK [11:03:17]MH_I2C_Read... [11:03:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:17]Read from MH i2c: E2 [11:03:17]MH_I2C_Read... [11:03:17]Read from MH i2c: E2 0E 00 [11:03:17]MH_I2C_Read... [11:03:17]Read from MH i2c: E2 0E 00 88 15 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 9B [11:03:17]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [11:03:17]wFMCommunicate OK [11:03:17]SAM_PROTO_GetShiftState done [11:03:17]FM_GetShiftState done [11:03:17]req_shift_opened done [11:03:17]requested_item shift.open_date is exist - process it [11:03:17]req_shift_open_date [11:03:17]req_shift_open_date done [11:03:17]produce_requested_data done [11:03:17]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27130,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [11:03:17]process_action_free close_receipt [11:03:17]json_value_free [11:03:17]json_value_free done [11:03:17]process_json_proto returns [11:03:17]Send response to host [11:03:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27130,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [11:03:17]free response buf [11:03:17]execute_script done [11:03:17]execute_script returns [11:03:17]free content buf [11:03:17]Sock 9.Close socket [11:03:17]Sock 9.Thread stoped [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:41]OFD Sender: No OFD packet to send [11:08:46]OFD Sender: No OFD packet to send [11:08:51]OFD Sender: No OFD packet to send [11:08:56]OFD Sender: No OFD packet to send [11:09:01]OFD Sender: No OFD packet to send [11:09:06]OFD Sender: No OFD packet to send [11:09:11]OFD Sender: No OFD packet to send [11:09:16]OFD Sender: No OFD packet to send [11:09:21]OFD Sender: No OFD packet to send [11:09:26]OFD Sender: No OFD packet to send [11:09:31]OFD Sender: No OFD packet to send [11:09:36]OFD Sender: No OFD packet to send [11:09:41]OFD Sender: No OFD packet to send [11:09:46]OFD Sender: No OFD packet to send [11:09:51]OFD Sender: No OFD packet to send [11:09:56]OFD Sender: No OFD packet to send [11:10:01]OFD Sender: No OFD packet to send [11:10:06]OFD Sender: No OFD packet to send [11:10:11]OFD Sender: No OFD packet to send [11:10:16]OFD Sender: No OFD packet to send [11:10:21]OFD Sender: No OFD packet to send [11:10:26]OFD Sender: No OFD packet to send [11:10:31]OFD Sender: No OFD packet to send [11:10:36]OFD Sender: No OFD packet to send [11:10:41]OFD Sender: No OFD packet to send [11:10:46]OFD Sender: No OFD packet to send [11:10:51]OFD Sender: No OFD packet to send [11:10:56]OFD Sender: No OFD packet to send [11:11:01]OFD Sender: No OFD packet to send [11:11:06]OFD Sender: No OFD packet to send [11:11:11]OFD Sender: No OFD packet to send [11:11:16]OFD Sender: No OFD packet to send [11:11:21]OFD Sender: No OFD packet to send [11:11:26]OFD Sender: No OFD packet to send [11:11:31]OFD Sender: No OFD packet to send [11:11:36]OFD Sender: No OFD packet to send [11:11:41]OFD Sender: No OFD packet to send [11:11:46]OFD Sender: No OFD packet to send [11:11:51]OFD Sender: No OFD packet to send [11:11:56]OFD Sender: No OFD packet to send [11:12:01]OFD Sender: No OFD packet to send [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:46]OFD Sender: No OFD packet to send [11:12:51]OFD Sender: No OFD packet to send [11:12:56]OFD Sender: No OFD packet to send [11:13:01]OFD Sender: No OFD packet to send [11:13:06]OFD Sender: No OFD packet to send [11:13:11]OFD Sender: No OFD packet to send [11:13:16]OFD Sender: No OFD packet to send [11:13:21]OFD Sender: No OFD packet to send [11:13:26]OFD Sender: No OFD packet to send [11:13:31]OFD Sender: No OFD packet to send [11:13:36]OFD Sender: No OFD packet to send [11:13:41]OFD Sender: No OFD packet to send [11:13:46]OFD Sender: No OFD packet to send [11:13:51]OFD Sender: No OFD packet to send [11:13:56]OFD Sender: No OFD packet to send [11:14:01]OFD Sender: No OFD packet to send [11:14:06]OFD Sender: No OFD packet to send [11:14:11]OFD Sender: No OFD packet to send [11:14:16]OFD Sender: No OFD packet to send [11:14:21]OFD Sender: No OFD packet to send [11:14:26]OFD Sender: No OFD packet to send [11:14:31]OFD Sender: No OFD packet to send [11:14:36]OFD Sender: No OFD packet to send [11:14:41]OFD Sender: No OFD packet to send [11:14:46]OFD Sender: No OFD packet to send [11:14:51]OFD Sender: No OFD packet to send [11:14:56]OFD Sender: No OFD packet to send [11:15:01]OFD Sender: No OFD packet to send [11:15:06]OFD Sender: No OFD packet to send [11:15:11]OFD Sender: No OFD packet to send [11:15:16]OFD Sender: No OFD packet to send [11:15:21]OFD Sender: No OFD packet to send [11:15:26]OFD Sender: No OFD packet to send [11:15:31]OFD Sender: No OFD packet to send [11:15:36]OFD Sender: No OFD packet to send [11:15:41]OFD Sender: No OFD packet to send [11:15:46]OFD Sender: No OFD packet to send [11:15:51]OFD Sender: No OFD packet to send [11:15:56]OFD Sender: No OFD packet to send [11:16:01]OFD Sender: No OFD packet to send [11:16:06]OFD Sender: No OFD packet to send [11:16:11]OFD Sender: No OFD packet to send [11:16:16]OFD Sender: No OFD packet to send [11:16:21]OFD Sender: No OFD packet to send [11:16:26]OFD Sender: No OFD packet to send [11:16:31]OFD Sender: No OFD packet to send [11:16:36]OFD Sender: No OFD packet to send [11:16:41]OFD Sender: No OFD packet to send [11:16:46]OFD Sender: No OFD packet to send [11:16:51]OFD Sender: No OFD packet to send [11:16:56]OFD Sender: No OFD packet to send [11:17:01]OFD Sender: No OFD packet to send [11:17:06]OFD Sender: No OFD packet to send [11:17:11]OFD Sender: No OFD packet to send [11:17:16]OFD Sender: No OFD packet to send [11:17:21]OFD Sender: No OFD packet to send [11:17:26]OFD Sender: No OFD packet to send [11:17:31]OFD Sender: No OFD packet to send [11:17:36]OFD Sender: No OFD packet to send [11:17:41]OFD Sender: No OFD packet to send [11:17:46]OFD Sender: No OFD packet to send [11:17:51]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [11:18:42]OFD Sender: No OFD packet to send [11:18:47]OFD Sender: No OFD packet to send [11:18:52]OFD Sender: No OFD packet to send [11:18:57]OFD Sender: No OFD packet to send [11:19:02]OFD Sender: No OFD packet to send [11:19:07]OFD Sender: No OFD packet to send [11:19:12]OFD Sender: No OFD packet to send [11:19:17]OFD Sender: No OFD packet to send [11:19:22]OFD Sender: No OFD packet to send [11:19:27]OFD Sender: No OFD packet to send [11:19:32]OFD Sender: No OFD packet to send [11:19:37]OFD Sender: No OFD packet to send [11:19:42]OFD Sender: No OFD packet to send [11:19:47]OFD Sender: No OFD packet to send [11:19:52]OFD Sender: No OFD packet to send [11:19:57]OFD Sender: No OFD packet to send [11:20:02]OFD Sender: No OFD packet to send [11:20:07]OFD Sender: No OFD packet to send [11:20:12]OFD Sender: No OFD packet to send [11:20:17]OFD Sender: No OFD packet to send [11:20:22]OFD Sender: No OFD packet to send [11:20:27]OFD Sender: No OFD packet to send [11:20:32]OFD Sender: No OFD packet to send [11:20:37]OFD Sender: No OFD packet to send [11:20:42]OFD Sender: No OFD packet to send [11:20:47]OFD Sender: No OFD packet to send [11:20:52]OFD Sender: No OFD packet to send [11:20:57]OFD Sender: No OFD packet to send [11:21:02]OFD Sender: No OFD packet to send [11:21:07]OFD Sender: No OFD packet to send [11:21:12]OFD Sender: No OFD packet to send [11:21:17]OFD Sender: No OFD packet to send [11:21:22]OFD Sender: No OFD packet to send [11:21:27]OFD Sender: No OFD packet to send [11:21:32]OFD Sender: No OFD packet to send [11:21:37]OFD Sender: No OFD packet to send [11:21:42]OFD Sender: No OFD packet to send [11:21:47]OFD Sender: No OFD packet to send [11:21:52]OFD Sender: No OFD packet to send [11:21:57]OFD Sender: No OFD packet to send [11:22:02]OFD Sender: No OFD packet to send [11:22:07]OFD Sender: No OFD packet to send [11:22:12]OFD Sender: No OFD packet to send [11:22:17]OFD Sender: No OFD packet to send [11:22:22]OFD Sender: No OFD packet to send [11:22:27]OFD Sender: No OFD packet to send [11:22:32]OFD Sender: No OFD packet to send [11:22:37]OFD Sender: No OFD packet to send [11:22:42]OFD Sender: No OFD packet to send [11:22:47]OFD Sender: No OFD packet to send [11:22:52]OFD Sender: No OFD packet to send [11:22:57]OFD Sender: No OFD packet to send [11:23:02]OFD Sender: No OFD packet to send [11:23:07]OFD Sender: No OFD packet to send [11:23:12]OFD Sender: No OFD packet to send [11:23:17]OFD Sender: No OFD packet to send [11:23:22]OFD Sender: No OFD packet to send [11:23:27]OFD Sender: No OFD packet to send [11:23:32]OFD Sender: No OFD packet to send [11:23:37]OFD Sender: No OFD packet to send [11:23:42]OFD Sender: No OFD packet to send [11:23:47]OFD Sender: No OFD packet to send [11:23:52]OFD Sender: No OFD packet to send [11:23:57]OFD Sender: No OFD packet to send [11:24:02]OFD Sender: No OFD packet to send [11:24:07]OFD Sender: No OFD packet to send [11:24:12]OFD Sender: No OFD packet to send [11:24:17]OFD Sender: No OFD packet to send [11:24:22]OFD Sender: No OFD packet to send [11:24:27]OFD Sender: No OFD packet to send [11:24:32]OFD Sender: No OFD packet to send [11:24:37]OFD Sender: No OFD packet to send [11:24:42]OFD Sender: No OFD packet to send [11:24:47]OFD Sender: No OFD packet to send [11:24:52]OFD Sender: No OFD packet to send [11:24:57]OFD Sender: No OFD packet to send [11:25:02]OFD Sender: No OFD packet to send [11:25:07]OFD Sender: No OFD packet to send [11:25:12]OFD Sender: No OFD packet to send [11:25:17]OFD Sender: No OFD packet to send [11:25:22]OFD Sender: No OFD packet to send [11:25:27]OFD Sender: No OFD packet to send [11:25:32]OFD Sender: No OFD packet to send [11:25:37]OFD Sender: No OFD packet to send [11:25:42]OFD Sender: No OFD packet to send [11:25:47]OFD Sender: No OFD packet to send [11:25:52]OFD Sender: No OFD packet to send [11:25:57]OFD Sender: No OFD packet to send [11:26:02]OFD Sender: No OFD packet to send [11:26:07]OFD Sender: No OFD packet to send [11:26:12]OFD Sender: No OFD packet to send [11:26:17]OFD Sender: No OFD packet to send [11:26:22]OFD Sender: No OFD packet to send [11:26:27]OFD Sender: No OFD packet to send [11:26:32]OFD Sender: No OFD packet to send [11:26:37]OFD Sender: No OFD packet to send [11:26:42]OFD Sender: No OFD packet to send [11:26:47]OFD Sender: No OFD packet to send [11:26:52]OFD Sender: No OFD packet to send [11:26:57]OFD Sender: No OFD packet to send [11:27:02]OFD Sender: No OFD packet to send [11:27:07]OFD Sender: No OFD packet to send [11:27:12]OFD Sender: No OFD packet to send [11:27:17]OFD Sender: No OFD packet to send [11:27:22]OFD Sender: No OFD packet to send [11:27:27]OFD Sender: No OFD packet to send [11:27:32]OFD Sender: No OFD packet to send [11:27:37]OFD Sender: No OFD packet to send [11:27:42]OFD Sender: No OFD packet to send [11:27:47]OFD Sender: No OFD packet to send [11:27:52]OFD Sender: No OFD packet to send [11:27:57]OFD Sender: No OFD packet to send [11:28:02]OFD Sender: No OFD packet to send [11:28:07]OFD Sender: No OFD packet to send [11:28:12]OFD Sender: No OFD packet to send [11:28:17]OFD Sender: No OFD packet to send [11:28:22]OFD Sender: No OFD packet to send [11:28:27]OFD Sender: No OFD packet to send [11:28:32]OFD Sender: No OFD packet to send [11:28:37]OFD Sender: No OFD packet to send [11:28:42]OFD Sender: No OFD packet to send [11:28:47]OFD Sender: No OFD packet to send [11:28:52]OFD Sender: No OFD packet to send [11:28:57]OFD Sender: No OFD packet to send [11:29:02]OFD Sender: No OFD packet to send [11:29:07]OFD Sender: No OFD packet to send [11:29:12]OFD Sender: No OFD packet to send [11:29:17]OFD Sender: No OFD packet to send [11:29:22]OFD Sender: No OFD packet to send [11:29:27]OFD Sender: No OFD packet to send [11:29:32]OFD Sender: No OFD packet to send [11:29:37]OFD Sender: No OFD packet to send [11:29:42]OFD Sender: No OFD packet to send [11:29:47]OFD Sender: No OFD packet to send [11:29:52]OFD Sender: No OFD packet to send [11:29:57]OFD Sender: No OFD packet to send [11:30:02]OFD Sender: No OFD packet to send [11:30:07]OFD Sender: No OFD packet to send [11:30:12]OFD Sender: No OFD packet to send [11:30:17]OFD Sender: No OFD packet to send [11:30:22]OFD Sender: No OFD packet to send [11:30:27]OFD Sender: No OFD packet to send [11:30:32]OFD Sender: No OFD packet to send [11:30:37]OFD Sender: No OFD packet to send [11:30:42]OFD Sender: No OFD packet to send [11:30:47]OFD Sender: No OFD packet to send [11:30:52]OFD Sender: No OFD packet to send [11:30:57]OFD Sender: No OFD packet to send [11:31:02]OFD Sender: No OFD packet to send [11:31:07]OFD Sender: No OFD packet to send [11:31:12]OFD Sender: No OFD packet to send [11:31:17]OFD Sender: No OFD packet to send [11:31:22]OFD Sender: No OFD packet to send [11:31:27]OFD Sender: No OFD packet to send [11:31:32]OFD Sender: No OFD packet to send [11:31:37]OFD Sender: No OFD packet to send [11:31:42]OFD Sender: No OFD packet to send [11:31:47]OFD Sender: No OFD packet to send [11:31:52]OFD Sender: No OFD packet to send [11:31:57]OFD Sender: No OFD packet to send [11:32:02]OFD Sender: No OFD packet to send [11:32:07]OFD Sender: No OFD packet to send [11:32:12]OFD Sender: No OFD packet to send [11:32:17]OFD Sender: No OFD packet to send [11:32:22]OFD Sender: No OFD packet to send [11:32:27]OFD Sender: No OFD packet to send [11:32:32]OFD Sender: No OFD packet to send [11:32:37]OFD Sender: No OFD packet to send [11:32:42]OFD Sender: No OFD packet to send [11:32:47]OFD Sender: No OFD packet to send [11:32:52]OFD Sender: No OFD packet to send [11:32:57]OFD Sender: No OFD packet to send [11:33:02]OFD Sender: No OFD packet to send [11:33:07]OFD Sender: No OFD packet to send [11:33:12]OFD Sender: No OFD packet to send [11:33:17]OFD Sender: No OFD packet to send [11:33:22]OFD Sender: No OFD packet to send [11:33:27]OFD Sender: No OFD packet to send [11:33:32]OFD Sender: No OFD packet to send [11:33:37]OFD Sender: No OFD packet to send [11:33:42]OFD Sender: No OFD packet to send [11:33:47]OFD Sender: No OFD packet to send [11:33:52]OFD Sender: No OFD packet to send [11:33:57]OFD Sender: No OFD packet to send [11:34:02]OFD Sender: No OFD packet to send [11:34:07]OFD Sender: No OFD packet to send [11:34:12]OFD Sender: No OFD packet to send [11:34:17]OFD Sender: No OFD packet to send [11:34:22]OFD Sender: No OFD packet to send [11:34:27]OFD Sender: No OFD packet to send [11:34:32]OFD Sender: No OFD packet to send [11:34:37]OFD Sender: No OFD packet to send [11:34:42]OFD Sender: No OFD packet to send [11:34:47]OFD Sender: No OFD packet to send [11:34:52]OFD Sender: No OFD packet to send [11:34:57]OFD Sender: No OFD packet to send [11:35:02]OFD Sender: No OFD packet to send [11:35:07]OFD Sender: No OFD packet to send [11:35:12]OFD Sender: No OFD packet to send [11:35:17]OFD Sender: No OFD packet to send [11:35:22]OFD Sender: No OFD packet to send [11:35:27]OFD Sender: No OFD packet to send [11:35:32]OFD Sender: No OFD packet to send [11:35:37]OFD Sender: No OFD packet to send [11:35:42]OFD Sender: No OFD packet to send [11:35:47]OFD Sender: No OFD packet to send [11:35:52]OFD Sender: No OFD packet to send [11:35:57]OFD Sender: No OFD packet to send [11:36:02]OFD Sender: No OFD packet to send [11:36:07]OFD Sender: No OFD packet to send [11:36:12]OFD Sender: No OFD packet to send [11:36:17]OFD Sender: No OFD packet to send [11:36:22]OFD Sender: No OFD packet to send [11:36:27]OFD Sender: No OFD packet to send [11:36:32]OFD Sender: No OFD packet to send [11:36:37]OFD Sender: No OFD packet to send [11:36:42]OFD Sender: No OFD packet to send [11:36:47]OFD Sender: No OFD packet to send [11:36:52]OFD Sender: No OFD packet to send [11:36:57]OFD Sender: No OFD packet to send [11:37:02]OFD Sender: No OFD packet to send [11:37:07]OFD Sender: No OFD packet to send [11:37:12]OFD Sender: No OFD packet to send [11:37:17]OFD Sender: No OFD packet to send [11:37:22]OFD Sender: No OFD packet to send [11:37:27]OFD Sender: No OFD packet to send [11:37:32]OFD Sender: No OFD packet to send [11:37:37]OFD Sender: No OFD packet to send [11:37:42]OFD Sender: No OFD packet to send [11:37:47]OFD Sender: No OFD packet to send [11:37:52]OFD Sender: No OFD packet to send [11:37:57]OFD Sender: No OFD packet to send [11:38:02]OFD Sender: No OFD packet to send [11:38:07]OFD Sender: No OFD packet to send [11:38:12]OFD Sender: No OFD packet to send [11:38:17]OFD Sender: No OFD packet to send [11:38:22]OFD Sender: No OFD packet to send [11:38:27]OFD Sender: No OFD packet to send [11:38:32]OFD Sender: No OFD packet to send [11:38:37]OFD Sender: No OFD packet to send [11:38:42]OFD Sender: No OFD packet to send [11:38:47]OFD Sender: No OFD packet to send [11:38:52]OFD Sender: No OFD packet to send [11:38:57]OFD Sender: No OFD packet to send [11:39:02]OFD Sender: No OFD packet to send [11:39:07]OFD Sender: No OFD packet to send [11:39:12]OFD Sender: No OFD packet to send [11:39:17]OFD Sender: No OFD packet to send [11:39:22]OFD Sender: No OFD packet to send [11:39:27]OFD Sender: No OFD packet to send [11:39:32]OFD Sender: No OFD packet to send [11:39:37]OFD Sender: No OFD packet to send [11:39:42]OFD Sender: No OFD packet to send [11:39:47]OFD Sender: No OFD packet to send [11:39:52]OFD Sender: No OFD packet to send [11:39:58]OFD Sender: No OFD packet to send [11:40:03]OFD Sender: No OFD packet to send [11:40:08]OFD Sender: No OFD packet to send [11:40:13]OFD Sender: No OFD packet to send [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:28]OFD Sender: No OFD packet to send [11:40:33]OFD Sender: No OFD packet to send [11:40:38]OFD Sender: No OFD packet to send [11:40:43]OFD Sender: No OFD packet to send [11:40:48]OFD Sender: No OFD packet to send [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:08]OFD Sender: No OFD packet to send [11:41:13]OFD Sender: No OFD packet to send [11:41:18]OFD Sender: No OFD packet to send [11:41:23]OFD Sender: No OFD packet to send [11:41:28]OFD Sender: No OFD packet to send [11:41:33]OFD Sender: No OFD packet to send [11:41:38]OFD Sender: No OFD packet to send [11:41:43]OFD Sender: No OFD packet to send [11:41:48]OFD Sender: No OFD packet to send [11:41:53]OFD Sender: No OFD packet to send [11:41:58]OFD Sender: No OFD packet to send [11:42:03]OFD Sender: No OFD packet to send [11:42:08]OFD Sender: No OFD packet to send [11:42:13]OFD Sender: No OFD packet to send [11:42:18]OFD Sender: No OFD packet to send [11:42:23]OFD Sender: No OFD packet to send [11:42:28]OFD Sender: No OFD packet to send [11:42:33]OFD Sender: No OFD packet to send [11:42:38]OFD Sender: No OFD packet to send [11:42:43]OFD Sender: No OFD packet to send [11:42:48]OFD Sender: No OFD packet to send [11:42:53]OFD Sender: No OFD packet to send [11:42:58]OFD Sender: No OFD packet to send [11:43:03]OFD Sender: No OFD packet to send [11:43:08]OFD Sender: No OFD packet to send [11:43:13]OFD Sender: No OFD packet to send [11:43:18]OFD Sender: No OFD packet to send [11:43:23]OFD Sender: No OFD packet to send [11:43:28]OFD Sender: No OFD packet to send [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:48]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:43]OFD Sender: No OFD packet to send [11:46:48]OFD Sender: No OFD packet to send [11:46:53]OFD Sender: No OFD packet to send [11:46:58]OFD Sender: No OFD packet to send [11:47:03]OFD Sender: No OFD packet to send [11:47:08]OFD Sender: No OFD packet to send [11:47:13]OFD Sender: No OFD packet to send [11:47: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:58]OFD Sender: No OFD packet to send [11:49:03]OFD Sender: No OFD packet to send [11:49:08]OFD Sender: No OFD packet to send [11:49:13]OFD Sender: No OFD packet to send [11:49:18]OFD Sender: No OFD packet to send [11:49:23]OFD Sender: No OFD packet to send [11:49:28]OFD Sender: No OFD packet to send [11:49:33]OFD Sender: No OFD packet to send [11:49:38]OFD Sender: No OFD packet to send [11:49:43]OFD Sender: No OFD packet to send [11:49:48]OFD Sender: No OFD packet to send [11:49:53]OFD Sender: No OFD packet to send [11:49:58]OFD Sender: No OFD packet to send [11:50:03]OFD Sender: No OFD packet to send [11:50:08]OFD Sender: No OFD packet to send [11:50:13]OFD Sender: No OFD packet to send [11:50:18]OFD Sender: No OFD packet to send [11:50:23]OFD Sender: No OFD packet to send [11:50:28]OFD Sender: No OFD packet to send [11:50:33]OFD Sender: No OFD packet to send [11:50:38]OFD Sender: No OFD packet to send [11:50:43]OFD Sender: No OFD packet to send [11:50:48]OFD Sender: No OFD packet to send [11:50:53]OFD Sender: No OFD packet to send [11:50:58]OFD Sender: No OFD packet to send [11:51:03]OFD Sender: No OFD packet to send [11:51:08]OFD Sender: No OFD packet to send [11:51:13]OFD Sender: No OFD packet to send [11:51:18]OFD Sender: No OFD packet to send [11:51:23]OFD Sender: No OFD packet to send [11:51:28]OFD Sender: No OFD packet to send [11:51:33]OFD Sender: No OFD packet to send [11:51:38]OFD Sender: No OFD packet to send [11:51:43]OFD Sender: No OFD packet to send [11:51:48]OFD Sender: No OFD packet to send [11:51:53]OFD Sender: No OFD packet to send [11:51:58]OFD Sender: No OFD packet to send [11:52:03]OFD Sender: No OFD packet to send [11:52:08]OFD Sender: No OFD packet to send [11:52:13]OFD Sender: No OFD packet to send [11:52:18]OFD Sender: No OFD packet to send [11:52:23]OFD Sender: No OFD packet to send [11:52:28]OFD Sender: No OFD packet to send [11:52:33]OFD Sender: No OFD packet to send [11:52:38]OFD Sender: No OFD packet to send [11:52:43]OFD Sender: No OFD packet to send [11:52:48]OFD Sender: No OFD packet to send [11:52:53]OFD Sender: No OFD packet to send [11:52:58]OFD Sender: No OFD packet to send [11:53:03]OFD Sender: No OFD packet to send [11:53:08]OFD Sender: No OFD packet to send [11:53:13]OFD Sender: No OFD packet to send [11:53:18]OFD Sender: No OFD packet to send [11:53:23]OFD Sender: No OFD packet to send [11:53:28]OFD Sender: No OFD packet to send [11:53:33]OFD Sender: No OFD packet to send [11:53:38]OFD Sender: No OFD packet to send [11:53:43]OFD Sender: No OFD packet to send [11:53:48]OFD Sender: No OFD packet to send [11:53:53]OFD Sender: No OFD packet to send [11:53:58]OFD Sender: No OFD packet to send [11:54:03]OFD Sender: No OFD packet to send [11:54:08]OFD Sender: No OFD packet to send [11:54:13]OFD Sender: No OFD packet to send [11:54:18]OFD Sender: No OFD packet to send [11:54:23]OFD Sender: No OFD packet to send [11:54:28]OFD Sender: No OFD packet to send [11:54:33]OFD Sender: No OFD packet to send [11:54:38]OFD Sender: No OFD packet to send [11:54:43]OFD Sender: No OFD packet to send [11:54:48]OFD Sender: No OFD packet to send [11:54:53]OFD Sender: No OFD packet to send [11:54:58]OFD Sender: No OFD packet to send [11:55:03]OFD Sender: No OFD packet to send [11:55:08]OFD Sender: No OFD packet to send [11:55:13]OFD Sender: No OFD packet to send [11:55:18]OFD Sender: No OFD packet to send [11:55:23]OFD Sender: No OFD packet to send [11:55:28]OFD Sender: No OFD packet to send [11:55:33]OFD Sender: No OFD packet to send [11:55:38]OFD Sender: No OFD packet to send [11:55:43]OFD Sender: No OFD packet to send [11:55:48]OFD Sender: No OFD packet to send [11:55:53]OFD Sender: No OFD packet to send [11:55:58]OFD Sender: No OFD packet to send [11:56:03]OFD Sender: No OFD packet to send [11:56:08]OFD Sender: No OFD packet to send [11:56:13]OFD Sender: No OFD packet to send [11:56:18]OFD Sender: No OFD packet to send [11:56:23]OFD Sender: No OFD packet to send [11:56:28]OFD Sender: No OFD packet to send [11:56:33]OFD Sender: No OFD packet to send [11:56:38]OFD Sender: No OFD packet to send [11:56:43]OFD Sender: No OFD packet to send [11:56:48]OFD Sender: No OFD packet to send [11:56:53]OFD Sender: No OFD packet to send [11:56:58]OFD Sender: No OFD packet to send [11:57:03]OFD Sender: No OFD packet to send [11:57:08]OFD Sender: No OFD packet to send [11:57:13]OFD Sender: No OFD packet to send [11:57:18]OFD Sender: No OFD packet to send [11:57:23]OFD Sender: No OFD packet to send [11:57:28]OFD Sender: No OFD packet to send [11:57:33]OFD Sender: No OFD packet to send [11:57:38]OFD Sender: No OFD packet to send [11:57:43]OFD Sender: No OFD packet to send [11:57:48]OFD Sender: No OFD packet to send [11:57:53]OFD Sender: No OFD packet to send [11:57:58]OFD Sender: No OFD packet to send [11:58:03]OFD Sender: No OFD packet to send [11:58:08]OFD Sender: No OFD packet to send [11:58:13]OFD Sender: No OFD packet to send [11:58:18]OFD Sender: No OFD packet to send [11:58:23]OFD Sender: No OFD packet to send [11:58:28]OFD Sender: No OFD packet to send [11:58:33]OFD Sender: No OFD packet to send [11:58:38]OFD Sender: No OFD packet to send [11:58:43]OFD Sender: No OFD packet to send [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:18]OFD Sender: No OFD packet to send [11:59:23]OFD Sender: No OFD packet to send [11:59:28]OFD Sender: No OFD packet to send [11:59:33]OFD Sender: No OFD packet to send [11:59:38]OFD Sender: No OFD packet to send [11:59:43]OFD Sender: No OFD packet to send [11:59:48]OFD Sender: No OFD packet to send [11:59:53]OFD Sender: No OFD packet to send [11:59:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:08]OFD Sender: No OFD packet to send [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00:23]OFD Sender: No OFD packet to send [12:00:28]OFD Sender: No OFD packet to send [12:00:33]OFD Sender: No OFD packet to send [12:00:38]OFD Sender: No OFD packet to send [12:00:43]OFD Sender: No OFD packet to send [12:00:48]OFD Sender: No OFD packet to send [12:00:53]OFD Sender: No OFD packet to send [12:00:58]OFD Sender: No OFD packet to send [12:01:03]OFD Sender: No OFD packet to send [12:01:09]OFD Sender: No OFD packet to send [12:01:14]OFD Sender: No OFD packet to send [12:01:19]OFD Sender: No OFD packet to send [12:01:24]OFD Sender: No OFD packet to send [12:01:29]OFD Sender: No OFD packet to send [12:01:34]OFD Sender: No OFD packet to send [12:01:39]OFD Sender: No OFD packet to send [12:01:44]OFD Sender: No OFD packet to send [12:01:49]OFD Sender: No OFD packet to send [12:01:54]OFD Sender: No OFD packet to send [12:01:59]OFD Sender: No OFD packet to send [12:02:04]OFD Sender: No OFD packet to send [12:02:09]OFD Sender: No OFD packet to send [12:02:14]OFD Sender: No OFD packet to send [12:02:19]OFD Sender: No OFD packet to send [12:02:24]OFD Sender: No OFD packet to send [12:02:29]OFD Sender: No OFD packet to send [12:02:34]OFD Sender: No OFD packet to send [12:02:39]OFD Sender: No OFD packet to send [12:02:44]OFD Sender: No OFD packet to send [12:02:49]OFD Sender: No OFD packet to send [12:02:54]OFD Sender: No OFD packet to send [12:02:59]OFD Sender: No OFD packet to send [12:03:04]OFD Sender: No OFD packet to send [12:03:09]OFD Sender: No OFD packet to send [12:03:14]OFD Sender: No OFD packet to send [12:03:19]OFD Sender: No OFD packet to send [12:03:24]OFD Sender: No OFD packet to send [12:03:29]OFD Sender: No OFD packet to send [12:03:34]OFD Sender: No OFD packet to send [12:03:39]OFD Sender: No OFD packet to send [12:03:44]OFD Sender: No OFD packet to send [12:03:49]OFD Sender: No OFD packet to send [12:03:54]OFD Sender: No OFD packet to send [12:03:59]OFD Sender: No OFD packet to send [12:04:04]OFD Sender: No OFD packet to send [12:04:09]OFD Sender: No OFD packet to send [12:04:14]OFD Sender: No OFD packet to send [12:04:19]OFD Sender: No OFD packet to send [12:04:24]OFD Sender: No OFD packet to send [12:04:29]OFD Sender: No OFD packet to send [12:04:34]OFD Sender: No OFD packet to send [12:04:39]OFD Sender: No OFD packet to send [12:04:44]OFD Sender: No OFD packet to send [12:04:49]OFD Sender: No OFD packet to send [12:04:54]OFD Sender: No OFD packet to send [12:04:59]OFD Sender: No OFD packet to send [12:05:04]OFD Sender: No OFD packet to send [12:05:09]OFD Sender: No OFD packet to send [12:05:14]OFD Sender: No OFD packet to send [12:05:19]OFD Sender: No OFD packet to send [12:05:24]OFD Sender: No OFD packet to send [12:05:29]OFD Sender: No OFD packet to send [12:05:34]OFD Sender: No OFD packet to send [12:05:39]OFD Sender: No OFD packet to send [12:05:44]OFD Sender: No OFD packet to send [12:05:49]OFD Sender: No OFD packet to send [12:05:54]OFD Sender: No OFD packet to send [12:05:59]OFD Sender: No OFD packet to send [12:06:04]OFD Sender: No OFD packet to send [12:06:09]OFD Sender: No OFD packet to send [12:06:14]OFD Sender: No OFD packet to send [12:06:19]OFD Sender: No OFD packet to send [12:06:24]OFD Sender: No OFD packet to send [12:06:29]OFD Sender: No OFD packet to send [12:06:34]OFD Sender: No OFD packet to send [12:06:39]OFD Sender: No OFD packet to send [12:06:44]OFD Sender: No OFD packet to send [12:06:49]OFD Sender: No OFD packet to send [12:06:54]OFD Sender: No OFD packet to send [12:06:59]OFD Sender: No OFD packet to send [12:07:04]OFD Sender: No OFD packet to send [12:07:09]OFD Sender: No OFD packet to send [12:07:14]OFD Sender: No OFD packet to send [12:07:19]OFD Sender: No OFD packet to send [12:07:24]OFD Sender: No OFD packet to send [12:07:29]OFD Sender: No OFD packet to send [12:07:34]OFD Sender: No OFD packet to send [12:07:39]OFD Sender: No OFD packet to send [12:07:44]OFD Sender: No OFD packet to send [12:07:49]OFD Sender: No OFD packet to send [12:07:54]OFD Sender: No OFD packet to send [12:07:59]OFD Sender: No OFD packet to send [12:08:04]OFD Sender: No OFD packet to send [12:08:09]OFD Sender: No OFD packet to send [12:08:14]OFD Sender: No OFD packet to send [12:08:19]OFD Sender: No OFD packet to send [12:08:24]OFD Sender: No OFD packet to send [12:08:29]OFD Sender: No OFD packet to send [12:08:34]OFD Sender: No OFD packet to send [12:08:39]OFD Sender: No OFD packet to send [12:08:44]OFD Sender: No OFD packet to send [12:08:49]OFD Sender: No OFD packet to send [12:08:54]OFD Sender: No OFD packet to send [12:08:59]OFD Sender: No OFD packet to send [12:09:04]OFD Sender: No OFD packet to send [12:09:09]OFD Sender: No OFD packet to send [12:09:14]OFD Sender: No OFD packet to send [12:09:19]OFD Sender: No OFD packet to send [12:09:24]OFD Sender: No OFD packet to send [12:09:29]OFD Sender: No OFD packet to send [12:09:34]OFD Sender: No OFD packet to send [12:09:39]OFD Sender: No OFD packet to send [12:09:44]OFD Sender: No OFD packet to send [12:09:49]OFD Sender: No OFD packet to send [12:09:54]OFD Sender: No OFD packet to send [12:09:59]OFD Sender: No OFD packet to send [12:10:04]OFD Sender: No OFD packet to send [12:10:09]OFD Sender: No OFD packet to send [12:10:14]OFD Sender: No OFD packet to send [12:10:19]OFD Sender: No OFD packet to send [12:10:24]OFD Sender: No OFD packet to send [12:10:29]OFD Sender: No OFD packet to send [12:10:34]OFD Sender: No OFD packet to send [12:10:39]OFD Sender: No OFD packet to send [12:10:44]OFD Sender: No OFD packet to send [12:10:49]OFD Sender: No OFD packet to send [12:10:54]OFD Sender: No OFD packet to send [12:10:59]OFD Sender: No OFD packet to send [12:11:04]OFD Sender: No OFD packet to send [12:11:09]OFD Sender: No OFD packet to send [12:11:14]OFD Sender: No OFD packet to send [12:11:19]OFD Sender: No OFD packet to send [12:11:24]OFD Sender: No OFD packet to send [12:11:29]OFD Sender: No OFD packet to send [12:11:34]OFD Sender: No OFD packet to send [12:11:39]OFD Sender: No OFD packet to send [12:11:44]OFD Sender: No OFD packet to send [12:11:49]OFD Sender: No OFD packet to send [12:11:54]OFD Sender: No OFD packet to send [12:11:59]OFD Sender: No OFD packet to send [12:12:04]OFD Sender: No OFD packet to send [12:12:09]OFD Sender: No OFD packet to send [12:12:14]OFD Sender: No OFD packet to send [12:12:19]OFD Sender: No OFD packet to send [12:12:24]OFD Sender: No OFD packet to send [12:12:29]OFD Sender: No OFD packet to send [12:12:34]OFD Sender: No OFD packet to send [12:12:39]OFD Sender: No OFD packet to send [12:12:44]OFD Sender: No OFD packet to send [12:12:49]OFD Sender: No OFD packet to send [12:12:54]OFD Sender: No OFD packet to send [12:12:59]OFD Sender: No OFD packet to send [12:13:04]OFD Sender: No OFD packet to send [12:13:09]OFD Sender: No OFD packet to send [12:13:14]OFD Sender: No OFD packet to send [12:13:19]OFD Sender: No OFD packet to send [12:13:24]OFD Sender: No OFD packet to send [12:13:29]OFD Sender: No OFD packet to send [12:13:34]OFD Sender: No OFD packet to send [12:13:39]OFD Sender: No OFD packet to send [12:13:44]OFD Sender: No OFD packet to send [12:13:49]OFD Sender: No OFD packet to send [12:13:54]OFD Sender: No OFD packet to send [12:13:59]OFD Sender: No OFD packet to send [12:14:04]OFD Sender: No OFD packet to send [12:14:09]OFD Sender: No OFD packet to send [12:14:14]OFD Sender: No OFD packet to send [12:14:19]OFD Sender: No OFD packet to send [12:14:24]OFD Sender: No OFD packet to send [12:14:29]OFD Sender: No OFD packet to send [12:14:34]OFD Sender: No OFD packet to send [12:14:39]OFD Sender: No OFD packet to send [12:14:44]OFD Sender: No OFD packet to send [12:14:49]OFD Sender: No OFD packet to send [12:14:54]OFD Sender: No OFD packet to send [12:14:59]OFD Sender: No OFD packet to send [12:15:04]OFD Sender: No OFD packet to send [12:15:09]OFD Sender: No OFD packet to send [12:15:14]OFD Sender: No OFD packet to send [12:15:19]OFD Sender: No OFD packet to send [12:15:24]OFD Sender: No OFD packet to send [12:15:29]OFD Sender: No OFD packet to send [12:15:34]OFD Sender: No OFD packet to send [12:15:39]OFD Sender: No OFD packet to send [12:15:44]OFD Sender: No OFD packet to send [12:15:49]OFD Sender: No OFD packet to send [12:15:54]OFD Sender: No OFD packet to send [12:15:59]OFD Sender: No OFD packet to send [12:16:04]OFD Sender: No OFD packet to send [12:16:09]OFD Sender: No OFD packet to send [12:16:14]OFD Sender: No OFD packet to send [12:16:19]OFD Sender: No OFD packet to send [12:16:24]OFD Sender: No OFD packet to send [12:16:29]OFD Sender: No OFD packet to send [12:16:34]OFD Sender: No OFD packet to send [12:16:39]OFD Sender: No OFD packet to send [12:16:44]OFD Sender: No OFD packet to send [12:16:49]OFD Sender: No OFD packet to send [12:16:54]OFD Sender: No OFD packet to send [12:16:59]OFD Sender: No OFD packet to send [12:17:04]OFD Sender: No OFD packet to send [12:17:09]OFD Sender: No OFD packet to send [12:17:14]OFD Sender: No OFD packet to send [12:17:19]OFD Sender: No OFD packet to send [12:17:24]OFD Sender: No OFD packet to send [12:17:29]OFD Sender: No OFD packet to send [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:14]OFD Sender: No OFD packet to send [12:20:19]OFD Sender: No OFD packet to send [12:20:24]OFD Sender: No OFD packet to send [12:20:29]OFD Sender: No OFD packet to send [12:20:34]OFD Sender: No OFD packet to send [12:20:39]OFD Sender: No OFD packet to send [12:20:44]OFD Sender: No OFD packet to send [12:20:49]OFD Sender: No OFD packet to send [12:20:54]OFD Sender: No OFD packet to send [12:20:59]OFD Sender: No OFD packet to send [12:21:04]OFD Sender: No OFD packet to send [12:21:09]OFD Sender: No OFD packet to send [12:21:14]OFD Sender: No OFD packet to send [12:21:19]OFD Sender: No OFD packet to send [12:21:24]OFD Sender: No OFD packet to send [12:21:29]OFD Sender: No OFD packet to send [12:21:34]OFD Sender: No OFD packet to send [12:21:39]OFD Sender: No OFD packet to send [12:21:44]OFD Sender: No OFD packet to send [12:21:49]OFD Sender: No OFD packet to send [12:21:54]OFD Sender: No OFD packet to send [12:21:59]OFD Sender: No OFD packet to send [12:22:04]OFD Sender: No OFD packet to send [12:22:09]OFD Sender: No OFD packet to send [12:22:14]OFD Sender: No OFD packet to send [12:22:19]OFD Sender: No OFD packet to send [12:22:25]OFD Sender: No OFD packet to send [12:22:30]OFD Sender: No OFD packet to send [12:22:35]OFD Sender: No OFD packet to send [12:22:40]OFD Sender: No OFD packet to send [12:22:45]OFD Sender: No OFD packet to send [12:22:50]OFD Sender: No OFD packet to send [12:22:55]OFD Sender: No OFD packet to send [12:23:00]OFD Sender: No OFD packet to send [12:23:05]OFD Sender: No OFD packet to send [12:23:10]OFD Sender: No OFD packet to send [12:23:15]OFD Sender: No OFD packet to send [12:23:20]OFD Sender: No OFD packet to send [12:23:25]OFD Sender: No OFD packet to send [12:23:30]OFD Sender: No OFD packet to send [12:23:35]OFD Sender: No OFD packet to send [12:23:40]OFD Sender: No OFD packet to send [12:23:45]OFD Sender: No OFD packet to send [12:23:50]OFD Sender: No OFD packet to send [12:23:55]OFD Sender: No OFD packet to send [12:24:00]OFD Sender: No OFD packet to send [12:24:05]OFD Sender: No OFD packet to send [12:24:10]OFD Sender: No OFD packet to send [12:24:15]OFD Sender: No OFD packet to send [12:24:20]OFD Sender: No OFD packet to send [12:24:25]OFD Sender: No OFD packet to send [12:24:30]OFD Sender: No OFD packet to send [12:24:35]OFD Sender: No OFD packet to send [12:24:40]OFD Sender: No OFD packet to send [12:24:45]OFD Sender: No OFD packet to send [12:24:50]OFD Sender: No OFD packet to send [12:24:55]OFD Sender: No OFD packet to send [12:25:00]OFD Sender: No OFD packet to send [12:25:05]OFD Sender: No OFD packet to send [12:25:10]OFD Sender: No OFD packet to send [12:25:15]OFD Sender: No OFD packet to send [12:25:20]OFD Sender: No OFD packet to send [12:25:25]OFD Sender: No OFD packet to send [12:25:30]OFD Sender: No OFD packet to send [12:25:35]OFD Sender: No OFD packet to send [12:25:40]OFD Sender: No OFD packet to send [12:25:45]OFD Sender: No OFD packet to send [12:25:50]OFD Sender: No OFD packet to send [12:25:55]OFD Sender: No OFD packet to send [12:26:00]OFD Sender: No OFD packet to send [12:26:05]OFD Sender: No OFD packet to send [12:26:10]OFD Sender: No OFD packet to send [12:26:15]OFD Sender: No OFD packet to send [12:26:20]OFD Sender: No OFD packet to send [12:26:25]OFD Sender: No OFD packet to send [12:26:30]OFD Sender: No OFD packet to send [12:26:35]OFD Sender: No OFD packet to send [12:26:40]OFD Sender: No OFD packet to send [12:26:45]OFD Sender: No OFD packet to send [12:26:50]OFD Sender: No OFD packet to send [12:26:55]OFD Sender: No OFD packet to send [12:27:00]OFD Sender: No OFD packet to send [12:27:05]OFD Sender: No OFD packet to send [12:27:10]OFD Sender: No OFD packet to send [12:27:15]OFD Sender: No OFD packet to send [12:27:20]OFD Sender: No OFD packet to send [12:27:25]OFD Sender: No OFD packet to send [12:27:30]OFD Sender: No OFD packet to send [12:27:35]OFD Sender: No OFD packet to send [12:27:40]OFD Sender: No OFD packet to send [12:27:45]OFD Sender: No OFD packet to send [12:27:50]OFD Sender: No OFD packet to send [12:27:55]OFD Sender: No OFD packet to send [12:28:00]OFD Sender: No OFD packet to send [12:28:05]OFD Sender: No OFD packet to send [12:28:10]OFD Sender: No OFD packet to send [12:28:15]OFD Sender: No OFD packet to send [12:28:20]OFD Sender: No OFD packet to send [12:28:25]OFD Sender: No OFD packet to send [12:28:30]OFD Sender: No OFD packet to send [12:28:35]OFD Sender: No OFD packet to send [12:28:40]OFD Sender: No OFD packet to send [12:28:45]OFD Sender: No OFD packet to send [12:28:50]OFD Sender: No OFD packet to send [12:28:55]OFD Sender: No OFD packet to send [12:29:00]OFD Sender: No OFD packet to send [12:29:05]OFD Sender: No OFD packet to send [12:29:10]OFD Sender: No OFD packet to send [12:29:15]OFD Sender: No OFD packet to send [12:29:20]OFD Sender: No OFD packet to send [12:29:25]OFD Sender: No OFD packet to send [12:29:30]OFD Sender: No OFD packet to send [12:29:35]OFD Sender: No OFD packet to send [12:29:40]OFD Sender: No OFD packet to send [12:29:45]OFD Sender: No OFD packet to send [12:29:50]OFD Sender: No OFD packet to send [12:29:55]OFD Sender: No OFD packet to send [12:30:00]OFD Sender: No OFD packet to send [12:30:05]OFD Sender: No OFD packet to send [12:30:10]OFD Sender: No OFD packet to send [12:30:15]OFD Sender: No OFD packet to send [12:30:20]OFD Sender: No OFD packet to send [12:30:25]OFD Sender: No OFD packet to send [12:30:30]OFD Sender: No OFD packet to send [12:30:34]accept exits with 8 [12:30:34]New connection [12:30:34]New thread 3066785124 created [12:30:34]Thread 3066928484 joined [12:30:34]Waiting for new connection... [12:30:34] Sock 8.Parse request [12:30:34]Sock 8.Check first char [12:30:34]Sock 8.First char is OK [12:30:34]request: POST /json_proto HTTP/1.0 [12:30:34]Method: POST [12:30:34]URL: /json_proto [12:30:34]Method is POST - this is cgi request [12:30:34]url: /json_proto [12:30:34]query_string will be loaded in cgi processing [12:30:34]execute_cgi json_proto POST (null) [12:30:34]execute_cgi path=json_proto method=POST [12:30:34]POST find Content-Length [12:30:34]Host: 172.17.45.8:8080 [12:30:34]Content-Length: 1187 [12:30:34]Content-Type: application/json [12:30:34] [12:30:34]POST finish read [12:30:34]Found Content-Length = 1187 [12:30:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150529", "tax_sys" : 0, "items" : [ { "code": "48741194", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:34]execute_script... [12:30: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)150529", "tax_sys" : 0, "items" : [ { "code": "48741194", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:34]POST & json_proto [12:30:34]process_json_proto [12:30:34]json parsed OK: [12:30:34]protocol is kg_v1.0 [12:30:34]action value=close_receipt [12:30:34]process_action close_receipt [12:30:34]cmd_close_receipt [12:30:34]MH_GetDate [12:30:34]Write to MH i2c: F0 00 00 89 15 8D [12:30:34]Write i2c OK [12:30:34]MH_I2C_Read... [12:30:34]Read from MH i2c: F0 [12:30:34]MH_I2C_Read... [12:30:34]Read from MH i2c: F0 09 00 [12:30:34]MH_I2C_Read... [12:30:34]Read from MH i2c: F0 09 00 89 15 00 70 8B A7 66 A6 1F 7F 64 46 [12:30:34]GetLastDocTimeStamp 1722250998 [12:30:34]current date 1722256240 [12:30:34]FM_GetShiftState [12:30:34]SAM_PROTO_GetShiftState [12:30:34]wFMCommunicate request_size=4 [12:30:34]MH_SAM_APDU [12:30:34]CAPDU: 80 13 01 00 [12:30:34]Write to MH i2c: E2 08 00 8A 15 80 13 01 00 00 00 00 00 1C [12:30:34]Write i2c OK [12:30:34]MH_I2C_Read... [12:30:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:34]Read from MH i2c: E2 [12:30:34]MH_I2C_Read... [12:30:34]Read from MH i2c: E2 0E 00 [12:30:34]MH_I2C_Read... [12:30:34]Read from MH i2c: E2 0E 00 8A 15 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 9D [12:30:34]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [12:30:34]wFMCommunicate OK [12:30:34]SAM_PROTO_GetShiftState done [12:30:34]FM_GetShiftState done [12:30:34]opened in 1722213509 [12:30:34]opened+sec_in_day 1722299909 [12:30:34]quantity*price = 14000 [12:30:34]sum+1 = 14001 [12:30:34]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000480302 Напиток энерг Nitro манго-клуб 0.45 ж/б 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 285.00 НСП 1% : 2.52 НДС 12% : 30.27 Наличными: 285.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 34 29.07.2024 12:30 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27131 ФПД: 95246679174836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T123040&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27131&fm=95246679174836&tin=02508201610067®Number=0000000000092663&sum=28500 0 [12:30:35]StoreToDocumentArchive [12:30:35]shift 434 fd 27131 [12:30:35]save to /storage/0434/doc_00027131 [12:30:35]save last doc name /storage/0434/doc_00027131 to /storage/kkm_last_doc_name [12:30:35]save OK [12:30:35]Clear old archive folders... [12:30:35]ProcessDocumentItem done err = 0, tmpTLVsize=499 [12:30:35]tlvbuf is 001AC4E0 [12:30:35]SAM_PROTO_ClearQueue [12:30:35]wFMCommunicate request_size=4 [12:30:35]MH_SAM_APDU [12:30:35]CAPDU: 80 09 00 00 [12:30:35]Write to MH i2c: E2 08 00 97 15 80 09 00 00 00 00 00 00 1E [12:30:35]Write i2c OK [12:30:35]MH_I2C_Read... [12:30:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:36]Read from MH i2c: E2 [12:30:36]MH_I2C_Read... [12:30:36]Read from MH i2c: E2 03 00 [12:30:36]MH_I2C_Read... [12:30:36]Read from MH i2c: E2 03 00 97 15 00 90 00 20 [12:30:36]RAPDU: 90 00 [12:30:36]wFMCommunicate OK [12:30:36]SAM_PROTO_ClearQueue done [12:30:36]KKMCreateOFDPacket [12:30:36]OFDProtocolAddRootSTLVToBuf [12:30:36]FM_MakeSignedData [12:30:36]FM_MakeSignedData [12:30:36]SAM_PROTO_SignData [12:30:36]wFMCommunicate request_size=4 [12:30:36]MH_SAM_APDU [12:30:36]CAPDU: 80 0D 01 02 [12:30:36]Write to MH i2c: E2 08 00 98 15 80 0D 01 02 00 00 00 00 26 [12:30:36]Write i2c OK [12:30:36]MH_I2C_Read... [12:30:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:36]Read from MH i2c: E2 [12:30:36]MH_I2C_Read... [12:30:36]Read from MH i2c: E2 03 00 [12:30:36]MH_I2C_Read... [12:30:36]Read from MH i2c: E2 03 00 98 15 00 90 00 21 [12:30:36]RAPDU: 90 00 [12:30:36]wFMCommunicate OK [12:30:36]wFMCommunicate request_size=255 [12:30:36]MH_SAM_APDU [12:30:36]CAPDU: 80 0D 02 02 FA 03 00 F3 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 31 31 39 34 06 04 1D 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 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 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 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 [12:30:36]Write to MH i2c: E2 02 01 99 15 80 0D 02 02 FA 00 03 00 F3 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 31 31 39 34 06 04 1D 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 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 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 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 00 00 D7 [12:30:36]Write i2c OK [12:30:36]MH_I2C_Read... [12:30:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:36]Read from MH i2c: E2 [12:30:36]MH_I2C_Read... [12:30:36]Read from MH i2c: E2 03 00 [12:30:36]MH_I2C_Read... [12:30:36]Read from MH i2c: E2 03 00 99 15 00 90 00 22 [12:30:36]RAPDU: 90 00 [12:30:36]wFMCommunicate OK [12:30:36]wFMCommunicate request_size=255 [12:30:36]MH_SAM_APDU [12:30:36]CAPDU: 80 0D 02 02 FA D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 70 8B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 FB 69 00 00 35 04 06 00 56 A0 58 [12:30:36]Write to MH i2c: E2 02 01 9A 15 80 0D 02 02 FA 00 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 70 8B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 FB 69 00 00 35 04 06 00 56 A0 58 00 00 00 [12:30:36]Write i2c OK [12:30:36]MH_I2C_Read... [12:30:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:36]Read from MH i2c: E2 [12:30:36]MH_I2C_Read... [12:30:36]Read from MH i2c: E2 03 00 [12:30:36]MH_I2C_Read... [12:30:36]Read from MH i2c: E2 03 00 9A 15 00 90 00 23 [12:30:36]RAPDU: 90 00 [12:30:36]wFMCommunicate OK [12:30:36]wFMCommunicate request_size=8 [12:30:36]MH_SAM_APDU [12:30:36]CAPDU: 80 0D 02 02 03 7A 6E B4 [12:30:36]Write to MH i2c: E2 0B 00 9B 15 80 0D 02 02 03 00 7A 6E B4 00 00 CC [12:30:36]Write i2c OK [12:30:36]MH_I2C_Read... [12:30:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:37]Read from MH i2c: E2 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: E2 03 00 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: E2 03 00 9B 15 00 90 00 24 [12:30:37]RAPDU: 90 00 [12:30:37]wFMCommunicate OK [12:30:37]wFMCommunicate request_size=4 [12:30:37]MH_SAM_APDU [12:30:37]CAPDU: 80 0D 03 02 [12:30:37]Write to MH i2c: E2 08 00 9C 15 80 0D 03 02 00 00 00 00 2C [12:30:37]Write i2c OK [12:30:37]MH_I2C_Read... [12:30:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:37]Read from MH i2c: E2 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: E2 0B 00 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: E2 0B 00 9C 15 00 B0 F6 81 E0 DA 36 6B 4E 90 00 FD [12:30:37]RAPDU: B0 F6 81 E0 DA 36 6B 4E 90 00 [12:30:37]wFMCommunicate OK [12:30:37]SAM_PROTO_SignData done [12:30:37]FM_MakeSignedData done [12:30:37]CreateOFDProtocolMessage [12:30:37]wFMCommunicate request_size=4 [12:30:37]MH_SAM_APDU [12:30:37]CAPDU: 80 11 00 00 [12:30:37]Write to MH i2c: E2 08 00 9D 15 80 11 00 00 00 00 00 00 2C [12:30:37]Write i2c OK [12:30:37]MH_I2C_Read... [12:30:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:37]Read from MH i2c: E2 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: E2 17 00 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: E2 17 00 9D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 85 [12:30:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [12:30:37]wFMCommunicate OK [12:30:37]CreateOFDProtocolMessage done [12:30:37]OFDSenderStorePacket 27131 [12:30:37]StoreOFDPacket docnum=27131 [12:30:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 07 02 00 00 64 41 FF 01 88 2E 5A 03 01 00 03 00 F3 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 31 31 39 34 06 04 1D 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 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 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 70 8B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 FB 69 00 00 35 04 06 00 56 A0 58 7A 6E B4 B0 F6 81 E0 DA 36 6B 4E [12:30:37]CheckFolder [12:30:37]dirname=/storage/ofd_packets [12:30:37]CheckFolder done [12:30:37]ProducePacketName [12:30:37]name=ofd_packets/00027131 [12:30:37]NVStorageSaveData ofd_packets/00027131 [12:30:37]File name is /storage/ofd_packets/00027131 [12:30:37]Write 549 bytes [12:30:37]NVStorageSaveData done [12:30:37]OFDSenderStorePacket done [12:30:37]KKMCreateOFDPacket done [12:30:37]NVStorageSaveData kkm_last_timestamp [12:30:37]File name is /storage/kkm_last_timestamp [12:30:37]Write 4 bytes [12:30:37]NVStorageSaveData done [12:30:37]ExternCall_PrintAddStr [12:30:37]wPrintStart [12:30:37]Write to MH i2c: 01 00 00 9E 15 B3 [12:30:37]Write i2c OK [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: 01 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: 01 07 00 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: 01 07 00 9E 15 00 00 00 00 00 FF 0F C8 [12:30:37]RasterBufferAndPrint [12:30:37]line Счет N : (3)150529 [12:30:37]line ИНН: 02508201610067 [12:30:37]line Контрольно-Кассовый Чек [12:30:37]line ПРОДАЖА [12:30:37]line Товар: 48741194 [12:30:37]line Сигареты Winston Blue [12:30:37]line 1.000 * 140.00 [12:30:37]line = 140.00 [12:30:37]line НДС 12% НСП 1% [12:30:37]line > о реализуемом товаре [12:30:37]line Товар: 4700000160358 [12:30:37]line Вода Легенда 1л [12:30:37]line 1.000 * 50.00 [12:30:37]line = 50.00 [12:30:37]line НДС 12% НСП 1% [12:30:37]line > о реализуемом товаре [12:30:37]line Товар: 4700000480302 [12:30:37]line Напиток энерг Nitro манго-клуб 0.45 ж/б [12:30:37]line 1.000 * 95.00 [12:30:37]line = 95.00 [12:30:37]line НДС 12% НСП 1% [12:30:37]line > о реализуемом товаре [12:30:37]line ИТОГО: 285.00 [12:30:37]line НСП 1% : 2.52 [12:30:37]line НДС 12% : 30.27 [12:30:37]line Наличными: 285.00 [12:30:37]line Безнал.: 0.00 [12:30:37]line Место: АЗС № 134 "Партнер Нефть" [12:30:37]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:30:37]line СНО: Общий режим [12:30:37]line Чек 34 29.07.2024 12:30 [12:30:37]line Смена: 434 ФФД: 1.0 [12:30:37]line ЗНМ: 0300000043 [12:30:37]line РНМ: 0000000000092663 [12:30:37]line Версия ККМ: 001 [12:30:37]line ФМ: 0000000000874937 [12:30:37]line ФД: 27131 [12:30:37]line ФПД: 95246679174836 [12:30:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T123040&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27131&fm=95246679174836&tin=02508201610067®Number=0000000000092663&sum=28500 [12:30:37]OFD Sender: Processing packet 27131 [packets to send 9, broken 8] [12:30:37]ProducePacketName [12:30:37]name=ofd_packets/00027131 [12:30:37]OFD Sender: To server: pG, [12:30:37]CommunicateWithHost lk.salyk.kg:30040 [12:30:37]ConnectInit lk.salyk.kg [12:30:37]line 0 [12:30:37]written 0, free lines is 4095 [12:30:37]Connected sock=10 [12:30:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 07 02 00 00 64 41 FF 01 88 2E 5A 03 01 00 03 00 F3 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 31 31 39 34 06 04 1D 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 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 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 70 8B A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 FB 69 00 00 35 04 06 00 56 A0 58 7A 6E B4 B0 F6 81 E0 DA 36 6B 4E [12:30:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 DF A4 47 00 92 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 FB 69 00 00 F4 03 04 00 C1 31 A7 66 B6 04 01 00 00 F8 C9 B0 C4 6E 21 5A 05 [12:30:37]CommunicateWithHost err = 0 [12:30:37]CheckOFDResponse [12:30:37]1017 (14) - 77093643461234 [12:30:37]1041 (16) - 0000000000874937 [12:30:37]1040 (4) - 27131 [12:30:37]1012 (4) - 29.07.2024 06:08 [12:30:37]1206 (1) - 0 [12:30:37]OFD Sender: Remove packet 27131 [12:30:37]ProducePacketName [12:30:37]name=ofd_packets/00027131 [12:30:37]NVStorageDeleteData [12:30:38]Write to MH i2c: 01 00 00 D2 15 E7 [12:30:38]Write i2c OK [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: 01 [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: 01 07 00 [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: 01 07 00 D2 15 00 00 00 00 00 36 0C 30 [12:30:38]RasterBufferAndPrint [12:30:38]line [12:30:38]line [12:30:38]line [12:30:38]line [12:30:38]line [12:30:38]written 0, free lines is 3132 [12:30:38]MH_Cut [12:30:38]Write to MH i2c: D1 01 00 D9 15 01 C0 [12:30:38]Write i2c OK [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: D1 [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: D1 01 00 [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: D1 01 00 D9 15 00 BF [12:30:38]Write to MH i2c: 01 00 00 DA 15 EF [12:30:38]Write i2c OK [12:30:38]MH_I2C_Read... [12:30:38]OFD Sender: No OFD packet to send [12:30:38]*** Cut start [12:30:38]*** Partial cut [12:30:38]*** CUTSNS_PIN = 1 [12:30:38]*** CUTSNS_PIN = 0 [12:30:39]*** Brake cut motor [12:30:39]Read from MH i2c: 01 [12:30:39]MH_I2C_Read... [12:30:39]*** Stop cut motor [12:30:39]*** Cut end [12:30:39]Read from MH i2c: 01 07 00 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: 01 07 00 DA 15 00 00 00 00 00 FF 0F 04 [12:30:39]process_action close_receipt done [12:30:39]requested_data is exist [12:30:39]produce_requested_data [12:30:39]requested_item fm.sn is exist - process it [12:30:39]wFMCommunicate request_size=4 [12:30:39]MH_SAM_APDU [12:30:39]CAPDU: 80 11 00 00 [12:30:39]Write to MH i2c: E2 08 00 DB 15 80 11 00 00 00 00 00 00 6A [12:30:39]Write i2c OK [12:30:39]MH_I2C_Read... [12:30:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:39]Read from MH i2c: E2 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 17 00 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 17 00 DB 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 C3 [12:30:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [12:30:39]wFMCommunicate OK [12:30:39]requested_item fd.num is exist - process it [12:30:39]SAM_PROTO_GetFieldsCounters [12:30:39]wFMCommunicate request_size=4 [12:30:39]MH_SAM_APDU [12:30:39]CAPDU: 80 13 00 00 [12:30:39]Write to MH i2c: E2 08 00 DC 15 80 13 00 00 00 00 00 00 6D [12:30:39]Write i2c OK [12:30:39]MH_I2C_Read... [12:30:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:39]Read from MH i2c: E2 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 62 00 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 62 00 DC 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 FB 69 00 00 0E 04 04 00 B2 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 12 [12:30:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 FB 69 00 00 0E 04 04 00 B2 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 [12:30:39]wFMCommunicate OK [12:30:39]SAM_PROTO_GetFieldsCounters done [12:30:39]requested_item shift.num is exist - process it [12:30:39]requested_item shift.opened is exist - process it [12:30:39]req_shift_opened [12:30:39]FM_GetShiftState [12:30:39]SAM_PROTO_GetShiftState [12:30:39]wFMCommunicate request_size=4 [12:30:39]MH_SAM_APDU [12:30:39]CAPDU: 80 13 01 00 [12:30:39]Write to MH i2c: E2 08 00 DD 15 80 13 01 00 00 00 00 00 6F [12:30:39]Write i2c OK [12:30:39]MH_I2C_Read... [12:30:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:39]Read from MH i2c: E2 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 0E 00 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 0E 00 DD 15 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 F0 [12:30:39]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [12:30:39]wFMCommunicate OK [12:30:39]SAM_PROTO_GetShiftState done [12:30:39]FM_GetShiftState done [12:30:39]req_shift_opened done [12:30:39]requested_item shift.open_date is exist - process it [12:30:39]req_shift_open_date [12:30:39]req_shift_open_date done [12:30:39]produce_requested_data done [12:30:39]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27131,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [12:30:39]process_action_free close_receipt [12:30:39]json_value_free [12:30:39]json_value_free done [12:30:39]process_json_proto returns [12:30:39]Send response to host [12:30:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27131,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [12:30:39]free response buf [12:30:39]execute_script done [12:30:39]execute_script returns [12:30:39]free content buf [12:30:39]Sock 8.Close socket [12:30:39]Sock 8.Thread stoped [12:30:43]OFD Sender: No OFD packet to send [12:30:48]OFD Sender: No OFD packet to send [12:30:53]OFD Sender: No OFD packet to send [12:30:58]OFD Sender: No OFD packet to send [12:31:03]OFD Sender: No OFD packet to send [12:31:08]OFD Sender: No OFD packet to send [12:31:13]OFD Sender: No OFD packet to send [12:31:18]OFD Sender: No OFD packet to send [12:31:23]OFD Sender: No OFD packet to send [12:31:28]OFD Sender: No OFD packet to send [12:31:33]OFD Sender: No OFD packet to send [12:31:38]OFD Sender: No OFD packet to send [12:31:43]OFD Sender: No OFD packet to send [12:31:48]OFD Sender: No OFD packet to send [12:31:53]OFD Sender: No OFD packet to send [12:31:58]OFD Sender: No OFD packet to send [12:32:03]OFD Sender: No OFD packet to send [12:32:08]OFD Sender: No OFD packet to send [12:32:13]OFD Sender: No OFD packet to send [12:32:18]OFD Sender: No OFD packet to send [12:32:23]OFD Sender: No OFD packet to send [12:32:28]OFD Sender: No OFD packet to send [12:32:33]OFD Sender: No OFD packet to send [12:32:38]OFD Sender: No OFD packet to send [12:32:43]OFD Sender: No OFD packet to send [12:32:48]OFD Sender: No OFD packet to send [12:32:53]OFD Sender: No OFD packet to send [12:32:58]OFD Sender: No OFD packet to send [12:33:03]OFD Sender: No OFD packet to send [12:33:08]OFD Sender: No OFD packet to send [12:33:13]OFD Sender: No OFD packet to send [12:33:18]OFD Sender: No OFD packet to send [12:33:23]OFD Sender: No OFD packet to send [12:33:28]OFD Sender: No OFD packet to send [12:33:33]OFD Sender: No OFD packet to send [12:33:38]OFD Sender: No OFD packet to send [12:33:43]OFD Sender: No OFD packet to send [12:33:44]accept exits with 9 [12:33:44]New connection [12:33:44]New thread 3066928484 created [12:33:44]Thread 3066785124 joined [12:33:44]Waiting for new connection... [12:33:44] Sock 9.Parse request [12:33:44]Sock 9.Check first char [12:33:44]Sock 9.First char is OK [12:33:44]request: POST /json_proto HTTP/1.0 [12:33:44]Method: POST [12:33:44]URL: /json_proto [12:33:44]Method is POST - this is cgi request [12:33:44]url: /json_proto [12:33:44]query_string will be loaded in cgi processing [12:33:44]execute_cgi json_proto POST (null) [12:33:44]execute_cgi path=json_proto method=POST [12:33:44]POST find Content-Length [12:33:44]Host: 172.17.45.8:8080 [12:33:44]Content-Length: 696 [12:33:44]Content-Type: application/json [12:33:44] [12:33:44]POST finish read [12:33:44]Found Content-Length = 696 [12:33:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150530", "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" : 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" ] } } [12:33:44]execute_script... [12:33: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)150530", "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" : 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" ] } } [12:33:44]POST & json_proto [12:33:44]process_json_proto [12:33:44]json parsed OK: [12:33:44]protocol is kg_v1.0 [12:33:44]action value=close_receipt [12:33:44]process_action close_receipt [12:33:44]cmd_close_receipt [12:33:44]MH_GetDate [12:33:44]Write to MH i2c: F0 00 00 DE 15 E2 [12:33:44]Write i2c OK [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: F0 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: F0 09 00 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: F0 09 00 DE 15 00 2D 8C A7 66 A6 1F 7F 64 59 [12:33:44]GetLastDocTimeStamp 1722256240 [12:33:44]current date 1722256429 [12:33:44]FM_GetShiftState [12:33:44]SAM_PROTO_GetShiftState [12:33:44]wFMCommunicate request_size=4 [12:33:44]MH_SAM_APDU [12:33:44]CAPDU: 80 13 01 00 [12:33:44]Write to MH i2c: E2 08 00 DF 15 80 13 01 00 00 00 00 00 71 [12:33:44]Write i2c OK [12:33:44]MH_I2C_Read... [12:33:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:44]Read from MH i2c: E2 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: E2 0E 00 [12:33:44]MH_I2C_Read... [12:33:44]Read from MH i2c: E2 0E 00 DF 15 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 F2 [12:33:44]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [12:33:44]wFMCommunicate OK [12:33:44]SAM_PROTO_GetShiftState done [12:33:44]FM_GetShiftState done [12:33:44]opened in 1722213509 [12:33:44]opened+sec_in_day 1722299909 [12:33:44]quantity*price = 11000 [12:33:44]sum+1 = 11001 [12:33:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 35 29.07.2024 12:33 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27132 ФПД: 190057675450437 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T123349&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27132&fm=190057675450437&tin=02508201610067®Number=0000000000092663&sum=11000 0 [12:33:45]StoreToDocumentArchive [12:33:45]shift 434 fd 27132 [12:33:45]save to /storage/0434/doc_00027132 [12:33:45]save last doc name /storage/0434/doc_00027132 to /storage/kkm_last_doc_name [12:33:45]save OK [12:33:45]Clear old archive folders... [12:33:45]ProcessDocumentItem done err = 0, tmpTLVsize=296 [12:33:45]tlvbuf is B6EA2240 [12:33:45]SAM_PROTO_ClearQueue [12:33:45]wFMCommunicate request_size=4 [12:33:45]MH_SAM_APDU [12:33:45]CAPDU: 80 09 00 00 [12:33:45]Write to MH i2c: E2 08 00 EC 15 80 09 00 00 00 00 00 00 73 [12:33:45]Write i2c OK [12:33:45]MH_I2C_Read... [12:33:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:45]Read from MH i2c: E2 [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: E2 03 00 [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: E2 03 00 EC 15 00 90 00 75 [12:33:45]RAPDU: 90 00 [12:33:45]wFMCommunicate OK [12:33:45]SAM_PROTO_ClearQueue done [12:33:45]KKMCreateOFDPacket [12:33:45]OFDProtocolAddRootSTLVToBuf [12:33:45]FM_MakeSignedData [12:33:45]FM_MakeSignedData [12:33:45]SAM_PROTO_SignData [12:33:45]wFMCommunicate request_size=4 [12:33:45]MH_SAM_APDU [12:33:45]CAPDU: 80 0D 01 02 [12:33:45]Write to MH i2c: E2 08 00 ED 15 80 0D 01 02 00 00 00 00 7B [12:33:45]Write i2c OK [12:33:45]MH_I2C_Read... [12:33:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:45]Read from MH i2c: E2 [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: E2 03 00 [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: E2 03 00 ED 15 00 90 00 76 [12:33:45]RAPDU: 90 00 [12:33:45]wFMCommunicate OK [12:33:45]wFMCommunicate request_size=255 [12:33:45]MH_SAM_APDU [12:33:45]CAPDU: 80 0D 02 02 FA 03 00 28 01 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 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 23 00 00 00 F4 03 04 00 2D 8C A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [12:33:45]Write to MH i2c: E2 02 01 EE 15 80 0D 02 02 FA 00 03 00 28 01 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 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 23 00 00 00 F4 03 04 00 2D 8C A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 95 [12:33:45]Write i2c OK [12:33:45]MH_I2C_Read... [12:33:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:45]Read from MH i2c: E2 [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: E2 03 00 [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: E2 03 00 EE 15 00 90 00 77 [12:33:45]RAPDU: 90 00 [12:33:45]wFMCommunicate OK [12:33:45]wFMCommunicate request_size=55 [12:33:45]MH_SAM_APDU [12:33:45]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 FC 69 00 00 35 04 06 00 AC DB 40 3B 68 45 [12:33:45]Write to MH i2c: E2 3A 00 EF 15 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 FC 69 00 00 35 04 06 00 AC DB 40 3B 68 45 00 00 F2 [12:33:45]Write i2c OK [12:33:45]MH_I2C_Read... [12:33:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:45]Read from MH i2c: E2 [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: E2 03 00 [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: E2 03 00 EF 15 00 90 00 78 [12:33:45]RAPDU: 90 00 [12:33:45]wFMCommunicate OK [12:33:45]wFMCommunicate request_size=4 [12:33:45]MH_SAM_APDU [12:33:45]CAPDU: 80 0D 03 02 [12:33:45]Write to MH i2c: E2 08 00 F0 15 80 0D 03 02 00 00 00 00 80 [12:33:45]Write i2c OK [12:33:45]MH_I2C_Read... [12:33:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:45]Read from MH i2c: E2 [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: E2 0B 00 [12:33:45]MH_I2C_Read... [12:33:45]Read from MH i2c: E2 0B 00 F0 15 00 E4 35 CA F4 10 AA 07 90 90 00 A9 [12:33:45]RAPDU: E4 35 CA F4 10 AA 07 90 90 00 [12:33:45]wFMCommunicate OK [12:33:45]SAM_PROTO_SignData done [12:33:45]FM_MakeSignedData done [12:33:45]CreateOFDProtocolMessage [12:33:45]wFMCommunicate request_size=4 [12:33:45]MH_SAM_APDU [12:33:45]CAPDU: 80 11 00 00 [12:33:45]Write to MH i2c: E2 08 00 F1 15 80 11 00 00 00 00 00 00 80 [12:33:45]Write i2c OK [12:33:45]MH_I2C_Read... [12:33:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:46]Read from MH i2c: E2 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 17 00 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: E2 17 00 F1 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 D9 [12:33:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [12:33:46]wFMCommunicate OK [12:33:46]CreateOFDProtocolMessage done [12:33:46]OFDSenderStorePacket 27132 [12:33:46]StoreOFDPacket docnum=27132 [12:33:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 3C 01 00 00 80 6E 34 01 F9 A4 5A 03 01 00 03 00 28 01 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 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 23 00 00 00 F4 03 04 00 2D 8C A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 FC 69 00 00 35 04 06 00 AC DB 40 3B 68 45 E4 35 CA F4 10 AA 07 90 [12:33:46]CheckFolder [12:33:46]dirname=/storage/ofd_packets [12:33:46]CheckFolder done [12:33:46]ProducePacketName [12:33:46]name=ofd_packets/00027132 [12:33:46]NVStorageSaveData ofd_packets/00027132 [12:33:46]File name is /storage/ofd_packets/00027132 [12:33:46]Write 346 bytes [12:33:46]NVStorageSaveData done [12:33:46]OFDSenderStorePacket done [12:33:46]KKMCreateOFDPacket done [12:33:46]NVStorageSaveData kkm_last_timestamp [12:33:46]File name is /storage/kkm_last_timestamp [12:33:46]Write 4 bytes [12:33:46]NVStorageSaveData done [12:33:46]ExternCall_PrintAddStr [12:33:46]wPrintStart [12:33:46]Write to MH i2c: 01 00 00 F2 15 07 [12:33:46]Write i2c OK [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: 01 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: 01 07 00 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: 01 07 00 F2 15 00 00 00 00 00 FF 0F 1C [12:33:46]RasterBufferAndPrint [12:33:46]line Счет N : (3)150530 [12:33:46]line ИНН: 02508201610067 [12:33:46]line Контрольно-Кассовый Чек [12:33:46]line ПРОДАЖА [12:33:46]line Товар: 4870202521261 [12:33:46]line Напиток MAXI чай 1,2 лесные ягоды [12:33:46]line 1.000 * 110.00 [12:33:46]line = 110.00 [12:33:46]line НДС 12% НСП 1% [12:33:46]line > о реализуемом товаре [12:33:46]line ИТОГО: 110.00 [12:33:46]line НСП 1% : 0.97 [12:33:46]line НДС 12% : 11.68 [12:33:46]line Наличными: 110.00 [12:33:46]line Безнал.: 0.00 [12:33:46]line Место: АЗС № 134 "Партнер Нефть" [12:33:46]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:33:46]line СНО: Общий режим [12:33:46]line Чек 35 29.07.2024 12:33 [12:33:46]line Смена: 434 ФФД: 1.0 [12:33:46]line ЗНМ: 0300000043 [12:33:46]line РНМ: 0000000000092663 [12:33:46]line Версия ККМ: 001 [12:33:46]line ФМ: 0000000000874937 [12:33:46]line ФД: 27132 [12:33:46]line ФПД: 190057675450437 [12:33:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T123349&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27132&fm=190057675450437&tin=02508201610067®Number=0000000000092663&sum=11000 [12:33:46]line 0 [12:33:46]OFD Sender: Processing packet 27132 [packets to send 9, broken 8] [12:33:46]ProducePacketName [12:33:46]name=ofd_packets/00027132 [12:33:46]OFD Sender: To server: pG, [12:33:46]CommunicateWithHost lk.salyk.kg:30040 [12:33:46]ConnectInit lk.salyk.kg [12:33:46]written 0, free lines is 4095 [12:33:46]Write to MH i2c: 01 00 00 1A 16 30 [12:33:46]Write i2c OK [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: 01 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: 01 07 00 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: 01 07 00 1A 16 00 00 00 00 00 D2 0C 15 [12:33:46]RasterBufferAndPrint [12:33:46]line [12:33:46]line [12:33:46]line [12:33:46]line [12:33:46]line [12:33:46]written 0, free lines is 3286 [12:33:46]MH_Cut [12:33:46]Write to MH i2c: D1 01 00 21 16 01 09 [12:33:46]Write i2c OK [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: D1 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: D1 01 00 [12:33:46]MH_I2C_Read... [12:33:46]Read from MH i2c: D1 01 00 21 16 00 08 [12:33:46]Write to MH i2c: 01 00 00 22 16 38 [12:33:46]Write i2c OK [12:33:46]MH_I2C_Read... [12:33:47]*** Cut start [12:33:47]*** Partial cut [12:33:47]*** CUTSNS_PIN = 1 [12:33:47]*** CUTSNS_PIN = 0 [12:33:47]*** Brake cut motor [12:33:48]Read from MH i2c: 01 [12:33:48]MH_I2C_Read... [12:33:48]*** Stop cut motor [12:33:48]*** Cut end [12:33:48]Read from MH i2c: 01 07 00 [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: 01 07 00 22 16 00 00 00 00 00 FF 0F 4D [12:33:48]process_action close_receipt done [12:33:48]requested_data is exist [12:33:48]produce_requested_data [12:33:48]requested_item fm.sn is exist - process it [12:33:48]wFMCommunicate request_size=4 [12:33:48]MH_SAM_APDU [12:33:48]CAPDU: 80 11 00 00 [12:33:48]Write to MH i2c: E2 08 00 23 16 80 11 00 00 00 00 00 00 B3 [12:33:48]Write i2c OK [12:33:48]MH_I2C_Read... [12:33:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:48]Read from MH i2c: E2 [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: E2 17 00 [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: E2 17 00 23 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 0C [12:33:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [12:33:48]wFMCommunicate OK [12:33:48]requested_item fd.num is exist - process it [12:33:48]SAM_PROTO_GetFieldsCounters [12:33:48]wFMCommunicate request_size=4 [12:33:48]MH_SAM_APDU [12:33:48]CAPDU: 80 13 00 00 [12:33:48]Write to MH i2c: E2 08 00 24 16 80 13 00 00 00 00 00 00 B6 [12:33:48]Write i2c OK [12:33:48]MH_I2C_Read... [12:33:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:48]Read from MH i2c: E2 [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: E2 62 00 [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: E2 62 00 24 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 FC 69 00 00 0E 04 04 00 B2 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 5F [12:33:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 FC 69 00 00 0E 04 04 00 B2 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 [12:33:48]wFMCommunicate OK [12:33:48]SAM_PROTO_GetFieldsCounters done [12:33:48]requested_item shift.num is exist - process it [12:33:48]requested_item shift.opened is exist - process it [12:33:48]req_shift_opened [12:33:48]FM_GetShiftState [12:33:48]SAM_PROTO_GetShiftState [12:33:48]wFMCommunicate request_size=4 [12:33:48]MH_SAM_APDU [12:33:48]CAPDU: 80 13 01 00 [12:33:48]Write to MH i2c: E2 08 00 25 16 80 13 01 00 00 00 00 00 B8 [12:33:48]Write i2c OK [12:33:48]MH_I2C_Read... [12:33:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:48]Read from MH i2c: E2 [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: E2 0E 00 [12:33:48]MH_I2C_Read... [12:33:48]Read from MH i2c: E2 0E 00 25 16 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 39 [12:33:48]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [12:33:48]wFMCommunicate OK [12:33:48]SAM_PROTO_GetShiftState done [12:33:48]FM_GetShiftState done [12:33:48]req_shift_opened done [12:33:48]requested_item shift.open_date is exist - process it [12:33:48]req_shift_open_date [12:33:48]req_shift_open_date done [12:33:48]produce_requested_data done [12:33:48]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27132,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [12:33:48]process_action_free close_receipt [12:33:48]json_value_free [12:33:48]json_value_free done [12:33:48]process_json_proto returns [12:33:48]Send response to host [12:33:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27132,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [12:33:48]free response buf [12:33:48]execute_script done [12:33:48]execute_script returns [12:33:48]free content buf [12:33:48]Sock 9.Close socket [12:33:48]Sock 9.Thread stoped [12:35:33]accept exits with 8 [12:35:33]New connection [12:35:33]New thread 3066785124 created [12:35:33]Thread 3066928484 joined [12:35:33]Waiting for new connection... [12:35:33] Sock 8.Parse request [12:35:33]Sock 8.Check first char [12:35:33]Sock 8.First char is OK [12:35:33]request: POST /json_proto HTTP/1.0 [12:35:33]Method: POST [12:35:33]URL: /json_proto [12:35:33]Method is POST - this is cgi request [12:35:33]url: /json_proto [12:35:33]query_string will be loaded in cgi processing [12:35:33]execute_cgi json_proto POST (null) [12:35:33]execute_cgi path=json_proto method=POST [12:35:33]POST find Content-Length [12:35:33]Host: 172.17.45.8:8080 [12:35:33]Content-Length: 689 [12:35:33]Content-Type: application/json [12:35:33] [12:35:33]POST finish read [12:35:33]Found Content-Length = 689 [12:35:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150531", "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" ] } } [12:35:33]execute_script... [12:35: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)150531", "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" ] } } [12:35:33]POST & json_proto [12:35:33]process_json_proto [12:35:33]json parsed OK: [12:35:33]protocol is kg_v1.0 [12:35:33]action value=close_receipt [12:35:33]process_action close_receipt [12:35:33]cmd_close_receipt [12:35:33]MH_GetDate [12:35:33]Write to MH i2c: F0 00 00 26 16 2B [12:35:33]Write i2c OK [12:35:33]MH_I2C_Read... [12:35:33]Read from MH i2c: F0 [12:35:33]MH_I2C_Read... [12:35:33]Read from MH i2c: F0 09 00 [12:35:33]MH_I2C_Read... [12:35:33]Read from MH i2c: F0 09 00 26 16 00 9A 8C A7 66 A6 1F 7F 64 0F [12:35:33]GetLastDocTimeStamp 1722256429 [12:35:33]current date 1722256538 [12:35:33]FM_GetShiftState [12:35:33]SAM_PROTO_GetShiftState [12:35:33]wFMCommunicate request_size=4 [12:35:33]MH_SAM_APDU [12:35:33]CAPDU: 80 13 01 00 [12:35:33]Write to MH i2c: E2 08 00 27 16 80 13 01 00 00 00 00 00 BA [12:35:33]Write i2c OK [12:35:33]MH_I2C_Read... [12:35:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:33]Read from MH i2c: E2 [12:35:33]MH_I2C_Read... [12:35:33]Read from MH i2c: E2 0E 00 [12:35:33]MH_I2C_Read... [12:35:33]Read from MH i2c: E2 0E 00 27 16 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 3B [12:35:33]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [12:35:33]wFMCommunicate OK [12:35:33]SAM_PROTO_GetShiftState done [12:35:33]FM_GetShiftState done [12:35:33]opened in 1722213509 [12:35:33]opened+sec_in_day 1722299909 [12:35:33]quantity*price = 8100 [12:35:33]sum+1 = 8101 [12:35:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 81.00 НСП 1% : 0.72 НДС 12% : 8.60 Наличными: 81.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 36 29.07.2024 12:35 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27133 ФПД: 60859326093033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T123539&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27133&fm=60859326093033&tin=02508201610067®Number=0000000000092663&sum=8100 0 [12:35:34]StoreToDocumentArchive [12:35:34]shift 434 fd 27133 [12:35:34]save to /storage/0434/doc_00027133 [12:35:34]save last doc name /storage/0434/doc_00027133 to /storage/kkm_last_doc_name [12:35:34]save OK [12:35:34]Clear old archive folders... [12:35:34]ProcessDocumentItem done err = 0, tmpTLVsize=292 [12:35:34]tlvbuf is B6EA2090 [12:35:34]SAM_PROTO_ClearQueue [12:35:34]wFMCommunicate request_size=4 [12:35:34]MH_SAM_APDU [12:35:34]CAPDU: 80 09 00 00 [12:35:34]Write to MH i2c: E2 08 00 34 16 80 09 00 00 00 00 00 00 BC [12:35:34]Write i2c OK [12:35:34]MH_I2C_Read... [12:35:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:35:34]Read from MH i2c: E2 [12:35:34]MH_I2C_Read... [12:35:34]Read from MH i2c: E2 03 00 [12:35:34]MH_I2C_Read... [12:35:34]Read from MH i2c: E2 03 00 34 16 00 90 00 BE [12:35:34]RAPDU: 90 00 [12:35:34]wFMCommunicate OK [12:35:34]SAM_PROTO_ClearQueue done [12:35:34]KKMCreateOFDPacket [12:35:34]OFDProtocolAddRootSTLVToBuf [12:35:34]FM_MakeSignedData [12:35:34]FM_MakeSignedData [12:35:34]SAM_PROTO_SignData [12:35:34]wFMCommunicate request_size=4 [12:35:34]MH_SAM_APDU [12:35:34]CAPDU: 80 0D 01 02 [12:35:34]Write to MH i2c: E2 08 00 35 16 80 0D 01 02 00 00 00 00 C4 [12:35:34]Write i2c OK [12:35:34]MH_I2C_Read... [12:35:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:35:34]Read from MH i2c: E2 [12:35:34]MH_I2C_Read... [12:35:34]Read from MH i2c: E2 03 00 [12:35:34]MH_I2C_Read... [12:35:34]Read from MH i2c: E2 03 00 35 16 00 90 00 BF [12:35:34]RAPDU: 90 00 [12:35:34]wFMCommunicate OK [12:35:34]wFMCommunicate request_size=255 [12:35:34]MH_SAM_APDU [12:35:34]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 24 00 00 00 F4 03 04 00 9B 8C A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [12:35:34]Write to MH i2c: E2 02 01 36 16 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 24 00 00 00 F4 03 04 00 9B 8C A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 06 [12:35:34]Write i2c OK [12:35:34]MH_I2C_Read... [12:35:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:34]Read from MH i2c: E2 [12:35:34]MH_I2C_Read... [12:35:34]Read from MH i2c: E2 03 00 [12:35:34]MH_I2C_Read... [12:35:34]Read from MH i2c: E2 03 00 36 16 00 90 00 C0 [12:35:34]RAPDU: 90 00 [12:35:34]wFMCommunicate OK [12:35:34]wFMCommunicate request_size=51 [12:35:34]MH_SAM_APDU [12:35:34]CAPDU: 80 0D 02 02 2E 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 FD 69 00 00 35 04 06 00 37 59 EA 83 56 E9 [12:35:34]Write to MH i2c: E2 36 00 37 16 80 0D 02 02 2E 00 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 FD 69 00 00 35 04 06 00 37 59 EA 83 56 E9 00 00 01 [12:35:34]Write i2c OK [12:35:34]MH_I2C_Read... [12:35:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:35]Read from MH i2c: E2 [12:35:35]MH_I2C_Read... [12:35:35]Read from MH i2c: E2 03 00 [12:35:35]MH_I2C_Read... [12:35:35]Read from MH i2c: E2 03 00 37 16 00 90 00 C1 [12:35:35]RAPDU: 90 00 [12:35:35]wFMCommunicate OK [12:35:35]wFMCommunicate request_size=4 [12:35:35]MH_SAM_APDU [12:35:35]CAPDU: 80 0D 03 02 [12:35:35]Write to MH i2c: E2 08 00 38 16 80 0D 03 02 00 00 00 00 C9 [12:35:35]Write i2c OK [12:35:35]MH_I2C_Read... [12:35:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:35:35]Read from MH i2c: E2 [12:35:35]MH_I2C_Read... [12:35:35]Read from MH i2c: E2 0B 00 [12:35:35]MH_I2C_Read... [12:35:35]Read from MH i2c: E2 0B 00 38 16 00 7E 35 2E 30 9F DA 8A 0D 90 00 EB [12:35:35]RAPDU: 7E 35 2E 30 9F DA 8A 0D 90 00 [12:35:35]wFMCommunicate OK [12:35:35]SAM_PROTO_SignData done [12:35:35]FM_MakeSignedData done [12:35:35]CreateOFDProtocolMessage [12:35:35]wFMCommunicate request_size=4 [12:35:35]MH_SAM_APDU [12:35:35]CAPDU: 80 11 00 00 [12:35:35]Write to MH i2c: E2 08 00 39 16 80 11 00 00 00 00 00 00 C9 [12:35:35]Write i2c OK [12:35:35]MH_I2C_Read... [12:35:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:35]Read from MH i2c: E2 [12:35:35]MH_I2C_Read... [12:35:35]Read from MH i2c: E2 17 00 [12:35:35]MH_I2C_Read... [12:35:35]Read from MH i2c: E2 17 00 39 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 22 [12:35:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [12:35:35]wFMCommunicate OK [12:35:35]CreateOFDProtocolMessage done [12:35:35]OFDSenderStorePacket 27133 [12:35:35]StoreOFDPacket docnum=27133 [12:35:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 38 01 00 00 C4 59 30 01 DB 5D 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 24 00 00 00 F4 03 04 00 9B 8C A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 FD 69 00 00 35 04 06 00 37 59 EA 83 56 E9 7E 35 2E 30 9F DA 8A 0D [12:35:35]CheckFolder [12:35:35]dirname=/storage/ofd_packets [12:35:35]CheckFolder done [12:35:35]ProducePacketName [12:35:35]name=ofd_packets/00027133 [12:35:35]NVStorageSaveData ofd_packets/00027133 [12:35:35]File name is /storage/ofd_packets/00027133 [12:35:35]Write 342 bytes [12:35:35]NVStorageSaveData done [12:35:35]OFDSenderStorePacket done [12:35:35]KKMCreateOFDPacket done [12:35:35]NVStorageSaveData kkm_last_timestamp [12:35:35]File name is /storage/kkm_last_timestamp [12:35:35]Write 4 bytes [12:35:35]NVStorageSaveData done [12:35:35]ExternCall_PrintAddStr [12:35:35]wPrintStart [12:35:35]Write to MH i2c: 01 00 00 3A 16 50 [12:35:35]Write i2c OK [12:35:35]MH_I2C_Read... [12:35:35]Read from MH i2c: 01 [12:35:35]MH_I2C_Read... [12:35:35]Read from MH i2c: 01 07 00 [12:35:35]MH_I2C_Read... [12:35:35]Read from MH i2c: 01 07 00 3A 16 00 00 00 00 00 FF 0F 65 [12:35:35]RasterBufferAndPrint [12:35:35]line Счет N : (3)150531 [12:35:35]line ИНН: 02508201610067 [12:35:35]line Контрольно-Кассовый Чек [12:35:35]line ПРОДАЖА [12:35:35]line Товар: 4603290004824 [12:35:35]line Печ зат Яшкино слив Крем 182г [12:35:35]line 1.000 * 81.00 [12:35:35]line = 81.00 [12:35:35]line НДС 12% НСП 1% [12:35:35]line > о реализуемом товаре [12:35:35]line ИТОГО: 81.00 [12:35:35]line НСП 1% : 0.72 [12:35:35]line НДС 12% : 8.60 [12:35:35]line Наличными: 81.00 [12:35:35]line Безнал.: 0.00 [12:35:35]line Место: АЗС № 134 "Партнер Нефть" [12:35:35]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:35:35]line СНО: Общий режим [12:35:35]line Чек 36 29.07.2024 12:35 [12:35:35]line Смена: 434 ФФД: 1.0 [12:35:35]line ЗНМ: 0300000043 [12:35:35]line РНМ: 0000000000092663 [12:35:35]line Версия ККМ: 001 [12:35:35]line ФМ: 0000000000874937 [12:35:35]line ФД: 27133 [12:35:35]line ФПД: 60859326093033 [12:35:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T123539&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27133&fm=60859326093033&tin=02508201610067®Number=0000000000092663&sum=8100 [12:35:35]line 0 [12:35:35]written 0, free lines is 4095 [12:35:35]Write to MH i2c: 01 00 00 62 16 78 [12:35:35]Write i2c OK [12:35:35]MH_I2C_Read... [12:35:35]Read from MH i2c: 01 [12:35:35]MH_I2C_Read... [12:35:35]Read from MH i2c: 01 07 00 [12:35:35]MH_I2C_Read... [12:35:35]Read from MH i2c: 01 07 00 62 16 00 00 00 00 00 DD 0C 68 [12:35:35]RasterBufferAndPrint [12:35:35]line [12:35:35]line [12:35:35]line [12:35:35]line [12:35:35]line [12:35:35]written 0, free lines is 3299 [12:35:35]MH_Cut [12:35:35]Write to MH i2c: D1 01 00 69 16 01 51 [12:35:35]Write i2c OK [12:35:35]MH_I2C_Read... [12:35:35]Read from MH i2c: D1 [12:35:35]MH_I2C_Read... [12:35:35]Read from MH i2c: D1 01 00 [12:35:35]MH_I2C_Read... [12:35:35]Read from MH i2c: D1 01 00 69 16 00 50 [12:35:35]Write to MH i2c: 01 00 00 6A 16 80 [12:35:35]Write i2c OK [12:35:35]MH_I2C_Read... [12:35:36]*** Cut start [12:35:36]*** Partial cut [12:35:36]*** CUTSNS_PIN = 1 [12:35:36]*** CUTSNS_PIN = 0 [12:35:36]*** Brake cut motor [12:35:37]Read from MH i2c: 01 [12:35:37]MH_I2C_Read... [12:35:37]*** Stop cut motor [12:35:37]*** Cut end [12:35:37]Read from MH i2c: 01 07 00 [12:35:37]MH_I2C_Read... [12:35:37]Read from MH i2c: 01 07 00 6A 16 00 00 00 00 00 FF 0F 95 [12:35:37]process_action close_receipt done [12:35:37]requested_data is exist [12:35:37]produce_requested_data [12:35:37]requested_item fm.sn is exist - process it [12:35:37]wFMCommunicate request_size=4 [12:35:37]MH_SAM_APDU [12:35:37]CAPDU: 80 11 00 00 [12:35:37]Write to MH i2c: E2 08 00 6B 16 80 11 00 00 00 00 00 00 FB [12:35:37]Write i2c OK [12:35:37]MH_I2C_Read... [12:35:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:37]Read from MH i2c: E2 [12:35:37]MH_I2C_Read... [12:35:37]Read from MH i2c: E2 17 00 [12:35:37]MH_I2C_Read... [12:35:37]Read from MH i2c: E2 17 00 6B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 54 [12:35:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [12:35:37]wFMCommunicate OK [12:35:37]requested_item fd.num is exist - process it [12:35:37]SAM_PROTO_GetFieldsCounters [12:35:37]wFMCommunicate request_size=4 [12:35:37]MH_SAM_APDU [12:35:37]CAPDU: 80 13 00 00 [12:35:37]Write to MH i2c: E2 08 00 6C 16 80 13 00 00 00 00 00 00 FE [12:35:37]Write i2c OK [12:35:37]MH_I2C_Read... [12:35:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:37]Read from MH i2c: E2 [12:35:37]MH_I2C_Read... [12:35:37]Read from MH i2c: E2 62 00 [12:35:37]MH_I2C_Read... [12:35:37]Read from MH i2c: E2 62 00 6C 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 FD 69 00 00 0E 04 04 00 B2 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 AB [12:35:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 FD 69 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:35:37]wFMCommunicate OK [12:35:37]SAM_PROTO_GetFieldsCounters done [12:35:37]requested_item shift.num is exist - process it [12:35:37]requested_item shift.opened is exist - process it [12:35:37]req_shift_opened [12:35:37]FM_GetShiftState [12:35:37]SAM_PROTO_GetShiftState [12:35:37]wFMCommunicate request_size=4 [12:35:37]MH_SAM_APDU [12:35:37]CAPDU: 80 13 01 00 [12:35:37]Write to MH i2c: E2 08 00 6D 16 80 13 01 00 00 00 00 00 00 [12:35:37]Write i2c OK [12:35:37]MH_I2C_Read... [12:35:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:37]Read from MH i2c: E2 [12:35:37]MH_I2C_Read... [12:35:37]Read from MH i2c: E2 0E 00 [12:35:37]MH_I2C_Read... [12:35:37]Read from MH i2c: E2 0E 00 6D 16 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 81 [12:35:37]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [12:35:37]wFMCommunicate OK [12:35:37]SAM_PROTO_GetShiftState done [12:35:37]FM_GetShiftState done [12:35:37]req_shift_opened done [12:35:37]requested_item shift.open_date is exist - process it [12:35:37]req_shift_open_date [12:35:37]req_shift_open_date done [12:35:37]produce_requested_data done [12:35:37]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27133,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [12:35:37]process_action_free close_receipt [12:35:37]json_value_free [12:35:37]json_value_free done [12:35:37]process_json_proto returns [12:35:37]Send response to host [12:35:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27133,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [12:35:37]free response buf [12:35:37]execute_script done [12:35:37]execute_script returns [12:35:37]free content buf [12:35:37]Sock 8.Close socket [12:35:37]Sock 8.Thread stoped [12:35:58]ConnectInit Can't connect to host [12:35:58]CommunicateWithHost connect error [12:35:58]CommunicateWithHost err = -1 [12:35:58]OFD Sender: Server communicate error [12:35:58]OFD Sender: Processing packet 27132 [packets to send 10, broken 8] [12:35:58]ProducePacketName [12:35:58]name=ofd_packets/00027132 [12:35:58]OFD Sender: To server: pG, [12:35:58]CommunicateWithHost lk.salyk.kg:30040 [12:35:58]ConnectInit lk.salyk.kg [12:35:59]Connected sock=8 [12:35:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 3C 01 00 00 80 6E 34 01 F9 A4 5A 03 01 00 03 00 28 01 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 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 23 00 00 00 F4 03 04 00 2D 8C A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 FC 69 00 00 35 04 06 00 AC DB 40 3B 68 45 E4 35 CA F4 10 AA 07 90 [12:35:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 09 AF 47 00 93 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 FC 69 00 00 F4 03 04 00 03 33 A7 66 B6 04 01 00 00 82 B8 55 B7 13 12 04 ED [12:35:59]CommunicateWithHost err = 0 [12:35:59]CheckOFDResponse [12:35:59]1017 (14) - 77093643461234 [12:35:59]1041 (16) - 0000000000874937 [12:35:59]1040 (4) - 27132 [12:35:59]1012 (4) - 29.07.2024 06:13 [12:35:59]1206 (1) - 0 [12:35:59]OFD Sender: Remove packet 27132 [12:35:59]ProducePacketName [12:35:59]name=ofd_packets/00027132 [12:35:59]NVStorageDeleteData [12:35:59]OFD Sender: Processing packet 27133 [packets to send 9, broken 8] [12:35:59]ProducePacketName [12:35:59]name=ofd_packets/00027133 [12:35:59]OFD Sender: To server: pG, [12:35:59]CommunicateWithHost lk.salyk.kg:30040 [12:35:59]ConnectInit lk.salyk.kg [12:35:59]Connected sock=8 [12:35:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 38 01 00 00 C4 59 30 01 DB 5D 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 24 00 00 00 F4 03 04 00 9B 8C A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 FD 69 00 00 35 04 06 00 37 59 EA 83 56 E9 7E 35 2E 30 9F DA 8A 0D [12:36:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 25 73 47 00 07 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 34 39 33 37 10 04 04 00 FD 69 00 00 F4 03 04 00 03 33 A7 66 B6 04 01 00 00 3F 02 1D 85 28 72 C8 5E [12:36:00]CommunicateWithHost err = 0 [12:36:00]CheckOFDResponse [12:36:00]1017 (14) - 77093643461234 [12:36:00]1041 (16) - 0000000000874937 [12:36:00]1040 (4) - 27133 [12:36:00]1012 (4) - 29.07.2024 06:13 [12:36:00]1206 (1) - 0 [12:36:00]OFD Sender: Remove packet 27133 [12:36:00]ProducePacketName [12:36:00]name=ofd_packets/00027133 [12:36:00]NVStorageDeleteData [12:36:00]OFD Sender: No OFD packet to send [12:36:05]OFD Sender: No OFD packet to send [12:36:10]OFD Sender: No OFD packet to send [12:36:15]OFD Sender: No OFD packet to send [12:36:20]OFD Sender: No OFD packet to send [12:36:25]OFD Sender: No OFD packet to send [12:36:30]OFD Sender: No OFD packet to send [12:36:35]OFD Sender: No OFD packet to send [12:36:40]OFD Sender: No OFD packet to send [12:36:45]OFD Sender: No OFD packet to send [12:36:50]OFD Sender: No OFD packet to send [12:36:55]OFD Sender: No OFD packet to send [12:37:00]OFD Sender: No OFD packet to send [12:37:05]OFD Sender: No OFD packet to send [12:37:10]OFD Sender: No OFD packet to send [12:37:15]OFD Sender: No OFD packet to send [12:37:20]OFD Sender: No OFD packet to send [12:37:25]OFD Sender: No OFD packet to send [12:37:30]OFD Sender: No OFD packet to send [12:37:35]OFD Sender: No OFD packet to send [12:37:40]OFD Sender: No OFD packet to send [12:37:45]OFD Sender: No OFD packet to send [12:37:50]OFD Sender: No OFD packet to send [12:37:55]OFD Sender: No OFD packet to send [12:38:00]OFD Sender: No OFD packet to send [12:38:05]OFD Sender: No OFD packet to send [12:38:10]OFD Sender: No OFD packet to send [12:38:15]OFD Sender: No OFD packet to send [12:38:20]OFD Sender: No OFD packet to send [12:38:25]OFD Sender: No OFD packet to send [12:38:30]OFD Sender: No OFD packet to send [12:38:35]OFD Sender: No OFD packet to send [12:38:40]OFD Sender: No OFD packet to send [12:38:45]OFD Sender: No OFD packet to send [12:38:50]OFD Sender: No OFD packet to send [12:38:55]OFD Sender: No OFD packet to send [12:39:00]OFD Sender: No OFD packet to send [12:39:05]OFD Sender: No OFD packet to send [12:39:10]OFD Sender: No OFD packet to send [12:39:15]OFD Sender: No OFD packet to send [12:39:20]OFD Sender: No OFD packet to send [12:39:25]OFD Sender: No OFD packet to send [12:39:30]OFD Sender: No OFD packet to send [12:39:35]OFD Sender: No OFD packet to send [12:39:40]OFD Sender: No OFD packet to send [12:39:45]OFD Sender: No OFD packet to send [12:39:50]OFD Sender: No OFD packet to send [12:39:55]OFD Sender: No OFD packet to send [12:40:00]OFD Sender: No OFD packet to send [12:40:05]OFD Sender: No OFD packet to send [12:40:10]OFD Sender: No OFD packet to send [12:40:15]OFD Sender: No OFD packet to send [12:40:20]OFD Sender: No OFD packet to send [12:40:25]OFD Sender: No OFD packet to send [12:40:30]OFD Sender: No OFD packet to send [12:40:35]OFD Sender: No OFD packet to send [12:40:40]OFD Sender: No OFD packet to send [12:40:45]OFD Sender: No OFD packet to send [12:40:50]OFD Sender: No OFD packet to send [12:40:55]OFD Sender: No OFD packet to send [12:41:00]OFD Sender: No OFD packet to send [12:41:05]OFD Sender: No OFD packet to send [12:41:10]OFD Sender: No OFD packet to send [12:41:15]OFD Sender: No OFD packet to send [12:41:20]OFD Sender: No OFD packet to send [12:41:25]OFD Sender: No OFD packet to send [12:41:30]OFD Sender: No OFD packet to send [12:41:35]OFD Sender: No OFD packet to send [12:41:40]OFD Sender: No OFD packet to send [12:41:45]OFD Sender: No OFD packet to send [12:41:50]OFD Sender: No OFD packet to send [12:41:55]OFD Sender: No OFD packet to send [12:42:00]OFD Sender: No OFD packet to send [12:42:05]OFD Sender: No OFD packet to send [12:42:10]OFD Sender: No OFD packet to send [12:42:15]OFD Sender: No OFD packet to send [12:42:20]OFD Sender: No OFD packet to send [12:42:25]OFD Sender: No OFD packet to send [12:42:30]OFD Sender: No OFD packet to send [12:42:35]OFD Sender: No OFD packet to send [12:42:40]OFD Sender: No OFD packet to send [12:42:45]OFD Sender: No OFD packet to send [12:42:50]OFD Sender: No OFD packet to send [12:42:55]OFD Sender: No OFD packet to send [12:43:00]OFD Sender: No OFD packet to send [12:43:05]OFD Sender: No OFD packet to send [12:43:10]OFD Sender: No OFD packet to send [12:43:15]OFD Sender: No OFD packet to send [12:43:20]OFD Sender: No OFD packet to send [12:43:25]OFD Sender: No OFD packet to send [12:43:30]OFD Sender: No OFD packet to send [12:43:35]OFD Sender: No OFD packet to send [12:43:40]OFD Sender: No OFD packet to send [12:43:45]OFD Sender: No OFD packet to send [12:43:50]OFD Sender: No OFD packet to send [12:43:55]OFD Sender: No OFD packet to send [12:44:00]OFD Sender: No OFD packet to send [12:44:05]OFD Sender: No OFD packet to send [12:44:10]OFD Sender: No OFD packet to send [12:44:15]OFD Sender: No OFD packet to send [12:44:20]OFD Sender: No OFD packet to send [12:44:25]OFD Sender: No OFD packet to send [12:44:30]OFD Sender: No OFD packet to send [12:44:35]OFD Sender: No OFD packet to send [12:44:40]OFD Sender: No OFD packet to send [12:44:45]OFD Sender: No OFD packet to send [12:44:50]OFD Sender: No OFD packet to send [12:44:55]OFD Sender: No OFD packet to send [12:45:00]OFD Sender: No OFD packet to send [12:45:05]OFD Sender: No OFD packet to send [12:45:10]OFD Sender: No OFD packet to send [12:45:15]OFD Sender: No OFD packet to send [12:45:20]OFD Sender: No OFD packet to send [12:45:25]OFD Sender: No OFD packet to send [12:45:30]OFD Sender: No OFD packet to send [12:45:36]OFD Sender: No OFD packet to send [12:45:41]OFD Sender: No OFD packet to send [12:45:46]OFD Sender: No OFD packet to send [12:45:51]OFD Sender: No OFD packet to send [12:45:56]OFD Sender: No OFD packet to send [12:46:01]OFD Sender: No OFD packet to send [12:46:06]OFD Sender: No OFD packet to send [12:46:11]OFD Sender: No OFD packet to send [12:46:16]OFD Sender: No OFD packet to send [12:46:21]OFD Sender: No OFD packet to send [12:46:26]OFD Sender: No OFD packet to send [12:46:31]OFD Sender: No OFD packet to send [12:46:36]OFD Sender: No OFD packet to send [12:46:41]OFD Sender: No OFD packet to send [12:46:46]OFD Sender: No OFD packet to send [12:46:51]OFD Sender: No OFD packet to send [12:46:56]OFD Sender: No OFD packet to send [12:47:01]OFD Sender: No OFD packet to send [12:47:06]OFD Sender: No OFD packet to send [12:47:11]OFD Sender: No OFD packet to send [12:47:16]OFD Sender: No OFD packet to send [12:47:21]OFD Sender: No OFD packet to send [12:47:26]OFD Sender: No OFD packet to send [12:47:31]OFD Sender: No OFD packet to send [12:47:36]OFD Sender: No OFD packet to send [12:47:41]OFD Sender: No OFD packet to send [12:47:46]OFD Sender: No OFD packet to send [12:47:51]OFD Sender: No OFD packet to send [12:47:56]OFD Sender: No OFD packet to send [12:48:01]OFD Sender: No OFD packet to send [12:48:06]OFD Sender: No OFD packet to send [12:48:11]OFD Sender: No OFD packet to send [12:48:16]OFD Sender: No OFD packet to send [12:48:21]OFD Sender: No OFD packet to send [12:48:26]OFD Sender: No OFD packet to send [12:48:31]OFD Sender: No OFD packet to send [12:48:36]OFD Sender: No OFD packet to send [12:48:41]OFD Sender: No OFD packet to send [12:48:46]OFD Sender: No OFD packet to send [12:48:51]OFD Sender: No OFD packet to send [12:48:56]OFD Sender: No OFD packet to send [12:49:01]OFD Sender: No OFD packet to send [12:49:06]OFD Sender: No OFD packet to send [12:49:11]OFD Sender: No OFD packet to send [12:49:16]OFD Sender: No OFD packet to send [12:49:21]OFD Sender: No OFD packet to send [12:49:26]OFD Sender: No OFD packet to send [12:49:31]OFD Sender: No OFD packet to send [12:49:36]OFD Sender: No OFD packet to send [12:49:41]OFD Sender: No OFD packet to send [12:49:46]OFD Sender: No OFD packet to send [12:49:51]OFD Sender: No OFD packet to send [12:49:56]OFD Sender: No OFD packet to send [12:50:01]OFD Sender: No OFD packet to send [12:50:06]OFD Sender: No OFD packet to send [12:50:11]OFD Sender: No OFD packet to send [12:50:16]OFD Sender: No OFD packet to send [12:50:21]OFD Sender: No OFD packet to send [12:50:26]OFD Sender: No OFD packet to send [12:50:31]OFD Sender: No OFD packet to send [12:50:36]OFD Sender: No OFD packet to send [12:50:41]OFD Sender: No OFD packet to send [12:50:46]OFD Sender: No OFD packet to send [12:50:51]OFD Sender: No OFD packet to send [12:50:56]OFD Sender: No OFD packet to send [12:51:01]OFD Sender: No OFD packet to send [12:51:06]OFD Sender: No OFD packet to send [12:51:11]OFD Sender: No OFD packet to send [12:51:16]OFD Sender: No OFD packet to send [12:51:21]OFD Sender: No OFD packet to send [12:51:26]OFD Sender: No OFD packet to send [12:51:31]OFD Sender: No OFD packet to send [12:51:36]OFD Sender: No OFD packet to send [12:51:41]OFD Sender: No OFD packet to send [12:51:46]OFD Sender: No OFD packet to send [12:51:51]OFD Sender: No OFD packet to send [12:51:56]OFD Sender: No OFD packet to send [12:52:01]OFD Sender: No OFD packet to send [12:52:06]OFD Sender: No OFD packet to send [12:52:11]OFD Sender: No OFD packet to send [12:52:16]OFD Sender: No OFD packet to send [12:52:21]OFD Sender: No OFD packet to send [12:52:26]OFD Sender: No OFD packet to send [12:52:31]OFD Sender: No OFD packet to send [12:52:36]OFD Sender: No OFD packet to send [12:52:41]OFD Sender: No OFD packet to send [12:52:46]OFD Sender: No OFD packet to send [12:52:51]OFD Sender: No OFD packet to send [12:52:56]OFD Sender: No OFD packet to send [12:53:01]OFD Sender: No OFD packet to send [12:53:06]OFD Sender: No OFD packet to send [12:53:11]OFD Sender: No OFD packet to send [12:53:16]OFD Sender: No OFD packet to send [12:53:21]OFD Sender: No OFD packet to send [12:53:26]OFD Sender: No OFD packet to send [12:53:31]OFD Sender: No OFD packet to send [12:53:36]OFD Sender: No OFD packet to send [12:53:41]OFD Sender: No OFD packet to send [12:53:46]OFD Sender: No OFD packet to send [12:53:51]OFD Sender: No OFD packet to send [12:53:56]OFD Sender: No OFD packet to send [12:54:01]OFD Sender: No OFD packet to send [12:54:06]OFD Sender: No OFD packet to send [12:54:11]OFD Sender: No OFD packet to send [12:54:16]OFD Sender: No OFD packet to send [12:54:21]OFD Sender: No OFD packet to send [12:54:26]OFD Sender: No OFD packet to send [12:54:31]OFD Sender: No OFD packet to send [12:54:36]OFD Sender: No OFD packet to send [12:54:41]OFD Sender: No OFD packet to send [12:54:46]OFD Sender: No OFD packet to send [12:54:51]OFD Sender: No OFD packet to send [12:54:56]OFD Sender: No OFD packet to send [12:55:01]OFD Sender: No OFD packet to send [12:55:06]OFD Sender: No OFD packet to send [12:55:11]OFD Sender: No OFD packet to send [12:55:16]OFD Sender: No OFD packet to send [12:55:21]OFD Sender: No OFD packet to send [12:55:26]OFD Sender: No OFD packet to send [12:55:31]OFD Sender: No OFD packet to send [12:55:36]OFD Sender: No OFD packet to send [12:55:41]OFD Sender: No OFD packet to send [12:55:46]OFD Sender: No OFD packet to send [12:55:51]OFD Sender: No OFD packet to send [12:55:56]OFD Sender: No OFD packet to send [12:56:01]OFD Sender: No OFD packet to send [12:56:06]OFD Sender: No OFD packet to send [12:56:11]OFD Sender: No OFD packet to send [12:56:16]OFD Sender: No OFD packet to send [12:56:21]OFD Sender: No OFD packet to send [12:56:25]accept exits with 9 [12:56:25]New connection [12:56:25]New thread 3066928484 created [12:56:25]Thread 3066785124 joined [12:56:25]Waiting for new connection... [12:56:25] Sock 9.Parse request [12:56:25]Sock 9.Check first char [12:56:25]Sock 9.First char is OK [12:56:25]request: POST /json_proto HTTP/1.0 [12:56:25]Method: POST [12:56:25]URL: /json_proto [12:56:25]Method is POST - this is cgi request [12:56:25]url: /json_proto [12:56:25]query_string will be loaded in cgi processing [12:56:25]execute_cgi json_proto POST (null) [12:56:25]execute_cgi path=json_proto method=POST [12:56:25]POST find Content-Length [12:56:25]Host: 172.17.45.8:8080 [12:56:25]Content-Length: 992 [12:56:25]Content-Type: application/json [12:56:25] [12:56:25]POST finish read [12:56:25]Found Content-Length = 992 [12:56:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150532", "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": "4860019001810", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 \u043C\u0438\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0436/\u0431 0,33\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:25]execute_script... [12:56:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150532", "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": "4860019001810", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 \u043C\u0438\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0436/\u0431 0,33\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:25]POST & json_proto [12:56:25]process_json_proto [12:56:25]json parsed OK: [12:56:25]protocol is kg_v1.0 [12:56:25]action value=close_receipt [12:56:25]process_action close_receipt [12:56:25]cmd_close_receipt [12:56:25]MH_GetDate [12:56:25]Write to MH i2c: F0 00 00 6E 16 73 [12:56:25]Write i2c OK [12:56:25]MH_I2C_Read... [12:56:25]Read from MH i2c: F0 [12:56:25]MH_I2C_Read... [12:56:25]Read from MH i2c: F0 09 00 [12:56:25]MH_I2C_Read... [12:56:25]Read from MH i2c: F0 09 00 6E 16 00 7F 91 A7 66 A6 1F 7F 64 41 [12:56:25]GetLastDocTimeStamp 1722256539 [12:56:25]current date 1722257791 [12:56:25]FM_GetShiftState [12:56:25]SAM_PROTO_GetShiftState [12:56:25]wFMCommunicate request_size=4 [12:56:25]MH_SAM_APDU [12:56:25]CAPDU: 80 13 01 00 [12:56:25]Write to MH i2c: E2 08 00 6F 16 80 13 01 00 00 00 00 00 02 [12:56:25]Write i2c OK [12:56:25]MH_I2C_Read... [12:56:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:25]Read from MH i2c: E2 [12:56:25]MH_I2C_Read... [12:56:25]Read from MH i2c: E2 0E 00 [12:56:25]MH_I2C_Read... [12:56:25]Read from MH i2c: E2 0E 00 6F 16 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 83 [12:56:25]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [12:56:25]wFMCommunicate OK [12:56:25]SAM_PROTO_GetShiftState done [12:56:25]FM_GetShiftState done [12:56:25]opened in 1722213509 [12:56:25]opened+sec_in_day 1722299909 [12:56:25]quantity*price = 8500 [12:56:25]sum+1 = 8501 [12:56:25]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4860019001810 Вода Боржоми минеральная ж/б 0,33л 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 185.00 НСП 1% : 1.63 НДС 12% : 19.65 Наличными: 185.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 37 29.07.2024 12:56 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27134 ФПД: 142467827465863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T125631&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27134&fm=142467827465863&tin=02508201610067®Number=0000000000092663&sum=18500 0 [12:56:26]StoreToDocumentArchive [12:56:26]shift 434 fd 27134 [12:56:26]save to /storage/0434/doc_00027134 [12:56:26]save last doc name /storage/0434/doc_00027134 to /storage/kkm_last_doc_name [12:56:26]save OK [12:56:26]Clear old archive folders... [12:56:26]ProcessDocumentItem done err = 0, tmpTLVsize=412 [12:56:26]tlvbuf is 001E8390 [12:56:26]SAM_PROTO_ClearQueue [12:56:26]wFMCommunicate request_size=4 [12:56:26]MH_SAM_APDU [12:56:26]CAPDU: 80 09 00 00 [12:56:26]Write to MH i2c: E2 08 00 7C 16 80 09 00 00 00 00 00 00 04 [12:56:26]Write i2c OK [12:56:26]MH_I2C_Read... [12:56:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:26]Read from MH i2c: E2 [12:56:26]MH_I2C_Read... [12:56:26]Read from MH i2c: E2 03 00 [12:56:26]MH_I2C_Read... [12:56:26]Read from MH i2c: E2 03 00 7C 16 00 90 00 06 [12:56:26]RAPDU: 90 00 [12:56:26]wFMCommunicate OK [12:56:26]SAM_PROTO_ClearQueue done [12:56:26]KKMCreateOFDPacket [12:56:26]OFDProtocolAddRootSTLVToBuf [12:56:26]FM_MakeSignedData [12:56:26]FM_MakeSignedData [12:56:26]SAM_PROTO_SignData [12:56:26]wFMCommunicate request_size=4 [12:56:26]MH_SAM_APDU [12:56:26]CAPDU: 80 0D 01 02 [12:56:26]Write to MH i2c: E2 08 00 7D 16 80 0D 01 02 00 00 00 00 0C [12:56:26]Write i2c OK [12:56:26]MH_I2C_Read... [12:56:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:26]Read from MH i2c: E2 [12:56:26]MH_I2C_Read... [12:56:26]Read from MH i2c: E2 03 00 [12:56:26]MH_I2C_Read... [12:56:26]Read from MH i2c: E2 03 00 7D 16 00 90 00 07 [12:56:26]RAPDU: 90 00 [12:56:26]wFMCommunicate OK [12:56:26]wFMCommunicate request_size=255 [12:56:26]MH_SAM_APDU [12:56:26]CAPDU: 80 0D 02 02 FA 03 00 9C 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 7F 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 38 31 30 06 04 3B 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 D0 BC D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B6 2F D0 B1 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 [12:56:26]Write to MH i2c: E2 02 01 7E 16 80 0D 02 02 FA 00 03 00 9C 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 7F 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 38 31 30 06 04 3B 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 D0 BC D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B6 2F D0 B1 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 00 E3 [12:56:26]Write i2c OK [12:56:26]MH_I2C_Read... [12:56:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:26]Read from MH i2c: E2 [12:56:26]MH_I2C_Read... [12:56:26]Read from MH i2c: E2 03 00 [12:56:26]MH_I2C_Read... [12:56:26]Read from MH i2c: E2 03 00 7E 16 00 90 00 08 [12:56:26]RAPDU: 90 00 [12:56:26]wFMCommunicate OK [12:56:26]wFMCommunicate request_size=171 [12:56:26]MH_SAM_APDU [12:56:26]CAPDU: 80 0D 02 02 A6 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 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 7F 91 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 FE 69 00 00 35 04 06 00 81 92 E0 3F 7E 87 [12:56:26]Write to MH i2c: E2 AE 00 7F 16 80 0D 02 02 A6 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 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 7F 91 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 FE 69 00 00 35 04 06 00 81 92 E0 3F 7E 87 00 00 A7 [12:56:26]Write i2c OK [12:56:26]MH_I2C_Read... [12:56:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:27]Read from MH i2c: E2 [12:56:27]MH_I2C_Read... [12:56:27]Read from MH i2c: E2 03 00 [12:56:27]MH_I2C_Read... [12:56:27]Read from MH i2c: E2 03 00 7F 16 00 90 00 09 [12:56:27]RAPDU: 90 00 [12:56:27]wFMCommunicate OK [12:56:27]wFMCommunicate request_size=4 [12:56:27]MH_SAM_APDU [12:56:27]CAPDU: 80 0D 03 02 [12:56:27]Write to MH i2c: E2 08 00 80 16 80 0D 03 02 00 00 00 00 11 [12:56:27]Write i2c OK [12:56:27]MH_I2C_Read... [12:56:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:27]Read from MH i2c: E2 [12:56:27]MH_I2C_Read... [12:56:27]Read from MH i2c: E2 0B 00 [12:56:27]MH_I2C_Read... [12:56:27]Read from MH i2c: E2 0B 00 80 16 00 62 A4 C5 9D 78 1A 5E 30 90 00 9A [12:56:27]RAPDU: 62 A4 C5 9D 78 1A 5E 30 90 00 [12:56:27]wFMCommunicate OK [12:56:27]SAM_PROTO_SignData done [12:56:27]FM_MakeSignedData done [12:56:27]CreateOFDProtocolMessage [12:56:27]wFMCommunicate request_size=4 [12:56:27]MH_SAM_APDU [12:56:27]CAPDU: 80 11 00 00 [12:56:27]Write to MH i2c: E2 08 00 81 16 80 11 00 00 00 00 00 00 11 [12:56:27]Write i2c OK [12:56:27]MH_I2C_Read... [12:56:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:27]Read from MH i2c: E2 [12:56:27]MH_I2C_Read... [12:56:27]Read from MH i2c: E2 17 00 [12:56:27]MH_I2C_Read... [12:56:27]Read from MH i2c: E2 17 00 81 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 6A [12:56:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [12:56:27]wFMCommunicate OK [12:56:27]CreateOFDProtocolMessage done [12:56:27]OFDSenderStorePacket 27134 [12:56:27]StoreOFDPacket docnum=27134 [12:56:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 B0 01 00 00 24 A8 A8 01 3D FF 5A 03 01 00 03 00 9C 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 7F 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 38 31 30 06 04 3B 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 D0 BC D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B6 2F D0 B1 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 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 7F 91 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 FE 69 00 00 35 04 06 00 81 92 E0 3F 7E 87 62 A4 C5 9D 78 1A 5E 30 [12:56:27]CheckFolder [12:56:27]dirname=/storage/ofd_packets [12:56:27]CheckFolder done [12:56:27]ProducePacketName [12:56:27]name=ofd_packets/00027134 [12:56:27]NVStorageSaveData ofd_packets/00027134 [12:56:27]File name is /storage/ofd_packets/00027134 [12:56:27]Write 462 bytes [12:56:27]NVStorageSaveData done [12:56:27]OFDSenderStorePacket done [12:56:27]KKMCreateOFDPacket done [12:56:27]NVStorageSaveData kkm_last_timestamp [12:56:27]File name is /storage/kkm_last_timestamp [12:56:27]Write 4 bytes [12:56:27]NVStorageSaveData done [12:56:27]ExternCall_PrintAddStr [12:56:27]wPrintStart [12:56:27]Write to MH i2c: 01 00 00 82 16 98 [12:56:27]OFD Sender: Processing packet 27134 [packets to send 9, broken 8] [12:56:27]ProducePacketName [12:56:27]name=ofd_packets/00027134 [12:56:27]OFD Sender: To server: pG, [12:56:27]CommunicateWithHost lk.salyk.kg:30040 [12:56:27]ConnectInit lk.salyk.kg [12:56:27]Write i2c OK [12:56:27]MH_I2C_Read... [12:56:27]Read from MH i2c: 01 [12:56:27]MH_I2C_Read... [12:56:27]Read from MH i2c: 01 07 00 [12:56:27]MH_I2C_Read... [12:56:27]Read from MH i2c: 01 07 00 82 16 00 00 00 00 00 FF 0F AD [12:56:27]RasterBufferAndPrint [12:56:27]line Счет N : (3)150532 [12:56:27]line ИНН: 02508201610067 [12:56:27]line Контрольно-Кассовый Чек [12:56:27]line ПРОДАЖА [12:56:27]line Товар: 5449000000996 [12:56:27]line Напиток Кока-Кола 0,33л [12:56:27]line 1.000 * 85.00 [12:56:27]line = 85.00 [12:56:27]line НДС 12% НСП 1% [12:56:27]line > о реализуемом товаре [12:56:27]line Товар: 4860019001810 [12:56:27]line Вода Боржоми минеральная ж/б 0,33л [12:56:27]line 1.000 * 100.00 [12:56:27]line = 100.00 [12:56:27]line НДС 12% НСП 1% [12:56:27]line > о реализуемом товаре [12:56:27]line ИТОГО: 185.00 [12:56:27]line НСП 1% : 1.63 [12:56:27]line НДС 12% : 19.65 [12:56:27]line Наличными: 185.00 [12:56:27]line Безнал.: 0.00 [12:56:27]line Место: АЗС № 134 "Партнер Нефть" [12:56:27]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [12:56:27]line СНО: Общий режим [12:56:27]line Чек 37 29.07.2024 12:56 [12:56:27]line Смена: 434 ФФД: 1.0 [12:56:27]line ЗНМ: 0300000043 [12:56:27]line РНМ: 0000000000092663 [12:56:27]line Версия ККМ: 001 [12:56:27]line ФМ: 0000000000874937 [12:56:27]line ФД: 27134 [12:56:27]line ФПД: 142467827465863 [12:56:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T125631&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27134&fm=142467827465863&tin=02508201610067®Number=0000000000092663&sum=18500 [12:56:27]line 0 [12:56:27]written 0, free lines is 4095 [12:56:27]Connected sock=10 [12:56:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 B0 01 00 00 24 A8 A8 01 3D FF 5A 03 01 00 03 00 9C 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 7F 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 38 31 30 06 04 3B 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 D0 BC D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B6 2F D0 B1 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 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 7F 91 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 FE 69 00 00 35 04 06 00 81 92 E0 3F 7E 87 62 A4 C5 9D 78 1A 5E 30 [12:56:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 E2 6C 47 00 DA 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 34 39 33 37 10 04 04 00 FE 69 00 00 F4 03 04 00 CF 37 A7 66 B6 04 01 00 00 B6 3F 5B 4F A9 1B C3 19 [12:56:27]CommunicateWithHost err = 0 [12:56:27]CheckOFDResponse [12:56:27]1017 (14) - 77093643461234 [12:56:27]1041 (16) - 0000000000874937 [12:56:27]1040 (4) - 27134 [12:56:27]1012 (4) - 29.07.2024 06:33 [12:56:27]1206 (1) - 0 [12:56:27]OFD Sender: Remove packet 27134 [12:56:27]ProducePacketName [12:56:27]name=ofd_packets/00027134 [12:56:27]NVStorageDeleteData [12:56:28]Write to MH i2c: 01 00 00 B0 16 C6 [12:56:28]Write i2c OK [12:56:28]MH_I2C_Read... [12:56:28]Read from MH i2c: 01 [12:56:28]MH_I2C_Read... [12:56:28]Read from MH i2c: 01 07 00 [12:56:28]MH_I2C_Read... [12:56:28]Read from MH i2c: 01 07 00 B0 16 00 00 00 00 00 96 0C 6F [12:56:28]RasterBufferAndPrint [12:56:28]line [12:56:28]line [12:56:28]line [12:56:28]line [12:56:28]line [12:56:28]written 0, free lines is 3228 [12:56:28]MH_Cut [12:56:28]Write to MH i2c: D1 01 00 B7 16 01 9F [12:56:28]Write i2c OK [12:56:28]MH_I2C_Read... [12:56:28]Read from MH i2c: D1 [12:56:28]MH_I2C_Read... [12:56:28]Read from MH i2c: D1 01 00 [12:56:28]MH_I2C_Read... [12:56:28]Read from MH i2c: D1 01 00 B7 16 00 9E [12:56:28]Write to MH i2c: 01 00 00 B8 16 CE [12:56:28]Write i2c OK [12:56:28]MH_I2C_Read... [12:56:28]OFD Sender: No OFD packet to send [12:56:28]*** Cut start [12:56:28]*** Partial cut [12:56:28]*** CUTSNS_PIN = 1 [12:56:28]*** CUTSNS_PIN = 0 [12:56:29]*** Brake cut motor [12:56:29]Read from MH i2c: 01 [12:56:29]MH_I2C_Read... [12:56:29]*** Stop cut motor [12:56:29]*** Cut end [12:56:29]Read from MH i2c: 01 07 00 [12:56:29]MH_I2C_Read... [12:56:29]Read from MH i2c: 01 07 00 B8 16 00 00 00 00 00 FF 0F E3 [12:56:29]process_action close_receipt done [12:56:29]requested_data is exist [12:56:29]produce_requested_data [12:56:29]requested_item fm.sn is exist - process it [12:56:29]wFMCommunicate request_size=4 [12:56:29]MH_SAM_APDU [12:56:29]CAPDU: 80 11 00 00 [12:56:29]Write to MH i2c: E2 08 00 B9 16 80 11 00 00 00 00 00 00 49 [12:56:29]Write i2c OK [12:56:29]MH_I2C_Read... [12:56:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:29]Read from MH i2c: E2 [12:56:29]MH_I2C_Read... [12:56:29]Read from MH i2c: E2 17 00 [12:56:29]MH_I2C_Read... [12:56:29]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 34 39 33 37 90 00 A2 [12:56:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [12:56:29]wFMCommunicate OK [12:56:29]requested_item fd.num is exist - process it [12:56:29]SAM_PROTO_GetFieldsCounters [12:56:29]wFMCommunicate request_size=4 [12:56:29]MH_SAM_APDU [12:56:29]CAPDU: 80 13 00 00 [12:56:29]Write to MH i2c: E2 08 00 BA 16 80 13 00 00 00 00 00 00 4C [12:56:29]Write i2c OK [12:56:29]MH_I2C_Read... [12:56:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:29]Read from MH i2c: E2 [12:56:29]MH_I2C_Read... [12:56:29]Read from MH i2c: E2 62 00 [12:56:29]MH_I2C_Read... [12:56:29]Read from MH i2c: E2 62 00 BA 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 FE 69 00 00 0E 04 04 00 B2 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 FD [12:56:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 FE 69 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:56:29]wFMCommunicate OK [12:56:29]SAM_PROTO_GetFieldsCounters done [12:56:29]requested_item shift.num is exist - process it [12:56:29]requested_item shift.opened is exist - process it [12:56:29]req_shift_opened [12:56:29]FM_GetShiftState [12:56:29]SAM_PROTO_GetShiftState [12:56:29]wFMCommunicate request_size=4 [12:56:29]MH_SAM_APDU [12:56:29]CAPDU: 80 13 01 00 [12:56:29]Write to MH i2c: E2 08 00 BB 16 80 13 01 00 00 00 00 00 4E [12:56:29]Write i2c OK [12:56:29]MH_I2C_Read... [12:56:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:29]Read from MH i2c: E2 [12:56:29]MH_I2C_Read... [12:56:29]Read from MH i2c: E2 0E 00 [12:56:29]MH_I2C_Read... [12:56:29]Read from MH i2c: E2 0E 00 BB 16 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 CF [12:56:29]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [12:56:29]wFMCommunicate OK [12:56:29]SAM_PROTO_GetShiftState done [12:56:29]FM_GetShiftState done [12:56:29]req_shift_opened done [12:56:29]requested_item shift.open_date is exist - process it [12:56:29]req_shift_open_date [12:56:29]req_shift_open_date done [12:56:29]produce_requested_data done [12:56:29]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27134,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [12:56:29]process_action_free close_receipt [12:56:29]json_value_free [12:56:29]json_value_free done [12:56:29]process_json_proto returns [12:56:29]Send response to host [12:56:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27134,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [12:56:29]free response buf [12:56:29]execute_script done [12:56:29]execute_script returns [12:56:29]free content buf [12:56:29]Sock 9.Close socket [12:56:29]Sock 9.Thread stoped [12:56:33]OFD Sender: No OFD packet to send [12:56:38]OFD Sender: No OFD packet to send [12:56:43]OFD Sender: No OFD packet to send [12:56:48]OFD Sender: No OFD packet to send [12:56:53]OFD Sender: No OFD packet to send [12:56:58]OFD Sender: No OFD packet to send [12:57:03]OFD Sender: No OFD packet to send [12:57:08]OFD Sender: No OFD packet to send [12:57:13]OFD Sender: No OFD packet to send [12:57:18]OFD Sender: No OFD packet to send [12:57:23]OFD Sender: No OFD packet to send [12:57:28]OFD Sender: No OFD packet to send [12:57:33]OFD Sender: No OFD packet to send [12:57:38]OFD Sender: No OFD packet to send [12:57:43]OFD Sender: No OFD packet to send [12:57:48]OFD Sender: No OFD packet to send [12:57:53]OFD Sender: No OFD packet to send [12:57:58]OFD Sender: No OFD packet to send [12:58:03]OFD Sender: No OFD packet to send [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:34]OFD Sender: No OFD packet to send [13:08:39]OFD Sender: No OFD packet to send [13:08:44]OFD Sender: No OFD packet to send [13:08:49]OFD Sender: No OFD packet to send [13:08:54]OFD Sender: No OFD packet to send [13:08:59]OFD Sender: No OFD packet to send [13:09:04]OFD Sender: No OFD packet to send [13:09:09]OFD Sender: No OFD packet to send [13:09:14]OFD Sender: No OFD packet to send [13:09:19]OFD Sender: No OFD packet to send [13:09:24]OFD Sender: No OFD packet to send [13:09:29]OFD Sender: No OFD packet to send [13:09:34]OFD Sender: No OFD packet to send [13:09:39]OFD Sender: No OFD packet to send [13:09:44]OFD Sender: No OFD packet to send [13:09:49]OFD Sender: No OFD packet to send [13:09: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:06]accept exits with 8 [13:10:06]New connection [13:10:06]New thread 3066785124 created [13:10:06]Thread 3066928484 joined [13:10:06]Waiting for new connection... [13:10:06] Sock 8.Parse request [13:10:06]Sock 8.Check first char [13:10:06]Sock 8.First char is OK [13:10:06]request: POST /json_proto HTTP/1.0 [13:10:06]Method: POST [13:10:06]URL: /json_proto [13:10:06]Method is POST - this is cgi request [13:10:06]url: /json_proto [13:10:06]query_string will be loaded in cgi processing [13:10:06]execute_cgi json_proto POST (null) [13:10:06]execute_cgi path=json_proto method=POST [13:10:06]POST find Content-Length [13:10:06]Host: 172.17.45.8:8080 [13:10:06]Content-Length: 670 [13:10:06]Content-Type: application/json [13:10:06] [13:10:06]POST finish read [13:10:06]Found Content-Length = 670 [13:10:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150533", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.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" ] } } [13:10:06]execute_script... [13:10: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)150533", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.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" ] } } [13:10:06]POST & json_proto [13:10:06]process_json_proto [13:10:06]json parsed OK: [13:10:06]protocol is kg_v1.0 [13:10:06]action value=close_receipt [13:10:06]process_action close_receipt [13:10:06]cmd_close_receipt [13:10:06]MH_GetDate [13:10:06]Write to MH i2c: F0 00 00 BC 16 C1 [13:10:06]Write i2c OK [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: F0 [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: F0 09 00 [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: F0 09 00 BC 16 00 B3 94 A7 66 A6 1F 7F 64 C6 [13:10:06]GetLastDocTimeStamp 1722257791 [13:10:06]current date 1722258611 [13:10:06]FM_GetShiftState [13:10:06]SAM_PROTO_GetShiftState [13:10:06]wFMCommunicate request_size=4 [13:10:06]MH_SAM_APDU [13:10:06]CAPDU: 80 13 01 00 [13:10:06]Write to MH i2c: E2 08 00 BD 16 80 13 01 00 00 00 00 00 50 [13:10:06]Write i2c OK [13:10:06]MH_I2C_Read... [13:10:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:06]Read from MH i2c: E2 [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: E2 0E 00 [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: E2 0E 00 BD 16 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 D1 [13:10:06]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [13:10:06]wFMCommunicate OK [13:10:06]SAM_PROTO_GetShiftState done [13:10:06]FM_GetShiftState done [13:10:06]opened in 1722213509 [13:10:06]opened+sec_in_day 1722299909 [13:10:06]quantity*price = 17000 [13:10:06]sum+1 = 17001 [13:10:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 38 29.07.2024 13:10 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27135 ФПД: 239802347036735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T131012&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27135&fm=239802347036735&tin=02508201610067®Number=0000000000092663&sum=17000 0 [13:10:07]StoreToDocumentArchive [13:10:07]shift 434 fd 27135 [13:10:07]save to /storage/0434/doc_00027135 [13:10:07]save last doc name /storage/0434/doc_00027135 to /storage/kkm_last_doc_name [13:10:07]save OK [13:10:07]Clear old archive folders... [13:10:07]ProcessDocumentItem done err = 0, tmpTLVsize=282 [13:10:07]tlvbuf is B6EA2C20 [13:10:07]SAM_PROTO_ClearQueue [13:10:07]wFMCommunicate request_size=4 [13:10:07]MH_SAM_APDU [13:10:07]CAPDU: 80 09 00 00 [13:10:07]Write to MH i2c: E2 08 00 CA 16 80 09 00 00 00 00 00 00 52 [13:10:07]Write i2c OK [13:10:07]MH_I2C_Read... [13:10:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:07]Read from MH i2c: E2 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: E2 03 00 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: E2 03 00 CA 16 00 90 00 54 [13:10:07]RAPDU: 90 00 [13:10:07]wFMCommunicate OK [13:10:07]SAM_PROTO_ClearQueue done [13:10:07]KKMCreateOFDPacket [13:10:07]OFDProtocolAddRootSTLVToBuf [13:10:07]FM_MakeSignedData [13:10:07]FM_MakeSignedData [13:10:07]SAM_PROTO_SignData [13:10:07]wFMCommunicate request_size=4 [13:10:07]MH_SAM_APDU [13:10:07]CAPDU: 80 0D 01 02 [13:10:07]Write to MH i2c: E2 08 00 CB 16 80 0D 01 02 00 00 00 00 5A [13:10:07]Write i2c OK [13:10:07]MH_I2C_Read... [13:10:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:07]Read from MH i2c: E2 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: E2 03 00 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: E2 03 00 CB 16 00 90 00 55 [13:10:07]RAPDU: 90 00 [13:10:07]wFMCommunicate OK [13:10:07]wFMCommunicate request_size=255 [13:10:07]MH_SAM_APDU [13:10:07]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 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 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 26 00 00 00 F4 03 04 00 B4 94 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 [13:10:07]Write to MH i2c: E2 02 01 CC 16 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 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 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 26 00 00 00 F4 03 04 00 B4 94 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 00 00 97 [13:10:07]Write i2c OK [13:10:07]MH_I2C_Read... [13:10:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:07]Read from MH i2c: E2 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: E2 03 00 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: E2 03 00 CC 16 00 90 00 56 [13:10:07]RAPDU: 90 00 [13:10:07]wFMCommunicate OK [13:10:07]wFMCommunicate request_size=41 [13:10:07]MH_SAM_APDU [13:10:07]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 FF 69 00 00 35 04 06 00 DA 19 55 B6 20 3F [13:10:07]Write to MH i2c: E2 2C 00 CD 16 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 FF 69 00 00 35 04 06 00 DA 19 55 B6 20 3F 00 00 F7 [13:10:07]Write i2c OK [13:10:07]MH_I2C_Read... [13:10:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:07]Read from MH i2c: E2 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: E2 03 00 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: E2 03 00 CD 16 00 90 00 57 [13:10:07]RAPDU: 90 00 [13:10:07]wFMCommunicate OK [13:10:07]wFMCommunicate request_size=4 [13:10:07]MH_SAM_APDU [13:10:07]CAPDU: 80 0D 03 02 [13:10:07]Write to MH i2c: E2 08 00 CE 16 80 0D 03 02 00 00 00 00 5F [13:10:07]Write i2c OK [13:10:07]MH_I2C_Read... [13:10:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:07]Read from MH i2c: E2 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: E2 0B 00 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: E2 0B 00 CE 16 00 58 0F DA 5D 01 C2 4E 58 90 00 67 [13:10:07]RAPDU: 58 0F DA 5D 01 C2 4E 58 90 00 [13:10:07]wFMCommunicate OK [13:10:07]SAM_PROTO_SignData done [13:10:07]FM_MakeSignedData done [13:10:07]CreateOFDProtocolMessage [13:10:07]wFMCommunicate request_size=4 [13:10:07]MH_SAM_APDU [13:10:07]CAPDU: 80 11 00 00 [13:10:07]Write to MH i2c: E2 08 00 CF 16 80 11 00 00 00 00 00 00 5F [13:10:07]Write i2c OK [13:10:07]MH_I2C_Read... [13:10:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:07]Read from MH i2c: E2 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: E2 17 00 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: E2 17 00 CF 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 B8 [13:10:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [13:10:07]wFMCommunicate OK [13:10:07]CreateOFDProtocolMessage done [13:10:07]OFDSenderStorePacket 27135 [13:10:07]StoreOFDPacket docnum=27135 [13:10:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 2E 01 00 00 E6 9B 26 01 2C 52 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 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 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 26 00 00 00 F4 03 04 00 B4 94 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 FF 69 00 00 35 04 06 00 DA 19 55 B6 20 3F 58 0F DA 5D 01 C2 4E 58 [13:10:07]CheckFolder [13:10:07]dirname=/storage/ofd_packets [13:10:07]CheckFolder done [13:10:07]ProducePacketName [13:10:07]name=ofd_packets/00027135 [13:10:07]NVStorageSaveData ofd_packets/00027135 [13:10:07]File name is /storage/ofd_packets/00027135 [13:10:07]Write 332 bytes [13:10:07]NVStorageSaveData done [13:10:07]OFDSenderStorePacket done [13:10:07]KKMCreateOFDPacket done [13:10:07]NVStorageSaveData kkm_last_timestamp [13:10:07]File name is /storage/kkm_last_timestamp [13:10:07]Write 4 bytes [13:10:07]NVStorageSaveData done [13:10:07]ExternCall_PrintAddStr [13:10:07]wPrintStart [13:10:07]Write to MH i2c: 01 00 00 D0 16 E6 [13:10:07]OFD Sender: Processing packet 27135 [packets to send 9, broken 8] [13:10:07]ProducePacketName [13:10:07]name=ofd_packets/00027135 [13:10:07]OFD Sender: To server: pG, [13:10:07]CommunicateWithHost lk.salyk.kg:30040 [13:10:07]ConnectInit lk.salyk.kg [13:10:07]Write i2c OK [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: 01 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: 01 07 00 [13:10:07]MH_I2C_Read... [13:10:07]Read from MH i2c: 01 07 00 D0 16 00 00 00 00 00 FF 0F FB [13:10:07]RasterBufferAndPrint [13:10:07]line Счет N : (3)150533 [13:10:07]line ИНН: 02508201610067 [13:10:07]line Контрольно-Кассовый Чек [13:10:07]line ПРОДАЖА [13:10:07]line Товар: 4700000480357 [13:10:08]line Пиво шахтерское 1л ПЭТ [13:10:08]line 1.000 * 170.00 [13:10:08]line = 170.00 [13:10:08]line НДС 12% НСП 1% [13:10:08]line > о реализуемом товаре [13:10:08]line ИТОГО: 170.00 [13:10:08]line НСП 1% : 1.50 [13:10:08]line НДС 12% : 18.05 [13:10:08]line Наличными: 170.00 [13:10:08]line Безнал.: 0.00 [13:10:08]line Место: АЗС № 134 "Партнер Нефть" [13:10:08]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:10:08]line СНО: Общий режим [13:10:08]line Чек 38 29.07.2024 13:10 [13:10:08]line Смена: 434 ФФД: 1.0 [13:10:08]line ЗНМ: 0300000043 [13:10:08]line РНМ: 0000000000092663 [13:10:08]line Версия ККМ: 001 [13:10:08]line ФМ: 0000000000874937 [13:10:08]line ФД: 27135 [13:10:08]line ФПД: 239802347036735 [13:10:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T131012&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27135&fm=239802347036735&tin=02508201610067®Number=0000000000092663&sum=17000 [13:10:08]line 0 [13:10:08]written 0, free lines is 4095 [13:10:08]Connected sock=10 [13: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 34 39 33 37 2E 01 00 00 E6 9B 26 01 2C 52 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 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 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 26 00 00 00 F4 03 04 00 B4 94 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 FF 69 00 00 35 04 06 00 DA 19 55 B6 20 3F 58 0F DA 5D 01 C2 4E 58 [13:10:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 8E A6 47 00 96 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 FF 69 00 00 F4 03 04 00 04 3B A7 66 B6 04 01 00 00 F6 26 DB 7E ED DC A9 5B [13:10:08]CommunicateWithHost err = 0 [13:10:08]CheckOFDResponse [13:10:08]1017 (14) - 77093643461234 [13:10:08]1041 (16) - 0000000000874937 [13:10:08]1040 (4) - 27135 [13:10:08]1012 (4) - 29.07.2024 06:47 [13:10:08]1206 (1) - 0 [13:10:08]OFD Sender: Remove packet 27135 [13:10:08]ProducePacketName [13:10:08]name=ofd_packets/00027135 [13:10:08]NVStorageDeleteData [13:10:08]Write to MH i2c: 01 00 00 F7 16 0D [13:10:08]Write i2c OK [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: 01 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: 01 07 00 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: 01 07 00 F7 16 00 00 00 00 00 F2 0C 12 [13:10:08]RasterBufferAndPrint [13:10:08]line [13:10:08]line [13:10:08]line [13:10:08]line [13:10:08]line [13:10:08]written 0, free lines is 3320 [13:10:08]MH_Cut [13:10:08]Write to MH i2c: D1 01 00 FE 16 01 E6 [13:10:08]Write i2c OK [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: D1 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: D1 01 00 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: D1 01 00 FE 16 00 E5 [13:10:08]Write to MH i2c: 01 00 00 FF 16 15 [13:10:08]Write i2c OK [13:10:08]MH_I2C_Read... [13:10:09]OFD Sender: No OFD packet to send [13:10:09]*** Cut start [13:10:09]*** Partial cut [13:10:09]*** CUTSNS_PIN = 1 [13:10:09]*** CUTSNS_PIN = 0 [13:10:09]*** Brake cut motor [13:10:10]Read from MH i2c: 01 [13:10:10]MH_I2C_Read... [13:10:10]*** Stop cut motor [13:10:10]*** Cut end [13:10:10]Read from MH i2c: 01 07 00 [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: 01 07 00 FF 16 00 00 00 00 00 FF 0F 2A [13:10:10]process_action close_receipt done [13:10:10]requested_data is exist [13:10:10]produce_requested_data [13:10:10]requested_item fm.sn is exist - process it [13:10:10]wFMCommunicate request_size=4 [13:10:10]MH_SAM_APDU [13:10:10]CAPDU: 80 11 00 00 [13:10:10]Write to MH i2c: E2 08 00 00 17 80 11 00 00 00 00 00 00 91 [13:10:10]Write i2c OK [13:10:10]MH_I2C_Read... [13:10:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:10]Read from MH i2c: E2 [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: E2 17 00 [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: E2 17 00 00 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 EA [13:10:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [13:10:10]wFMCommunicate OK [13:10:10]requested_item fd.num is exist - process it [13:10:10]SAM_PROTO_GetFieldsCounters [13:10:10]wFMCommunicate request_size=4 [13:10:10]MH_SAM_APDU [13:10:10]CAPDU: 80 13 00 00 [13:10:10]Write to MH i2c: E2 08 00 01 17 80 13 00 00 00 00 00 00 94 [13:10:10]Write i2c OK [13:10:10]MH_I2C_Read... [13:10:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:10:10]Read from MH i2c: E2 [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: E2 62 00 [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: E2 62 00 01 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 FF 69 00 00 0E 04 04 00 B2 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 49 [13:10:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 FF 69 00 00 0E 04 04 00 B2 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 [13:10:10]wFMCommunicate OK [13:10:10]SAM_PROTO_GetFieldsCounters done [13:10:10]requested_item shift.num is exist - process it [13:10:10]requested_item shift.opened is exist - process it [13:10:10]req_shift_opened [13:10:10]FM_GetShiftState [13:10:10]SAM_PROTO_GetShiftState [13:10:10]wFMCommunicate request_size=4 [13:10:10]MH_SAM_APDU [13:10:10]CAPDU: 80 13 01 00 [13:10:10]Write to MH i2c: E2 08 00 02 17 80 13 01 00 00 00 00 00 96 [13:10:10]Write i2c OK [13:10:10]MH_I2C_Read... [13:10:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:10]Read from MH i2c: E2 [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: E2 0E 00 [13:10:10]MH_I2C_Read... [13:10:10]Read from MH i2c: E2 0E 00 02 17 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 17 [13:10:10]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [13:10:10]wFMCommunicate OK [13:10:10]SAM_PROTO_GetShiftState done [13:10:10]FM_GetShiftState done [13:10:10]req_shift_opened done [13:10:10]requested_item shift.open_date is exist - process it [13:10:10]req_shift_open_date [13:10:10]req_shift_open_date done [13:10:10]produce_requested_data done [13:10:10]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27135,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [13:10:10]process_action_free close_receipt [13:10:10]json_value_free [13:10:10]json_value_free done [13:10:10]process_json_proto returns [13:10:10]Send response to host [13:10:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27135,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [13:10:10]free response buf [13:10:10]execute_script done [13:10:10]execute_script returns [13:10:10]free content buf [13:10:10]Sock 8.Close socket [13:10:10]Sock 8.Thread stoped [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:25]accept exits with 9 [13:10:25]New connection [13:10:25]New thread 3066928484 created [13:10:25]Thread 3066785124 joined [13:10:25]Waiting for new connection... [13:10:25] Sock 9.Parse request [13:10:25]Sock 9.Check first char [13:10:25]Sock 9.First char is OK [13:10:25]request: POST /json_proto HTTP/1.0 [13:10:25]Method: POST [13:10:25]URL: /json_proto [13:10:25]Method is POST - this is cgi request [13:10:25]url: /json_proto [13:10:25]query_string will be loaded in cgi processing [13:10:25]execute_cgi json_proto POST (null) [13:10:25]execute_cgi path=json_proto method=POST [13:10:25]POST find Content-Length [13:10:25]Host: 172.17.45.8:8080 [13:10:25]Content-Length: 668 [13:10:25]Content-Type: application/json [13:10:25] [13:10:25]POST finish read [13:10:25]Found Content-Length = 668 [13:10:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150534", "tax_sys" : 0, "items" : [ { "code": "4690329000476", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u0448\u0430\u0448\u043B\u044B\u043A 40\u0433", "price" : 21.00, "quantity" : 1.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 21.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:25]execute_script... [13:10: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)150534", "tax_sys" : 0, "items" : [ { "code": "4690329000476", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u0448\u0430\u0448\u043B\u044B\u043A 40\u0433", "price" : 21.00, "quantity" : 1.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 21.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:25]POST & json_proto [13:10:25]process_json_proto [13:10:25]json parsed OK: [13:10:25]protocol is kg_v1.0 [13:10:25]action value=close_receipt [13:10:25]process_action close_receipt [13:10:25]cmd_close_receipt [13:10:25]MH_GetDate [13:10:25]Write to MH i2c: F0 00 00 03 17 09 [13:10:25]Write i2c OK [13:10:25]MH_I2C_Read... [13:10:25]Read from MH i2c: F0 [13:10:25]MH_I2C_Read... [13:10:25]Read from MH i2c: F0 09 00 [13:10:25]MH_I2C_Read... [13:10:25]Read from MH i2c: F0 09 00 03 17 00 C6 94 A7 66 A6 1F 7F 64 21 [13:10:25]GetLastDocTimeStamp 1722258612 [13:10:25]current date 1722258630 [13:10:25]FM_GetShiftState [13:10:25]SAM_PROTO_GetShiftState [13:10:25]wFMCommunicate request_size=4 [13:10:25]MH_SAM_APDU [13:10:25]CAPDU: 80 13 01 00 [13:10:25]Write to MH i2c: E2 08 00 04 17 80 13 01 00 00 00 00 00 98 [13:10:25]Write i2c OK [13:10:25]MH_I2C_Read... [13:10:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:25]Read from MH i2c: E2 [13:10:25]MH_I2C_Read... [13:10:25]Read from MH i2c: E2 0E 00 [13:10:25]MH_I2C_Read... [13:10:25]Read from MH i2c: E2 0E 00 04 17 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 19 [13:10:25]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [13:10:25]wFMCommunicate OK [13:10:25]SAM_PROTO_GetShiftState done [13:10:25]FM_GetShiftState done [13:10:25]opened in 1722213509 [13:10:25]opened+sec_in_day 1722299909 [13:10:25]quantity*price = 2100 [13:10:25]sum+1 = 2101 [13:10:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 21.00 НСП 1% : 0.19 НДС 12% : 2.23 Наличными: 21.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 39 29.07.2024 13:10 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27136 ФПД: 12312456082170 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T131030&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27136&fm=12312456082170&tin=02508201610067®Number=0000000000092663&sum=2100 0 [13:10:26]StoreToDocumentArchive [13:10:26]shift 434 fd 27136 [13:10:26]save to /storage/0434/doc_00027136 [13:10:26]save last doc name /storage/0434/doc_00027136 to /storage/kkm_last_doc_name [13:10:26]save OK [13:10:26]Clear old archive folders... [13:10:26]ProcessDocumentItem done err = 0, tmpTLVsize=283 [13:10:26]tlvbuf is 001F1390 [13:10:26]SAM_PROTO_ClearQueue [13:10:26]wFMCommunicate request_size=4 [13:10:26]MH_SAM_APDU [13:10:26]CAPDU: 80 09 00 00 [13:10:26]Write to MH i2c: E2 08 00 11 17 80 09 00 00 00 00 00 00 9A [13:10:26]Write i2c OK [13:10:26]MH_I2C_Read... [13:10:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:26]Read from MH i2c: E2 [13:10:26]MH_I2C_Read... [13:10:26]Read from MH i2c: E2 03 00 [13:10:26]MH_I2C_Read... [13:10:26]Read from MH i2c: E2 03 00 11 17 00 90 00 9C [13:10:26]RAPDU: 90 00 [13:10:26]wFMCommunicate OK [13:10:26]SAM_PROTO_ClearQueue done [13:10:26]KKMCreateOFDPacket [13:10:26]OFDProtocolAddRootSTLVToBuf [13:10:26]FM_MakeSignedData [13:10:26]FM_MakeSignedData [13:10:26]SAM_PROTO_SignData [13:10:26]wFMCommunicate request_size=4 [13:10:26]MH_SAM_APDU [13:10:26]CAPDU: 80 0D 01 02 [13:10:26]Write to MH i2c: E2 08 00 12 17 80 0D 01 02 00 00 00 00 A2 [13:10:26]Write i2c OK [13:10:26]MH_I2C_Read... [13:10:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:26]Read from MH i2c: E2 [13:10:26]MH_I2C_Read... [13:10:26]Read from MH i2c: E2 03 00 [13:10:26]MH_I2C_Read... [13:10:26]Read from MH i2c: E2 03 00 12 17 00 90 00 9D [13:10:26]RAPDU: 90 00 [13:10:26]wFMCommunicate OK [13:10:26]wFMCommunicate request_size=255 [13:10:26]MH_SAM_APDU [13:10:26]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 30 34 37 36 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 34 08 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 C6 94 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 [13:10:26]Write to MH i2c: E2 02 01 13 17 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 30 34 37 36 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 34 08 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 C6 94 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 00 00 85 [13:10:26]Write i2c OK [13:10:26]MH_I2C_Read... [13:10:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:26]Read from MH i2c: E2 [13:10:26]MH_I2C_Read... [13:10:26]Read from MH i2c: E2 03 00 [13:10:26]MH_I2C_Read... [13:10:26]Read from MH i2c: E2 03 00 13 17 00 90 00 9E [13:10:26]RAPDU: 90 00 [13:10:26]wFMCommunicate OK [13:10:26]wFMCommunicate request_size=42 [13:10:26]MH_SAM_APDU [13:10:26]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 00 6A 00 00 35 04 06 00 0B 32 B7 92 32 FA [13:10:26]Write to MH i2c: E2 2D 00 14 17 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 00 6A 00 00 35 04 06 00 0B 32 B7 92 32 FA 00 00 9C [13:10:26]Write i2c OK [13:10:26]MH_I2C_Read... [13:10:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:26]Read from MH i2c: E2 [13:10:26]MH_I2C_Read... [13:10:26]Read from MH i2c: E2 03 00 [13:10:26]MH_I2C_Read... [13:10:26]Read from MH i2c: E2 03 00 14 17 00 90 00 9F [13:10:26]RAPDU: 90 00 [13:10:26]wFMCommunicate OK [13:10:26]wFMCommunicate request_size=4 [13:10:26]MH_SAM_APDU [13:10:26]CAPDU: 80 0D 03 02 [13:10:26]Write to MH i2c: E2 08 00 15 17 80 0D 03 02 00 00 00 00 A7 [13:10:26]Write i2c OK [13:10:26]MH_I2C_Read... [13:10:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:26]Read from MH i2c: E2 [13:10:26]MH_I2C_Read... [13:10:26]Read from MH i2c: E2 0B 00 [13:10:26]MH_I2C_Read... [13:10:26]Read from MH i2c: E2 0B 00 15 17 00 5C 66 28 25 4B 09 39 DD 90 00 21 [13:10:26]RAPDU: 5C 66 28 25 4B 09 39 DD 90 00 [13:10:26]wFMCommunicate OK [13:10:26]SAM_PROTO_SignData done [13:10:26]FM_MakeSignedData done [13:10:26]CreateOFDProtocolMessage [13:10:26]wFMCommunicate request_size=4 [13:10:26]MH_SAM_APDU [13:10:26]CAPDU: 80 11 00 00 [13:10:26]Write to MH i2c: E2 08 00 16 17 80 11 00 00 00 00 00 00 A7 [13:10:26]Write i2c OK [13:10:26]MH_I2C_Read... [13:10:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:26]Read from MH i2c: E2 [13:10:26]MH_I2C_Read... [13:10:26]Read from MH i2c: E2 17 00 [13:10:26]MH_I2C_Read... [13:10:26]Read from MH i2c: E2 17 00 16 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 00 [13:10:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [13:10:26]wFMCommunicate OK [13:10:26]CreateOFDProtocolMessage done [13:10:26]OFDSenderStorePacket 27136 [13:10:26]StoreOFDPacket docnum=27136 [13:10:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 2F 01 00 00 8C BD 27 01 6B 1F 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 30 34 37 36 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 34 08 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 C6 94 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 00 6A 00 00 35 04 06 00 0B 32 B7 92 32 FA 5C 66 28 25 4B 09 39 DD [13:10:26]CheckFolder [13:10:26]dirname=/storage/ofd_packets [13:10:26]CheckFolder done [13:10:26]ProducePacketName [13:10:26]name=ofd_packets/00027136 [13:10:26]NVStorageSaveData ofd_packets/00027136 [13:10:26]File name is /storage/ofd_packets/00027136 [13:10:26]Write 333 bytes [13:10:26]NVStorageSaveData done [13:10:26]OFDSenderStorePacket done [13:10:26]KKMCreateOFDPacket done [13:10:26]NVStorageSaveData kkm_last_timestamp [13:10:26]File name is /storage/kkm_last_timestamp [13:10:26]Write 4 bytes [13:10:26]NVStorageSaveData done [13:10:26]ExternCall_PrintAddStr [13:10:26]wPrintStart [13:10:26]Write to MH i2c: 01 00 00 17 17 2E [13:10:26]Write i2c OK [13:10:26]MH_I2C_Read... [13:10:26]Read from MH i2c: 01 [13:10:26]MH_I2C_Read... [13:10:26]Read from MH i2c: 01 07 00 [13:10:26]MH_I2C_Read... [13:10:26]Read from MH i2c: 01 07 00 17 17 00 00 00 00 00 FF 0F 43 [13:10:26]RasterBufferAndPrint [13:10:26]line Счет N : (3)150534 [13:10:26]line ИНН: 02508201610067 [13:10:26]line Контрольно-Кассовый Чек [13:10:26]line ПРОДАЖА [13:10:26]line Товар: 4690329000476 [13:10:26]line Сух Кириешки шашлык 40г [13:10:26]line 1.000 * 21.00 [13:10:26]line = 21.00 [13:10:26]line НДС 12% НСП 1% [13:10:26]line > о реализуемом товаре [13:10:26]line ИТОГО: 21.00 [13:10:26]line НСП 1% : 0.19 [13:10:26]line НДС 12% : 2.23 [13:10:26]line Наличными: 21.00 [13:10:26]line Безнал.: 0.00 [13:10:26]line Место: АЗС № 134 "Партнер Нефть" [13:10:26]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:10:26]line СНО: Общий режим [13:10:26]line Чек 39 29.07.2024 13:10 [13:10:26]line Смена: 434 ФФД: 1.0 [13:10:26]line ЗНМ: 0300000043 [13:10:26]line РНМ: 0000000000092663 [13:10:26]line Версия ККМ: 001 [13:10:26]line ФМ: 0000000000874937 [13:10:26]line ФД: 27136 [13:10:26]line ФПД: 12312456082170 [13:10:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T131030&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27136&fm=12312456082170&tin=02508201610067®Number=0000000000092663&sum=2100 [13:10:26]line 0 [13:10:26]written 0, free lines is 4095 [13:10:26]OFD Sender: Processing packet 27136 [packets to send 9, broken 8] [13:10:26]ProducePacketName [13:10:26]name=ofd_packets/00027136 [13:10:26]OFD Sender: To server: pG, [13:10:26]CommunicateWithHost lk.salyk.kg:30040 [13:10:26]ConnectInit lk.salyk.kg [13:10:27]Connected sock=8 [13:10:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 2F 01 00 00 8C BD 27 01 6B 1F 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 30 34 37 36 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 34 08 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 C6 94 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 00 6A 00 00 35 04 06 00 0B 32 B7 92 32 FA 5C 66 28 25 4B 09 39 DD [13:10:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 58 38 47 00 C9 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 00 6A 00 00 F4 03 04 00 17 3B A7 66 B6 04 01 00 00 12 A0 4D 48 C3 DF 6E 54 [13:10:27]CommunicateWithHost err = 0 [13:10:27]CheckOFDResponse [13:10:27]1017 (14) - 77093643461234 [13:10:27]1041 (16) - 0000000000874937 [13:10:27]1040 (4) - 27136 [13:10:27]1012 (4) - 29.07.2024 06:47 [13:10:27]1206 (1) - 0 [13:10:27]OFD Sender: Remove packet 27136 [13:10:27]ProducePacketName [13:10:27]name=ofd_packets/00027136 [13:10:27]NVStorageDeleteData [13:10:27]Write to MH i2c: 01 00 00 3E 17 55 [13:10:27]Write i2c OK [13:10:27]MH_I2C_Read... [13:10:27]Read from MH i2c: 01 [13:10:27]MH_I2C_Read... [13:10:27]Read from MH i2c: 01 07 00 [13:10:27]MH_I2C_Read... [13:10:27]Read from MH i2c: 01 07 00 3E 17 00 00 00 00 00 FF 0C 67 [13:10:27]RasterBufferAndPrint [13:10:27]line [13:10:27]line [13:10:27]line [13:10:27]line [13:10:27]line [13:10:27]written 0, free lines is 3337 [13:10:27]MH_Cut [13:10:27]Write to MH i2c: D1 01 00 45 17 01 2E [13:10:27]Write i2c OK [13:10:27]MH_I2C_Read... [13:10:27]Read from MH i2c: D1 [13:10:27]MH_I2C_Read... [13:10:27]Read from MH i2c: D1 01 00 [13:10:27]MH_I2C_Read... [13:10:27]Read from MH i2c: D1 01 00 45 17 00 2D [13:10:27]Write to MH i2c: 01 00 00 46 17 5D [13:10:27]Write i2c OK [13:10:27]MH_I2C_Read... [13:10:27]OFD Sender: No OFD packet to send [13:10:28]*** Cut start [13:10:28]*** Partial cut [13:10:28]*** CUTSNS_PIN = 1 [13:10:28]*** CUTSNS_PIN = 0 [13:10:28]*** Brake cut motor [13:10:28]Read from MH i2c: 01 [13:10:28]MH_I2C_Read... [13:10:28]*** Stop cut motor [13:10:28]*** Cut end [13:10:28]Read from MH i2c: 01 07 00 [13:10:28]MH_I2C_Read... [13:10:28]Read from MH i2c: 01 07 00 46 17 00 00 00 00 00 FF 0F 72 [13:10:28]process_action close_receipt done [13:10:28]requested_data is exist [13:10:28]produce_requested_data [13:10:28]requested_item fm.sn is exist - process it [13:10:28]wFMCommunicate request_size=4 [13:10:28]MH_SAM_APDU [13:10:28]CAPDU: 80 11 00 00 [13:10:28]Write to MH i2c: E2 08 00 47 17 80 11 00 00 00 00 00 00 D8 [13:10:28]Write i2c OK [13:10:28]MH_I2C_Read... [13:10:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:28]Read from MH i2c: E2 [13:10:28]MH_I2C_Read... [13:10:28]Read from MH i2c: E2 17 00 [13:10:28]MH_I2C_Read... [13:10:28]Read from MH i2c: E2 17 00 47 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 31 [13:10:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [13:10:28]wFMCommunicate OK [13:10:28]requested_item fd.num is exist - process it [13:10:28]SAM_PROTO_GetFieldsCounters [13:10:28]wFMCommunicate request_size=4 [13:10:28]MH_SAM_APDU [13:10:28]CAPDU: 80 13 00 00 [13:10:28]Write to MH i2c: E2 08 00 48 17 80 13 00 00 00 00 00 00 DB [13:10:28]Write i2c OK [13:10:28]MH_I2C_Read... [13:10:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:10:28]Read from MH i2c: E2 [13:10:28]MH_I2C_Read... [13:10:28]Read from MH i2c: E2 62 00 [13:10:28]MH_I2C_Read... [13:10:28]Read from MH i2c: E2 62 00 48 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 00 6A 00 00 0E 04 04 00 B2 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 95 [13:10: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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 00 6A 00 00 0E 04 04 00 B2 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 [13:10:28]wFMCommunicate OK [13:10:28]SAM_PROTO_GetFieldsCounters done [13:10:28]requested_item shift.num is exist - process it [13:10:28]requested_item shift.opened is exist - process it [13:10:28]req_shift_opened [13:10:28]FM_GetShiftState [13:10:28]SAM_PROTO_GetShiftState [13:10:28]wFMCommunicate request_size=4 [13:10:28]MH_SAM_APDU [13:10:28]CAPDU: 80 13 01 00 [13:10:28]Write to MH i2c: E2 08 00 49 17 80 13 01 00 00 00 00 00 DD [13:10:28]Write i2c OK [13:10:28]MH_I2C_Read... [13:10:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:28]Read from MH i2c: E2 [13:10:28]MH_I2C_Read... [13:10:28]Read from MH i2c: E2 0E 00 [13:10:28]MH_I2C_Read... [13:10:28]Read from MH i2c: E2 0E 00 49 17 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 5E [13:10:28]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [13:10:28]wFMCommunicate OK [13:10:28]SAM_PROTO_GetShiftState done [13:10:28]FM_GetShiftState done [13:10:28]req_shift_opened done [13:10:28]requested_item shift.open_date is exist - process it [13:10:28]req_shift_open_date [13:10:28]req_shift_open_date done [13:10:28]produce_requested_data done [13:10:28]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27136,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [13:10:28]process_action_free close_receipt [13:10:28]json_value_free [13:10:28]json_value_free done [13:10:28]process_json_proto returns [13:10:28]Send response to host [13:10:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27136,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [13:10:28]free response buf [13:10:28]execute_script done [13:10:28]execute_script returns [13:10:28]free content buf [13:10:28]Sock 9.Close socket [13:10:28]Sock 9.Thread stoped [13:10:32]OFD Sender: No OFD packet to send [13:10:37]OFD Sender: No OFD packet to send [13:10:42]OFD Sender: No OFD packet to send [13:10:47]OFD Sender: No OFD packet to send [13:10:52]OFD Sender: No OFD packet to send [13:10:57]OFD Sender: No OFD packet to send [13:11:02]OFD Sender: No OFD packet to send [13:11:07]OFD Sender: No OFD packet to send [13:11:12]OFD Sender: No OFD packet to send [13:11:17]OFD Sender: No OFD packet to send [13:11:22]OFD Sender: No OFD packet to send [13:11:27]OFD Sender: No OFD packet to send [13:11:32]OFD Sender: No OFD packet to send [13:11:37]OFD Sender: No OFD packet to send [13:11:42]OFD Sender: No OFD packet to send [13:11:47]OFD Sender: No OFD packet to send [13:11:52]OFD Sender: No OFD packet to send [13:11:57]OFD Sender: No OFD packet to send [13:12:02]OFD Sender: No OFD packet to send [13:12:07]OFD Sender: No OFD packet to send [13:12:12]OFD Sender: No OFD packet to send [13:12:17]OFD Sender: No OFD packet to send [13:12:22]OFD Sender: No OFD packet to send [13:12:27]OFD Sender: No OFD packet to send [13:12:32]OFD Sender: No OFD packet to send [13:12:37]OFD Sender: No OFD packet to send [13:12:42]OFD Sender: No OFD packet to send [13:12:47]OFD Sender: No OFD packet to send [13:12:52]OFD Sender: No OFD packet to send [13:12:57]OFD Sender: No OFD packet to send [13:13:02]OFD Sender: No OFD packet to send [13:13:07]OFD Sender: No OFD packet to send [13:13:12]OFD Sender: No OFD packet to send [13:13:17]OFD Sender: No OFD packet to send [13:13:22]OFD Sender: No OFD packet to send [13:13:27]OFD Sender: No OFD packet to send [13:13:32]OFD Sender: No OFD packet to send [13:13:37]OFD Sender: No OFD packet to send [13:13:42]OFD Sender: No OFD packet to send [13:13:47]OFD Sender: No OFD packet to send [13:13:52]OFD Sender: No OFD packet to send [13:13:57]OFD Sender: No OFD packet to send [13:14:02]OFD Sender: No OFD packet to send [13:14:07]OFD Sender: No OFD packet to send [13:14:12]OFD Sender: No OFD packet to send [13:14:17]OFD Sender: No OFD packet to send [13:14:22]OFD Sender: No OFD packet to send [13:14:27]OFD Sender: No OFD packet to send [13:14:32]OFD Sender: No OFD packet to send [13:14:37]OFD Sender: No OFD packet to send [13:14:42]OFD Sender: No OFD packet to send [13:14:48]OFD Sender: No OFD packet to send [13:14:53]OFD Sender: No OFD packet to send [13:14:58]OFD Sender: No OFD packet to send [13:15:03]OFD Sender: No OFD packet to send [13:15:08]OFD Sender: No OFD packet to send [13:15:13]OFD Sender: No OFD packet to send [13:15:18]OFD Sender: No OFD packet to send [13:15:23]OFD Sender: No OFD packet to send [13:15:28]OFD Sender: No OFD packet to send [13:15:33]OFD Sender: No OFD packet to send [13:15:38]OFD Sender: No OFD packet to send [13:15:43]OFD Sender: No OFD packet to send [13:15:48]OFD Sender: No OFD packet to send [13:15:53]OFD Sender: No OFD packet to send [13:15:58]OFD Sender: No OFD packet to send [13:16:03]OFD Sender: No OFD packet to send [13:16:08]OFD Sender: No OFD packet to send [13:16:13]OFD Sender: No OFD packet to send [13:16:18]OFD Sender: No OFD packet to send [13:16:23]OFD Sender: No OFD packet to send [13:16:28]OFD Sender: No OFD packet to send [13:16:33]OFD Sender: No OFD packet to send [13:16:38]OFD Sender: No OFD packet to send [13:16:43]OFD Sender: No OFD packet to send [13:16:48]OFD Sender: No OFD packet to send [13:16:53]OFD Sender: No OFD packet to send [13:16:58]OFD Sender: No OFD packet to send [13:17:03]OFD Sender: No OFD packet to send [13:17:08]OFD Sender: No OFD packet to send [13:17:13]OFD Sender: No OFD packet to send [13:17:18]OFD Sender: No OFD packet to send [13:17:23]OFD Sender: No OFD packet to send [13:17:28]OFD Sender: No OFD packet to send [13:17:33]OFD Sender: No OFD packet to send [13:17:38]OFD Sender: No OFD packet to send [13:17:43]OFD Sender: No OFD packet to send [13:17:48]OFD Sender: No OFD packet to send [13:17:53]OFD Sender: No OFD packet to send [13:17:58]OFD Sender: No OFD packet to send [13:18:03]OFD Sender: No OFD packet to send [13:18:08]OFD Sender: No OFD packet to send [13:18:13]OFD Sender: No OFD packet to send [13:18:18]OFD Sender: No OFD packet to send [13:18:23]OFD Sender: No OFD packet to send [13:18:28]OFD Sender: No OFD packet to send [13:18:33]OFD Sender: No OFD packet to send [13:18:38]OFD Sender: No OFD packet to send [13:18:43]OFD Sender: No OFD packet to send [13:18:48]OFD Sender: No OFD packet to send [13:18:53]OFD Sender: No OFD packet to send [13:18:58]OFD Sender: No OFD packet to send [13:19:03]OFD Sender: No OFD packet to send [13:19:08]OFD Sender: No OFD packet to send [13:19:13]OFD Sender: No OFD packet to send [13:19:18]OFD Sender: No OFD packet to send [13:19:23]OFD Sender: No OFD packet to send [13:19:28]OFD Sender: No OFD packet to send [13:19:33]OFD Sender: No OFD packet to send [13:19:38]OFD Sender: No OFD packet to send [13:19:43]OFD Sender: No OFD packet to send [13:19:48]OFD Sender: No OFD packet to send [13:19:53]OFD Sender: No OFD packet to send [13:19:58]OFD Sender: No OFD packet to send [13:20:03]OFD Sender: No OFD packet to send [13:20:08]OFD Sender: No OFD packet to send [13:20:13]OFD Sender: No OFD packet to send [13:20:18]OFD Sender: No OFD packet to send [13:20:23]OFD Sender: No OFD packet to send [13:20:28]OFD Sender: No OFD packet to send [13:20:33]OFD Sender: No OFD packet to send [13:20:38]OFD Sender: No OFD packet to send [13:20:43]OFD Sender: No OFD packet to send [13:20:48]OFD Sender: No OFD packet to send [13:20:53]OFD Sender: No OFD packet to send [13:20:58]OFD Sender: No OFD packet to send [13:21:03]OFD Sender: No OFD packet to send [13:21:08]OFD Sender: No OFD packet to send [13:21:13]OFD Sender: No OFD packet to send [13:21:18]OFD Sender: No OFD packet to send [13:21:23]OFD Sender: No OFD packet to send [13:21:28]OFD Sender: No OFD packet to send [13:21:33]OFD Sender: No OFD packet to send [13:21:38]OFD Sender: No OFD packet to send [13:21:43]OFD Sender: No OFD packet to send [13:21:48]OFD Sender: No OFD packet to send [13:21:53]OFD Sender: No OFD packet to send [13:21:58]OFD Sender: No OFD packet to send [13:22:03]OFD Sender: No OFD packet to send [13:22:08]OFD Sender: No OFD packet to send [13:22:13]OFD Sender: No OFD packet to send [13:22:18]OFD Sender: No OFD packet to send [13:22:23]OFD Sender: No OFD packet to send [13:22:28]OFD Sender: No OFD packet to send [13:22:33]OFD Sender: No OFD packet to send [13:22:38]OFD Sender: No OFD packet to send [13:22:43]OFD Sender: No OFD packet to send [13:22:48]OFD Sender: No OFD packet to send [13:22:53]OFD Sender: No OFD packet to send [13:22:58]OFD Sender: No OFD packet to send [13:23:03]OFD Sender: No OFD packet to send [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:39]accept exits with 10 [13:24:39]New connection [13:24:39]New thread 3066785124 created [13:24:39]Thread 3066928484 joined [13:24:39]Waiting for new connection... [13:24:39] Sock 10.Parse request [13:24:39]Sock 10.Check first char [13:24:39]Sock 10.First char is OK [13:24:39]request: POST /json_proto HTTP/1.0 [13:24:39]Method: POST [13:24:39]URL: /json_proto [13:24:39]Method is POST - this is cgi request [13:24:39]url: /json_proto [13:24:39]query_string will be loaded in cgi processing [13:24:39]execute_cgi json_proto POST (null) [13:24:39]execute_cgi path=json_proto method=POST [13:24:39]POST find Content-Length [13:24:39]Host: 172.17.45.8:8080 [13:24:39]Content-Length: 630 [13:24:39]Content-Type: application/json [13:24:39] [13:24:39]POST finish read [13:24:39]Found Content-Length = 630 [13:24:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150535", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\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" ] } } [13:24:39]execute_script... [13:24:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150535", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\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" ] } } [13:24:39]POST & json_proto [13:24:39]process_json_proto [13:24:39]json parsed OK: [13:24:39]protocol is kg_v1.0 [13:24:39]action value=close_receipt [13:24:39]process_action close_receipt [13:24:39]cmd_close_receipt [13:24:39]MH_GetDate [13:24:39]Write to MH i2c: F0 00 00 4A 17 50 [13:24:39]Write i2c OK [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: F0 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: F0 09 00 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: F0 09 00 4A 17 00 1C 98 A7 66 A6 1F 7F 64 C2 [13:24:39]GetLastDocTimeStamp 1722258630 [13:24:39]current date 1722259484 [13:24:39]FM_GetShiftState [13:24:39]SAM_PROTO_GetShiftState [13:24:39]wFMCommunicate request_size=4 [13:24:39]MH_SAM_APDU [13:24:39]CAPDU: 80 13 01 00 [13:24:39]Write to MH i2c: E2 08 00 4B 17 80 13 01 00 00 00 00 00 DF [13:24:39]Write i2c OK [13:24:39]MH_I2C_Read... [13:24:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:39]Read from MH i2c: E2 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: E2 0E 00 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: E2 0E 00 4B 17 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 60 [13:24:39]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [13:24:39]wFMCommunicate OK [13:24:39]SAM_PROTO_GetShiftState done [13:24:39]FM_GetShiftState done [13:24:39]opened in 1722213509 [13:24:39]opened+sec_in_day 1722299909 [13:24:39]quantity*price = 5000 [13:24:39]sum+1 = 5001 [13:24:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 40 29.07.2024 13:24 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27137 ФПД: 41840435929962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T132444&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27137&fm=41840435929962&tin=02508201610067®Number=0000000000092663&sum=5000 0 [13:24:40]StoreToDocumentArchive [13:24:40]shift 434 fd 27137 [13:24:40]save to /storage/0434/doc_00027137 [13:24:40]save last doc name /storage/0434/doc_00027137 to /storage/kkm_last_doc_name [13:24:40]save OK [13:24:40]Clear old archive folders... [13:24:40]ProcessDocumentItem done err = 0, tmpTLVsize=269 [13:24:40]tlvbuf is B6EA2D50 [13:24:40]SAM_PROTO_ClearQueue [13:24:40]wFMCommunicate request_size=4 [13:24:40]MH_SAM_APDU [13:24:40]CAPDU: 80 09 00 00 [13:24:40]Write to MH i2c: E2 08 00 58 17 80 09 00 00 00 00 00 00 E1 [13:24:40]Write i2c OK [13:24:40]MH_I2C_Read... [13:24:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:40]Read from MH i2c: E2 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 03 00 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 03 00 58 17 00 90 00 E3 [13:24:40]RAPDU: 90 00 [13:24:40]wFMCommunicate OK [13:24:40]SAM_PROTO_ClearQueue done [13:24:40]KKMCreateOFDPacket [13:24:40]OFDProtocolAddRootSTLVToBuf [13:24:40]FM_MakeSignedData [13:24:40]FM_MakeSignedData [13:24:40]SAM_PROTO_SignData [13:24:40]wFMCommunicate request_size=4 [13:24:40]MH_SAM_APDU [13:24:40]CAPDU: 80 0D 01 02 [13:24:40]Write to MH i2c: E2 08 00 59 17 80 0D 01 02 00 00 00 00 E9 [13:24:40]Write i2c OK [13:24:40]MH_I2C_Read... [13:24:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:40]Read from MH i2c: E2 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 03 00 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 03 00 59 17 00 90 00 E4 [13:24:40]RAPDU: 90 00 [13:24:40]wFMCommunicate OK [13:24:40]wFMCommunicate request_size=255 [13:24:40]MH_SAM_APDU [13:24:40]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 28 00 00 00 F4 03 04 00 1C 98 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [13:24:40]Write to MH i2c: E2 02 01 5A 17 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 28 00 00 00 F4 03 04 00 1C 98 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 9D [13:24:40]Write i2c OK [13:24:40]MH_I2C_Read... [13:24:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:40]Read from MH i2c: E2 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 03 00 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 03 00 5A 17 00 90 00 E5 [13:24:40]RAPDU: 90 00 [13:24:40]wFMCommunicate OK [13:24:40]wFMCommunicate request_size=28 [13:24:40]MH_SAM_APDU [13:24:40]CAPDU: 80 0D 02 02 17 37 34 39 33 37 10 04 04 00 01 6A 00 00 35 04 06 00 26 0D BC 52 23 6A [13:24:40]Write to MH i2c: E2 1F 00 5B 17 80 0D 02 02 17 00 37 34 39 33 37 10 04 04 00 01 6A 00 00 35 04 06 00 26 0D BC 52 23 6A 00 00 B8 [13:24:40]Write i2c OK [13:24:40]MH_I2C_Read... [13:24:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:40]Read from MH i2c: E2 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 03 00 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 03 00 5B 17 00 90 00 E6 [13:24:40]RAPDU: 90 00 [13:24:40]wFMCommunicate OK [13:24:40]wFMCommunicate request_size=4 [13:24:40]MH_SAM_APDU [13:24:40]CAPDU: 80 0D 03 02 [13:24:40]Write to MH i2c: E2 08 00 5C 17 80 0D 03 02 00 00 00 00 EE [13:24:40]Write i2c OK [13:24:40]MH_I2C_Read... [13:24:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:40]Read from MH i2c: E2 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 0B 00 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 0B 00 5C 17 00 7B CB 1B FA 52 9E BE 71 90 00 69 [13:24:40]RAPDU: 7B CB 1B FA 52 9E BE 71 90 00 [13:24:40]wFMCommunicate OK [13:24:40]SAM_PROTO_SignData done [13:24:40]FM_MakeSignedData done [13:24:40]CreateOFDProtocolMessage [13:24:40]wFMCommunicate request_size=4 [13:24:40]MH_SAM_APDU [13:24:40]CAPDU: 80 11 00 00 [13:24:40]Write to MH i2c: E2 08 00 5D 17 80 11 00 00 00 00 00 00 EE [13:24:40]Write i2c OK [13:24:40]MH_I2C_Read... [13:24:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:40]Read from MH i2c: E2 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 17 00 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: E2 17 00 5D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 47 [13:24:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [13:24:40]wFMCommunicate OK [13:24:40]CreateOFDProtocolMessage done [13:24:40]OFDSenderStorePacket 27137 [13:24:40]StoreOFDPacket docnum=27137 [13:24:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 21 01 00 00 03 5C 19 01 46 85 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 28 00 00 00 F4 03 04 00 1C 98 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 01 6A 00 00 35 04 06 00 26 0D BC 52 23 6A 7B CB 1B FA 52 9E BE 71 [13:24:40]CheckFolder [13:24:40]dirname=/storage/ofd_packets [13:24:40]CheckFolder done [13:24:40]ProducePacketName [13:24:40]name=ofd_packets/00027137 [13:24:40]NVStorageSaveData ofd_packets/00027137 [13:24:40]File name is /storage/ofd_packets/00027137 [13:24:40]Write 319 bytes [13:24:40]NVStorageSaveData done [13:24:40]OFDSenderStorePacket done [13:24:40]KKMCreateOFDPacket done [13:24:40]NVStorageSaveData kkm_last_timestamp [13:24:40]File name is /storage/kkm_last_timestamp [13:24:40]Write 4 bytes [13:24:40]NVStorageSaveData done [13:24:40]ExternCall_PrintAddStr [13:24:40]wPrintStart [13:24:40]Write to MH i2c: 01 00 00 5E 17 75 [13:24:40]Write i2c OK [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: 01 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: 01 07 00 [13:24:40]MH_I2C_Read... [13:24:40]Read from MH i2c: 01 07 00 5E 17 00 00 00 00 00 FF 0F 8A [13:24:40]RasterBufferAndPrint [13:24:40]line Счет N : (3)150535 [13:24:40]line ИНН: 02508201610067 [13:24:40]line Контрольно-Кассовый Чек [13:24:40]line ПРОДАЖА [13:24:40]line Товар: 4700000160358 [13:24:40]line Вода Легенда 1л [13:24:40]line 1.000 * 50.00 [13:24:40]line = 50.00 [13:24:40]line НДС 12% НСП 1% [13:24:40]line > о реализуемом товаре [13:24:40]line ИТОГО: 50.00 [13:24:40]line НСП 1% : 0.44 [13:24:40]line НДС 12% : 5.31 [13:24:40]line Наличными: 50.00 [13:24:40]line Безнал.: 0.00 [13:24:40]line Место: АЗС № 134 "Партнер Нефть" [13:24:40]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:24:40]line СНО: Общий режим [13:24:40]line Чек 40 29.07.2024 13:24 [13:24:40]line Смена: 434 ФФД: 1.0 [13:24:40]line ЗНМ: 0300000043 [13:24:40]line РНМ: 0000000000092663 [13:24:40]line Версия ККМ: 001 [13:24:40]line ФМ: 0000000000874937 [13:24:40]line ФД: 27137 [13:24:40]line ФПД: 41840435929962 [13:24:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T132444&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27137&fm=41840435929962&tin=02508201610067®Number=0000000000092663&sum=5000 [13:24:41]line 0 [13:24:41]OFD Sender: Processing packet 27137 [packets to send 9, broken 8] [13:24:41]ProducePacketName [13:24:41]name=ofd_packets/00027137 [13:24:41]OFD Sender: To server: pG, [13:24:41]CommunicateWithHost lk.salyk.kg:30040 [13:24:41]ConnectInit lk.salyk.kg [13:24:41]written 0, free lines is 4095 [13:24:41]Connected sock=9 [13:24:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 21 01 00 00 03 5C 19 01 46 85 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 28 00 00 00 F4 03 04 00 1C 98 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 01 6A 00 00 35 04 06 00 26 0D BC 52 23 6A 7B CB 1B FA 52 9E BE 71 [13:24:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 7E 66 47 00 45 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 34 39 33 37 10 04 04 00 01 6A 00 00 F4 03 04 00 6D 3E A7 66 B6 04 01 00 00 71 93 B2 0D 10 BD 87 DD [13:24:41]CommunicateWithHost err = 0 [13:24:41]CheckOFDResponse [13:24:41]1017 (14) - 77093643461234 [13:24:41]1041 (16) - 0000000000874937 [13:24:41]1040 (4) - 27137 [13:24:41]1012 (4) - 29.07.2024 07:02 [13:24:41]1206 (1) - 0 [13:24:41]OFD Sender: Remove packet 27137 [13:24:41]ProducePacketName [13:24:41]name=ofd_packets/00027137 [13:24:41]NVStorageDeleteData [13:24:41]Write to MH i2c: 01 00 00 85 17 9C [13:24:41]Write i2c OK [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: 01 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: 01 07 00 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: 01 07 00 85 17 00 00 00 00 00 FC 0C AB [13:24:41]RasterBufferAndPrint [13:24:41]line [13:24:41]line [13:24:41]line [13:24:41]line [13:24:41]line [13:24:41]written 0, free lines is 3330 [13:24:41]MH_Cut [13:24:41]Write to MH i2c: D1 01 00 8C 17 01 75 [13:24:41]Write i2c OK [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: D1 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: D1 01 00 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: D1 01 00 8C 17 00 74 [13:24:41]Write to MH i2c: 01 00 00 8D 17 A4 [13:24:41]Write i2c OK [13:24:41]MH_I2C_Read... [13:24:41]OFD Sender: No OFD packet to send [13:24:42]*** Cut start [13:24:42]*** Partial cut [13:24:42]*** CUTSNS_PIN = 1 [13:24:42]*** CUTSNS_PIN = 0 [13:24:42]*** Brake cut motor [13:24:42]Read from MH i2c: 01 [13:24:42]MH_I2C_Read... [13:24:42]*** Stop cut motor [13:24:42]*** Cut end [13:24:42]Read from MH i2c: 01 07 00 [13:24:42]MH_I2C_Read... [13:24:42]Read from MH i2c: 01 07 00 8D 17 00 00 00 00 00 FF 0F B9 [13:24:42]process_action close_receipt done [13:24:42]requested_data is exist [13:24:42]produce_requested_data [13:24:42]requested_item fm.sn is exist - process it [13:24:42]wFMCommunicate request_size=4 [13:24:42]MH_SAM_APDU [13:24:42]CAPDU: 80 11 00 00 [13:24:42]Write to MH i2c: E2 08 00 8E 17 80 11 00 00 00 00 00 00 1F [13:24:42]Write i2c OK [13:24:42]MH_I2C_Read... [13:24:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:42]Read from MH i2c: E2 [13:24:42]MH_I2C_Read... [13:24:42]Read from MH i2c: E2 17 00 [13:24:42]MH_I2C_Read... [13:24:42]Read from MH i2c: E2 17 00 8E 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 78 [13:24:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [13:24:42]wFMCommunicate OK [13:24:42]requested_item fd.num is exist - process it [13:24:42]SAM_PROTO_GetFieldsCounters [13:24:42]wFMCommunicate request_size=4 [13:24:42]MH_SAM_APDU [13:24:42]CAPDU: 80 13 00 00 [13:24:42]Write to MH i2c: E2 08 00 8F 17 80 13 00 00 00 00 00 00 22 [13:24:42]Write i2c OK [13:24:42]MH_I2C_Read... [13:24:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:43]Read from MH i2c: E2 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 62 00 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 62 00 8F 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 01 6A 00 00 0E 04 04 00 B2 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 E0 [13:24:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 01 6A 00 00 0E 04 04 00 B2 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 [13:24:43]wFMCommunicate OK [13:24:43]SAM_PROTO_GetFieldsCounters done [13:24:43]requested_item shift.num is exist - process it [13:24:43]requested_item shift.opened is exist - process it [13:24:43]req_shift_opened [13:24:43]FM_GetShiftState [13:24:43]SAM_PROTO_GetShiftState [13:24:43]wFMCommunicate request_size=4 [13:24:43]MH_SAM_APDU [13:24:43]CAPDU: 80 13 01 00 [13:24:43]Write to MH i2c: E2 08 00 90 17 80 13 01 00 00 00 00 00 24 [13:24:43]Write i2c OK [13:24:43]MH_I2C_Read... [13:24:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:43]Read from MH i2c: E2 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 0E 00 [13:24:43]MH_I2C_Read... [13:24:43]Read from MH i2c: E2 0E 00 90 17 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 A5 [13:24:43]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [13:24:43]wFMCommunicate OK [13:24:43]SAM_PROTO_GetShiftState done [13:24:43]FM_GetShiftState done [13:24:43]req_shift_opened done [13:24:43]requested_item shift.open_date is exist - process it [13:24:43]req_shift_open_date [13:24:43]req_shift_open_date done [13:24:43]produce_requested_data done [13:24:43]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27137,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [13:24:43]process_action_free close_receipt [13:24:43]json_value_free [13:24:43]json_value_free done [13:24:43]process_json_proto returns [13:24:43]Send response to host [13:24:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27137,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [13:24:43]free response buf [13:24:43]execute_script done [13:24:43]execute_script returns [13:24:43]free content buf [13:24:43]Sock 10.Close socket [13:24:43]Sock 10.Thread stoped [13:24:46]OFD Sender: No OFD packet to send [13:24:51]OFD Sender: No OFD packet to send [13:24:57]OFD Sender: No OFD packet to send [13:25:02]OFD Sender: No OFD packet to send [13:25:07]OFD Sender: No OFD packet to send [13:25:12]OFD Sender: No OFD packet to send [13:25:17]OFD Sender: No OFD packet to send [13:25:22]OFD Sender: No OFD packet to send [13:25:27]OFD Sender: No OFD packet to send [13:25:32]OFD Sender: No OFD packet to send [13:25:37]OFD Sender: No OFD packet to send [13:25:42]OFD Sender: No OFD packet to send [13:25:47]OFD Sender: No OFD packet to send [13:25:52]OFD Sender: No OFD packet to send [13:25:57]OFD Sender: No OFD packet to send [13:26:02]OFD Sender: No OFD packet to send [13:26: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:43]accept exits with 8 [13:26:43]New connection [13:26:43]New thread 3066928484 created [13:26:43]Thread 3066785124 joined [13:26:43]Waiting for new connection... [13:26:43] Sock 8.Parse request [13:26:43]Sock 8.Check first char [13:26:43]Sock 8.First char is OK [13:26:43]request: POST /json_proto HTTP/1.0 [13:26:43]Method: POST [13:26:43]URL: /json_proto [13:26:43]Method is POST - this is cgi request [13:26:43]url: /json_proto [13:26:43]query_string will be loaded in cgi processing [13:26:43]execute_cgi json_proto POST (null) [13:26:43]execute_cgi path=json_proto method=POST [13:26:43]POST find Content-Length [13:26:43]Host: 172.17.45.8:8080 [13:26:43]Content-Length: 783 [13:26:43]Content-Type: application/json [13:26:43] [13:26:43]POST finish read [13:26:43]Found Content-Length = 783 [13:26:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150536", "tax_sys" : 0, "items" : [ { "code": "4860114390178", "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 \u0422\u0430\u0440\u0445", "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" ] } } [13:26:43]execute_script... [13:26: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)150536", "tax_sys" : 0, "items" : [ { "code": "4860114390178", "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 \u0422\u0430\u0440\u0445", "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" ] } } [13:26:43]POST & json_proto [13:26:43]process_json_proto [13:26:43]json parsed OK: [13:26:43]protocol is kg_v1.0 [13:26:43]action value=close_receipt [13:26:43]process_action close_receipt [13:26:43]cmd_close_receipt [13:26:43]MH_GetDate [13:26:43]Write to MH i2c: F0 00 00 91 17 97 [13:26:43]Write i2c OK [13:26:43]MH_I2C_Read... [13:26:43]Read from MH i2c: F0 [13:26:43]MH_I2C_Read... [13:26:43]Read from MH i2c: F0 09 00 [13:26:43]MH_I2C_Read... [13:26:43]Read from MH i2c: F0 09 00 91 17 00 98 98 A7 66 A6 1F 7F 64 85 [13:26:43]GetLastDocTimeStamp 1722259484 [13:26:43]current date 1722259608 [13:26:43]FM_GetShiftState [13:26:43]SAM_PROTO_GetShiftState [13:26:43]wFMCommunicate request_size=4 [13:26:43]MH_SAM_APDU [13:26:43]CAPDU: 80 13 01 00 [13:26:43]Write to MH i2c: E2 08 00 92 17 80 13 01 00 00 00 00 00 26 [13:26:43]Write i2c OK [13:26:43]MH_I2C_Read... [13:26:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:43]Read from MH i2c: E2 [13:26:43]MH_I2C_Read... [13:26:43]Read from MH i2c: E2 0E 00 [13:26:43]MH_I2C_Read... [13:26:43]Read from MH i2c: E2 0E 00 92 17 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 A7 [13:26:43]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [13:26:43]wFMCommunicate OK [13:26:43]SAM_PROTO_GetShiftState done [13:26:43]FM_GetShiftState done [13:26:43]opened in 1722213509 [13:26:43]opened+sec_in_day 1722299909 [13:26:43]quantity*price = 15500 [13:26:43]sum+1 = 15501 [13:26:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 41 29.07.2024 13:26 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27138 ФПД: 277803571757402 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T132649&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27138&fm=277803571757402&tin=02508201610067®Number=0000000000092663&sum=15500 0 [13:26:44]StoreToDocumentArchive [13:26:44]shift 434 fd 27138 [13:26:44]save to /storage/0434/doc_00027138 [13:26:44]save last doc name /storage/0434/doc_00027138 to /storage/kkm_last_doc_name [13:26:44]save OK [13:26:44]Clear old archive folders... [13:26:44]ProcessDocumentItem done err = 0, tmpTLVsize=319 [13:26:44]tlvbuf is B6DA20C0 [13:26:44]SAM_PROTO_ClearQueue [13:26:44]wFMCommunicate request_size=4 [13:26:44]MH_SAM_APDU [13:26:44]CAPDU: 80 09 00 00 [13:26:44]Write to MH i2c: E2 08 00 9F 17 80 09 00 00 00 00 00 00 28 [13:26:44]Write i2c OK [13:26:44]MH_I2C_Read... [13:26:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:44]Read from MH i2c: E2 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 03 00 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 03 00 9F 17 00 90 00 2A [13:26:44]RAPDU: 90 00 [13:26:44]wFMCommunicate OK [13:26:44]SAM_PROTO_ClearQueue done [13:26:44]KKMCreateOFDPacket [13:26:44]OFDProtocolAddRootSTLVToBuf [13:26:44]FM_MakeSignedData [13:26:44]FM_MakeSignedData [13:26:44]SAM_PROTO_SignData [13:26:44]wFMCommunicate request_size=4 [13:26:44]MH_SAM_APDU [13:26:44]CAPDU: 80 0D 01 02 [13:26:44]Write to MH i2c: E2 08 00 A0 17 80 0D 01 02 00 00 00 00 30 [13:26:44]Write i2c OK [13:26:44]MH_I2C_Read... [13:26:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:44]Read from MH i2c: E2 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 03 00 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 03 00 A0 17 00 90 00 2B [13:26:44]RAPDU: 90 00 [13:26:44]wFMCommunicate OK [13:26:44]wFMCommunicate request_size=255 [13:26:44]MH_SAM_APDU [13:26:44]CAPDU: 80 0D 02 02 FA 03 00 3F 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 31 37 38 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 A2 D0 B0 D1 80 D1 85 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 29 00 00 00 F4 03 04 00 99 98 [13:26:44]Write to MH i2c: E2 02 01 A1 17 80 0D 02 02 FA 00 03 00 3F 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 31 37 38 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 A2 D0 B0 D1 80 D1 85 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 29 00 00 00 F4 03 04 00 99 98 00 00 69 [13:26:44]Write i2c OK [13:26:44]MH_I2C_Read... [13:26:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:44]Read from MH i2c: E2 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 03 00 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 03 00 A1 17 00 90 00 2C [13:26:44]RAPDU: 90 00 [13:26:44]wFMCommunicate OK [13:26:44]wFMCommunicate request_size=78 [13:26:44]MH_SAM_APDU [13:26:44]CAPDU: 80 0D 02 02 49 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 02 6A 00 00 35 04 06 00 FC A9 2F 36 41 5A [13:26:44]Write to MH i2c: E2 51 00 A2 17 80 0D 02 02 49 00 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 02 6A 00 00 35 04 06 00 FC A9 2F 36 41 5A 00 00 48 [13:26:44]Write i2c OK [13:26:44]MH_I2C_Read... [13:26:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:44]Read from MH i2c: E2 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 03 00 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 03 00 A2 17 00 90 00 2D [13:26:44]RAPDU: 90 00 [13:26:44]wFMCommunicate OK [13:26:44]wFMCommunicate request_size=4 [13:26:44]MH_SAM_APDU [13:26:44]CAPDU: 80 0D 03 02 [13:26:44]Write to MH i2c: E2 08 00 A3 17 80 0D 03 02 00 00 00 00 35 [13:26:44]Write i2c OK [13:26:44]MH_I2C_Read... [13:26:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:44]Read from MH i2c: E2 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 0B 00 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 0B 00 A3 17 00 24 0A DD 00 BE BF BA D2 90 00 4A [13:26:44]RAPDU: 24 0A DD 00 BE BF BA D2 90 00 [13:26:44]wFMCommunicate OK [13:26:44]SAM_PROTO_SignData done [13:26:44]FM_MakeSignedData done [13:26:44]CreateOFDProtocolMessage [13:26:44]wFMCommunicate request_size=4 [13:26:44]MH_SAM_APDU [13:26:44]CAPDU: 80 11 00 00 [13:26:44]Write to MH i2c: E2 08 00 A4 17 80 11 00 00 00 00 00 00 35 [13:26:44]Write i2c OK [13:26:44]MH_I2C_Read... [13:26:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:44]Read from MH i2c: E2 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 17 00 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: E2 17 00 A4 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 8E [13:26:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [13:26:44]wFMCommunicate OK [13:26:44]CreateOFDProtocolMessage done [13:26:44]OFDSenderStorePacket 27138 [13:26:44]StoreOFDPacket docnum=27138 [13:26:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 53 01 00 00 6E E9 4B 01 50 DC 5A 03 01 00 03 00 3F 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 31 37 38 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 A2 D0 B0 D1 80 D1 85 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 29 00 00 00 F4 03 04 00 99 98 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 02 6A 00 00 35 04 06 00 FC A9 2F 36 41 5A 24 0A DD 00 BE BF BA D2 [13:26:44]CheckFolder [13:26:44]dirname=/storage/ofd_packets [13:26:44]CheckFolder done [13:26:44]ProducePacketName [13:26:44]name=ofd_packets/00027138 [13:26:44]NVStorageSaveData ofd_packets/00027138 [13:26:44]File name is /storage/ofd_packets/00027138 [13:26:44]Write 369 bytes [13:26:44]NVStorageSaveData done [13:26:44]OFDSenderStorePacket done [13:26:44]KKMCreateOFDPacket done [13:26:44]NVStorageSaveData kkm_last_timestamp [13:26:44]File name is /storage/kkm_last_timestamp [13:26:44]Write 4 bytes [13:26:44]NVStorageSaveData done [13:26:44]ExternCall_PrintAddStr [13:26:44]wPrintStart [13:26:44]Write to MH i2c: 01 00 00 A5 17 BC [13:26:44]Write i2c OK [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: 01 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: 01 07 00 [13:26:44]MH_I2C_Read... [13:26:44]Read from MH i2c: 01 07 00 A5 17 00 00 00 00 00 FF 0F D1 [13:26:44]RasterBufferAndPrint [13:26:44]line Счет N : (3)150536 [13:26:44]line ИНН: 02508201610067 [13:26:44]line Контрольно-Кассовый Чек [13:26:44]line ПРОДАЖА [13:26:44]line Товар: 4860114390178 [13:26:44]line Напиток безалкогольный газированный Тарх [13:26:44]line 1.000 * 155.00 [13:26:44]line = 155.00 [13:26:44]line НДС 12% НСП 1% [13:26:44]line > о реализуемом товаре [13:26:44]line ИТОГО: 155.00 [13:26:44]line НСП 1% : 1.37 [13:26:44]line НДС 12% : 16.46 [13:26:44]line Наличными: 155.00 [13:26:44]line Безнал.: 0.00 [13:26:45]line Место: АЗС № 134 "Партнер Нефть" [13:26:45]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:26:45]line СНО: Общий режим [13:26:45]line Чек 41 29.07.2024 13:26 [13:26:45]line Смена: 434 ФФД: 1.0 [13:26:45]line ЗНМ: 0300000043 [13:26:45]line РНМ: 0000000000092663 [13:26:45]line Версия ККМ: 001 [13:26:45]line ФМ: 0000000000874937 [13:26:45]line ФД: 27138 [13:26:45]line ФПД: 277803571757402 [13:26:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T132649&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27138&fm=277803571757402&tin=02508201610067®Number=0000000000092663&sum=15500 [13:26:45]line 0 [13:26:45]OFD Sender: Processing packet 27138 [packets to send 9, broken 8] [13:26:45]ProducePacketName [13:26:45]name=ofd_packets/00027138 [13:26:45]OFD Sender: To server: pG, [13:26:45]CommunicateWithHost lk.salyk.kg:30040 [13:26:45]ConnectInit lk.salyk.kg [13:26:45]written 0, free lines is 4095 [13:26:45]Connected sock=10 [13:26:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 53 01 00 00 6E E9 4B 01 50 DC 5A 03 01 00 03 00 3F 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 31 37 38 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 A2 D0 B0 D1 80 D1 85 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 29 00 00 00 F4 03 04 00 99 98 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 02 6A 00 00 35 04 06 00 FC A9 2F 36 41 5A 24 0A DD 00 BE BF BA D2 [13:26:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 76 4F 47 00 14 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 02 6A 00 00 F4 03 04 00 E9 3E A7 66 B6 04 01 00 00 C1 47 40 AF 8B 15 86 5A [13:26:45]CommunicateWithHost err = 0 [13:26:45]CheckOFDResponse [13:26:45]1017 (14) - 77093643461234 [13:26:45]1041 (16) - 0000000000874937 [13:26:45]1040 (4) - 27138 [13:26:45]1012 (4) - 29.07.2024 07:04 [13:26:45]1206 (1) - 0 [13:26:45]OFD Sender: Remove packet 27138 [13:26:45]ProducePacketName [13:26:45]name=ofd_packets/00027138 [13:26:45]NVStorageDeleteData [13:26:45]Write to MH i2c: 01 00 00 CD 17 E4 [13:26:45]Write i2c OK [13:26:45]MH_I2C_Read... [13:26:45]Read from MH i2c: 01 [13:26:45]MH_I2C_Read... [13:26:45]Read from MH i2c: 01 07 00 [13:26:45]MH_I2C_Read... [13:26:45]Read from MH i2c: 01 07 00 CD 17 00 00 00 00 00 E3 0C DA [13:26:45]RasterBufferAndPrint [13:26:45]line [13:26:45]line [13:26:45]line [13:26:45]line [13:26:45]line [13:26:45]written 0, free lines is 3306 [13:26:45]MH_Cut [13:26:45]Write to MH i2c: D1 01 00 D4 17 01 BD [13:26:45]Write i2c OK [13:26:45]MH_I2C_Read... [13:26:45]Read from MH i2c: D1 [13:26:45]MH_I2C_Read... [13:26:45]Read from MH i2c: D1 01 00 [13:26:45]MH_I2C_Read... [13:26:45]Read from MH i2c: D1 01 00 D4 17 00 BC [13:26:45]Write to MH i2c: 01 00 00 D5 17 EC [13:26:45]Write i2c OK [13:26:45]MH_I2C_Read... [13:26:46]OFD Sender: No OFD packet to send [13:26:46]*** Cut start [13:26:46]*** Partial cut [13:26:46]*** CUTSNS_PIN = 1 [13:26:46]*** CUTSNS_PIN = 0 [13:26:46]*** Brake cut motor [13:26:47]Read from MH i2c: 01 [13:26:47]MH_I2C_Read... [13:26:47]*** Stop cut motor [13:26:47]*** Cut end [13:26:47]Read from MH i2c: 01 07 00 [13:26:47]MH_I2C_Read... [13:26:47]Read from MH i2c: 01 07 00 D5 17 00 00 00 00 00 FF 0F 01 [13:26:47]process_action close_receipt done [13:26:47]requested_data is exist [13:26:47]produce_requested_data [13:26:47]requested_item fm.sn is exist - process it [13:26:47]wFMCommunicate request_size=4 [13:26:47]MH_SAM_APDU [13:26:47]CAPDU: 80 11 00 00 [13:26:47]Write to MH i2c: E2 08 00 D6 17 80 11 00 00 00 00 00 00 67 [13:26:47]Write i2c OK [13:26:47]MH_I2C_Read... [13:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:47]Read from MH i2c: E2 [13:26:47]MH_I2C_Read... [13:26:47]Read from MH i2c: E2 17 00 [13:26:47]MH_I2C_Read... [13:26:47]Read from MH i2c: E2 17 00 D6 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 C0 [13:26:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [13:26:47]wFMCommunicate OK [13:26:47]requested_item fd.num is exist - process it [13:26:47]SAM_PROTO_GetFieldsCounters [13:26:47]wFMCommunicate request_size=4 [13:26:47]MH_SAM_APDU [13:26:47]CAPDU: 80 13 00 00 [13:26:47]Write to MH i2c: E2 08 00 D7 17 80 13 00 00 00 00 00 00 6A [13:26:47]Write i2c OK [13:26:47]MH_I2C_Read... [13:26:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:47]Read from MH i2c: E2 [13:26:47]MH_I2C_Read... [13:26:47]Read from MH i2c: E2 62 00 [13:26:47]MH_I2C_Read... [13:26:47]Read from MH i2c: E2 62 00 D7 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 02 6A 00 00 0E 04 04 00 B2 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 2C [13:26:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 02 6A 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:26:47]wFMCommunicate OK [13:26:47]SAM_PROTO_GetFieldsCounters done [13:26:47]requested_item shift.num is exist - process it [13:26:47]requested_item shift.opened is exist - process it [13:26:47]req_shift_opened [13:26:47]FM_GetShiftState [13:26:47]SAM_PROTO_GetShiftState [13:26:47]wFMCommunicate request_size=4 [13:26:47]MH_SAM_APDU [13:26:47]CAPDU: 80 13 01 00 [13:26:47]Write to MH i2c: E2 08 00 D8 17 80 13 01 00 00 00 00 00 6C [13:26:47]Write i2c OK [13:26:47]MH_I2C_Read... [13:26:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:47]Read from MH i2c: E2 [13:26:47]MH_I2C_Read... [13:26:47]Read from MH i2c: E2 0E 00 [13:26:47]MH_I2C_Read... [13:26:47]Read from MH i2c: E2 0E 00 D8 17 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 ED [13:26:47]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [13:26:47]wFMCommunicate OK [13:26:47]SAM_PROTO_GetShiftState done [13:26:47]FM_GetShiftState done [13:26:47]req_shift_opened done [13:26:47]requested_item shift.open_date is exist - process it [13:26:47]req_shift_open_date [13:26:47]req_shift_open_date done [13:26:47]produce_requested_data done [13:26:47]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27138,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [13:26:47]process_action_free close_receipt [13:26:47]json_value_free [13:26:47]json_value_free done [13:26:47]process_json_proto returns [13:26:47]Send response to host [13:26:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27138,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [13:26:47]free response buf [13:26:47]execute_script done [13:26:47]execute_script returns [13:26:47]free content buf [13:26:47]Sock 8.Close socket [13:26:47]Sock 8.Thread stoped [13:26:51]OFD Sender: No OFD packet to send [13:26:56]OFD Sender: No OFD packet to send [13:27:01]OFD Sender: No OFD packet to send [13:27:06]OFD Sender: No OFD packet to send [13:27:11]OFD Sender: No OFD packet to send [13:27:16]OFD Sender: No OFD packet to send [13:27:21]OFD Sender: No OFD packet to send [13:27:26]OFD Sender: No OFD packet to send [13:27:31]OFD Sender: No OFD packet to send [13:27:36]OFD Sender: No OFD packet to send [13:27:41]OFD Sender: No OFD packet to send [13:27:46]OFD Sender: No OFD packet to send [13:27:51]OFD Sender: No OFD packet to send [13:27:56]OFD Sender: No OFD packet to send [13:28:01]OFD Sender: No OFD packet to send [13:28:06]OFD Sender: No OFD packet to send [13:28:11]OFD Sender: No OFD packet to send [13:28:16]OFD Sender: No OFD packet to send [13:28:21]OFD Sender: No OFD packet to send [13:28:26]OFD Sender: No OFD packet to send [13:28:31]OFD Sender: No OFD packet to send [13:28:36]OFD Sender: No OFD packet to send [13:28:41]OFD Sender: No OFD packet to send [13:28:46]OFD Sender: No OFD packet to send [13:28:51]OFD Sender: No OFD packet to send [13:28:56]OFD Sender: No OFD packet to send [13:29:01]OFD Sender: No OFD packet to send [13:29:06]OFD Sender: No OFD packet to send [13:29:11]OFD Sender: No OFD packet to send [13:29:16]OFD Sender: No OFD packet to send [13:29:21]OFD Sender: No OFD packet to send [13:29:26]OFD Sender: No OFD packet to send [13:29:31]OFD Sender: No OFD packet to send [13:29:36]OFD Sender: No OFD packet to send [13:29:41]OFD Sender: No OFD packet to send [13:29:46]OFD Sender: No OFD packet to send [13:29:51]OFD Sender: No OFD packet to send [13:29:56]OFD Sender: No OFD packet to send [13:30:01]OFD Sender: No OFD packet to send [13:30:06]OFD Sender: No OFD packet to send [13:30:11]OFD Sender: No OFD packet to send [13:30:16]OFD Sender: No OFD packet to send [13:30:21]OFD Sender: No OFD packet to send [13:30:26]OFD Sender: No OFD packet to send [13:30:31]OFD Sender: No OFD packet to send [13:30:36]OFD Sender: No OFD packet to send [13:30:41]OFD Sender: No OFD packet to send [13:30:46]OFD Sender: No OFD packet to send [13:30:51]OFD Sender: No OFD packet to send [13:30:56]OFD Sender: No OFD packet to send [13:31:01]OFD Sender: No OFD packet to send [13:31:06]OFD Sender: No OFD packet to send [13:31:11]OFD Sender: No OFD packet to send [13:31:16]OFD Sender: No OFD packet to send [13:31:21]OFD Sender: No OFD packet to send [13:31:26]OFD Sender: No OFD packet to send [13:31:31]OFD Sender: No OFD packet to send [13:31:36]OFD Sender: No OFD packet to send [13:31:41]OFD Sender: No OFD packet to send [13:31:46]OFD Sender: No OFD packet to send [13:31:51]OFD Sender: No OFD packet to send [13:31:56]OFD Sender: No OFD packet to send [13:32:01]OFD Sender: No OFD packet to send [13:32:06]OFD Sender: No OFD packet to send [13:32:11]OFD Sender: No OFD packet to send [13:32:16]OFD Sender: No OFD packet to send [13:32:21]OFD Sender: No OFD packet to send [13:32:26]OFD Sender: No OFD packet to send [13:32:31]OFD Sender: No OFD packet to send [13:32:36]OFD Sender: No OFD packet to send [13:32:41]OFD Sender: No OFD packet to send [13:32:46]OFD Sender: No OFD packet to send [13:32:51]OFD Sender: No OFD packet to send [13:32:56]OFD Sender: No OFD packet to send [13:33:01]OFD Sender: No OFD packet to send [13:33:06]OFD Sender: No OFD packet to send [13:33:11]OFD Sender: No OFD packet to send [13:33:16]OFD Sender: No OFD packet to send [13:33:21]OFD Sender: No OFD packet to send [13:33:26]OFD Sender: No OFD packet to send [13:33:31]OFD Sender: No OFD packet to send [13:33:36]OFD Sender: No OFD packet to send [13:33:41]OFD Sender: No OFD packet to send [13:33:46]OFD Sender: No OFD packet to send [13:33:51]OFD Sender: No OFD packet to send [13:33:56]OFD Sender: No OFD packet to send [13:34:01]OFD Sender: No OFD packet to send [13:34:06]OFD Sender: No OFD packet to send [13:34:11]OFD Sender: No OFD packet to send [13:34:16]OFD Sender: No OFD packet to send [13:34:21]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [13:39:01]OFD Sender: No OFD packet to send [13:39:06]OFD Sender: No OFD packet to send [13:39:11]OFD Sender: No OFD packet to send [13:39:16]OFD Sender: No OFD packet to send [13:39:21]OFD Sender: No OFD packet to send [13:39:26]OFD Sender: No OFD packet to send [13:39:31]OFD Sender: No OFD packet to send [13:39:36]OFD Sender: No OFD packet to send [13:39:41]OFD Sender: No OFD packet to send [13:39:46]OFD Sender: No OFD packet to send [13:39:51]OFD Sender: No OFD packet to send [13:39:56]OFD Sender: No OFD packet to send [13:40:01]OFD Sender: No OFD packet to send [13:40:06]OFD Sender: No OFD packet to send [13:40:11]OFD Sender: No OFD packet to send [13:40:16]OFD Sender: No OFD packet to send [13:40:21]OFD Sender: No OFD packet to send [13:40:26]OFD Sender: No OFD packet to send [13:40:31]OFD Sender: No OFD packet to send [13:40:36]OFD Sender: No OFD packet to send [13:40:41]OFD Sender: No OFD packet to send [13:40:46]OFD Sender: No OFD packet to send [13:40:51]OFD Sender: No OFD packet to send [13:40:56]OFD Sender: No OFD packet to send [13:41:01]OFD Sender: No OFD packet to send [13:41:06]OFD Sender: No OFD packet to send [13:41:11]OFD Sender: No OFD packet to send [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:51]OFD Sender: No OFD packet to send [13:42:56]OFD Sender: No OFD packet to send [13:43:01]OFD Sender: No OFD packet to send [13:43:06]OFD Sender: No OFD packet to send [13:43:11]OFD Sender: No OFD packet to send [13:43:16]OFD Sender: No OFD packet to send [13:43:21]OFD Sender: No OFD packet to send [13:43:26]OFD Sender: No OFD packet to send [13:43:31]OFD Sender: No OFD packet to send [13:43:36]OFD Sender: No OFD packet to send [13:43:41]OFD Sender: No OFD packet to send [13:43:46]OFD Sender: No OFD packet to send [13:43:51]OFD Sender: No OFD packet to send [13:43:56]OFD Sender: No OFD packet to send [13:44:01]OFD Sender: No OFD packet to send [13:44:06]OFD Sender: No OFD packet to send [13:44:11]OFD Sender: No OFD packet to send [13:44:16]OFD Sender: No OFD packet to send [13:44:21]OFD Sender: No OFD packet to send [13:44:26]OFD Sender: No OFD packet to send [13:44:31]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:46]OFD Sender: No OFD packet to send [13:44:51]OFD Sender: No OFD packet to send [13:44:56]OFD Sender: No OFD packet to send [13:45:02]OFD Sender: No OFD packet to send [13:45:07]OFD Sender: No OFD packet to send [13:45:12]OFD Sender: No OFD packet to send [13:45:17]OFD Sender: No OFD packet to send [13:45:22]OFD Sender: No OFD packet to send [13:45:27]OFD Sender: No OFD packet to send [13:45:32]OFD Sender: No OFD packet to send [13:45:37]OFD Sender: No OFD packet to send [13:45:42]OFD Sender: No OFD packet to send [13:45:47]OFD Sender: No OFD packet to send [13:45:52]OFD Sender: No OFD packet to send [13:45:57]OFD Sender: No OFD packet to send [13:46:02]OFD Sender: No OFD packet to send [13:46:07]OFD Sender: No OFD packet to send [13:46:12]OFD Sender: No OFD packet to send [13:46:17]OFD Sender: No OFD packet to send [13:46:22]OFD Sender: No OFD packet to send [13:46:27]OFD Sender: No OFD packet to send [13:46:32]OFD Sender: No OFD packet to send [13:46:37]OFD Sender: No OFD packet to send [13:46:42]OFD Sender: No OFD packet to send [13:46:47]OFD Sender: No OFD packet to send [13:46:52]OFD Sender: No OFD packet to send [13:46:57]OFD Sender: No OFD packet to send [13:47:02]OFD Sender: No OFD packet to send [13:47:07]OFD Sender: No OFD packet to send [13:47:12]OFD Sender: No OFD packet to send [13:47:17]OFD Sender: No OFD packet to send [13:47:22]OFD Sender: No OFD packet to send [13:47:27]OFD Sender: No OFD packet to send [13:47:32]OFD Sender: No OFD packet to send [13:47:37]OFD Sender: No OFD packet to send [13:47:42]OFD Sender: No OFD packet to send [13:47:47]OFD Sender: No OFD packet to send [13:47:52]OFD Sender: No OFD packet to send [13:47:57]OFD Sender: No OFD packet to send [13:48:02]OFD Sender: No OFD packet to send [13:48:07]OFD Sender: No OFD packet to send [13:48:12]OFD Sender: No OFD packet to send [13:48:17]OFD Sender: No OFD packet to send [13:48:22]OFD Sender: No OFD packet to send [13:48:27]OFD Sender: No OFD packet to send [13:48:32]OFD Sender: No OFD packet to send [13:48:37]OFD Sender: No OFD packet to send [13:48:42]OFD Sender: No OFD packet to send [13:48:47]OFD Sender: No OFD packet to send [13:48:52]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:37]OFD Sender: No OFD packet to send [13:49:42]OFD Sender: No OFD packet to send [13:49:47]OFD Sender: No OFD packet to send [13:49:52]OFD Sender: No OFD packet to send [13:49:57]OFD Sender: No OFD packet to send [13:50:02]OFD Sender: No OFD packet to send [13:50:07]OFD Sender: No OFD packet to send [13:50:12]OFD Sender: No OFD packet to send [13:50:17]OFD Sender: No OFD packet to send [13:50:22]OFD Sender: No OFD packet to send [13:50:27]OFD Sender: No OFD packet to send [13:50:32]OFD Sender: No OFD packet to send [13:50:37]OFD Sender: No OFD packet to send [13:50:42]OFD Sender: No OFD packet to send [13:50:47]OFD Sender: No OFD packet to send [13:50:52]OFD Sender: No OFD packet to send [13:50:57]OFD Sender: No OFD packet to send [13:51:02]OFD Sender: No OFD packet to send [13:51:07]OFD Sender: No OFD packet to send [13:51:12]OFD Sender: No OFD packet to send [13:51:17]OFD Sender: No OFD packet to send [13:51:22]OFD Sender: No OFD packet to send [13:51:27]OFD Sender: No OFD packet to send [13:51:32]OFD Sender: No OFD packet to send [13:51:37]OFD Sender: No OFD packet to send [13:51:42]OFD Sender: No OFD packet to send [13:51:47]OFD Sender: No OFD packet to send [13:51:52]OFD Sender: No OFD packet to send [13:51:57]OFD Sender: No OFD packet to send [13:52:02]OFD Sender: No OFD packet to send [13:52:07]OFD Sender: No OFD packet to send [13:52:12]OFD Sender: No OFD packet to send [13:52:17]OFD Sender: No OFD packet to send [13:52:22]OFD Sender: No OFD packet to send [13:52:27]OFD Sender: No OFD packet to send [13:52:32]OFD Sender: No OFD packet to send [13:52:37]OFD Sender: No OFD packet to send [13:52:42]OFD Sender: No OFD packet to send [13:52:47]OFD Sender: No OFD packet to send [13:52:52]OFD Sender: No OFD packet to send [13:52:57]OFD Sender: No OFD packet to send [13:53:02]OFD Sender: No OFD packet to send [13:53:07]OFD Sender: No OFD packet to send [13:53:12]OFD Sender: No OFD packet to send [13:53:17]OFD Sender: No OFD packet to send [13:53:22]OFD Sender: No OFD packet to send [13:53:27]OFD Sender: No OFD packet to send [13:53:32]OFD Sender: No OFD packet to send [13:53:37]OFD Sender: No OFD packet to send [13:53:42]OFD Sender: No OFD packet to send [13:53:47]OFD Sender: No OFD packet to send [13:53:52]OFD Sender: No OFD packet to send [13:53:57]OFD Sender: No OFD packet to send [13:54:02]OFD Sender: No OFD packet to send [13:54:07]OFD Sender: No OFD packet to send [13:54:12]OFD Sender: No OFD packet to send [13:54:17]OFD Sender: No OFD packet to send [13:54:22]OFD Sender: No OFD packet to send [13:54:27]OFD Sender: No OFD packet to send [13:54:32]OFD Sender: No OFD packet to send [13:54:37]OFD Sender: No OFD packet to send [13:54:42]OFD Sender: No OFD packet to send [13:54:47]OFD Sender: No OFD packet to send [13:54:52]OFD Sender: No OFD packet to send [13:54:57]OFD Sender: No OFD packet to send [13:55:02]OFD Sender: No OFD packet to send [13:55:07]OFD Sender: No OFD packet to send [13:55:09]accept exits with 9 [13:55:09]New connection [13:55:09]New thread 3066785124 created [13:55:09]Thread 3066928484 joined [13:55:09]Waiting for new connection... [13:55:09] Sock 9.Parse request [13:55:09]Sock 9.Check first char [13:55:09]Sock 9.First char is OK [13:55:09]request: POST /json_proto HTTP/1.0 [13:55:09]Method: POST [13:55:09]URL: /json_proto [13:55:09]Method is POST - this is cgi request [13:55:09]url: /json_proto [13:55:09]query_string will be loaded in cgi processing [13:55:09]execute_cgi json_proto POST (null) [13:55:09]execute_cgi path=json_proto method=POST [13:55:09]POST find Content-Length [13:55:09]Host: 172.17.45.8:8080 [13:55:09]Content-Length: 633 [13:55:09]Content-Type: application/json [13:55:09] [13:55:09]POST finish read [13:55:09]Found Content-Length = 633 [13:55:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150537", "tax_sys" : 0, "items" : [ { "code": "5449000014535", "name": "\u041D\u0430\u043F\u0438\u0442 \u0421\u043F\u0440\u0430\u0439\u0442 0,33\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" ] } } [13:55:09]execute_script... [13:55:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150537", "tax_sys" : 0, "items" : [ { "code": "5449000014535", "name": "\u041D\u0430\u043F\u0438\u0442 \u0421\u043F\u0440\u0430\u0439\u0442 0,33\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" ] } } [13:55:09]POST & json_proto [13:55:09]process_json_proto [13:55:09]json parsed OK: [13:55:09]protocol is kg_v1.0 [13:55:09]action value=close_receipt [13:55:09]process_action close_receipt [13:55:09]cmd_close_receipt [13:55:09]MH_GetDate [13:55:09]Write to MH i2c: F0 00 00 D9 17 DF [13:55:09]Write i2c OK [13:55:09]MH_I2C_Read... [13:55:09]Read from MH i2c: F0 [13:55:09]MH_I2C_Read... [13:55:09]Read from MH i2c: F0 09 00 [13:55:09]MH_I2C_Read... [13:55:09]Read from MH i2c: F0 09 00 D9 17 00 42 9F A7 66 A6 1F 7F 64 7E [13:55:09]GetLastDocTimeStamp 1722259609 [13:55:09]current date 1722261314 [13:55:09]FM_GetShiftState [13:55:09]SAM_PROTO_GetShiftState [13:55:09]wFMCommunicate request_size=4 [13:55:09]MH_SAM_APDU [13:55:09]CAPDU: 80 13 01 00 [13:55:09]Write to MH i2c: E2 08 00 DA 17 80 13 01 00 00 00 00 00 6E [13:55:09]Write i2c OK [13:55:09]MH_I2C_Read... [13:55:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:09]Read from MH i2c: E2 [13:55:09]MH_I2C_Read... [13:55:09]Read from MH i2c: E2 0E 00 [13:55:09]MH_I2C_Read... [13:55:09]Read from MH i2c: E2 0E 00 DA 17 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 EF [13:55:09]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [13:55:09]wFMCommunicate OK [13:55:09]SAM_PROTO_GetShiftState done [13:55:09]FM_GetShiftState done [13:55:09]opened in 1722213509 [13:55:09]opened+sec_in_day 1722299909 [13:55:09]quantity*price = 8500 [13:55:09]sum+1 = 8501 [13:55:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 42 29.07.2024 13:55 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27139 ФПД: 263054047602617 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T135514&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27139&fm=263054047602617&tin=02508201610067®Number=0000000000092663&sum=8500 0 [13:55:10]StoreToDocumentArchive [13:55:10]shift 434 fd 27139 [13:55:10]save to /storage/0434/doc_00027139 [13:55:10]save last doc name /storage/0434/doc_00027139 to /storage/kkm_last_doc_name [13:55:10]save OK [13:55:10]Clear old archive folders... [13:55:10]ProcessDocumentItem done err = 0, tmpTLVsize=272 [13:55:10]tlvbuf is B6EA2090 [13:55:10]SAM_PROTO_ClearQueue [13:55:10]wFMCommunicate request_size=4 [13:55:10]MH_SAM_APDU [13:55:10]CAPDU: 80 09 00 00 [13:55:10]Write to MH i2c: E2 08 00 E7 17 80 09 00 00 00 00 00 00 70 [13:55:10]Write i2c OK [13:55:10]MH_I2C_Read... [13:55:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:10]Read from MH i2c: E2 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 03 00 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 03 00 E7 17 00 90 00 72 [13:55:10]RAPDU: 90 00 [13:55:10]wFMCommunicate OK [13:55:10]SAM_PROTO_ClearQueue done [13:55:10]KKMCreateOFDPacket [13:55:10]OFDProtocolAddRootSTLVToBuf [13:55:10]FM_MakeSignedData [13:55:10]FM_MakeSignedData [13:55:10]SAM_PROTO_SignData [13:55:10]wFMCommunicate request_size=4 [13:55:10]MH_SAM_APDU [13:55:10]CAPDU: 80 0D 01 02 [13:55:10]Write to MH i2c: E2 08 00 E8 17 80 0D 01 02 00 00 00 00 78 [13:55:10]Write i2c OK [13:55:10]MH_I2C_Read... [13:55:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:10]Read from MH i2c: E2 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 03 00 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 03 00 E8 17 00 90 00 73 [13:55:10]RAPDU: 90 00 [13:55:10]wFMCommunicate OK [13:55:10]wFMCommunicate request_size=255 [13:55:10]MH_SAM_APDU [13:55:10]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 34 35 33 35 06 04 1E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 A1 D0 BF D1 80 D0 B0 D0 B9 D1 82 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 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 2A 00 00 00 F4 03 04 00 42 9F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 [13:55:10]Write to MH i2c: E2 02 01 E9 17 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 34 35 33 35 06 04 1E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 A1 D0 BF D1 80 D0 B0 D0 B9 D1 82 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 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 2A 00 00 00 F4 03 04 00 42 9F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 00 00 66 [13:55:10]Write i2c OK [13:55:10]MH_I2C_Read... [13:55:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:10]Read from MH i2c: E2 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 03 00 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 03 00 E9 17 00 90 00 74 [13:55:10]RAPDU: 90 00 [13:55:10]wFMCommunicate OK [13:55:10]wFMCommunicate request_size=31 [13:55:10]MH_SAM_APDU [13:55:10]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 39 33 37 10 04 04 00 03 6A 00 00 35 04 06 00 EF 3F 0B 10 67 B9 [13:55:10]Write to MH i2c: E2 22 00 EA 17 80 0D 02 02 1A 00 30 30 38 37 34 39 33 37 10 04 04 00 03 6A 00 00 35 04 06 00 EF 3F 0B 10 67 B9 00 00 82 [13:55:10]Write i2c OK [13:55:10]MH_I2C_Read... [13:55:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:10]Read from MH i2c: E2 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 03 00 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 03 00 EA 17 00 90 00 75 [13:55:10]RAPDU: 90 00 [13:55:10]wFMCommunicate OK [13:55:10]wFMCommunicate request_size=4 [13:55:10]MH_SAM_APDU [13:55:10]CAPDU: 80 0D 03 02 [13:55:10]Write to MH i2c: E2 08 00 EB 17 80 0D 03 02 00 00 00 00 7D [13:55:10]Write i2c OK [13:55:10]MH_I2C_Read... [13:55:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:10]Read from MH i2c: E2 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 0B 00 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 0B 00 EB 17 00 AD BC B5 B0 DD 34 95 4B 90 00 3D [13:55:10]RAPDU: AD BC B5 B0 DD 34 95 4B 90 00 [13:55:10]wFMCommunicate OK [13:55:10]SAM_PROTO_SignData done [13:55:10]FM_MakeSignedData done [13:55:10]CreateOFDProtocolMessage [13:55:10]wFMCommunicate request_size=4 [13:55:10]MH_SAM_APDU [13:55:10]CAPDU: 80 11 00 00 [13:55:10]Write to MH i2c: E2 08 00 EC 17 80 11 00 00 00 00 00 00 7D [13:55:10]Write i2c OK [13:55:10]MH_I2C_Read... [13:55:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:10]Read from MH i2c: E2 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 17 00 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: E2 17 00 EC 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 D6 [13:55:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [13:55:10]wFMCommunicate OK [13:55:10]CreateOFDProtocolMessage done [13:55:10]OFDSenderStorePacket 27139 [13:55:10]StoreOFDPacket docnum=27139 [13:55:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 24 01 00 00 F8 D3 1C 01 5F 81 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 34 35 33 35 06 04 1E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 A1 D0 BF D1 80 D0 B0 D0 B9 D1 82 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 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 2A 00 00 00 F4 03 04 00 42 9F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 03 6A 00 00 35 04 06 00 EF 3F 0B 10 67 B9 AD BC B5 B0 DD 34 95 4B [13:55:10]CheckFolder [13:55:10]dirname=/storage/ofd_packets [13:55:10]CheckFolder done [13:55:10]ProducePacketName [13:55:10]name=ofd_packets/00027139 [13:55:10]NVStorageSaveData ofd_packets/00027139 [13:55:10]File name is /storage/ofd_packets/00027139 [13:55:10]Write 322 bytes [13:55:10]NVStorageSaveData done [13:55:10]OFDSenderStorePacket done [13:55:10]KKMCreateOFDPacket done [13:55:10]NVStorageSaveData kkm_last_timestamp [13:55:10]File name is /storage/kkm_last_timestamp [13:55:10]Write 4 bytes [13:55:10]NVStorageSaveData done [13:55:10]ExternCall_PrintAddStr [13:55:10]wPrintStart [13:55:10]Write to MH i2c: 01 00 00 ED 17 04 [13:55:10]Write i2c OK [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: 01 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: 01 07 00 [13:55:10]MH_I2C_Read... [13:55:10]Read from MH i2c: 01 07 00 ED 17 00 00 00 00 00 FF 0F 19 [13:55:10]RasterBufferAndPrint [13:55:10]line Счет N : (3)150537 [13:55:10]line ИНН: 02508201610067 [13:55:10]line Контрольно-Кассовый Чек [13:55:10]line ПРОДАЖА [13:55:10]line Товар: 5449000014535 [13:55:10]line Напит Спрайт 0,33л [13:55:10]line 1.000 * 85.00 [13:55:10]line = 85.00 [13:55:10]line НДС 12% НСП 1% [13:55:10]line > о реализуемом товаре [13:55:10]line ИТОГО: 85.00 [13:55:10]line НСП 1% : 0.75 [13:55:10]line НДС 12% : 9.03 [13:55:10]line Наличными: 85.00 [13:55:10]line Безнал.: 0.00 [13:55:10]line Место: АЗС № 134 "Партнер Нефть" [13:55:10]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:55:10]line СНО: Общий режим [13:55:10]line Чек 42 29.07.2024 13:55 [13:55:10]line Смена: 434 ФФД: 1.0 [13:55:10]line ЗНМ: 0300000043 [13:55:10]line РНМ: 0000000000092663 [13:55:10]line Версия ККМ: 001 [13:55:10]line ФМ: 0000000000874937 [13:55:10]line ФД: 27139 [13:55:10]line ФПД: 263054047602617 [13:55:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T135514&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27139&fm=263054047602617&tin=02508201610067®Number=0000000000092663&sum=8500 [13:55:11]OFD Sender: Processing packet 27139 [packets to send 9, broken 8] [13:55:11]ProducePacketName [13:55:11]name=ofd_packets/00027139 [13:55:11]OFD Sender: To server: pG, [13:55:11]CommunicateWithHost lk.salyk.kg:30040 [13:55:11]ConnectInit lk.salyk.kg [13:55:11]line 0 [13:55:11]written 0, free lines is 4095 [13:55:11]Connected sock=10 [13:55:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 24 01 00 00 F8 D3 1C 01 5F 81 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 35 34 34 39 30 30 30 30 31 34 35 33 35 06 04 1E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 A1 D0 BF D1 80 D0 B0 D0 B9 D1 82 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 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 2A 00 00 00 F4 03 04 00 42 9F A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 03 6A 00 00 35 04 06 00 EF 3F 0B 10 67 B9 AD BC B5 B0 DD 34 95 4B [13:55:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 37 EA 47 00 17 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 34 39 33 37 10 04 04 00 03 6A 00 00 F4 03 04 00 93 45 A7 66 B6 04 01 00 00 E0 B4 DF 6E F5 DD 32 39 [13:55:11]CommunicateWithHost err = 0 [13:55:11]CheckOFDResponse [13:55:11]1017 (14) - 77093643461234 [13:55:11]1041 (16) - 0000000000874937 [13:55:11]1040 (4) - 27139 [13:55:11]1012 (4) - 29.07.2024 07:32 [13:55:11]1206 (1) - 0 [13:55:11]OFD Sender: Remove packet 27139 [13:55:11]ProducePacketName [13:55:11]name=ofd_packets/00027139 [13:55:11]NVStorageDeleteData [13:55:11]Write to MH i2c: 01 00 00 14 18 2C [13:55:11]Write i2c OK [13:55:11]MH_I2C_Read... [13:55:11]Read from MH i2c: 01 [13:55:11]MH_I2C_Read... [13:55:11]Read from MH i2c: 01 07 00 [13:55:11]MH_I2C_Read... [13:55:11]Read from MH i2c: 01 07 00 14 18 00 00 00 00 00 00 0D 40 [13:55:11]RasterBufferAndPrint [13:55:11]line [13:55:11]line [13:55:11]line [13:55:11]line [13:55:11]line [13:55:11]written 0, free lines is 3337 [13:55:11]MH_Cut [13:55:11]Write to MH i2c: D1 01 00 1B 18 01 05 [13:55:11]Write i2c OK [13:55:11]MH_I2C_Read... [13:55:11]Read from MH i2c: D1 [13:55:11]MH_I2C_Read... [13:55:11]Read from MH i2c: D1 01 00 [13:55:11]MH_I2C_Read... [13:55:11]Read from MH i2c: D1 01 00 1B 18 00 04 [13:55:11]Write to MH i2c: 01 00 00 1C 18 34 [13:55:11]Write i2c OK [13:55:11]MH_I2C_Read... [13:55:11]OFD Sender: No OFD packet to send [13:55:12]*** Cut start [13:55:12]*** Partial cut [13:55:12]*** CUTSNS_PIN = 1 [13:55:12]*** CUTSNS_PIN = 0 [13:55:12]*** Brake cut motor [13:55:12]Read from MH i2c: 01 [13:55:12]MH_I2C_Read... [13:55:12]*** Stop cut motor [13:55:12]*** Cut end [13:55:12]Read from MH i2c: 01 07 00 [13:55:12]MH_I2C_Read... [13:55:12]Read from MH i2c: 01 07 00 1C 18 00 00 00 00 00 FF 0F 49 [13:55:12]process_action close_receipt done [13:55:12]requested_data is exist [13:55:12]produce_requested_data [13:55:12]requested_item fm.sn is exist - process it [13:55:12]wFMCommunicate request_size=4 [13:55:12]MH_SAM_APDU [13:55:12]CAPDU: 80 11 00 00 [13:55:12]Write to MH i2c: E2 08 00 1D 18 80 11 00 00 00 00 00 00 AF [13:55:12]Write i2c OK [13:55:12]MH_I2C_Read... [13:55:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:12]Read from MH i2c: E2 [13:55:12]MH_I2C_Read... [13:55:12]Read from MH i2c: E2 17 00 [13:55:12]MH_I2C_Read... [13:55:12]Read from MH i2c: E2 17 00 1D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 08 [13:55:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [13:55:12]wFMCommunicate OK [13:55:12]requested_item fd.num is exist - process it [13:55:12]SAM_PROTO_GetFieldsCounters [13:55:12]wFMCommunicate request_size=4 [13:55:12]MH_SAM_APDU [13:55:12]CAPDU: 80 13 00 00 [13:55:12]Write to MH i2c: E2 08 00 1E 18 80 13 00 00 00 00 00 00 B2 [13:55:12]Write i2c OK [13:55:12]MH_I2C_Read... [13:55:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:13]Read from MH i2c: E2 [13:55:13]MH_I2C_Read... [13:55:13]Read from MH i2c: E2 62 00 [13:55:13]MH_I2C_Read... [13:55:13]Read from MH i2c: E2 62 00 1E 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 03 6A 00 00 0E 04 04 00 B2 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 78 [13:55:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 03 6A 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:55:13]wFMCommunicate OK [13:55:13]SAM_PROTO_GetFieldsCounters done [13:55:13]requested_item shift.num is exist - process it [13:55:13]requested_item shift.opened is exist - process it [13:55:13]req_shift_opened [13:55:13]FM_GetShiftState [13:55:13]SAM_PROTO_GetShiftState [13:55:13]wFMCommunicate request_size=4 [13:55:13]MH_SAM_APDU [13:55:13]CAPDU: 80 13 01 00 [13:55:13]Write to MH i2c: E2 08 00 1F 18 80 13 01 00 00 00 00 00 B4 [13:55:13]Write i2c OK [13:55:13]MH_I2C_Read... [13:55:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:13]Read from MH i2c: E2 [13:55:13]MH_I2C_Read... [13:55:13]Read from MH i2c: E2 0E 00 [13:55:13]MH_I2C_Read... [13:55:13]Read from MH i2c: E2 0E 00 1F 18 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 35 [13:55:13]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [13:55:13]wFMCommunicate OK [13:55:13]SAM_PROTO_GetShiftState done [13:55:13]FM_GetShiftState done [13:55:13]req_shift_opened done [13:55:13]requested_item shift.open_date is exist - process it [13:55:13]req_shift_open_date [13:55:13]req_shift_open_date done [13:55:13]produce_requested_data done [13:55:13]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27139,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [13:55:13]process_action_free close_receipt [13:55:13]json_value_free [13:55:13]json_value_free done [13:55:13]process_json_proto returns [13:55:13]Send response to host [13:55:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27139,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [13:55:13]free response buf [13:55:13]execute_script done [13:55:13]execute_script returns [13:55:13]free content buf [13:55:13]Sock 9.Close socket [13:55:13]Sock 9.Thread stoped [13:55:16]OFD Sender: No OFD packet to send [13:55:21]OFD Sender: No OFD packet to send [13:55:26]OFD Sender: No OFD packet to send [13:55:31]OFD Sender: No OFD packet to send [13:55:36]OFD Sender: No OFD packet to send [13:55:41]OFD Sender: No OFD packet to send [13:55:46]OFD Sender: No OFD packet to send [13:55:51]OFD Sender: No OFD packet to send [13:55:56]OFD Sender: No OFD packet to send [13:56:01]OFD Sender: No OFD packet to send [13:56:06]OFD Sender: No OFD packet to send [13:56:11]OFD Sender: No OFD packet to send [13:56:16]OFD Sender: No OFD packet to send [13:56:21]OFD Sender: No OFD packet to send [13:56:26]OFD Sender: No OFD packet to send [13:56:31]OFD Sender: No OFD packet to send [13:56:36]OFD Sender: No OFD packet to send [13:56:41]OFD Sender: No OFD packet to send [13:56:46]OFD Sender: No OFD packet to send [13:56:52]OFD Sender: No OFD packet to send [13:56:57]OFD Sender: No OFD packet to send [13:57:02]OFD Sender: No OFD packet to send [13:57:07]OFD Sender: No OFD packet to send [13:57:12]OFD Sender: No OFD packet to send [13:57:17]OFD Sender: No OFD packet to send [13:57:22]OFD Sender: No OFD packet to send [13:57:27]OFD Sender: No OFD packet to send [13:57:32]OFD Sender: No OFD packet to send [13:57:37]OFD Sender: No OFD packet to send [13:57:42]OFD Sender: No OFD packet to send [13:57:47]OFD Sender: No OFD packet to send [13:57:52]OFD Sender: No OFD packet to send [13:57:57]OFD Sender: No OFD packet to send [13:58:02]OFD Sender: No OFD packet to send [13:58:07]OFD Sender: No OFD packet to send [13:58:12]OFD Sender: No OFD packet to send [13:58:17]OFD Sender: No OFD packet to send [13:58:22]OFD Sender: No OFD packet to send [13:58:24]accept exits with 8 [13:58:24]New connection [13:58:24]New thread 3066928484 created [13:58:24]Thread 3066785124 joined [13:58:24]Waiting for new connection... [13:58:24] Sock 8.Parse request [13:58:24]Sock 8.Check first char [13:58:24]Sock 8.First char is OK [13:58:24]request: POST /json_proto HTTP/1.0 [13:58:24]Method: POST [13:58:24]URL: /json_proto [13:58:24]Method is POST - this is cgi request [13:58:24]url: /json_proto [13:58:24]query_string will be loaded in cgi processing [13:58:24]execute_cgi json_proto POST (null) [13:58:24]execute_cgi path=json_proto method=POST [13:58:24]POST find Content-Length [13:58:24]Host: 172.17.45.8:8080 [13:58:24]Content-Length: 632 [13:58:24]Content-Type: application/json [13:58:24] [13:58:24]POST finish read [13:58:24]Found Content-Length = 632 [13:58:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150538", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:24]execute_script... [13:58: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)150538", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:24]POST & json_proto [13:58:24]process_json_proto [13:58:24]json parsed OK: [13:58:24]protocol is kg_v1.0 [13:58:24]action value=close_receipt [13:58:24]process_action close_receipt [13:58:24]cmd_close_receipt [13:58:24]MH_GetDate [13:58:24]Write to MH i2c: F0 00 00 20 18 27 [13:58:24]Write i2c OK [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: F0 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: F0 09 00 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: F0 09 00 20 18 00 06 A0 A7 66 A6 1F 7F 64 8B [13:58:24]GetLastDocTimeStamp 1722261314 [13:58:24]current date 1722261510 [13:58:24]FM_GetShiftState [13:58:24]SAM_PROTO_GetShiftState [13:58:24]wFMCommunicate request_size=4 [13:58:24]MH_SAM_APDU [13:58:24]CAPDU: 80 13 01 00 [13:58:24]Write to MH i2c: E2 08 00 21 18 80 13 01 00 00 00 00 00 B6 [13:58:24]Write i2c OK [13:58:24]MH_I2C_Read... [13:58:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:25]Read from MH i2c: E2 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: E2 0E 00 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: E2 0E 00 21 18 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 37 [13:58:25]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [13:58:25]wFMCommunicate OK [13:58:25]SAM_PROTO_GetShiftState done [13:58:25]FM_GetShiftState done [13:58:25]opened in 1722213509 [13:58:25]opened+sec_in_day 1722299909 [13:58:25]quantity*price = 6000 [13:58:25]sum+1 = 6001 [13:58:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 43 29.07.2024 13:58 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27140 ФПД: 234331682802004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T135830&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27140&fm=234331682802004&tin=02508201610067®Number=0000000000092663&sum=6000 0 [13:58:26]StoreToDocumentArchive [13:58:26]shift 434 fd 27140 [13:58:26]save to /storage/0434/doc_00027140 [13:58:26]save last doc name /storage/0434/doc_00027140 to /storage/kkm_last_doc_name [13:58:26]save OK [13:58:26]Clear old archive folders... [13:58:26]ProcessDocumentItem done err = 0, tmpTLVsize=271 [13:58:26]tlvbuf is B6DA2700 [13:58:26]SAM_PROTO_ClearQueue [13:58:26]wFMCommunicate request_size=4 [13:58:26]MH_SAM_APDU [13:58:26]CAPDU: 80 09 00 00 [13:58:26]Write to MH i2c: E2 08 00 2E 18 80 09 00 00 00 00 00 00 B8 [13:58:26]Write i2c OK [13:58:26]MH_I2C_Read... [13:58:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:26]Read from MH i2c: E2 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 03 00 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 03 00 2E 18 00 90 00 BA [13:58:26]RAPDU: 90 00 [13:58:26]wFMCommunicate OK [13:58:26]SAM_PROTO_ClearQueue done [13:58:26]KKMCreateOFDPacket [13:58:26]OFDProtocolAddRootSTLVToBuf [13:58:26]FM_MakeSignedData [13:58:26]FM_MakeSignedData [13:58:26]SAM_PROTO_SignData [13:58:26]wFMCommunicate request_size=4 [13:58:26]MH_SAM_APDU [13:58:26]CAPDU: 80 0D 01 02 [13:58:26]Write to MH i2c: E2 08 00 2F 18 80 0D 01 02 00 00 00 00 C0 [13:58:26]Write i2c OK [13:58:26]MH_I2C_Read... [13:58:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:26]Read from MH i2c: E2 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 03 00 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 03 00 2F 18 00 90 00 BB [13:58:26]RAPDU: 90 00 [13:58:26]wFMCommunicate OK [13:58:26]wFMCommunicate request_size=255 [13:58:26]MH_SAM_APDU [13:58:26]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 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 2B 00 00 00 F4 03 04 00 06 A0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 [13:58:26]Write to MH i2c: E2 02 01 30 18 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 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 2B 00 00 00 F4 03 04 00 06 A0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 81 [13:58:26]Write i2c OK [13:58:26]MH_I2C_Read... [13:58:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:26]Read from MH i2c: E2 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 03 00 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 03 00 30 18 00 90 00 BC [13:58:26]RAPDU: 90 00 [13:58:26]wFMCommunicate OK [13:58:26]wFMCommunicate request_size=30 [13:58:26]MH_SAM_APDU [13:58:26]CAPDU: 80 0D 02 02 19 30 38 37 34 39 33 37 10 04 04 00 04 6A 00 00 35 04 06 00 D5 1F 98 B6 89 54 [13:58:26]Write to MH i2c: E2 21 00 31 18 80 0D 02 02 19 00 30 38 37 34 39 33 37 10 04 04 00 04 6A 00 00 35 04 06 00 D5 1F 98 B6 89 54 00 00 4F [13:58:26]Write i2c OK [13:58:26]MH_I2C_Read... [13:58:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:26]Read from MH i2c: E2 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 03 00 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 03 00 31 18 00 90 00 BD [13:58:26]RAPDU: 90 00 [13:58:26]wFMCommunicate OK [13:58:26]wFMCommunicate request_size=4 [13:58:26]MH_SAM_APDU [13:58:26]CAPDU: 80 0D 03 02 [13:58:26]Write to MH i2c: E2 08 00 32 18 80 0D 03 02 00 00 00 00 C5 [13:58:26]Write i2c OK [13:58:26]MH_I2C_Read... [13:58:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:26]Read from MH i2c: E2 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 0B 00 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 0B 00 32 18 00 94 0D 28 77 E3 99 A4 18 90 00 3E [13:58:26]RAPDU: 94 0D 28 77 E3 99 A4 18 90 00 [13:58:26]wFMCommunicate OK [13:58:26]SAM_PROTO_SignData done [13:58:26]FM_MakeSignedData done [13:58:26]CreateOFDProtocolMessage [13:58:26]wFMCommunicate request_size=4 [13:58:26]MH_SAM_APDU [13:58:26]CAPDU: 80 11 00 00 [13:58:26]Write to MH i2c: E2 08 00 33 18 80 11 00 00 00 00 00 00 C5 [13:58:26]Write i2c OK [13:58:26]MH_I2C_Read... [13:58:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:26]Read from MH i2c: E2 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 17 00 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: E2 17 00 33 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 1E [13:58:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [13:58:26]wFMCommunicate OK [13:58:26]CreateOFDProtocolMessage done [13:58:26]OFDSenderStorePacket 27140 [13:58:26]StoreOFDPacket docnum=27140 [13:58:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 23 01 00 00 18 EF 1B 01 90 75 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 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 2B 00 00 00 F4 03 04 00 06 A0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 04 6A 00 00 35 04 06 00 D5 1F 98 B6 89 54 94 0D 28 77 E3 99 A4 18 [13:58:26]CheckFolder [13:58:26]dirname=/storage/ofd_packets [13:58:26]CheckFolder done [13:58:26]ProducePacketName [13:58:26]name=ofd_packets/00027140 [13:58:26]NVStorageSaveData ofd_packets/00027140 [13:58:26]File name is /storage/ofd_packets/00027140 [13:58:26]Write 321 bytes [13:58:26]NVStorageSaveData done [13:58:26]OFDSenderStorePacket done [13:58:26]KKMCreateOFDPacket done [13:58:26]NVStorageSaveData kkm_last_timestamp [13:58:26]File name is /storage/kkm_last_timestamp [13:58:26]Write 4 bytes [13:58:26]NVStorageSaveData done [13:58:26]ExternCall_PrintAddStr [13:58:26]wPrintStart [13:58:26]Write to MH i2c: 01 00 00 34 18 4C [13:58:26]Write i2c OK [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: 01 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: 01 07 00 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: 01 07 00 34 18 00 00 00 00 00 FF 0F 61 [13:58:26]RasterBufferAndPrint [13:58:26]line Счет N : (3)150538 [13:58:26]line ИНН: 02508201610067 [13:58:26]line Контрольно-Кассовый Чек [13:58:26]line ПРОДАЖА [13:58:26]line Товар: 4700000160204 [13:58:26]line Вода Легенда 1,5л [13:58:26]line 1.000 * 60.00 [13:58:26]line = 60.00 [13:58:26]line НДС 12% НСП 1% [13:58:26]line > о реализуемом товаре [13:58:26]line ИТОГО: 60.00 [13:58:26]line НСП 1% : 0.53 [13:58:26]line НДС 12% : 6.37 [13:58:26]line Наличными: 60.00 [13:58:26]line Безнал.: 0.00 [13:58:26]line Место: АЗС № 134 "Партнер Нефть" [13:58:26]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [13:58:26]line СНО: Общий режим [13:58:26]line Чек 43 29.07.2024 13:58 [13:58:26]line Смена: 434 ФФД: 1.0 [13:58:26]line ЗНМ: 0300000043 [13:58:26]line РНМ: 0000000000092663 [13:58:26]line Версия ККМ: 001 [13:58:26]line ФМ: 0000000000874937 [13:58:26]line ФД: 27140 [13:58:26]line ФПД: 234331682802004 [13:58:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T135830&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27140&fm=234331682802004&tin=02508201610067®Number=0000000000092663&sum=6000 [13:58:27]line 0 [13:58:27]OFD Sender: Processing packet 27140 [packets to send 9, broken 8] [13:58:27]ProducePacketName [13:58:27]name=ofd_packets/00027140 [13:58:27]OFD Sender: To server: pG, [13:58:27]CommunicateWithHost lk.salyk.kg:30040 [13:58:27]ConnectInit lk.salyk.kg [13:58:27]written 0, free lines is 4095 [13:58:27]Connected sock=10 [13:58:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 23 01 00 00 18 EF 1B 01 90 75 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 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 2B 00 00 00 F4 03 04 00 06 A0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 04 6A 00 00 35 04 06 00 D5 1F 98 B6 89 54 94 0D 28 77 E3 99 A4 18 [13:58:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 F3 F6 47 00 9A 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 04 6A 00 00 F4 03 04 00 57 46 A7 66 B6 04 01 00 00 4B A2 E9 85 52 EC 06 4E [13:58:27]CommunicateWithHost err = 0 [13:58:27]CheckOFDResponse [13:58:27]1017 (14) - 77093643461234 [13:58:27]1041 (16) - 0000000000874937 [13:58:27]1040 (4) - 27140 [13:58:27]1012 (4) - 29.07.2024 07:35 [13:58:27]1206 (1) - 0 [13:58:27]OFD Sender: Remove packet 27140 [13:58:27]ProducePacketName [13:58:27]name=ofd_packets/00027140 [13:58:27]NVStorageDeleteData [13:58:27]Write to MH i2c: 01 00 00 5B 18 73 [13:58:27]Write i2c OK [13:58:27]MH_I2C_Read... [13:58:27]Read from MH i2c: 01 [13:58:27]MH_I2C_Read... [13:58:27]Read from MH i2c: 01 07 00 [13:58:27]MH_I2C_Read... [13:58:27]Read from MH i2c: 01 07 00 5B 18 00 00 00 00 00 FE 0C 84 [13:58:27]RasterBufferAndPrint [13:58:27]line [13:58:27]line [13:58:27]line [13:58:27]line [13:58:27]line [13:58:27]written 0, free lines is 3332 [13:58:27]MH_Cut [13:58:27]Write to MH i2c: D1 01 00 62 18 01 4C [13:58:27]Write i2c OK [13:58:27]MH_I2C_Read... [13:58:27]Read from MH i2c: D1 [13:58:27]MH_I2C_Read... [13:58:27]Read from MH i2c: D1 01 00 [13:58:27]MH_I2C_Read... [13:58:27]Read from MH i2c: D1 01 00 62 18 00 4B [13:58:27]Write to MH i2c: 01 00 00 63 18 7B [13:58:27]Write i2c OK [13:58:27]MH_I2C_Read... [13:58:27]OFD Sender: No OFD packet to send [13:58:28]*** Cut start [13:58:28]*** Partial cut [13:58:28]*** CUTSNS_PIN = 1 [13:58:28]*** CUTSNS_PIN = 0 [13:58:28]*** Brake cut motor [13:58:28]Read from MH i2c: 01 [13:58:28]MH_I2C_Read... [13:58:28]*** Stop cut motor [13:58:28]*** Cut end [13:58:28]Read from MH i2c: 01 07 00 [13:58:28]MH_I2C_Read... [13:58:28]Read from MH i2c: 01 07 00 63 18 00 00 00 00 00 FF 0F 90 [13:58:28]process_action close_receipt done [13:58:28]requested_data is exist [13:58:28]produce_requested_data [13:58:28]requested_item fm.sn is exist - process it [13:58:28]wFMCommunicate request_size=4 [13:58:28]MH_SAM_APDU [13:58:28]CAPDU: 80 11 00 00 [13:58:28]Write to MH i2c: E2 08 00 64 18 80 11 00 00 00 00 00 00 F6 [13:58:28]Write i2c OK [13:58:28]MH_I2C_Read... [13:58:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:28]Read from MH i2c: E2 [13:58:28]MH_I2C_Read... [13:58:28]Read from MH i2c: E2 17 00 [13:58:28]MH_I2C_Read... [13:58:28]Read from MH i2c: E2 17 00 64 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 4F [13:58:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [13:58:28]wFMCommunicate OK [13:58:28]requested_item fd.num is exist - process it [13:58:28]SAM_PROTO_GetFieldsCounters [13:58:28]wFMCommunicate request_size=4 [13:58:28]MH_SAM_APDU [13:58:28]CAPDU: 80 13 00 00 [13:58:28]Write to MH i2c: E2 08 00 65 18 80 13 00 00 00 00 00 00 F9 [13:58:28]Write i2c OK [13:58:28]MH_I2C_Read... [13:58:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:28]Read from MH i2c: E2 [13:58:28]MH_I2C_Read... [13:58:28]Read from MH i2c: E2 62 00 [13:58:28]MH_I2C_Read... [13:58:28]Read from MH i2c: E2 62 00 65 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 04 6A 00 00 0E 04 04 00 B2 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 C3 [13:58: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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 04 6A 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:58:28]wFMCommunicate OK [13:58:28]SAM_PROTO_GetFieldsCounters done [13:58:28]requested_item shift.num is exist - process it [13:58:28]requested_item shift.opened is exist - process it [13:58:28]req_shift_opened [13:58:28]FM_GetShiftState [13:58:28]SAM_PROTO_GetShiftState [13:58:28]wFMCommunicate request_size=4 [13:58:28]MH_SAM_APDU [13:58:28]CAPDU: 80 13 01 00 [13:58:28]Write to MH i2c: E2 08 00 66 18 80 13 01 00 00 00 00 00 FB [13:58:28]Write i2c OK [13:58:28]MH_I2C_Read... [13:58:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:29]Read from MH i2c: E2 [13:58:29]MH_I2C_Read... [13:58:29]Read from MH i2c: E2 0E 00 [13:58:29]MH_I2C_Read... [13:58:29]Read from MH i2c: E2 0E 00 66 18 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 7C [13:58:29]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [13:58:29]wFMCommunicate OK [13:58:29]SAM_PROTO_GetShiftState done [13:58:29]FM_GetShiftState done [13:58:29]req_shift_opened done [13:58:29]requested_item shift.open_date is exist - process it [13:58:29]req_shift_open_date [13:58:29]req_shift_open_date done [13:58:29]produce_requested_data done [13:58:29]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27140,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [13:58:29]process_action_free close_receipt [13:58:29]json_value_free [13:58:29]json_value_free done [13:58:29]process_json_proto returns [13:58:29]Send response to host [13:58:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27140,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [13:58:29]free response buf [13:58:29]execute_script done [13:58:29]execute_script returns [13:58:29]free content buf [13:58:29]Sock 8.Close socket [13:58:29]Sock 8.Thread stoped [13:58:32]OFD Sender: No OFD packet to send [13:58:37]OFD Sender: No OFD packet to send [13:58:42]OFD Sender: No OFD packet to send [13:58:47]OFD Sender: No OFD packet to send [13:58:52]OFD Sender: No OFD packet to send [13:58:57]OFD Sender: No OFD packet to send [13:59:02]OFD Sender: No OFD packet to send [13:59:07]OFD Sender: No OFD packet to send [13:59:12]OFD Sender: No OFD packet to send [13:59:17]OFD Sender: No OFD packet to send [13:59:22]OFD Sender: No OFD packet to send [13:59:27]OFD Sender: No OFD packet to send [13:59:32]OFD Sender: No OFD packet to send [13:59:37]OFD Sender: No OFD packet to send [13:59:42]OFD Sender: No OFD packet to send [13:59:47]OFD Sender: No OFD packet to send [13:59:52]OFD Sender: No OFD packet to send [13:59:57]OFD Sender: No OFD packet to send [14:00:02]OFD Sender: No OFD packet to send [14:00:07]OFD Sender: No OFD packet to send [14:00:12]OFD Sender: No OFD packet to send [14:00:17]OFD Sender: No OFD packet to send [14:00:22]OFD Sender: No OFD packet to send [14:00:27]OFD Sender: No OFD packet to send [14:00:32]OFD Sender: No OFD packet to send [14:00:34]accept exits with 9 [14:00:34]New connection [14:00:34]New thread 3066785124 created [14:00:34]Thread 3066928484 joined [14:00:34]Waiting for new connection... [14:00:34] Sock 9.Parse request [14:00:34]Sock 9.Check first char [14:00:34]Sock 9.First char is OK [14:00:34]request: POST /json_proto HTTP/1.0 [14:00:34]Method: POST [14:00:34]URL: /json_proto [14:00:34]Method is POST - this is cgi request [14:00:34]url: /json_proto [14:00:34]query_string will be loaded in cgi processing [14:00:34]execute_cgi json_proto POST (null) [14:00:34]execute_cgi path=json_proto method=POST [14:00:34]POST find Content-Length [14:00:34]Host: 172.17.45.8:8080 [14:00:34]Content-Length: 639 [14:00:34]Content-Type: application/json [14:00:34] [14:00:34]POST finish read [14:00:34]Found Content-Length = 639 [14:00:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150539", "tax_sys" : 0, "items" : [ { "code": "4870001157913", "name": "\u0412\u043E\u0434\u0430 ASU 0,5\u043B c \u0431\u0435\u0437 \u0433\u0430\u0437\u0430", "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" ] } } [14:00:34]execute_script... [14:00: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)150539", "tax_sys" : 0, "items" : [ { "code": "4870001157913", "name": "\u0412\u043E\u0434\u0430 ASU 0,5\u043B c \u0431\u0435\u0437 \u0433\u0430\u0437\u0430", "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" ] } } [14:00:34]POST & json_proto [14:00:34]process_json_proto [14:00:34]json parsed OK: [14:00:34]protocol is kg_v1.0 [14:00:34]action value=close_receipt [14:00:34]process_action close_receipt [14:00:34]cmd_close_receipt [14:00:34]MH_GetDate [14:00:34]Write to MH i2c: F0 00 00 67 18 6E [14:00:34]Write i2c OK [14:00:34]MH_I2C_Read... [14:00:34]Read from MH i2c: F0 [14:00:34]MH_I2C_Read... [14:00:34]Read from MH i2c: F0 09 00 [14:00:34]MH_I2C_Read... [14:00:34]Read from MH i2c: F0 09 00 67 18 00 88 A0 A7 66 A6 1F 7F 64 54 [14:00:34]GetLastDocTimeStamp 1722261510 [14:00:34]current date 1722261640 [14:00:34]FM_GetShiftState [14:00:34]SAM_PROTO_GetShiftState [14:00:34]wFMCommunicate request_size=4 [14:00:34]MH_SAM_APDU [14:00:34]CAPDU: 80 13 01 00 [14:00:34]Write to MH i2c: E2 08 00 68 18 80 13 01 00 00 00 00 00 FD [14:00:34]Write i2c OK [14:00:34]MH_I2C_Read... [14:00:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:35]Read from MH i2c: E2 [14:00:35]MH_I2C_Read... [14:00:35]Read from MH i2c: E2 0E 00 [14:00:35]MH_I2C_Read... [14:00:35]Read from MH i2c: E2 0E 00 68 18 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 7E [14:00:35]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [14:00:35]wFMCommunicate OK [14:00:35]SAM_PROTO_GetShiftState done [14:00:35]FM_GetShiftState done [14:00:35]opened in 1722213509 [14:00:35]opened+sec_in_day 1722299909 [14:00:35]quantity*price = 8000 [14:00:35]sum+1 = 8001 [14:00:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 44 29.07.2024 14:00 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27141 ФПД: 177040445676810 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T140040&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27141&fm=177040445676810&tin=02508201610067®Number=0000000000092663&sum=8000 0 [14:00:36]StoreToDocumentArchive [14:00:36]shift 434 fd 27141 [14:00:36]save to /storage/0434/doc_00027141 [14:00:36]save last doc name /storage/0434/doc_00027141 to /storage/kkm_last_doc_name [14:00:36]save OK [14:00:36]Clear old archive folders... [14:00:36]ProcessDocumentItem done err = 0, tmpTLVsize=278 [14:00:36]tlvbuf is 001AC650 [14:00:36]SAM_PROTO_ClearQueue [14:00:36]wFMCommunicate request_size=4 [14:00:36]MH_SAM_APDU [14:00:36]CAPDU: 80 09 00 00 [14:00:36]Write to MH i2c: E2 08 00 75 18 80 09 00 00 00 00 00 00 FF [14:00:36]Write i2c OK [14:00:36]MH_I2C_Read... [14:00:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:36]Read from MH i2c: E2 [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: E2 03 00 [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: E2 03 00 75 18 00 90 00 01 [14:00:36]RAPDU: 90 00 [14:00:36]wFMCommunicate OK [14:00:36]SAM_PROTO_ClearQueue done [14:00:36]KKMCreateOFDPacket [14:00:36]OFDProtocolAddRootSTLVToBuf [14:00:36]FM_MakeSignedData [14:00:36]FM_MakeSignedData [14:00:36]SAM_PROTO_SignData [14:00:36]wFMCommunicate request_size=4 [14:00:36]MH_SAM_APDU [14:00:36]CAPDU: 80 0D 01 02 [14:00:36]Write to MH i2c: E2 08 00 76 18 80 0D 01 02 00 00 00 00 07 [14:00:36]Write i2c OK [14:00:36]MH_I2C_Read... [14:00:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:36]Read from MH i2c: E2 [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: E2 03 00 [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: E2 03 00 76 18 00 90 00 02 [14:00:36]RAPDU: 90 00 [14:00:36]wFMCommunicate OK [14:00:36]wFMCommunicate request_size=255 [14:00:36]MH_SAM_APDU [14:00:36]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 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 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 2C 00 00 00 F4 03 04 00 88 A0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 [14:00:36]Write to MH i2c: E2 02 01 77 18 80 0D 02 02 FA 00 03 00 16 01 1E 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 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 2C 00 00 00 F4 03 04 00 88 A0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 00 00 63 [14:00:36]Write i2c OK [14:00:36]MH_I2C_Read... [14:00:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:36]Read from MH i2c: E2 [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: E2 03 00 [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: E2 03 00 77 18 00 90 00 03 [14:00:36]RAPDU: 90 00 [14:00:36]wFMCommunicate OK [14:00:36]wFMCommunicate request_size=37 [14:00:36]MH_SAM_APDU [14:00:36]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 05 6A 00 00 35 04 06 00 A1 04 70 E0 1D 0A [14:00:36]Write to MH i2c: E2 28 00 78 18 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 05 6A 00 00 35 04 06 00 A1 04 70 E0 1D 0A 00 00 F2 [14:00:36]Write i2c OK [14:00:36]MH_I2C_Read... [14:00:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:36]Read from MH i2c: E2 [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: E2 03 00 [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: E2 03 00 78 18 00 90 00 04 [14:00:36]RAPDU: 90 00 [14:00:36]wFMCommunicate OK [14:00:36]wFMCommunicate request_size=4 [14:00:36]MH_SAM_APDU [14:00:36]CAPDU: 80 0D 03 02 [14:00:36]Write to MH i2c: E2 08 00 79 18 80 0D 03 02 00 00 00 00 0C [14:00:36]Write i2c OK [14:00:36]MH_I2C_Read... [14:00:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:36]Read from MH i2c: E2 [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: E2 0B 00 [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: E2 0B 00 79 18 00 7A F7 4C 22 B0 0E 90 0C 90 00 46 [14:00:36]RAPDU: 7A F7 4C 22 B0 0E 90 0C 90 00 [14:00:36]wFMCommunicate OK [14:00:36]SAM_PROTO_SignData done [14:00:36]FM_MakeSignedData done [14:00:36]CreateOFDProtocolMessage [14:00:36]wFMCommunicate request_size=4 [14:00:36]MH_SAM_APDU [14:00:36]CAPDU: 80 11 00 00 [14:00:36]Write to MH i2c: E2 08 00 7A 18 80 11 00 00 00 00 00 00 0C [14:00:36]Write i2c OK [14:00:36]MH_I2C_Read... [14:00:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:36]Read from MH i2c: E2 [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: E2 17 00 [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: E2 17 00 7A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 65 [14:00:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [14:00:36]wFMCommunicate OK [14:00:36]CreateOFDProtocolMessage done [14:00:36]OFDSenderStorePacket 27141 [14:00:36]StoreOFDPacket docnum=27141 [14:00:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 2A 01 00 00 85 3F 22 01 D5 D5 5A 03 01 00 03 00 16 01 1E 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 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 2C 00 00 00 F4 03 04 00 88 A0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 05 6A 00 00 35 04 06 00 A1 04 70 E0 1D 0A 7A F7 4C 22 B0 0E 90 0C [14:00:36]CheckFolder [14:00:36]dirname=/storage/ofd_packets [14:00:36]CheckFolder done [14:00:36]ProducePacketName [14:00:36]name=ofd_packets/00027141 [14:00:36]NVStorageSaveData ofd_packets/00027141 [14:00:36]File name is /storage/ofd_packets/00027141 [14:00:36]Write 328 bytes [14:00:36]NVStorageSaveData done [14:00:36]OFDSenderStorePacket done [14:00:36]KKMCreateOFDPacket done [14:00:36]NVStorageSaveData kkm_last_timestamp [14:00:36]File name is /storage/kkm_last_timestamp [14:00:36]Write 4 bytes [14:00:36]NVStorageSaveData done [14:00:36]ExternCall_PrintAddStr [14:00:36]wPrintStart [14:00:36]Write to MH i2c: 01 00 00 7B 18 93 [14:00:36]Write i2c OK [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: 01 [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: 01 07 00 [14:00:36]MH_I2C_Read... [14:00:36]Read from MH i2c: 01 07 00 7B 18 00 00 00 00 00 FF 0F A8 [14:00:36]RasterBufferAndPrint [14:00:36]line Счет N : (3)150539 [14:00:36]line ИНН: 02508201610067 [14:00:36]line Контрольно-Кассовый Чек [14:00:36]line ПРОДАЖА [14:00:36]line Товар: 4870001157913 [14:00:36]line Вода ASU 0,5л c без газа [14:00:36]line 2.000 * 40.00 [14:00:36]line = 80.00 [14:00:36]line НДС 12% НСП 1% [14:00:36]line > о реализуемом товаре [14:00:36]line ИТОГО: 80.00 [14:00:36]line НСП 1% : 0.71 [14:00:36]line НДС 12% : 8.50 [14:00:36]line Наличными: 80.00 [14:00:36]line Безнал.: 0.00 [14:00:36]line Место: АЗС № 134 "Партнер Нефть" [14:00:36]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:00:36]line СНО: Общий режим [14:00:36]line Чек 44 29.07.2024 14:00 [14:00:36]line Смена: 434 ФФД: 1.0 [14:00:36]line ЗНМ: 0300000043 [14:00:36]line РНМ: 0000000000092663 [14:00:36]line Версия ККМ: 001 [14:00:36]line ФМ: 0000000000874937 [14:00:36]line ФД: 27141 [14:00:36]line ФПД: 177040445676810 [14:00:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T140040&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27141&fm=177040445676810&tin=02508201610067®Number=0000000000092663&sum=8000 [14:00:37]OFD Sender: Processing packet 27141 [packets to send 9, broken 8] [14:00:37]ProducePacketName [14:00:37]name=ofd_packets/00027141 [14:00:37]OFD Sender: To server: pG, [14:00:37]CommunicateWithHost lk.salyk.kg:30040 [14:00:37]ConnectInit lk.salyk.kg [14:00:37]line 0 [14:00:37]written 0, free lines is 4095 [14:00:37]Connected sock=10 [14:00:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 2A 01 00 00 85 3F 22 01 D5 D5 5A 03 01 00 03 00 16 01 1E 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 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 2C 00 00 00 F4 03 04 00 88 A0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 05 6A 00 00 35 04 06 00 A1 04 70 E0 1D 0A 7A F7 4C 22 B0 0E 90 0C [14:00:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 EC 58 47 00 CA 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 05 6A 00 00 F4 03 04 00 D9 46 A7 66 B6 04 01 00 00 34 61 A8 09 85 51 96 A9 [14:00:37]CommunicateWithHost err = 0 [14:00:37]CheckOFDResponse [14:00:37]1017 (14) - 77093643461234 [14:00:37]1041 (16) - 0000000000874937 [14:00:37]1040 (4) - 27141 [14:00:37]1012 (4) - 29.07.2024 07:38 [14:00:37]1206 (1) - 0 [14:00:37]OFD Sender: Remove packet 27141 [14:00:37]ProducePacketName [14:00:37]name=ofd_packets/00027141 [14:00:37]NVStorageDeleteData [14:00:37]Write to MH i2c: 01 00 00 A2 18 BA [14:00:37]Write i2c OK [14:00:37]MH_I2C_Read... [14:00:37]Read from MH i2c: 01 [14:00:37]MH_I2C_Read... [14:00:37]Read from MH i2c: 01 07 00 [14:00:37]MH_I2C_Read... [14:00:37]Read from MH i2c: 01 07 00 A2 18 00 00 00 00 00 F2 0C BF [14:00:37]RasterBufferAndPrint [14:00:37]line [14:00:37]line [14:00:37]line [14:00:37]line [14:00:37]line [14:00:37]written 0, free lines is 3323 [14:00:37]MH_Cut [14:00:37]Write to MH i2c: D1 01 00 A9 18 01 93 [14:00:37]Write i2c OK [14:00:37]MH_I2C_Read... [14:00:37]Read from MH i2c: D1 [14:00:37]MH_I2C_Read... [14:00:37]Read from MH i2c: D1 01 00 [14:00:37]MH_I2C_Read... [14:00:37]Read from MH i2c: D1 01 00 A9 18 00 92 [14:00:37]Write to MH i2c: 01 00 00 AA 18 C2 [14:00:37]Write i2c OK [14:00:37]MH_I2C_Read... [14:00:37]OFD Sender: No OFD packet to send [14:00:38]*** Cut start [14:00:38]*** Partial cut [14:00:38]*** CUTSNS_PIN = 1 [14:00:38]*** CUTSNS_PIN = 0 [14:00:38]*** Brake cut motor [14:00:38]Read from MH i2c: 01 [14:00:38]MH_I2C_Read... [14:00:38]*** Stop cut motor [14:00:38]*** Cut end [14:00:38]Read from MH i2c: 01 07 00 [14:00:38]MH_I2C_Read... [14:00:38]Read from MH i2c: 01 07 00 AA 18 00 00 00 00 00 FF 0F D7 [14:00:38]process_action close_receipt done [14:00:38]requested_data is exist [14:00:38]produce_requested_data [14:00:38]requested_item fm.sn is exist - process it [14:00:38]wFMCommunicate request_size=4 [14:00:38]MH_SAM_APDU [14:00:38]CAPDU: 80 11 00 00 [14:00:38]Write to MH i2c: E2 08 00 AB 18 80 11 00 00 00 00 00 00 3D [14:00:38]Write i2c OK [14:00:38]MH_I2C_Read... [14:00:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:38]Read from MH i2c: E2 [14:00:38]MH_I2C_Read... [14:00:38]Read from MH i2c: E2 17 00 [14:00:38]MH_I2C_Read... [14:00:38]Read from MH i2c: E2 17 00 AB 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 96 [14:00:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [14:00:38]wFMCommunicate OK [14:00:38]requested_item fd.num is exist - process it [14:00:38]SAM_PROTO_GetFieldsCounters [14:00:38]wFMCommunicate request_size=4 [14:00:38]MH_SAM_APDU [14:00:38]CAPDU: 80 13 00 00 [14:00:38]Write to MH i2c: E2 08 00 AC 18 80 13 00 00 00 00 00 00 40 [14:00:38]Write i2c OK [14:00:38]MH_I2C_Read... [14:00:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:39]Read from MH i2c: E2 [14:00:39]MH_I2C_Read... [14:00:39]Read from MH i2c: E2 62 00 [14:00:39]MH_I2C_Read... [14:00:39]Read from MH i2c: E2 62 00 AC 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 05 6A 00 00 0E 04 04 00 B2 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 0E [14:00:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 05 6A 00 00 0E 04 04 00 B2 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 [14:00:39]wFMCommunicate OK [14:00:39]SAM_PROTO_GetFieldsCounters done [14:00:39]requested_item shift.num is exist - process it [14:00:39]requested_item shift.opened is exist - process it [14:00:39]req_shift_opened [14:00:39]FM_GetShiftState [14:00:39]SAM_PROTO_GetShiftState [14:00:39]wFMCommunicate request_size=4 [14:00:39]MH_SAM_APDU [14:00:39]CAPDU: 80 13 01 00 [14:00:39]Write to MH i2c: E2 08 00 AD 18 80 13 01 00 00 00 00 00 42 [14:00:39]Write i2c OK [14:00:39]MH_I2C_Read... [14:00:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:39]Read from MH i2c: E2 [14:00:39]MH_I2C_Read... [14:00:39]Read from MH i2c: E2 0E 00 [14:00:39]MH_I2C_Read... [14:00:39]Read from MH i2c: E2 0E 00 AD 18 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 C3 [14:00:39]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [14:00:39]wFMCommunicate OK [14:00:39]SAM_PROTO_GetShiftState done [14:00:39]FM_GetShiftState done [14:00:39]req_shift_opened done [14:00:39]requested_item shift.open_date is exist - process it [14:00:39]req_shift_open_date [14:00:39]req_shift_open_date done [14:00:39]produce_requested_data done [14:00:39]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27141,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [14:00:39]process_action_free close_receipt [14:00:39]json_value_free [14:00:39]json_value_free done [14:00:39]process_json_proto returns [14:00:39]Send response to host [14:00:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27141,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [14:00:39]free response buf [14:00:39]execute_script done [14:00:39]execute_script returns [14:00:39]free content buf [14:00:39]Sock 9.Close socket [14:00:39]Sock 9.Thread stoped [14:00:42]OFD Sender: No OFD packet to send [14:00:47]OFD Sender: No OFD packet to send [14:00:52]OFD Sender: No OFD packet to send [14:00:57]OFD Sender: No OFD packet to send [14:01:02]OFD Sender: No OFD packet to send [14:01:07]OFD Sender: No OFD packet to send [14:01:12]OFD Sender: No OFD packet to send [14:01:17]OFD Sender: No OFD packet to send [14:01:18]accept exits with 8 [14:01:18]New connection [14:01:18]New thread 3066928484 created [14:01:18]Thread 3066785124 joined [14:01:18]Waiting for new connection... [14:01:18] Sock 8.Parse request [14:01:18]Sock 8.Check first char [14:01:18]Sock 8.First char is OK [14:01:18]request: POST /json_proto HTTP/1.0 [14:01:18]Method: POST [14:01:18]URL: /json_proto [14:01:18]Method is POST - this is cgi request [14:01:18]url: /json_proto [14:01:18]query_string will be loaded in cgi processing [14:01:18]execute_cgi json_proto POST (null) [14:01:18]execute_cgi path=json_proto method=POST [14:01:18]POST find Content-Length [14:01:18]Host: 172.17.45.8:8080 [14:01:18]Content-Length: 784 [14:01:18]Content-Type: application/json [14:01:18] [14:01:18]POST finish read [14:01:18]Found Content-Length = 784 [14:01:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150540", "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" ] } } [14:01:18]execute_script... [14:01: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)150540", "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" ] } } [14:01:18]POST & json_proto [14:01:18]process_json_proto [14:01:18]json parsed OK: [14:01:18]protocol is kg_v1.0 [14:01:18]action value=close_receipt [14:01:18]process_action close_receipt [14:01:18]cmd_close_receipt [14:01:18]MH_GetDate [14:01:18]Write to MH i2c: F0 00 00 AE 18 B5 [14:01:18]Write i2c OK [14:01:18]MH_I2C_Read... [14:01:18]Read from MH i2c: F0 [14:01:18]MH_I2C_Read... [14:01:18]Read from MH i2c: F0 09 00 [14:01:18]MH_I2C_Read... [14:01:18]Read from MH i2c: F0 09 00 AE 18 00 B3 A0 A7 66 A6 1F 7F 64 C6 [14:01:18]GetLastDocTimeStamp 1722261640 [14:01:18]current date 1722261683 [14:01:18]FM_GetShiftState [14:01:18]SAM_PROTO_GetShiftState [14:01:18]wFMCommunicate request_size=4 [14:01:18]MH_SAM_APDU [14:01:18]CAPDU: 80 13 01 00 [14:01:18]Write to MH i2c: E2 08 00 AF 18 80 13 01 00 00 00 00 00 44 [14:01:18]Write i2c OK [14:01:18]MH_I2C_Read... [14:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:18]Read from MH i2c: E2 [14:01:18]MH_I2C_Read... [14:01:18]Read from MH i2c: E2 0E 00 [14:01:18]MH_I2C_Read... [14:01:18]Read from MH i2c: E2 0E 00 AF 18 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 C5 [14:01:18]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [14:01:18]wFMCommunicate OK [14:01:18]SAM_PROTO_GetShiftState done [14:01:18]FM_GetShiftState done [14:01:18]opened in 1722213509 [14:01:18]opened+sec_in_day 1722299909 [14:01:18]quantity*price = 14000 [14:01:18]sum+1 = 14001 [14:01:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 45 29.07.2024 14:01 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874937 ФД: 27142 ФПД: 24381029592880 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T140123&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27142&fm=24381029592880&tin=02508201610067®Number=0000000000092663&sum=14000 0 [14:01:19]StoreToDocumentArchive [14:01:19]shift 434 fd 27142 [14:01:19]save to /storage/0434/doc_00027142 [14:01:19]save last doc name /storage/0434/doc_00027142 to /storage/kkm_last_doc_name [14:01:19]save OK [14:01:19]Clear old archive folders... [14:01:19]ProcessDocumentItem done err = 0, tmpTLVsize=275 [14:01:19]tlvbuf is B6EBB2A0 [14:01:19]SAM_PROTO_ClearQueue [14:01:19]wFMCommunicate request_size=4 [14:01:19]MH_SAM_APDU [14:01:19]CAPDU: 80 09 00 00 [14:01:19]Write to MH i2c: E2 08 00 BC 18 80 09 00 00 00 00 00 00 46 [14:01:19]Write i2c OK [14:01:19]MH_I2C_Read... [14:01:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:01:19]Read from MH i2c: E2 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 03 00 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 03 00 BC 18 00 90 00 48 [14:01:19]RAPDU: 90 00 [14:01:19]wFMCommunicate OK [14:01:19]SAM_PROTO_ClearQueue done [14:01:19]KKMCreateOFDPacket [14:01:19]OFDProtocolAddRootSTLVToBuf [14:01:19]FM_MakeSignedData [14:01:19]FM_MakeSignedData [14:01:19]SAM_PROTO_SignData [14:01:19]wFMCommunicate request_size=4 [14:01:19]MH_SAM_APDU [14:01:19]CAPDU: 80 0D 01 02 [14:01:19]Write to MH i2c: E2 08 00 BD 18 80 0D 01 02 00 00 00 00 4E [14:01:19]Write i2c OK [14:01:19]MH_I2C_Read... [14:01:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:01:19]Read from MH i2c: E2 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 03 00 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 03 00 BD 18 00 90 00 49 [14:01:19]RAPDU: 90 00 [14:01:19]wFMCommunicate OK [14:01:19]wFMCommunicate request_size=255 [14:01:19]MH_SAM_APDU [14:01:19]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 2D 00 00 00 F4 03 04 00 B3 A0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 [14:01:19]Write to MH i2c: E2 02 01 BE 18 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 2D 00 00 00 F4 03 04 00 B3 A0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 00 00 1F [14:01:19]Write i2c OK [14:01:19]MH_I2C_Read... [14:01:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:19]Read from MH i2c: E2 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 03 00 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 03 00 BE 18 00 90 00 4A [14:01:19]RAPDU: 90 00 [14:01:19]wFMCommunicate OK [14:01:19]wFMCommunicate request_size=34 [14:01:19]MH_SAM_APDU [14:01:19]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 06 6A 00 00 35 04 06 00 16 2C A6 9B AF 30 [14:01:19]Write to MH i2c: E2 25 00 BF 18 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 06 6A 00 00 35 04 06 00 16 2C A6 9B AF 30 00 00 EA [14:01:19]Write i2c OK [14:01:19]MH_I2C_Read... [14:01:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:19]Read from MH i2c: E2 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 03 00 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 03 00 BF 18 00 90 00 4B [14:01:19]RAPDU: 90 00 [14:01:19]wFMCommunicate OK [14:01:19]wFMCommunicate request_size=4 [14:01:19]MH_SAM_APDU [14:01:19]CAPDU: 80 0D 03 02 [14:01:19]Write to MH i2c: E2 08 00 C0 18 80 0D 03 02 00 00 00 00 53 [14:01:19]Write i2c OK [14:01:19]MH_I2C_Read... [14:01:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:01:19]Read from MH i2c: E2 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 0B 00 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 0B 00 C0 18 00 63 DE 6B 27 24 EC B8 58 90 00 47 [14:01:19]RAPDU: 63 DE 6B 27 24 EC B8 58 90 00 [14:01:19]wFMCommunicate OK [14:01:19]SAM_PROTO_SignData done [14:01:19]FM_MakeSignedData done [14:01:19]CreateOFDProtocolMessage [14:01:19]wFMCommunicate request_size=4 [14:01:19]MH_SAM_APDU [14:01:19]CAPDU: 80 11 00 00 [14:01:19]Write to MH i2c: E2 08 00 C1 18 80 11 00 00 00 00 00 00 53 [14:01:19]Write i2c OK [14:01:19]MH_I2C_Read... [14:01:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:19]Read from MH i2c: E2 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 17 00 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: E2 17 00 C1 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 AC [14:01:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [14:01:19]wFMCommunicate OK [14:01:19]CreateOFDProtocolMessage done [14:01:19]OFDSenderStorePacket 27142 [14:01:19]StoreOFDPacket docnum=27142 [14:01:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 27 01 00 00 76 68 1F 01 CF 0E 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 2D 00 00 00 F4 03 04 00 B3 A0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 06 6A 00 00 35 04 06 00 16 2C A6 9B AF 30 63 DE 6B 27 24 EC B8 58 [14:01:19]CheckFolder [14:01:19]dirname=/storage/ofd_packets [14:01:19]CheckFolder done [14:01:19]ProducePacketName [14:01:19]name=ofd_packets/00027142 [14:01:19]NVStorageSaveData ofd_packets/00027142 [14:01:19]File name is /storage/ofd_packets/00027142 [14:01:19]Write 325 bytes [14:01:19]NVStorageSaveData done [14:01:19]OFDSenderStorePacket done [14:01:19]KKMCreateOFDPacket done [14:01:19]NVStorageSaveData kkm_last_timestamp [14:01:19]File name is /storage/kkm_last_timestamp [14:01:19]Write 4 bytes [14:01:19]NVStorageSaveData done [14:01:19]ExternCall_PrintAddStr [14:01:19]wPrintStart [14:01:19]Write to MH i2c: 01 00 00 C2 18 DA [14:01:19]Write i2c OK [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: 01 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: 01 07 00 [14:01:19]MH_I2C_Read... [14:01:19]Read from MH i2c: 01 07 00 C2 18 00 00 00 00 00 FF 0F EF [14:01:19]RasterBufferAndPrint [14:01:19]line Счет N : (3)150540 [14:01:19]line ИНН: 02508201610067 [14:01:19]line Контрольно-Кассовый Чек [14:01:19]line ПРОДАЖА [14:01:19]line Товар: 48743587 [14:01:19]line Сигареты Winston XStyle Silver [14:01:19]line 1.000 * 140.00 [14:01:19]line = 140.00 [14:01:19]line НДС 12% НСП 1% [14:01:19]line > о реализуемом товаре [14:01:19]line ИТОГО: 140.00 [14:01:19]line НСП 1% : 1.24 [14:01:19]line НДС 12% : 14.87 [14:01:19]line Наличными: 0.00 [14:01:19]line Безнал.: 140.00 [14:01:19]line Место: АЗС № 134 "Партнер Нефть" [14:01:19]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:01:19]line СНО: Общий режим [14:01:19]line Чек 45 29.07.2024 14:01 [14:01:19]line Смена: 434 ФФД: 1.0 [14:01:19]line ЗНМ: 0300000043 [14:01:19]line РНМ: 0000000000092663 [14:01:19]line Версия ККМ: 001 [14:01:19]line Платежная система: O! деньги [14:01:19]line ФМ: 0000000000874937 [14:01:19]line ФД: 27142 [14:01:19]line ФПД: 24381029592880 [14:01:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T140123&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27142&fm=24381029592880&tin=02508201610067®Number=0000000000092663&sum=14000 [14:01:20]OFD Sender: Processing packet 27142 [packets to send 9, broken 8] [14:01:20]ProducePacketName [14:01:20]name=ofd_packets/00027142 [14:01:20]OFD Sender: To server: pG, [14:01:20]CommunicateWithHost lk.salyk.kg:30040 [14:01:20]ConnectInit lk.salyk.kg [14:01:20]line 0 [14:01:20]written 0, free lines is 4095 [14:01:20]Connected sock=10 [14:01:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 27 01 00 00 76 68 1F 01 CF 0E 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 2D 00 00 00 F4 03 04 00 B3 A0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 06 6A 00 00 35 04 06 00 16 2C A6 9B AF 30 63 DE 6B 27 24 EC B8 58 [14:01:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 91 AE 47 00 00 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 06 6A 00 00 F4 03 04 00 04 47 A7 66 B6 04 01 00 00 50 E2 E7 F5 B6 FA 54 2A [14:01:20]CommunicateWithHost err = 0 [14:01:20]CheckOFDResponse [14:01:20]1017 (14) - 77093643461234 [14:01:20]1041 (16) - 0000000000874937 [14:01:20]1040 (4) - 27142 [14:01:20]1012 (4) - 29.07.2024 07:38 [14:01:20]1206 (1) - 0 [14:01:20]OFD Sender: Remove packet 27142 [14:01:20]ProducePacketName [14:01:20]name=ofd_packets/00027142 [14:01:20]NVStorageDeleteData [14:01:20]Write to MH i2c: 01 00 00 EC 18 04 [14:01:20]Write i2c OK [14:01:20]MH_I2C_Read... [14:01:20]Read from MH i2c: 01 [14:01:20]MH_I2C_Read... [14:01:20]Read from MH i2c: 01 07 00 [14:01:20]MH_I2C_Read... [14:01:20]Read from MH i2c: 01 07 00 EC 18 00 00 00 00 00 C8 0C DF [14:01:20]RasterBufferAndPrint [14:01:20]line [14:01:20]line [14:01:20]line [14:01:20]line [14:01:20]line [14:01:20]written 0, free lines is 3281 [14:01:20]MH_Cut [14:01:20]Write to MH i2c: D1 01 00 F3 18 01 DD [14:01:20]Write i2c OK [14:01:20]MH_I2C_Read... [14:01:20]Read from MH i2c: D1 [14:01:20]MH_I2C_Read... [14:01:20]Read from MH i2c: D1 01 00 [14:01:20]MH_I2C_Read... [14:01:20]Read from MH i2c: D1 01 00 F3 18 00 DC [14:01:20]Write to MH i2c: 01 00 00 F4 18 0C [14:01:20]Write i2c OK [14:01:20]MH_I2C_Read... [14:01:20]OFD Sender: No OFD packet to send [14:01:21]*** Cut start [14:01:21]*** Partial cut [14:01:21]*** CUTSNS_PIN = 1 [14:01:21]*** CUTSNS_PIN = 0 [14:01:21]*** Brake cut motor [14:01:21]Read from MH i2c: 01 [14:01:21]MH_I2C_Read... [14:01:21]*** Stop cut motor [14:01:21]*** Cut end [14:01:21]Read from MH i2c: 01 07 00 [14:01:21]MH_I2C_Read... [14:01:21]Read from MH i2c: 01 07 00 F4 18 00 00 00 00 00 FF 0F 21 [14:01:21]process_action close_receipt done [14:01:21]requested_data is exist [14:01:21]produce_requested_data [14:01:21]requested_item fm.sn is exist - process it [14:01:21]wFMCommunicate request_size=4 [14:01:21]MH_SAM_APDU [14:01:21]CAPDU: 80 11 00 00 [14:01:21]Write to MH i2c: E2 08 00 F5 18 80 11 00 00 00 00 00 00 87 [14:01:21]Write i2c OK [14:01:21]MH_I2C_Read... [14:01:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:21]Read from MH i2c: E2 [14:01:21]MH_I2C_Read... [14:01:21]Read from MH i2c: E2 17 00 [14:01:21]MH_I2C_Read... [14:01:21]Read from MH i2c: E2 17 00 F5 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 E0 [14:01:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [14:01:21]wFMCommunicate OK [14:01:21]requested_item fd.num is exist - process it [14:01:21]SAM_PROTO_GetFieldsCounters [14:01:21]wFMCommunicate request_size=4 [14:01:21]MH_SAM_APDU [14:01:21]CAPDU: 80 13 00 00 [14:01:21]Write to MH i2c: E2 08 00 F6 18 80 13 00 00 00 00 00 00 8A [14:01:22]Write i2c OK [14:01:22]MH_I2C_Read... [14:01:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:01:22]Read from MH i2c: E2 [14:01:22]MH_I2C_Read... [14:01:22]Read from MH i2c: E2 62 00 [14:01:22]MH_I2C_Read... [14:01:22]Read from MH i2c: E2 62 00 F6 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 06 6A 00 00 0E 04 04 00 B2 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 5C [14:01: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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 06 6A 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:01:22]wFMCommunicate OK [14:01:22]SAM_PROTO_GetFieldsCounters done [14:01:22]requested_item shift.num is exist - process it [14:01:22]requested_item shift.opened is exist - process it [14:01:22]req_shift_opened [14:01:22]FM_GetShiftState [14:01:22]SAM_PROTO_GetShiftState [14:01:22]wFMCommunicate request_size=4 [14:01:22]MH_SAM_APDU [14:01:22]CAPDU: 80 13 01 00 [14:01:22]Write to MH i2c: E2 08 00 F7 18 80 13 01 00 00 00 00 00 8C [14:01:22]Write i2c OK [14:01:22]MH_I2C_Read... [14:01:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:22]Read from MH i2c: E2 [14:01:22]MH_I2C_Read... [14:01:22]Read from MH i2c: E2 0E 00 [14:01:22]MH_I2C_Read... [14:01:22]Read from MH i2c: E2 0E 00 F7 18 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 0D [14:01:22]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [14:01:22]wFMCommunicate OK [14:01:22]SAM_PROTO_GetShiftState done [14:01:22]FM_GetShiftState done [14:01:22]req_shift_opened done [14:01:22]requested_item shift.open_date is exist - process it [14:01:22]req_shift_open_date [14:01:22]req_shift_open_date done [14:01:22]produce_requested_data done [14:01:22]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27142,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [14:01:22]process_action_free close_receipt [14:01:22]json_value_free [14:01:22]json_value_free done [14:01:22]process_json_proto returns [14:01:22]Send response to host [14:01:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27142,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [14:01:22]free response buf [14:01:22]execute_script done [14:01:22]execute_script returns [14:01:22]free content buf [14:01:22]Sock 8.Close socket [14:01:22]Sock 8.Thread stoped [14:01:25]OFD Sender: No OFD packet to send [14:01:30]OFD Sender: No OFD packet to send [14:01:35]OFD Sender: No OFD packet to send [14:01:40]OFD Sender: No OFD packet to send [14:01:45]OFD Sender: No OFD packet to send [14:01:50]OFD Sender: No OFD packet to send [14:01:55]OFD Sender: No OFD packet to send [14:02:00]OFD Sender: No OFD packet to send [14:02:03]accept exits with 9 [14:02:03]New connection [14:02:03]New thread 3066785124 created [14:02:04]Thread 3066928484 joined [14:02:04]Waiting for new connection... [14:02:04] Sock 9.Parse request [14:02:04]Sock 9.Check first char [14:02:04]Sock 9.First char is OK [14:02:04]request: POST /json_proto HTTP/1.0 [14:02:04]Method: POST [14:02:04]URL: /json_proto [14:02:04]Method is POST - this is cgi request [14:02:04]url: /json_proto [14:02:04]query_string will be loaded in cgi processing [14:02:04]execute_cgi json_proto POST (null) [14:02:04]execute_cgi path=json_proto method=POST [14:02:04]POST find Content-Length [14:02:04]Host: 172.17.45.8:8080 [14:02:04]Content-Length: 791 [14:02:04]Content-Type: application/json [14:02:04] [14:02:04]POST finish read [14:02:04]Found Content-Length = 791 [14:02:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150541", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.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" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:04]execute_script... [14:02: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)150541", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.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" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:02:04]POST & json_proto [14:02:04]process_json_proto [14:02:04]json parsed OK: [14:02:04]protocol is kg_v1.0 [14:02:04]action value=close_receipt [14:02:04]process_action close_receipt [14:02:04]cmd_close_receipt [14:02:04]MH_GetDate [14:02:04]Write to MH i2c: F0 00 00 F8 18 FF [14:02:04]Write i2c OK [14:02:04]MH_I2C_Read... [14:02:04]Read from MH i2c: F0 [14:02:04]MH_I2C_Read... [14:02:04]Read from MH i2c: F0 09 00 [14:02:04]MH_I2C_Read... [14:02:04]Read from MH i2c: F0 09 00 F8 18 00 E1 A0 A7 66 A6 1F 7F 64 3E [14:02:04]GetLastDocTimeStamp 1722261683 [14:02:04]current date 1722261729 [14:02:04]FM_GetShiftState [14:02:04]SAM_PROTO_GetShiftState [14:02:04]wFMCommunicate request_size=4 [14:02:04]MH_SAM_APDU [14:02:04]CAPDU: 80 13 01 00 [14:02:04]Write to MH i2c: E2 08 00 F9 18 80 13 01 00 00 00 00 00 8E [14:02:04]Write i2c OK [14:02:04]MH_I2C_Read... [14:02:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:04]Read from MH i2c: E2 [14:02:04]MH_I2C_Read... [14:02:04]Read from MH i2c: E2 0E 00 [14:02:04]MH_I2C_Read... [14:02:04]Read from MH i2c: E2 0E 00 F9 18 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 0F [14:02:04]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [14:02:04]wFMCommunicate OK [14:02:04]SAM_PROTO_GetShiftState done [14:02:04]FM_GetShiftState done [14:02:04]opened in 1722213509 [14:02:04]opened+sec_in_day 1722299909 [14:02:04]quantity*price = 5000 [14:02:04]sum+1 = 5001 [14:02:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 0.00 Безнал.: 50.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 46 29.07.2024 14:02 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874937 ФД: 27143 ФПД: 95619307035043 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T140209&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27143&fm=95619307035043&tin=02508201610067®Number=0000000000092663&sum=5000 0 [14:02:05]StoreToDocumentArchive [14:02:05]shift 434 fd 27143 [14:02:05]save to /storage/0434/doc_00027143 [14:02:05]save last doc name /storage/0434/doc_00027143 to /storage/kkm_last_doc_name [14:02:05]save OK [14:02:05]Clear old archive folders... [14:02:05]ProcessDocumentItem done err = 0, tmpTLVsize=269 [14:02:05]tlvbuf is B6EA2130 [14:02:05]SAM_PROTO_ClearQueue [14:02:05]wFMCommunicate request_size=4 [14:02:05]MH_SAM_APDU [14:02:05]CAPDU: 80 09 00 00 [14:02:05]Write to MH i2c: E2 08 00 06 19 80 09 00 00 00 00 00 00 91 [14:02:05]Write i2c OK [14:02:05]MH_I2C_Read... [14:02:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:02:05]Read from MH i2c: E2 [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: E2 03 00 [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: E2 03 00 06 19 00 90 00 93 [14:02:05]RAPDU: 90 00 [14:02:05]wFMCommunicate OK [14:02:05]SAM_PROTO_ClearQueue done [14:02:05]KKMCreateOFDPacket [14:02:05]OFDProtocolAddRootSTLVToBuf [14:02:05]FM_MakeSignedData [14:02:05]FM_MakeSignedData [14:02:05]SAM_PROTO_SignData [14:02:05]wFMCommunicate request_size=4 [14:02:05]MH_SAM_APDU [14:02:05]CAPDU: 80 0D 01 02 [14:02:05]Write to MH i2c: E2 08 00 07 19 80 0D 01 02 00 00 00 00 99 [14:02:05]Write i2c OK [14:02:05]MH_I2C_Read... [14:02:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:02:05]Read from MH i2c: E2 [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: E2 03 00 [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: E2 03 00 07 19 00 90 00 94 [14:02:05]RAPDU: 90 00 [14:02:05]wFMCommunicate OK [14:02:05]wFMCommunicate request_size=255 [14:02:05]MH_SAM_APDU [14:02:05]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 E1 A0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [14:02:05]Write to MH i2c: E2 02 01 08 19 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 E1 A0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 20 [14:02:05]Write i2c OK [14:02:05]MH_I2C_Read... [14:02:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:05]Read from MH i2c: E2 [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: E2 03 00 [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: E2 03 00 08 19 00 90 00 95 [14:02:05]RAPDU: 90 00 [14:02:05]wFMCommunicate OK [14:02:05]wFMCommunicate request_size=28 [14:02:05]MH_SAM_APDU [14:02:05]CAPDU: 80 0D 02 02 17 37 34 39 33 37 10 04 04 00 07 6A 00 00 35 04 06 00 56 F7 1A D4 59 A3 [14:02:05]Write to MH i2c: E2 1F 00 09 19 80 0D 02 02 17 00 37 34 39 33 37 10 04 04 00 07 6A 00 00 35 04 06 00 56 F7 1A D4 59 A3 00 00 D7 [14:02:05]Write i2c OK [14:02:05]MH_I2C_Read... [14:02:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:02:05]Read from MH i2c: E2 [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: E2 03 00 [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: E2 03 00 09 19 00 90 00 96 [14:02:05]RAPDU: 90 00 [14:02:05]wFMCommunicate OK [14:02:05]wFMCommunicate request_size=4 [14:02:05]MH_SAM_APDU [14:02:05]CAPDU: 80 0D 03 02 [14:02:05]Write to MH i2c: E2 08 00 0A 19 80 0D 03 02 00 00 00 00 9E [14:02:05]Write i2c OK [14:02:05]MH_I2C_Read... [14:02:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:02:05]Read from MH i2c: E2 [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: E2 0B 00 [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: E2 0B 00 0A 19 00 64 F0 A2 F7 26 EB 92 B1 90 00 E0 [14:02:05]RAPDU: 64 F0 A2 F7 26 EB 92 B1 90 00 [14:02:05]wFMCommunicate OK [14:02:05]SAM_PROTO_SignData done [14:02:05]FM_MakeSignedData done [14:02:05]CreateOFDProtocolMessage [14:02:05]wFMCommunicate request_size=4 [14:02:05]MH_SAM_APDU [14:02:05]CAPDU: 80 11 00 00 [14:02:05]Write to MH i2c: E2 08 00 0B 19 80 11 00 00 00 00 00 00 9E [14:02:05]Write i2c OK [14:02:05]MH_I2C_Read... [14:02:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:05]Read from MH i2c: E2 [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: E2 17 00 [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: E2 17 00 0B 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 F7 [14:02:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [14:02:05]wFMCommunicate OK [14:02:05]CreateOFDProtocolMessage done [14:02:05]OFDSenderStorePacket 27143 [14:02:05]StoreOFDPacket docnum=27143 [14:02:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 21 01 00 00 AA 81 19 01 22 7F 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 E1 A0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 07 6A 00 00 35 04 06 00 56 F7 1A D4 59 A3 64 F0 A2 F7 26 EB 92 B1 [14:02:05]CheckFolder [14:02:05]dirname=/storage/ofd_packets [14:02:05]CheckFolder done [14:02:05]ProducePacketName [14:02:05]name=ofd_packets/00027143 [14:02:05]NVStorageSaveData ofd_packets/00027143 [14:02:05]File name is /storage/ofd_packets/00027143 [14:02:05]Write 319 bytes [14:02:05]NVStorageSaveData done [14:02:05]OFDSenderStorePacket done [14:02:05]KKMCreateOFDPacket done [14:02:05]NVStorageSaveData kkm_last_timestamp [14:02:05]File name is /storage/kkm_last_timestamp [14:02:05]Write 4 bytes [14:02:05]NVStorageSaveData done [14:02:05]ExternCall_PrintAddStr [14:02:05]wPrintStart [14:02:05]Write to MH i2c: 01 00 00 0C 19 25 [14:02:05]Write i2c OK [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: 01 [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: 01 07 00 [14:02:05]MH_I2C_Read... [14:02:05]Read from MH i2c: 01 07 00 0C 19 00 00 00 00 00 FF 0F 3A [14:02:05]RasterBufferAndPrint [14:02:05]line Счет N : (3)150541 [14:02:05]line ИНН: 02508201610067 [14:02:05]line Контрольно-Кассовый Чек [14:02:05]line ПРОДАЖА [14:02:05]line Товар: 4700000160358 [14:02:05]line Вода Легенда 1л [14:02:05]line 1.000 * 50.00 [14:02:05]line = 50.00 [14:02:05]line НДС 12% НСП 1% [14:02:05]line > о реализуемом товаре [14:02:05]line ИТОГО: 50.00 [14:02:05]line НСП 1% : 0.44 [14:02:05]line НДС 12% : 5.31 [14:02:05]line Наличными: 0.00 [14:02:05]line Безнал.: 50.00 [14:02:05]line Место: АЗС № 134 "Партнер Нефть" [14:02:05]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:02:05]line СНО: Общий режим [14:02:05]line Чек 46 29.07.2024 14:02 [14:02:05]line Смена: 434 ФФД: 1.0 [14:02:05]line ЗНМ: 0300000043 [14:02:05]line РНМ: 0000000000092663 [14:02:05]line Версия ККМ: 001 [14:02:05]line Платежная система: O! деньги [14:02:05]line ФМ: 0000000000874937 [14:02:05]line ФД: 27143 [14:02:05]line ФПД: 95619307035043 [14:02:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T140209&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27143&fm=95619307035043&tin=02508201610067®Number=0000000000092663&sum=5000 [14:02:05]line 0 [14:02:05]written 0, free lines is 4095 [14:02:05]OFD Sender: Processing packet 27143 [packets to send 9, broken 8] [14:02:05]ProducePacketName [14:02:05]name=ofd_packets/00027143 [14:02:05]OFD Sender: To server: pG, [14:02:05]CommunicateWithHost lk.salyk.kg:30040 [14:02:05]ConnectInit lk.salyk.kg [14:02:05]Connected sock=10 [14: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 34 39 33 37 21 01 00 00 AA 81 19 01 22 7F 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 E1 A0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 07 6A 00 00 35 04 06 00 56 F7 1A D4 59 A3 64 F0 A2 F7 26 EB 92 B1 [14:02:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 5C C6 47 00 05 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 07 6A 00 00 F4 03 04 00 32 47 A7 66 B6 04 01 00 00 47 63 14 76 B3 B7 50 EF [14:02:06]CommunicateWithHost err = 0 [14:02:06]CheckOFDResponse [14:02:06]1017 (14) - 77093643461234 [14:02:06]1041 (16) - 0000000000874937 [14:02:06]1040 (4) - 27143 [14:02:06]1012 (4) - 29.07.2024 07:39 [14:02:06]1206 (1) - 0 [14:02:06]OFD Sender: Remove packet 27143 [14:02:06]ProducePacketName [14:02:06]name=ofd_packets/00027143 [14:02:06]NVStorageDeleteData [14:02:06]Write to MH i2c: 01 00 00 35 19 4E [14:02:06]Write i2c OK [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: 01 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: 01 07 00 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: 01 07 00 35 19 00 00 00 00 00 E7 0C 48 [14:02:06]RasterBufferAndPrint [14:02:06]line [14:02:06]line [14:02:06]line [14:02:06]line [14:02:06]line [14:02:06]written 0, free lines is 3310 [14:02:06]MH_Cut [14:02:06]Write to MH i2c: D1 01 00 3C 19 01 27 [14:02:06]Write i2c OK [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: D1 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: D1 01 00 [14:02:06]MH_I2C_Read... [14:02:06]Read from MH i2c: D1 01 00 3C 19 00 26 [14:02:06]Write to MH i2c: 01 00 00 3D 19 56 [14:02:06]Write i2c OK [14:02:06]MH_I2C_Read... [14:02:06]OFD Sender: No OFD packet to send [14:02:06]*** Cut start [14:02:06]*** Partial cut [14:02:06]*** CUTSNS_PIN = 1 [14:02:06]*** CUTSNS_PIN = 0 [14:02:07]*** Brake cut motor [14:02:07]Read from MH i2c: 01 [14:02:07]MH_I2C_Read... [14:02:07]*** Stop cut motor [14:02:07]*** Cut end [14:02:07]Read from MH i2c: 01 07 00 [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: 01 07 00 3D 19 00 00 00 00 00 FF 0F 6B [14:02:07]process_action close_receipt done [14:02:07]requested_data is exist [14:02:07]produce_requested_data [14:02:07]requested_item fm.sn is exist - process it [14:02:07]wFMCommunicate request_size=4 [14:02:07]MH_SAM_APDU [14:02:07]CAPDU: 80 11 00 00 [14:02:07]Write to MH i2c: E2 08 00 3E 19 80 11 00 00 00 00 00 00 D1 [14:02:07]Write i2c OK [14:02:07]MH_I2C_Read... [14:02:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:02:07]Read from MH i2c: E2 [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: E2 17 00 [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: E2 17 00 3E 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 2A [14:02:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [14:02:07]wFMCommunicate OK [14:02:07]requested_item fd.num is exist - process it [14:02:07]SAM_PROTO_GetFieldsCounters [14:02:07]wFMCommunicate request_size=4 [14:02:07]MH_SAM_APDU [14:02:07]CAPDU: 80 13 00 00 [14:02:07]Write to MH i2c: E2 08 00 3F 19 80 13 00 00 00 00 00 00 D4 [14:02:07]Write i2c OK [14:02:07]MH_I2C_Read... [14:02:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:02:07]Read from MH i2c: E2 [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: E2 62 00 [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: E2 62 00 3F 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 07 6A 00 00 0E 04 04 00 B2 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 AA [14: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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 07 6A 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:02:07]wFMCommunicate OK [14:02:07]SAM_PROTO_GetFieldsCounters done [14:02:07]requested_item shift.num is exist - process it [14:02:07]requested_item shift.opened is exist - process it [14:02:07]req_shift_opened [14:02:07]FM_GetShiftState [14:02:07]SAM_PROTO_GetShiftState [14:02:07]wFMCommunicate request_size=4 [14:02:07]MH_SAM_APDU [14:02:07]CAPDU: 80 13 01 00 [14:02:07]Write to MH i2c: E2 08 00 40 19 80 13 01 00 00 00 00 00 D6 [14:02:07]Write i2c OK [14:02:07]MH_I2C_Read... [14:02:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:02:07]Read from MH i2c: E2 [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: E2 0E 00 [14:02:07]MH_I2C_Read... [14:02:07]Read from MH i2c: E2 0E 00 40 19 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 57 [14:02:07]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [14:02:07]wFMCommunicate OK [14:02:07]SAM_PROTO_GetShiftState done [14:02:07]FM_GetShiftState done [14:02:07]req_shift_opened done [14:02:07]requested_item shift.open_date is exist - process it [14:02:07]req_shift_open_date [14:02:07]req_shift_open_date done [14:02:07]produce_requested_data done [14:02:07]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27143,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [14:02:07]process_action_free close_receipt [14:02:07]json_value_free [14:02:07]json_value_free done [14:02:07]process_json_proto returns [14:02:07]Send response to host [14:02:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27143,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [14:02:07]free response buf [14:02:07]execute_script done [14:02:07]execute_script returns [14:02:07]free content buf [14:02:07]Sock 9.Close socket [14:02:07]Sock 9.Thread stoped [14:02:11]OFD Sender: No OFD packet to send [14:02:16]OFD Sender: No OFD packet to send [14:02:21]OFD Sender: No OFD packet to send [14:02:26]OFD Sender: No OFD packet to send [14:02:31]OFD Sender: No OFD packet to send [14:02:36]OFD Sender: No OFD packet to send [14:02:41]OFD Sender: No OFD packet to send [14:02:46]OFD Sender: No OFD packet to send [14:02:51]OFD Sender: No OFD packet to send [14:02:56]OFD Sender: No OFD packet to send [14:03:01]OFD Sender: No OFD packet to send [14:03:06]OFD Sender: No OFD packet to send [14:03:11]OFD Sender: No OFD packet to send [14:03:16]OFD Sender: No OFD packet to send [14:03:21]OFD Sender: No OFD packet to send [14:03:26]OFD Sender: No OFD packet to send [14:03:31]OFD Sender: No OFD packet to send [14:03:36]OFD Sender: No OFD packet to send [14:03:41]OFD Sender: No OFD packet to send [14:03:46]OFD Sender: No OFD packet to send [14:03:51]OFD Sender: No OFD packet to send [14:03:56]OFD Sender: No OFD packet to send [14:04:01]OFD Sender: No OFD packet to send [14:04:06]OFD Sender: No OFD packet to send [14:04:11]OFD Sender: No OFD packet to send [14:04:16]OFD Sender: No OFD packet to send [14:04:21]OFD Sender: No OFD packet to send [14:04:26]OFD Sender: No OFD packet to send [14:04:31]OFD Sender: No OFD packet to send [14:04:36]OFD Sender: No OFD packet to send [14:04:41]OFD Sender: No OFD packet to send [14:04:46]OFD Sender: No OFD packet to send [14:04:51]OFD Sender: No OFD packet to send [14:04:56]OFD Sender: No OFD packet to send [14:05:01]OFD Sender: No OFD packet to send [14:05:06]OFD Sender: No OFD packet to send [14:05:11]OFD Sender: No OFD packet to send [14:05:16]OFD Sender: No OFD packet to send [14:05:21]OFD Sender: No OFD packet to send [14:05:26]OFD Sender: No OFD packet to send [14:05:31]OFD Sender: No OFD packet to send [14:05:36]OFD Sender: No OFD packet to send [14:05:41]OFD Sender: No OFD packet to send [14:05:46]OFD Sender: No OFD packet to send [14:05:51]OFD Sender: No OFD packet to send [14:05:56]OFD Sender: No OFD packet to send [14:06:01]OFD Sender: No OFD packet to send [14:06:06]OFD Sender: No OFD packet to send [14:06:11]OFD Sender: No OFD packet to send [14:06:16]OFD Sender: No OFD packet to send [14:06:21]OFD Sender: No OFD packet to send [14:06:26]OFD Sender: No OFD packet to send [14:06:31]OFD Sender: No OFD packet to send [14:06:36]OFD Sender: No OFD packet to send [14:06:41]OFD Sender: No OFD packet to send [14:06:46]OFD Sender: No OFD packet to send [14:06:51]OFD Sender: No OFD packet to send [14:06:56]OFD Sender: No OFD packet to send [14:07:01]OFD Sender: No OFD packet to send [14:07:06]OFD Sender: No OFD packet to send [14:07:11]OFD Sender: No OFD packet to send [14:07:16]OFD Sender: No OFD packet to send [14:07:21]OFD Sender: No OFD packet to send [14:07:26]OFD Sender: No OFD packet to send [14:07:31]OFD Sender: No OFD packet to send [14:07:36]OFD Sender: No OFD packet to send [14:07:41]OFD Sender: No OFD packet to send [14:07:46]OFD Sender: No OFD packet to send [14:07:51]OFD Sender: No OFD packet to send [14:07:56]OFD Sender: No OFD packet to send [14:08:01]OFD Sender: No OFD packet to send [14:08:06]OFD Sender: No OFD packet to send [14:08:11]OFD Sender: No OFD packet to send [14:08:16]OFD Sender: No OFD packet to send [14:08:21]OFD Sender: No OFD packet to send [14:08:26]OFD Sender: No OFD packet to send [14:08:31]OFD Sender: No OFD packet to send [14:08:36]OFD Sender: No OFD packet to send [14:08:41]OFD Sender: No OFD packet to send [14:08:46]OFD Sender: No OFD packet to send [14:08:51]OFD Sender: No OFD packet to send [14:08:56]OFD Sender: No OFD packet to send [14:09:01]OFD Sender: No OFD packet to send [14:09:06]OFD Sender: No OFD packet to send [14:09:11]OFD Sender: No OFD packet to send [14:09:16]OFD Sender: No OFD packet to send [14:09:21]OFD Sender: No OFD packet to send [14:09:26]OFD Sender: No OFD packet to send [14:09:31]OFD Sender: No OFD packet to send [14:09:36]OFD Sender: No OFD packet to send [14:09:41]OFD Sender: No OFD packet to send [14:09:46]OFD Sender: No OFD packet to send [14:09:51]OFD Sender: No OFD packet to send [14:09:56]OFD Sender: No OFD packet to send [14:10:01]OFD Sender: No OFD packet to send [14:10:07]OFD Sender: No OFD packet to send [14:10:12]OFD Sender: No OFD packet to send [14:10:17]OFD Sender: No OFD packet to send [14:10:22]OFD Sender: No OFD packet to send [14:10:27]OFD Sender: No OFD packet to send [14:10:32]OFD Sender: No OFD packet to send [14:10:37]OFD Sender: No OFD packet to send [14:10:42]OFD Sender: No OFD packet to send [14:10:47]OFD Sender: No OFD packet to send [14:10:52]OFD Sender: No OFD packet to send [14:10:57]OFD Sender: No OFD packet to send [14:11:02]OFD Sender: No OFD packet to send [14:11:07]OFD Sender: No OFD packet to send [14:11:12]OFD Sender: No OFD packet to send [14:11:17]OFD Sender: No OFD packet to send [14:11:22]OFD Sender: No OFD packet to send [14:11:27]OFD Sender: No OFD packet to send [14:11:32]OFD Sender: No OFD packet to send [14:11:37]OFD Sender: No OFD packet to send [14:11:42]OFD Sender: No OFD packet to send [14:11:47]OFD Sender: No OFD packet to send [14:11:52]OFD Sender: No OFD packet to send [14:11:57]OFD Sender: No OFD packet to send [14:12:02]OFD Sender: No OFD packet to send [14:12:07]OFD Sender: No OFD packet to send [14:12:12]OFD Sender: No OFD packet to send [14:12:17]OFD Sender: No OFD packet to send [14:12:22]OFD Sender: No OFD packet to send [14:12:27]OFD Sender: No OFD packet to send [14:12:32]OFD Sender: No OFD packet to send [14:12:37]OFD Sender: No OFD packet to send [14:12:42]OFD Sender: No OFD packet to send [14:12:47]OFD Sender: No OFD packet to send [14:12:52]OFD Sender: No OFD packet to send [14:12:57]OFD Sender: No OFD packet to send [14:13:02]OFD Sender: No OFD packet to send [14:13:07]OFD Sender: No OFD packet to send [14:13:12]OFD Sender: No OFD packet to send [14:13:17]OFD Sender: No OFD packet to send [14:13:22]OFD Sender: No OFD packet to send [14:13:27]OFD Sender: No OFD packet to send [14:13:32]OFD Sender: No OFD packet to send [14:13:37]OFD Sender: No OFD packet to send [14:13:42]OFD Sender: No OFD packet to send [14:13:47]OFD Sender: No OFD packet to send [14:13:52]OFD Sender: No OFD packet to send [14:13:57]OFD Sender: No OFD packet to send [14:14:02]OFD Sender: No OFD packet to send [14:14:07]OFD Sender: No OFD packet to send [14:14:12]OFD Sender: No OFD packet to send [14:14:17]OFD Sender: No OFD packet to send [14:14:22]OFD Sender: No OFD packet to send [14:14:27]OFD Sender: No OFD packet to send [14:14:32]OFD Sender: No OFD packet to send [14:14:37]OFD Sender: No OFD packet to send [14:14:42]OFD Sender: No OFD packet to send [14:14:47]OFD Sender: No OFD packet to send [14:14:52]OFD Sender: No OFD packet to send [14:14:57]OFD Sender: No OFD packet to send [14:15:02]OFD Sender: No OFD packet to send [14:15:07]OFD Sender: No OFD packet to send [14:15:12]OFD Sender: No OFD packet to send [14:15:17]OFD Sender: No OFD packet to send [14:15:22]OFD Sender: No OFD packet to send [14:15:27]OFD Sender: No OFD packet to send [14:15:32]OFD Sender: No OFD packet to send [14:15:37]OFD Sender: No OFD packet to send [14:15:42]OFD Sender: No OFD packet to send [14:15:47]OFD Sender: No OFD packet to send [14:15:52]OFD Sender: No OFD packet to send [14:15:57]OFD Sender: No OFD packet to send [14:16:02]OFD Sender: No OFD packet to send [14:16:07]OFD Sender: No OFD packet to send [14:16:12]OFD Sender: No OFD packet to send [14:16:17]OFD Sender: No OFD packet to send [14:16:22]OFD Sender: No OFD packet to send [14:16:27]OFD Sender: No OFD packet to send [14:16:32]OFD Sender: No OFD packet to send [14:16:37]OFD Sender: No OFD packet to send [14:16:42]OFD Sender: No OFD packet to send [14:16:47]OFD Sender: No OFD packet to send [14:16:52]OFD Sender: No OFD packet to send [14:16:57]OFD Sender: No OFD packet to send [14:17:02]OFD Sender: No OFD packet to send [14:17:07]OFD Sender: No OFD packet to send [14:17:12]OFD Sender: No OFD packet to send [14:17:17]OFD Sender: No OFD packet to send [14:17:22]OFD Sender: No OFD packet to send [14:17:27]OFD Sender: No OFD packet to send [14:17:32]OFD Sender: No OFD packet to send [14:17:37]OFD Sender: No OFD packet to send [14:17:42]OFD Sender: No OFD packet to send [14:17:47]OFD Sender: No OFD packet to send [14:17:52]OFD Sender: No OFD packet to send [14:17:57]OFD Sender: No OFD packet to send [14:18:02]OFD Sender: No OFD packet to send [14:18:07]OFD Sender: No OFD packet to send [14:18:12]OFD Sender: No OFD packet to send [14:18:17]OFD Sender: No OFD packet to send [14:18:22]OFD Sender: No OFD packet to send [14:18:27]OFD Sender: No OFD packet to send [14:18:32]OFD Sender: No OFD packet to send [14:18:37]OFD Sender: No OFD packet to send [14:18:42]OFD Sender: No OFD packet to send [14:18:47]OFD Sender: No OFD packet to send [14:18:52]OFD Sender: No OFD packet to send [14:18:57]OFD Sender: No OFD packet to send [14:19:02]OFD Sender: No OFD packet to send [14:19:07]OFD Sender: No OFD packet to send [14:19:12]OFD Sender: No OFD packet to send [14:19:17]OFD Sender: No OFD packet to send [14:19:22]OFD Sender: No OFD packet to send [14:19:27]OFD Sender: No OFD packet to send [14:19:32]OFD Sender: No OFD packet to send [14:19:37]OFD Sender: No OFD packet to send [14:19:42]OFD Sender: No OFD packet to send [14:19:47]OFD Sender: No OFD packet to send [14:19:52]OFD Sender: No OFD packet to send [14:19:57]OFD Sender: No OFD packet to send [14:20:02]OFD Sender: No OFD packet to send [14:20:07]OFD Sender: No OFD packet to send [14:20:12]OFD Sender: No OFD packet to send [14:20:17]OFD Sender: No OFD packet to send [14:20:22]OFD Sender: No OFD packet to send [14:20:27]OFD Sender: No OFD packet to send [14:20:32]OFD Sender: No OFD packet to send [14:20:37]OFD Sender: No OFD packet to send [14:20:42]OFD Sender: No OFD packet to send [14:20:47]OFD Sender: No OFD packet to send [14:20:52]OFD Sender: No OFD packet to send [14:20:57]OFD Sender: No OFD packet to send [14:21:02]OFD Sender: No OFD packet to send [14:21:07]OFD Sender: No OFD packet to send [14:21:12]OFD Sender: No OFD packet to send [14:21:17]OFD Sender: No OFD packet to send [14:21:22]OFD Sender: No OFD packet to send [14:21:27]OFD Sender: No OFD packet to send [14:21:32]OFD Sender: No OFD packet to send [14:21:37]OFD Sender: No OFD packet to send [14:21:42]OFD Sender: No OFD packet to send [14:21:47]OFD Sender: No OFD packet to send [14:21:52]OFD Sender: No OFD packet to send [14:21:57]OFD Sender: No OFD packet to send [14:22:02]OFD Sender: No OFD packet to send [14:22:07]OFD Sender: No OFD packet to send [14:22:12]OFD Sender: No OFD packet to send [14:22:17]OFD Sender: No OFD packet to send [14:22:22]OFD Sender: No OFD packet to send [14:22:27]OFD Sender: No OFD packet to send [14:22:32]OFD Sender: No OFD packet to send [14:22:37]OFD Sender: No OFD packet to send [14:22:42]OFD Sender: No OFD packet to send [14:22:47]OFD Sender: No OFD packet to send [14:22:52]OFD Sender: No OFD packet to send [14:22:57]OFD Sender: No OFD packet to send [14:23:02]OFD Sender: No OFD packet to send [14:23:07]OFD Sender: No OFD packet to send [14:23:12]OFD Sender: No OFD packet to send [14:23:17]OFD Sender: No OFD packet to send [14:23:22]OFD Sender: No OFD packet to send [14:23:27]OFD Sender: No OFD packet to send [14:23:32]OFD Sender: No OFD packet to send [14:23:37]OFD Sender: No OFD packet to send [14:23:42]OFD Sender: No OFD packet to send [14:23:47]OFD Sender: No OFD packet to send [14:23:52]OFD Sender: No OFD packet to send [14:23:57]OFD Sender: No OFD packet to send [14:24:02]OFD Sender: No OFD packet to send [14:24:07]OFD Sender: No OFD packet to send [14:24:12]OFD Sender: No OFD packet to send [14:24:17]OFD Sender: No OFD packet to send [14:24:22]OFD Sender: No OFD packet to send [14:24:27]OFD Sender: No OFD packet to send [14:24:32]OFD Sender: No OFD packet to send [14:24:37]OFD Sender: No OFD packet to send [14:24:42]OFD Sender: No OFD packet to send [14:24:47]OFD Sender: No OFD packet to send [14:24:52]OFD Sender: No OFD packet to send [14:24:57]OFD Sender: No OFD packet to send [14:25:02]OFD Sender: No OFD packet to send [14:25:07]OFD Sender: No OFD packet to send [14:25:12]OFD Sender: No OFD packet to send [14:25:17]OFD Sender: No OFD packet to send [14:25:22]OFD Sender: No OFD packet to send [14:25:27]OFD Sender: No OFD packet to send [14:25:32]OFD Sender: No OFD packet to send [14:25:37]OFD Sender: No OFD packet to send [14:25:42]OFD Sender: No OFD packet to send [14:25:47]OFD Sender: No OFD packet to send [14:25:52]OFD Sender: No OFD packet to send [14:25:57]OFD Sender: No OFD packet to send [14:26:02]OFD Sender: No OFD packet to send [14:26:07]OFD Sender: No OFD packet to send [14:26:12]OFD Sender: No OFD packet to send [14:26:17]OFD Sender: No OFD packet to send [14:26:22]OFD Sender: No OFD packet to send [14:26:27]OFD Sender: No OFD packet to send [14:26:32]OFD Sender: No OFD packet to send [14:26:37]OFD Sender: No OFD packet to send [14:26:42]OFD Sender: No OFD packet to send [14:26:47]OFD Sender: No OFD packet to send [14:26:52]OFD Sender: No OFD packet to send [14:26:57]OFD Sender: No OFD packet to send [14:27:02]OFD Sender: No OFD packet to send [14:27:07]OFD Sender: No OFD packet to send [14:27:12]OFD Sender: No OFD packet to send [14:27:17]OFD Sender: No OFD packet to send [14:27:22]OFD Sender: No OFD packet to send [14:27:27]OFD Sender: No OFD packet to send [14:27:32]OFD Sender: No OFD packet to send [14:27:37]OFD Sender: No OFD packet to send [14:27:42]OFD Sender: No OFD packet to send [14:27:47]OFD Sender: No OFD packet to send [14:27:52]OFD Sender: No OFD packet to send [14:27:57]OFD Sender: No OFD packet to send [14:28:02]OFD Sender: No OFD packet to send [14:28:07]OFD Sender: No OFD packet to send [14:28:12]OFD Sender: No OFD packet to send [14:28:17]OFD Sender: No OFD packet to send [14:28:22]OFD Sender: No OFD packet to send [14:28:27]OFD Sender: No OFD packet to send [14:28:32]OFD Sender: No OFD packet to send [14:28:37]OFD Sender: No OFD packet to send [14:28:42]OFD Sender: No OFD packet to send [14:28:47]OFD Sender: No OFD packet to send [14:28:52]OFD Sender: No OFD packet to send [14:28:57]OFD Sender: No OFD packet to send [14:29:02]OFD Sender: No OFD packet to send [14:29:07]OFD Sender: No OFD packet to send [14:29:12]OFD Sender: No OFD packet to send [14:29:17]OFD Sender: No OFD packet to send [14:29:22]OFD Sender: No OFD packet to send [14:29:27]OFD Sender: No OFD packet to send [14:29:32]OFD Sender: No OFD packet to send [14:29:37]OFD Sender: No OFD packet to send [14:29:42]OFD Sender: No OFD packet to send [14:29:47]OFD Sender: No OFD packet to send [14:29:52]OFD Sender: No OFD packet to send [14:29:57]OFD Sender: No OFD packet to send [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:33]OFD Sender: No OFD packet to send [14:31:36]accept exits with 8 [14:31:36]New connection [14:31:37]New thread 3066928484 created [14:31:37]Thread 3066785124 joined [14:31:37]Waiting for new connection... [14:31:37] Sock 8.Parse request [14:31:37]Sock 8.Check first char [14:31:37]Sock 8.First char is OK [14:31:37]request: POST /json_proto HTTP/1.0 [14:31:37]Method: POST [14:31:37]URL: /json_proto [14:31:37]Method is POST - this is cgi request [14:31:37]url: /json_proto [14:31:37]query_string will be loaded in cgi processing [14:31:37]execute_cgi json_proto POST (null) [14:31:37]execute_cgi path=json_proto method=POST [14:31:37]POST find Content-Length [14:31:37]Host: 172.17.45.8:8080 [14:31:37]Content-Length: 632 [14:31:37]Content-Type: application/json [14:31:37] [14:31:37]POST finish read [14:31:37]Found Content-Length = 632 [14:31:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150542", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:37]execute_script... [14:31: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)150542", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:37]POST & json_proto [14:31:37]process_json_proto [14:31:37]json parsed OK: [14:31:37]protocol is kg_v1.0 [14:31:37]action value=close_receipt [14:31:37]process_action close_receipt [14:31:37]cmd_close_receipt [14:31:37]MH_GetDate [14:31:37]Write to MH i2c: F0 00 00 41 19 49 [14:31:37]Write i2c OK [14:31:37]MH_I2C_Read... [14:31:37]Read from MH i2c: F0 [14:31:37]MH_I2C_Read... [14:31:37]Read from MH i2c: F0 09 00 [14:31:37]MH_I2C_Read... [14:31:37]Read from MH i2c: F0 09 00 41 19 00 CF A7 A7 66 A6 1F 7F 64 7D [14:31:37]GetLastDocTimeStamp 1722261729 [14:31:37]current date 1722263503 [14:31:37]FM_GetShiftState [14:31:37]SAM_PROTO_GetShiftState [14:31:37]wFMCommunicate request_size=4 [14:31:37]MH_SAM_APDU [14:31:37]CAPDU: 80 13 01 00 [14:31:37]Write to MH i2c: E2 08 00 42 19 80 13 01 00 00 00 00 00 D8 [14:31:37]Write i2c OK [14:31:37]MH_I2C_Read... [14:31:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:37]Read from MH i2c: E2 [14:31:37]MH_I2C_Read... [14:31:37]Read from MH i2c: E2 0E 00 [14:31:37]MH_I2C_Read... [14:31:37]Read from MH i2c: E2 0E 00 42 19 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 59 [14:31:37]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [14:31:37]wFMCommunicate OK [14:31:37]SAM_PROTO_GetShiftState done [14:31:37]FM_GetShiftState done [14:31:37]opened in 1722213509 [14:31:37]opened+sec_in_day 1722299909 [14:31:37]quantity*price = 6000 [14:31:37]sum+1 = 6001 [14:31:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 47 29.07.2024 14:31 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27144 ФПД: 74288691373397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T143143&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27144&fm=74288691373397&tin=02508201610067®Number=0000000000092663&sum=6000 0 [14:31:38]StoreToDocumentArchive [14:31:38]shift 434 fd 27144 [14:31:38]save to /storage/0434/doc_00027144 [14:31:38]save last doc name /storage/0434/doc_00027144 to /storage/kkm_last_doc_name [14:31:38]save OK [14:31:38]Clear old archive folders... [14:31:38]ProcessDocumentItem done err = 0, tmpTLVsize=271 [14:31:38]tlvbuf is 001AC970 [14:31:38]SAM_PROTO_ClearQueue [14:31:38]wFMCommunicate request_size=4 [14:31:38]MH_SAM_APDU [14:31:38]CAPDU: 80 09 00 00 [14:31:38]Write to MH i2c: E2 08 00 4F 19 80 09 00 00 00 00 00 00 DA [14:31:38]Write i2c OK [14:31:38]MH_I2C_Read... [14:31:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:38]Read from MH i2c: E2 [14:31:38]MH_I2C_Read... [14:31:38]Read from MH i2c: E2 03 00 [14:31:38]MH_I2C_Read... [14:31:38]Read from MH i2c: E2 03 00 4F 19 00 90 00 DC [14:31:38]RAPDU: 90 00 [14:31:38]wFMCommunicate OK [14:31:38]SAM_PROTO_ClearQueue done [14:31:38]KKMCreateOFDPacket [14:31:38]OFDProtocolAddRootSTLVToBuf [14:31:38]FM_MakeSignedData [14:31:38]FM_MakeSignedData [14:31:38]SAM_PROTO_SignData [14:31:38]wFMCommunicate request_size=4 [14:31:38]MH_SAM_APDU [14:31:38]CAPDU: 80 0D 01 02 [14:31:38]Write to MH i2c: E2 08 00 50 19 80 0D 01 02 00 00 00 00 E2 [14:31:38]Write i2c OK [14:31:38]MH_I2C_Read... [14:31:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:38]Read from MH i2c: E2 [14:31:38]MH_I2C_Read... [14:31:38]Read from MH i2c: E2 03 00 [14:31:38]MH_I2C_Read... [14:31:38]Read from MH i2c: E2 03 00 50 19 00 90 00 DD [14:31:38]RAPDU: 90 00 [14:31:38]wFMCommunicate OK [14:31:38]wFMCommunicate request_size=255 [14:31:38]MH_SAM_APDU [14:31:38]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 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 2F 00 00 00 F4 03 04 00 CF A7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 [14:31:38]Write to MH i2c: E2 02 01 51 19 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 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 2F 00 00 00 F4 03 04 00 CF A7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 77 [14:31:38]Write i2c OK [14:31:38]MH_I2C_Read... [14:31:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:38]Read from MH i2c: E2 [14:31:38]MH_I2C_Read... [14:31:38]Read from MH i2c: E2 03 00 [14:31:38]MH_I2C_Read... [14:31:38]Read from MH i2c: E2 03 00 51 19 00 90 00 DE [14:31:38]RAPDU: 90 00 [14:31:38]wFMCommunicate OK [14:31:38]wFMCommunicate request_size=30 [14:31:38]MH_SAM_APDU [14:31:38]CAPDU: 80 0D 02 02 19 30 38 37 34 39 33 37 10 04 04 00 08 6A 00 00 35 04 06 00 43 90 AF 0F 65 55 [14:31:38]Write to MH i2c: E2 21 00 52 19 80 0D 02 02 19 00 30 38 37 34 39 33 37 10 04 04 00 08 6A 00 00 35 04 06 00 43 90 AF 0F 65 55 00 00 A1 [14:31:38]Write i2c OK [14:31:38]MH_I2C_Read... [14:31:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:38]Read from MH i2c: E2 [14:31:38]MH_I2C_Read... [14:31:38]Read from MH i2c: E2 03 00 [14:31:38]MH_I2C_Read... [14:31:38]Read from MH i2c: E2 03 00 52 19 00 90 00 DF [14:31:38]RAPDU: 90 00 [14:31:38]wFMCommunicate OK [14:31:38]wFMCommunicate request_size=4 [14:31:38]MH_SAM_APDU [14:31:38]CAPDU: 80 0D 03 02 [14:31:38]Write to MH i2c: E2 08 00 53 19 80 0D 03 02 00 00 00 00 E7 [14:31:38]Write i2c OK [14:31:38]MH_I2C_Read... [14:31:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:38]Read from MH i2c: E2 [14:31:38]MH_I2C_Read... [14:31:38]Read from MH i2c: E2 0B 00 [14:31:38]MH_I2C_Read... [14:31:38]Read from MH i2c: E2 0B 00 53 19 00 21 BD 7D 7C 00 25 24 B5 90 00 BD [14:31:38]RAPDU: 21 BD 7D 7C 00 25 24 B5 90 00 [14:31:38]wFMCommunicate OK [14:31:38]SAM_PROTO_SignData done [14:31:38]FM_MakeSignedData done [14:31:38]CreateOFDProtocolMessage [14:31:38]wFMCommunicate request_size=4 [14:31:38]MH_SAM_APDU [14:31:38]CAPDU: 80 11 00 00 [14:31:38]Write to MH i2c: E2 08 00 54 19 80 11 00 00 00 00 00 00 E7 [14:31:38]Write i2c OK [14:31:38]MH_I2C_Read... [14:31:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:38]Read from MH i2c: E2 [14:31:38]MH_I2C_Read... [14:31:38]Read from MH i2c: E2 17 00 [14:31:38]MH_I2C_Read... [14:31:38]Read from MH i2c: E2 17 00 54 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 40 [14:31:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [14:31:38]wFMCommunicate OK [14:31:38]CreateOFDProtocolMessage done [14:31:38]OFDSenderStorePacket 27144 [14:31:38]StoreOFDPacket docnum=27144 [14:31:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 23 01 00 00 9E 77 1B 01 33 3E 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 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 2F 00 00 00 F4 03 04 00 CF A7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 08 6A 00 00 35 04 06 00 43 90 AF 0F 65 55 21 BD 7D 7C 00 25 24 B5 [14:31:38]CheckFolder [14:31:38]dirname=/storage/ofd_packets [14:31:38]CheckFolder done [14:31:38]ProducePacketName [14:31:38]name=ofd_packets/00027144 [14:31:38]NVStorageSaveData ofd_packets/00027144 [14:31:38]File name is /storage/ofd_packets/00027144 [14:31:38]Write 321 bytes [14:31:38]NVStorageSaveData done [14:31:38]OFDSenderStorePacket done [14:31:38]KKMCreateOFDPacket done [14:31:38]NVStorageSaveData kkm_last_timestamp [14:31:38]File name is /storage/kkm_last_timestamp [14:31:38]Write 4 bytes [14:31:38]NVStorageSaveData done [14:31:38]ExternCall_PrintAddStr [14:31:38]wPrintStart [14:31:38]Write to MH i2c: 01 00 00 55 19 6E [14:31:38]Write i2c OK [14:31:38]MH_I2C_Read... [14:31:38]Read from MH i2c: 01 [14:31:38]MH_I2C_Read... [14:31:38]Read from MH i2c: 01 07 00 [14:31:38]MH_I2C_Read... [14:31:38]Read from MH i2c: 01 07 00 55 19 00 00 00 00 00 FF 0F 83 [14:31:38]RasterBufferAndPrint [14:31:38]line Счет N : (3)150542 [14:31:38]line ИНН: 02508201610067 [14:31:38]line Контрольно-Кассовый Чек [14:31:38]line ПРОДАЖА [14:31:38]line Товар: 4700000160204 [14:31:38]line Вода Легенда 1,5л [14:31:38]line 1.000 * 60.00 [14:31:38]line = 60.00 [14:31:38]line НДС 12% НСП 1% [14:31:38]line > о реализуемом товаре [14:31:38]line ИТОГО: 60.00 [14:31:38]line НСП 1% : 0.53 [14:31:38]line НДС 12% : 6.37 [14:31:38]line Наличными: 60.00 [14:31:38]line Безнал.: 0.00 [14:31:38]line Место: АЗС № 134 "Партнер Нефть" [14:31:38]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:31:38]line СНО: Общий режим [14:31:38]line Чек 47 29.07.2024 14:31 [14:31:38]line Смена: 434 ФФД: 1.0 [14:31:38]line ЗНМ: 0300000043 [14:31:38]line РНМ: 0000000000092663 [14:31:38]line Версия ККМ: 001 [14:31:38]line ФМ: 0000000000874937 [14:31:38]line ФД: 27144 [14:31:38]line ФПД: 74288691373397 [14:31:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T143143&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27144&fm=74288691373397&tin=02508201610067®Number=0000000000092663&sum=6000 [14:31:38]line 0 [14:31:38]written 0, free lines is 4095 [14:31:38]OFD Sender: Processing packet 27144 [packets to send 9, broken 8] [14:31:38]ProducePacketName [14:31:38]name=ofd_packets/00027144 [14:31:38]OFD Sender: To server: pG, [14:31:39]CommunicateWithHost lk.salyk.kg:30040 [14:31:39]ConnectInit lk.salyk.kg [14:31:39]Write to MH i2c: 01 00 00 7C 19 95 [14:31:39]Write i2c OK [14:31:39]MH_I2C_Read... [14:31:39]Read from MH i2c: 01 [14:31:39]MH_I2C_Read... [14:31:39]Read from MH i2c: 01 07 00 [14:31:39]MH_I2C_Read... [14:31:39]Read from MH i2c: 01 07 00 7C 19 00 00 00 00 00 F4 0C 9C [14:31:39]RasterBufferAndPrint [14:31:39]line [14:31:39]line [14:31:39]line [14:31:39]line [14:31:39]line [14:31:39]written 0, free lines is 3322 [14:31:39]MH_Cut [14:31:39]Write to MH i2c: D1 01 00 83 19 01 6E [14:31:39]Write i2c OK [14:31:39]MH_I2C_Read... [14:31:39]Read from MH i2c: D1 [14:31:39]MH_I2C_Read... [14:31:39]Read from MH i2c: D1 01 00 [14:31:39]MH_I2C_Read... [14:31:39]Read from MH i2c: D1 01 00 83 19 00 6D [14:31:39]Write to MH i2c: 01 00 00 84 19 9D [14:31:39]Write i2c OK [14:31:39]MH_I2C_Read... [14:31:39]Connected sock=9 [14:31:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 23 01 00 00 9E 77 1B 01 33 3E 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 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 2F 00 00 00 F4 03 04 00 CF A7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 08 6A 00 00 35 04 06 00 43 90 AF 0F 65 55 21 BD 7D 7C 00 25 24 B5 [14:31:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 82 11 47 00 95 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 34 39 33 37 10 04 04 00 08 6A 00 00 F4 03 04 00 1F 4E A7 66 B6 04 01 00 00 AF 35 A1 1B A0 E1 19 D1 [14:31:39]CommunicateWithHost err = 0 [14:31:39]CheckOFDResponse [14:31:39]1017 (14) - 77093643461234 [14:31:39]1041 (16) - 0000000000874937 [14:31:39]1040 (4) - 27144 [14:31:39]1012 (4) - 29.07.2024 08:09 [14:31:39]1206 (1) - 0 [14:31:39]OFD Sender: Remove packet 27144 [14:31:39]ProducePacketName [14:31:39]name=ofd_packets/00027144 [14:31:39]NVStorageDeleteData [14:31:39]*** Cut start [14:31:39]*** Partial cut [14:31:39]*** CUTSNS_PIN = 1 [14:31:39]OFD Sender: No OFD packet to send [14:31:39]*** CUTSNS_PIN = 0 [14:31:40]*** Brake cut motor [14:31:40]Read from MH i2c: 01 [14:31:40]MH_I2C_Read... [14:31:40]*** Stop cut motor [14:31:40]*** Cut end [14:31:40]Read from MH i2c: 01 07 00 [14:31:40]MH_I2C_Read... [14:31:40]Read from MH i2c: 01 07 00 84 19 00 00 00 00 00 FF 0F B2 [14:31:40]process_action close_receipt done [14:31:40]requested_data is exist [14:31:40]produce_requested_data [14:31:40]requested_item fm.sn is exist - process it [14:31:40]wFMCommunicate request_size=4 [14:31:40]MH_SAM_APDU [14:31:40]CAPDU: 80 11 00 00 [14:31:40]Write to MH i2c: E2 08 00 85 19 80 11 00 00 00 00 00 00 18 [14:31:40]Write i2c OK [14:31:40]MH_I2C_Read... [14:31:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:40]Read from MH i2c: E2 [14:31:40]MH_I2C_Read... [14:31:40]Read from MH i2c: E2 17 00 [14:31:40]MH_I2C_Read... [14:31:40]Read from MH i2c: E2 17 00 85 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 71 [14:31:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [14:31:40]wFMCommunicate OK [14:31:40]requested_item fd.num is exist - process it [14:31:40]SAM_PROTO_GetFieldsCounters [14:31:40]wFMCommunicate request_size=4 [14:31:40]MH_SAM_APDU [14:31:40]CAPDU: 80 13 00 00 [14:31:40]Write to MH i2c: E2 08 00 86 19 80 13 00 00 00 00 00 00 1B [14:31:40]Write i2c OK [14:31:40]MH_I2C_Read... [14:31:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:40]Read from MH i2c: E2 [14:31:40]MH_I2C_Read... [14:31:40]Read from MH i2c: E2 62 00 [14:31:40]MH_I2C_Read... [14:31:40]Read from MH i2c: E2 62 00 86 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 08 6A 00 00 0E 04 04 00 B2 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 F5 [14:31: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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 08 6A 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:31:40]wFMCommunicate OK [14:31:40]SAM_PROTO_GetFieldsCounters done [14:31:40]requested_item shift.num is exist - process it [14:31:40]requested_item shift.opened is exist - process it [14:31:40]req_shift_opened [14:31:40]FM_GetShiftState [14:31:40]SAM_PROTO_GetShiftState [14:31:40]wFMCommunicate request_size=4 [14:31:40]MH_SAM_APDU [14:31:40]CAPDU: 80 13 01 00 [14:31:40]Write to MH i2c: E2 08 00 87 19 80 13 01 00 00 00 00 00 1D [14:31:40]Write i2c OK [14:31:40]MH_I2C_Read... [14:31:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:40]Read from MH i2c: E2 [14:31:40]MH_I2C_Read... [14:31:40]Read from MH i2c: E2 0E 00 [14:31:40]MH_I2C_Read... [14:31:40]Read from MH i2c: E2 0E 00 87 19 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 9E [14:31:40]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [14:31:40]wFMCommunicate OK [14:31:40]SAM_PROTO_GetShiftState done [14:31:40]FM_GetShiftState done [14:31:40]req_shift_opened done [14:31:40]requested_item shift.open_date is exist - process it [14:31:40]req_shift_open_date [14:31:40]req_shift_open_date done [14:31:40]produce_requested_data done [14:31:40]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27144,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [14:31:40]process_action_free close_receipt [14:31:40]json_value_free [14:31:40]json_value_free done [14:31:40]process_json_proto returns [14:31:40]Send response to host [14:31:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27144,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [14:31:40]free response buf [14:31:40]execute_script done [14:31:40]execute_script returns [14:31:40]free content buf [14:31:40]Sock 8.Close socket [14:31:40]Sock 8.Thread stoped [14:31:44]OFD Sender: No OFD packet to send [14:31:49]OFD Sender: No OFD packet to send [14:31:54]OFD Sender: No OFD packet to send [14:31:59]OFD Sender: No OFD packet to send [14:32:04]OFD Sender: No OFD packet to send [14:32:09]OFD Sender: No OFD packet to send [14:32:14]OFD Sender: No OFD packet to send [14:32:19]OFD Sender: No OFD packet to send [14:32:24]OFD Sender: No OFD packet to send [14:32:29]OFD Sender: No OFD packet to send [14:32:34]OFD Sender: No OFD packet to send [14:32:39]OFD Sender: No OFD packet to send [14:32:44]OFD Sender: No OFD packet to send [14:32:49]OFD Sender: No OFD packet to send [14:32:54]OFD Sender: No OFD packet to send [14:32:59]OFD Sender: No OFD packet to send [14:33:04]OFD Sender: No OFD packet to send [14:33:09]OFD Sender: No OFD packet to send [14:33:14]OFD Sender: No OFD packet to send [14:33:19]OFD Sender: No OFD packet to send [14:33:24]OFD Sender: No OFD packet to send [14:33:29]OFD Sender: No OFD packet to send [14:33:34]OFD Sender: No OFD packet to send [14:33:39]OFD Sender: No OFD packet to send [14:33:44]OFD Sender: No OFD packet to send [14:33:49]OFD Sender: No OFD packet to send [14:33:54]OFD Sender: No OFD packet to send [14:33:59]OFD Sender: No OFD packet to send [14:34:04]OFD Sender: No OFD packet to send [14:34:10]OFD Sender: No OFD packet to send [14:34:15]OFD Sender: No OFD packet to send [14:34:20]OFD Sender: No OFD packet to send [14:34:25]OFD Sender: No OFD packet to send [14:34:30]OFD Sender: No OFD packet to send [14:34:35]OFD Sender: No OFD packet to send [14:34:40]OFD Sender: No OFD packet to send [14:34:45]OFD Sender: No OFD packet to send [14:34:50]OFD Sender: No OFD packet to send [14:34:55]OFD Sender: No OFD packet to send [14:35:00]OFD Sender: No OFD packet to send [14:35:05]OFD Sender: No OFD packet to send [14:35:10]OFD Sender: No OFD packet to send [14:35:15]OFD Sender: No OFD packet to send [14:35:20]OFD Sender: No OFD packet to send [14:35:25]OFD Sender: No OFD packet to send [14:35:30]OFD Sender: No OFD packet to send [14:35:35]OFD Sender: No OFD packet to send [14:35:40]OFD Sender: No OFD packet to send [14:35:45]OFD Sender: No OFD packet to send [14:35:50]OFD Sender: No OFD packet to send [14:35:55]OFD Sender: No OFD packet to send [14:36:00]OFD Sender: No OFD packet to send [14:36:05]OFD Sender: No OFD packet to send [14:36:10]OFD Sender: No OFD packet to send [14:36:15]OFD Sender: No OFD packet to send [14:36:20]OFD Sender: No OFD packet to send [14:36:25]OFD Sender: No OFD packet to send [14:36:30]OFD Sender: No OFD packet to send [14:36:35]OFD Sender: No OFD packet to send [14:36:40]OFD Sender: No OFD packet to send [14:36:45]OFD Sender: No OFD packet to send [14:36:50]OFD Sender: No OFD packet to send [14:36:55]OFD Sender: No OFD packet to send [14:37:00]OFD Sender: No OFD packet to send [14:37:05]OFD Sender: No OFD packet to send [14:37:10]OFD Sender: No OFD packet to send [14:37:15]OFD Sender: No OFD packet to send [14:37:20]OFD Sender: No OFD packet to send [14:37:25]OFD Sender: No OFD packet to send [14:37:30]OFD Sender: No OFD packet to send [14:37:35]OFD Sender: No OFD packet to send [14:37:40]OFD Sender: No OFD packet to send [14:37:45]OFD Sender: No OFD packet to send [14:37:50]OFD Sender: No OFD packet to send [14:37:55]OFD Sender: No OFD packet to send [14:38:00]OFD Sender: No OFD packet to send [14:38:05]OFD Sender: No OFD packet to send [14:38:10]OFD Sender: No OFD packet to send [14:38:15]OFD Sender: No OFD packet to send [14:38:20]OFD Sender: No OFD packet to send [14:38:25]OFD Sender: No OFD packet to send [14:38:30]OFD Sender: No OFD packet to send [14:38:35]OFD Sender: No OFD packet to send [14:38:40]OFD Sender: No OFD packet to send [14:38:45]OFD Sender: No OFD packet to send [14:38:50]OFD Sender: No OFD packet to send [14:38:55]OFD Sender: No OFD packet to send [14:39:00]OFD Sender: No OFD packet to send [14:39:05]OFD Sender: No OFD packet to send [14:39:10]OFD Sender: No OFD packet to send [14:39:15]OFD Sender: No OFD packet to send [14:39:20]OFD Sender: No OFD packet to send [14:39:25]OFD Sender: No OFD packet to send [14:39:30]OFD Sender: No OFD packet to send [14:39:35]OFD Sender: No OFD packet to send [14:39:40]OFD Sender: No OFD packet to send [14:39:45]OFD Sender: No OFD packet to send [14:39:50]OFD Sender: No OFD packet to send [14:39:55]OFD Sender: No OFD packet to send [14:40:00]OFD Sender: No OFD packet to send [14:40:05]OFD Sender: No OFD packet to send [14:40:10]OFD Sender: No OFD packet to send [14:40:15]OFD Sender: No OFD packet to send [14:40:20]OFD Sender: No OFD packet to send [14:40:25]OFD Sender: No OFD packet to send [14:40:30]OFD Sender: No OFD packet to send [14:40:35]OFD Sender: No OFD packet to send [14:40:40]OFD Sender: No OFD packet to send [14:40:45]OFD Sender: No OFD packet to send [14:40:50]OFD Sender: No OFD packet to send [14:40:55]OFD Sender: No OFD packet to send [14:41:00]OFD Sender: No OFD packet to send [14:41:05]OFD Sender: No OFD packet to send [14:41:10]OFD Sender: No OFD packet to send [14:41:14]accept exits with 10 [14:41:14]New connection [14:41:14]New thread 3066785124 created [14:41:14]Thread 3066928484 joined [14:41:14]Waiting for new connection... [14:41:14] Sock 10.Parse request [14:41:14]Sock 10.Check first char [14:41:14]Sock 10.First char is OK [14:41:14]request: POST /json_proto HTTP/1.0 [14:41:14]Method: POST [14:41:14]URL: /json_proto [14:41:14]Method is POST - this is cgi request [14:41:14]url: /json_proto [14:41:14]query_string will be loaded in cgi processing [14:41:14]execute_cgi json_proto POST (null) [14:41:14]execute_cgi path=json_proto method=POST [14:41:14]POST find Content-Length [14:41:14]Host: 172.17.45.8:8080 [14:41:14]Content-Length: 663 [14:41:14]Content-Type: application/json [14:41:14] [14:41:14]POST finish read [14:41:14]Found Content-Length = 663 [14:41:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150543", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:14]execute_script... [14:41: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)150543", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:14]POST & json_proto [14:41:14]process_json_proto [14:41:14]json parsed OK: [14:41:14]protocol is kg_v1.0 [14:41:14]action value=close_receipt [14:41:14]process_action close_receipt [14:41:14]cmd_close_receipt [14:41:14]MH_GetDate [14:41:14]Write to MH i2c: F0 00 00 88 19 90 [14:41:14]Write i2c OK [14:41:14]MH_I2C_Read... [14:41:14]Read from MH i2c: F0 [14:41:14]MH_I2C_Read... [14:41:14]Read from MH i2c: F0 09 00 [14:41:14]MH_I2C_Read... [14:41:14]Read from MH i2c: F0 09 00 88 19 00 10 AA A7 66 A6 1F 7F 64 08 [14:41:14]GetLastDocTimeStamp 1722263503 [14:41:14]current date 1722264080 [14:41:14]FM_GetShiftState [14:41:14]SAM_PROTO_GetShiftState [14:41:14]wFMCommunicate request_size=4 [14:41:14]MH_SAM_APDU [14:41:14]CAPDU: 80 13 01 00 [14:41:14]Write to MH i2c: E2 08 00 89 19 80 13 01 00 00 00 00 00 1F [14:41:14]Write i2c OK [14:41:14]MH_I2C_Read... [14:41:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:14]Read from MH i2c: E2 [14:41:14]MH_I2C_Read... [14:41:14]Read from MH i2c: E2 0E 00 [14:41:14]MH_I2C_Read... [14:41:14]Read from MH i2c: E2 0E 00 89 19 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 A0 [14:41:14]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [14:41:14]wFMCommunicate OK [14:41:14]SAM_PROTO_GetShiftState done [14:41:14]FM_GetShiftState done [14:41:14]opened in 1722213509 [14:41:14]opened+sec_in_day 1722299909 [14:41:14]quantity*price = 18000 [14:41:14]sum+1 = 18001 [14:41:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 48 29.07.2024 14:41 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27145 ФПД: 2998534855728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T144120&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27145&fm=2998534855728&tin=02508201610067®Number=0000000000092663&sum=18000 0 [14:41:15]StoreToDocumentArchive [14:41:15]shift 434 fd 27145 [14:41:15]save to /storage/0434/doc_00027145 [14:41:15]save last doc name /storage/0434/doc_00027145 to /storage/kkm_last_doc_name [14:41:15]save OK [14:41:15]Clear old archive folders... [14:41:15]ProcessDocumentItem done err = 0, tmpTLVsize=287 [14:41:15]tlvbuf is B6EA2580 [14:41:15]SAM_PROTO_ClearQueue [14:41:15]wFMCommunicate request_size=4 [14:41:15]MH_SAM_APDU [14:41:15]CAPDU: 80 09 00 00 [14:41:15]Write to MH i2c: E2 08 00 96 19 80 09 00 00 00 00 00 00 21 [14:41:15]Write i2c OK [14:41:15]MH_I2C_Read... [14:41:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:15]Read from MH i2c: E2 [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: E2 03 00 [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: E2 03 00 96 19 00 90 00 23 [14:41:15]RAPDU: 90 00 [14:41:15]wFMCommunicate OK [14:41:15]SAM_PROTO_ClearQueue done [14:41:15]KKMCreateOFDPacket [14:41:15]OFDProtocolAddRootSTLVToBuf [14:41:15]FM_MakeSignedData [14:41:15]FM_MakeSignedData [14:41:15]SAM_PROTO_SignData [14:41:15]wFMCommunicate request_size=4 [14:41:15]MH_SAM_APDU [14:41:15]CAPDU: 80 0D 01 02 [14:41:15]Write to MH i2c: E2 08 00 97 19 80 0D 01 02 00 00 00 00 29 [14:41:15]Write i2c OK [14:41:15]MH_I2C_Read... [14:41:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:15]Read from MH i2c: E2 [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: E2 03 00 [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: E2 03 00 97 19 00 90 00 24 [14:41:15]RAPDU: 90 00 [14:41:15]wFMCommunicate OK [14:41:15]wFMCommunicate request_size=255 [14:41:15]MH_SAM_APDU [14:41:15]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 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 30 00 00 00 F4 03 04 00 10 AA A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 [14:41:15]Write to MH i2c: E2 02 01 98 19 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 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 30 00 00 00 F4 03 04 00 10 AA A7 66 0E 04 04 00 B2 01 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 79 [14:41:15]Write i2c OK [14:41:15]MH_I2C_Read... [14:41:15]OFD Sender: No OFD packet to send [14:41:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:15]Read from MH i2c: E2 [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: E2 03 00 [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: E2 03 00 98 19 00 90 00 25 [14:41:15]RAPDU: 90 00 [14:41:15]wFMCommunicate OK [14:41:15]wFMCommunicate request_size=46 [14:41:15]MH_SAM_APDU [14:41:15]CAPDU: 80 0D 02 02 29 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 09 6A 00 00 35 04 06 00 02 BA 26 9A DC 30 [14:41:15]Write to MH i2c: E2 31 00 99 19 80 0D 02 02 29 00 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 09 6A 00 00 35 04 06 00 02 BA 26 9A DC 30 00 00 BA [14:41:15]Write i2c OK [14:41:15]MH_I2C_Read... [14:41:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:15]Read from MH i2c: E2 [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: E2 03 00 [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: E2 03 00 99 19 00 90 00 26 [14:41:15]RAPDU: 90 00 [14:41:15]wFMCommunicate OK [14:41:15]wFMCommunicate request_size=4 [14:41:15]MH_SAM_APDU [14:41:15]CAPDU: 80 0D 03 02 [14:41:15]Write to MH i2c: E2 08 00 9A 19 80 0D 03 02 00 00 00 00 2E [14:41:15]Write i2c OK [14:41:15]MH_I2C_Read... [14:41:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:15]Read from MH i2c: E2 [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: E2 0B 00 [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: E2 0B 00 9A 19 00 9C 0F 15 B9 35 97 6D 6B 90 00 4C [14:41:15]RAPDU: 9C 0F 15 B9 35 97 6D 6B 90 00 [14:41:15]wFMCommunicate OK [14:41:15]SAM_PROTO_SignData done [14:41:15]FM_MakeSignedData done [14:41:15]CreateOFDProtocolMessage [14:41:15]wFMCommunicate request_size=4 [14:41:15]MH_SAM_APDU [14:41:15]CAPDU: 80 11 00 00 [14:41:15]Write to MH i2c: E2 08 00 9B 19 80 11 00 00 00 00 00 00 2E [14:41:15]Write i2c OK [14:41:15]MH_I2C_Read... [14:41:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:15]Read from MH i2c: E2 [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: E2 17 00 [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: E2 17 00 9B 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 87 [14:41:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [14:41:15]wFMCommunicate OK [14:41:15]CreateOFDProtocolMessage done [14:41:15]OFDSenderStorePacket 27145 [14:41:15]StoreOFDPacket docnum=27145 [14:41:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 33 01 00 00 B1 DE 2B 01 4B C6 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 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 30 00 00 00 F4 03 04 00 10 AA A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 09 6A 00 00 35 04 06 00 02 BA 26 9A DC 30 9C 0F 15 B9 35 97 6D 6B [14:41:15]CheckFolder [14:41:15]dirname=/storage/ofd_packets [14:41:15]CheckFolder done [14:41:15]ProducePacketName [14:41:15]name=ofd_packets/00027145 [14:41:15]NVStorageSaveData ofd_packets/00027145 [14:41:15]File name is /storage/ofd_packets/00027145 [14:41:15]Write 337 bytes [14:41:15]NVStorageSaveData done [14:41:15]OFDSenderStorePacket done [14:41:15]KKMCreateOFDPacket done [14:41:15]NVStorageSaveData kkm_last_timestamp [14:41:15]File name is /storage/kkm_last_timestamp [14:41:15]Write 4 bytes [14:41:15]NVStorageSaveData done [14:41:15]ExternCall_PrintAddStr [14:41:15]wPrintStart [14:41:15]Write to MH i2c: 01 00 00 9C 19 B5 [14:41:15]Write i2c OK [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: 01 [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: 01 07 00 [14:41:15]MH_I2C_Read... [14:41:15]Read from MH i2c: 01 07 00 9C 19 00 00 00 00 00 FF 0F CA [14:41:15]RasterBufferAndPrint [14:41:15]line Счет N : (3)150543 [14:41:15]line ИНН: 02508201610067 [14:41:15]line Контрольно-Кассовый Чек [14:41:15]line ПРОДАЖА [14:41:15]line Товар: 5449000176448 [14:41:15]line Сок Piko Pulpy апельсин ПЭТ 1л [14:41:15]line 1.000 * 180.00 [14:41:15]line = 180.00 [14:41:15]line НДС 12% НСП 1% [14:41:15]line > о реализуемом товаре [14:41:15]line ИТОГО: 180.00 [14:41:15]line НСП 1% : 1.59 [14:41:15]line НДС 12% : 19.11 [14:41:15]line Наличными: 180.00 [14:41:15]line Безнал.: 0.00 [14:41:15]line Место: АЗС № 134 "Партнер Нефть" [14:41:15]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:41:15]line СНО: Общий режим [14:41:15]line Чек 48 29.07.2024 14:41 [14:41:15]line Смена: 434 ФФД: 1.0 [14:41:15]line ЗНМ: 0300000043 [14:41:15]line РНМ: 0000000000092663 [14:41:15]line Версия ККМ: 001 [14:41:15]line ФМ: 0000000000874937 [14:41:15]line ФД: 27145 [14:41:15]line ФПД: 2998534855728 [14:41:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T144120&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27145&fm=2998534855728&tin=02508201610067®Number=0000000000092663&sum=18000 [14:41:16]line 0 [14:41:16]OFD Sender: Processing packet 27145 [packets to send 9, broken 8] [14:41:16]ProducePacketName [14:41:16]name=ofd_packets/00027145 [14:41:16]OFD Sender: To server: pG, [14:41:16]CommunicateWithHost lk.salyk.kg:30040 [14:41:16]ConnectInit lk.salyk.kg [14:41:16]written 0, free lines is 4095 [14:41:16]Connected sock=9 [14:41:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 33 01 00 00 B1 DE 2B 01 4B C6 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 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 30 00 00 00 F4 03 04 00 10 AA A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 09 6A 00 00 35 04 06 00 02 BA 26 9A DC 30 9C 0F 15 B9 35 97 6D 6B [14:41:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 51 89 47 00 ED CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 09 6A 00 00 F4 03 04 00 60 50 A7 66 B6 04 01 00 00 15 54 36 56 69 11 24 F7 [14:41:16]CommunicateWithHost err = 0 [14:41:16]CheckOFDResponse [14:41:16]1017 (14) - 77093643461234 [14:41:16]1041 (16) - 0000000000874937 [14:41:16]1040 (4) - 27145 [14:41:16]1012 (4) - 29.07.2024 08:18 [14:41:16]1206 (1) - 0 [14:41:16]OFD Sender: Remove packet 27145 [14:41:16]ProducePacketName [14:41:16]name=ofd_packets/00027145 [14:41:16]NVStorageDeleteData [14:41:16]Write to MH i2c: 01 00 00 C4 19 DD [14:41:16]Write i2c OK [14:41:16]MH_I2C_Read... [14:41:16]Read from MH i2c: 01 [14:41:16]MH_I2C_Read... [14:41:16]Read from MH i2c: 01 07 00 [14:41:16]MH_I2C_Read... [14:41:16]Read from MH i2c: 01 07 00 C4 19 00 00 00 00 00 E6 0C D6 [14:41:16]RasterBufferAndPrint [14:41:16]line [14:41:16]line [14:41:16]line [14:41:16]line [14:41:16]line [14:41:16]written 0, free lines is 3308 [14:41:16]MH_Cut [14:41:16]Write to MH i2c: D1 01 00 CB 19 01 B6 [14:41:16]Write i2c OK [14:41:16]MH_I2C_Read... [14:41:16]Read from MH i2c: D1 [14:41:16]MH_I2C_Read... [14:41:16]Read from MH i2c: D1 01 00 [14:41:16]MH_I2C_Read... [14:41:16]Read from MH i2c: D1 01 00 CB 19 00 B5 [14:41:16]Write to MH i2c: 01 00 00 CC 19 E5 [14:41:16]Write i2c OK [14:41:16]MH_I2C_Read... [14:41:16]OFD Sender: No OFD packet to send [14:41:17]*** Cut start [14:41:17]*** Partial cut [14:41:17]*** CUTSNS_PIN = 1 [14:41:17]*** CUTSNS_PIN = 0 [14:41:17]*** Brake cut motor [14:41:17]Read from MH i2c: 01 [14:41:17]MH_I2C_Read... [14:41:17]*** Stop cut motor [14:41:17]*** Cut end [14:41:17]Read from MH i2c: 01 07 00 [14:41:17]MH_I2C_Read... [14:41:17]Read from MH i2c: 01 07 00 CC 19 00 00 00 00 00 FF 0F FA [14:41:17]process_action close_receipt done [14:41:17]requested_data is exist [14:41:17]produce_requested_data [14:41:17]requested_item fm.sn is exist - process it [14:41:17]wFMCommunicate request_size=4 [14:41:17]MH_SAM_APDU [14:41:17]CAPDU: 80 11 00 00 [14:41:17]Write to MH i2c: E2 08 00 CD 19 80 11 00 00 00 00 00 00 60 [14:41:17]Write i2c OK [14:41:17]MH_I2C_Read... [14:41:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:17]Read from MH i2c: E2 [14:41:17]MH_I2C_Read... [14:41:17]Read from MH i2c: E2 17 00 [14:41:17]MH_I2C_Read... [14:41:17]Read from MH i2c: E2 17 00 CD 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 B9 [14:41:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [14:41:17]wFMCommunicate OK [14:41:17]requested_item fd.num is exist - process it [14:41:17]SAM_PROTO_GetFieldsCounters [14:41:17]wFMCommunicate request_size=4 [14:41:17]MH_SAM_APDU [14:41:17]CAPDU: 80 13 00 00 [14:41:17]Write to MH i2c: E2 08 00 CE 19 80 13 00 00 00 00 00 00 63 [14:41:17]Write i2c OK [14:41:17]MH_I2C_Read... [14:41:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:18]Read from MH i2c: E2 [14:41:18]MH_I2C_Read... [14:41:18]Read from MH i2c: E2 62 00 [14:41:18]MH_I2C_Read... [14:41:18]Read from MH i2c: E2 62 00 CE 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 09 6A 00 00 0E 04 04 00 B2 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 41 [14:41:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 09 6A 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:18]wFMCommunicate OK [14:41:18]SAM_PROTO_GetFieldsCounters done [14:41:18]requested_item shift.num is exist - process it [14:41:18]requested_item shift.opened is exist - process it [14:41:18]req_shift_opened [14:41:18]FM_GetShiftState [14:41:18]SAM_PROTO_GetShiftState [14:41:18]wFMCommunicate request_size=4 [14:41:18]MH_SAM_APDU [14:41:18]CAPDU: 80 13 01 00 [14:41:18]Write to MH i2c: E2 08 00 CF 19 80 13 01 00 00 00 00 00 65 [14:41:18]Write i2c OK [14:41:18]MH_I2C_Read... [14:41:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:18]Read from MH i2c: E2 [14:41:18]MH_I2C_Read... [14:41:18]Read from MH i2c: E2 0E 00 [14:41:18]MH_I2C_Read... [14:41:18]Read from MH i2c: E2 0E 00 CF 19 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 E6 [14:41:18]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [14:41:18]wFMCommunicate OK [14:41:18]SAM_PROTO_GetShiftState done [14:41:18]FM_GetShiftState done [14:41:18]req_shift_opened done [14:41:18]requested_item shift.open_date is exist - process it [14:41:18]req_shift_open_date [14:41:18]req_shift_open_date done [14:41:18]produce_requested_data done [14:41:18]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27145,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [14:41:18]process_action_free close_receipt [14:41:18]json_value_free [14:41:18]json_value_free done [14:41:18]process_json_proto returns [14:41:18]Send response to host [14:41:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27145,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [14:41:18]free response buf [14:41:18]execute_script done [14:41:18]execute_script returns [14:41:18]free content buf [14:41:18]Sock 10.Close socket [14:41:18]Sock 10.Thread stoped [14:41:21]OFD Sender: No OFD packet to send [14:41:26]OFD Sender: No OFD packet to send [14:41:31]OFD Sender: No OFD packet to send [14:41:36]OFD Sender: No OFD packet to send [14:41:41]OFD Sender: No OFD packet to send [14:41:46]OFD Sender: No OFD packet to send [14:41:51]OFD Sender: No OFD packet to send [14:41:56]OFD Sender: No OFD packet to send [14:42:01]OFD Sender: No OFD packet to send [14:42:06]OFD Sender: No OFD packet to send [14:42:11]OFD Sender: No OFD packet to send [14:42:16]OFD Sender: No OFD packet to send [14:42:21]OFD Sender: No OFD packet to send [14:42:26]OFD Sender: No OFD packet to send [14:42:31]OFD Sender: No OFD packet to send [14:42:36]OFD Sender: No OFD packet to send [14:42:41]OFD Sender: No OFD packet to send [14:42:46]OFD Sender: No OFD packet to send [14:42:51]OFD Sender: No OFD packet to send [14:42:56]OFD Sender: No OFD packet to send [14:43:01]OFD Sender: No OFD packet to send [14:43:06]OFD Sender: No OFD packet to send [14:43:11]OFD Sender: No OFD packet to send [14:43:16]OFD Sender: No OFD packet to send [14:43:21]OFD Sender: No OFD packet to send [14:43:26]OFD Sender: No OFD packet to send [14:43:31]OFD Sender: No OFD packet to send [14:43:36]OFD Sender: No OFD packet to send [14:43:41]OFD Sender: No OFD packet to send [14:43:46]OFD Sender: No OFD packet to send [14:43:51]OFD Sender: No OFD packet to send [14:43:56]OFD Sender: No OFD packet to send [14:44:01]OFD Sender: No OFD packet to send [14:44:06]OFD Sender: No OFD packet to send [14:44:12]OFD Sender: No OFD packet to send [14:44:17]OFD Sender: No OFD packet to send [14:44:22]OFD Sender: No OFD packet to send [14:44:27]OFD Sender: No OFD packet to send [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:57]OFD Sender: No OFD packet to send [14:45:02]OFD Sender: No OFD packet to send [14:45:07]OFD Sender: No OFD packet to send [14:45:12]OFD Sender: No OFD packet to send [14:45:17]OFD Sender: No OFD packet to send [14:45:22]OFD Sender: No OFD packet to send [14:45:27]OFD Sender: No OFD packet to send [14:45:32]OFD Sender: No OFD packet to send [14:45:37]OFD Sender: No OFD packet to send [14:45:42]OFD Sender: No OFD packet to send [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:22]OFD Sender: No OFD packet to send [14:46:27]OFD Sender: No OFD packet to send [14:46:32]OFD Sender: No OFD packet to send [14:46:37]OFD Sender: No OFD packet to send [14:46:42]OFD Sender: No OFD packet to send [14:46:47]OFD Sender: No OFD packet to send [14:46:52]OFD Sender: No OFD packet to send [14:46:57]OFD Sender: No OFD packet to send [14:47:02]OFD Sender: No OFD packet to send [14:47:07]OFD Sender: No OFD packet to send [14:47:12]OFD Sender: No OFD packet to send [14:47:17]OFD Sender: No OFD packet to send [14:47:22]OFD Sender: No OFD packet to send [14:47:27]OFD Sender: No OFD packet to send [14:47: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]OFD Sender: No OFD packet to send [14:48:12]OFD Sender: No OFD packet to send [14:48:17]OFD Sender: No OFD packet to send [14:48:22]OFD Sender: No OFD packet to send [14:48:27]OFD Sender: No OFD packet to send [14:48:32]OFD Sender: No OFD packet to send [14:48:37]OFD Sender: No OFD packet to send [14:48:42]OFD Sender: No OFD packet to send [14:48:47]OFD Sender: No OFD packet to send [14:48:52]OFD Sender: No OFD packet to send [14:48:57]OFD Sender: No OFD packet to send [14:49:02]OFD Sender: No OFD packet to send [14:49:07]OFD Sender: No OFD packet to send [14:49:12]OFD Sender: No OFD packet to send [14:49:17]OFD Sender: No OFD packet to send [14:49:22]OFD Sender: No OFD packet to send [14:49:22]accept exits with 8 [14:49:22]New connection [14:49:22]New thread 3066928484 created [14:49:22]Thread 3066785124 joined [14:49:22]Waiting for new connection... [14:49:22] Sock 8.Parse request [14:49:22]Sock 8.Check first char [14:49:22]Sock 8.First char is OK [14:49:22]request: POST /json_proto HTTP/1.0 [14:49:22]Method: POST [14:49:22]URL: /json_proto [14:49:22]Method is POST - this is cgi request [14:49:22]url: /json_proto [14:49:22]query_string will be loaded in cgi processing [14:49:22]execute_cgi json_proto POST (null) [14:49:22]execute_cgi path=json_proto method=POST [14:49:22]POST find Content-Length [14:49:22]Host: 172.17.45.8:8080 [14:49:22]Content-Length: 646 [14:49:22]Content-Type: application/json [14:49:22] [14:49:22]POST finish read [14:49:22]Found Content-Length = 646 [14:49:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150544", "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" ] } } [14:49:22]execute_script... [14:49:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150544", "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" ] } } [14:49:22]POST & json_proto [14:49:22]process_json_proto [14:49:22]json parsed OK: [14:49:22]protocol is kg_v1.0 [14:49:22]action value=close_receipt [14:49:22]process_action close_receipt [14:49:22]cmd_close_receipt [14:49:22]MH_GetDate [14:49:22]Write to MH i2c: F0 00 00 D0 19 D8 [14:49:22]Write i2c OK [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: F0 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: F0 09 00 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: F0 09 00 D0 19 00 F8 AB A7 66 A6 1F 7F 64 39 [14:49:22]GetLastDocTimeStamp 1722264080 [14:49:22]current date 1722264568 [14:49:22]FM_GetShiftState [14:49:22]SAM_PROTO_GetShiftState [14:49:22]wFMCommunicate request_size=4 [14:49:22]MH_SAM_APDU [14:49:22]CAPDU: 80 13 01 00 [14:49:22]Write to MH i2c: E2 08 00 D1 19 80 13 01 00 00 00 00 00 67 [14:49:22]Write i2c OK [14:49:22]MH_I2C_Read... [14:49:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:22]Read from MH i2c: E2 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: E2 0E 00 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: E2 0E 00 D1 19 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 E8 [14:49:22]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [14:49:22]wFMCommunicate OK [14:49:22]SAM_PROTO_GetShiftState done [14:49:22]FM_GetShiftState done [14:49:22]opened in 1722213509 [14:49:22]opened+sec_in_day 1722299909 [14:49:22]quantity*price = 26000 [14:49:22]sum+1 = 26001 [14:49:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 49 29.07.2024 14:49 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27146 ФПД: 63187214576653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T144928&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27146&fm=63187214576653&tin=02508201610067®Number=0000000000092663&sum=26000 0 [14:49:24]StoreToDocumentArchive [14:49:24]shift 434 fd 27146 [14:49:24]save to /storage/0434/doc_00027146 [14:49:24]save last doc name /storage/0434/doc_00027146 to /storage/kkm_last_doc_name [14:49:24]save OK [14:49:24]Clear old archive folders... [14:49:24]ProcessDocumentItem done err = 0, tmpTLVsize=282 [14:49:24]tlvbuf is B6EA2B30 [14:49:24]SAM_PROTO_ClearQueue [14:49:24]wFMCommunicate request_size=4 [14:49:24]MH_SAM_APDU [14:49:24]CAPDU: 80 09 00 00 [14:49:24]Write to MH i2c: E2 08 00 DE 19 80 09 00 00 00 00 00 00 69 [14:49:24]Write i2c OK [14:49:24]MH_I2C_Read... [14:49:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:24]Read from MH i2c: E2 [14:49:24]MH_I2C_Read... [14:49:24]Read from MH i2c: E2 03 00 [14:49:24]MH_I2C_Read... [14:49:24]Read from MH i2c: E2 03 00 DE 19 00 90 00 6B [14:49:24]RAPDU: 90 00 [14:49:24]wFMCommunicate OK [14:49:24]SAM_PROTO_ClearQueue done [14:49:24]KKMCreateOFDPacket [14:49:24]OFDProtocolAddRootSTLVToBuf [14:49:24]FM_MakeSignedData [14:49:24]FM_MakeSignedData [14:49:24]SAM_PROTO_SignData [14:49:24]wFMCommunicate request_size=4 [14:49:24]MH_SAM_APDU [14:49:24]CAPDU: 80 0D 01 02 [14:49:24]Write to MH i2c: E2 08 00 DF 19 80 0D 01 02 00 00 00 00 71 [14:49:24]Write i2c OK [14:49:24]MH_I2C_Read... [14:49:24]Read from MH i2c: E2 [14:49:24]MH_I2C_Read... [14:49:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:24]Read from MH i2c: E2 03 00 [14:49:24]MH_I2C_Read... [14:49:24]Read from MH i2c: E2 03 00 DF 19 00 90 00 6C [14:49:24]RAPDU: 90 00 [14:49:24]wFMCommunicate OK [14:49:24]wFMCommunicate request_size=255 [14:49:24]MH_SAM_APDU [14:49:24]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 31 00 00 00 F4 03 04 00 F8 AB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 [14:49:24]Write to MH i2c: E2 02 01 E0 19 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 31 00 00 00 F4 03 04 00 F8 AB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 00 00 CF [14:49:24]Write i2c OK [14:49:24]MH_I2C_Read... [14:49:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:24]Read from MH i2c: E2 [14:49:24]MH_I2C_Read... [14:49:24]Read from MH i2c: E2 03 00 [14:49:24]MH_I2C_Read... [14:49:24]Read from MH i2c: E2 03 00 E0 19 00 90 00 6D [14:49:24]RAPDU: 90 00 [14:49:24]wFMCommunicate OK [14:49:24]wFMCommunicate request_size=41 [14:49:24]MH_SAM_APDU [14:49:24]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 0A 6A 00 00 35 04 06 00 39 77 EB 7A AC 0D [14:49:24]Write to MH i2c: E2 2C 00 E1 19 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 0A 6A 00 00 35 04 06 00 39 77 EB 7A AC 0D 00 00 8B [14:49:24]Write i2c OK [14:49:24]MH_I2C_Read... [14:49:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:24]Read from MH i2c: E2 [14:49:24]MH_I2C_Read... [14:49:24]Read from MH i2c: E2 03 00 [14:49:24]MH_I2C_Read... [14:49:24]Read from MH i2c: E2 03 00 E1 19 00 90 00 6E [14:49:24]RAPDU: 90 00 [14:49:24]wFMCommunicate OK [14:49:24]wFMCommunicate request_size=4 [14:49:24]MH_SAM_APDU [14:49:24]CAPDU: 80 0D 03 02 [14:49:24]Write to MH i2c: E2 08 00 E2 19 80 0D 03 02 00 00 00 00 76 [14:49:24]Write i2c OK [14:49:24]MH_I2C_Read... [14:49:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:24]Read from MH i2c: E2 [14:49:24]MH_I2C_Read... [14:49:24]Read from MH i2c: E2 0B 00 [14:49:24]MH_I2C_Read... [14:49:24]Read from MH i2c: E2 0B 00 E2 19 00 32 73 0F 26 6C 36 B7 1D 90 00 C7 [14:49:24]RAPDU: 32 73 0F 26 6C 36 B7 1D 90 00 [14:49:24]wFMCommunicate OK [14:49:24]SAM_PROTO_SignData done [14:49:24]FM_MakeSignedData done [14:49:24]CreateOFDProtocolMessage [14:49:24]wFMCommunicate request_size=4 [14:49:24]MH_SAM_APDU [14:49:24]CAPDU: 80 11 00 00 [14:49:24]Write to MH i2c: E2 08 00 E3 19 80 11 00 00 00 00 00 00 76 [14:49:24]Write i2c OK [14:49:24]MH_I2C_Read... [14:49:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:24]Read from MH i2c: E2 [14:49:24]MH_I2C_Read... [14:49:24]Read from MH i2c: E2 17 00 [14:49:24]MH_I2C_Read... [14:49:24]Read from MH i2c: E2 17 00 E3 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 CF [14:49:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [14:49:24]wFMCommunicate OK [14:49:24]CreateOFDProtocolMessage done [14:49:24]OFDSenderStorePacket 27146 [14:49:24]StoreOFDPacket docnum=27146 [14:49:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 2E 01 00 00 5A 2B 26 01 65 2D 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 31 00 00 00 F4 03 04 00 F8 AB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 0A 6A 00 00 35 04 06 00 39 77 EB 7A AC 0D 32 73 0F 26 6C 36 B7 1D [14:49:24]CheckFolder [14:49:24]dirname=/storage/ofd_packets [14:49:24]CheckFolder done [14:49:24]ProducePacketName [14:49:24]name=ofd_packets/00027146 [14:49:24]NVStorageSaveData ofd_packets/00027146 [14:49:24]File name is /storage/ofd_packets/00027146 [14:49:24]Write 332 bytes [14:49:24]NVStorageSaveData done [14:49:24]OFDSenderStorePacket done [14:49:24]KKMCreateOFDPacket done [14:49:24]NVStorageSaveData kkm_last_timestamp [14:49:24]File name is /storage/kkm_last_timestamp [14:49:24]Write 4 bytes [14:49:24]NVStorageSaveData done [14:49:24]ExternCall_PrintAddStr [14:49:24]wPrintStart [14:49:24]Write to MH i2c: 01 00 00 E4 19 FD [14:49:24]Write i2c OK [14:49:24]MH_I2C_Read... [14:49:24]Read from MH i2c: 01 [14:49:24]MH_I2C_Read... [14:49:24]Read from MH i2c: 01 07 00 [14:49:24]MH_I2C_Read... [14:49:24]Read from MH i2c: 01 07 00 E4 19 00 00 00 00 00 FF 0F 12 [14:49:24]RasterBufferAndPrint [14:49:24]line Счет N : (3)150544 [14:49:24]line ИНН: 02508201610067 [14:49:24]line Контрольно-Кассовый Чек [14:49:24]line ПРОДАЖА [14:49:24]line Товар: 2000036220012 [14:49:24]line Кофе Капучино XL(GABB TRADE) [14:49:24]line 2.000 * 130.00 [14:49:24]line = 260.00 [14:49:24]line НДС 12% НСП 1% [14:49:24]line > о реализуемом товаре [14:49:24]line ИТОГО: 260.00 [14:49:24]line НСП 1% : 2.30 [14:49:24]line НДС 12% : 27.61 [14:49:24]line Наличными: 260.00 [14:49:24]line Безнал.: 0.00 [14:49:24]line Место: АЗС № 134 "Партнер Нефть" [14:49:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:49:24]line СНО: Общий режим [14:49:24]line Чек 49 29.07.2024 14:49 [14:49:24]line Смена: 434 ФФД: 1.0 [14:49:24]line ЗНМ: 0300000043 [14:49:24]line РНМ: 0000000000092663 [14:49:24]line Версия ККМ: 001 [14:49:24]line ФМ: 0000000000874937 [14:49:24]line ФД: 27146 [14:49:24]line ФПД: 63187214576653 [14:49:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T144928&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27146&fm=63187214576653&tin=02508201610067®Number=0000000000092663&sum=26000 [14:49:24]line 0 [14:49:24]OFD Sender: Processing packet 27146 [packets to send 9, broken 8] [14:49:24]ProducePacketName [14:49:24]name=ofd_packets/00027146 [14:49:24]OFD Sender: To server: pG, [14:49:24]CommunicateWithHost lk.salyk.kg:30040 [14:49:24]ConnectInit lk.salyk.kg [14:49:24]written 0, free lines is 4095 [14:49:24]Connected sock=10 [14:49:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 2E 01 00 00 5A 2B 26 01 65 2D 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 31 00 00 00 F4 03 04 00 F8 AB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 0A 6A 00 00 35 04 06 00 39 77 EB 7A AC 0D 32 73 0F 26 6C 36 B7 1D [14:49:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 65 87 47 00 C6 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 34 39 33 37 10 04 04 00 0A 6A 00 00 F4 03 04 00 49 52 A7 66 B6 04 01 00 00 91 A2 F9 E7 67 B9 BF 49 [14:49:25]CommunicateWithHost err = 0 [14:49:25]CheckOFDResponse [14:49:25]1017 (14) - 77093643461234 [14:49:25]1041 (16) - 0000000000874937 [14:49:25]1040 (4) - 27146 [14:49:25]1012 (4) - 29.07.2024 08:26 [14:49:25]1206 (1) - 0 [14:49:25]OFD Sender: Remove packet 27146 [14:49:25]ProducePacketName [14:49:25]name=ofd_packets/00027146 [14:49:25]NVStorageDeleteData [14:49:25]Write to MH i2c: 01 00 00 0C 1A 26 [14:49:25]Write i2c OK [14:49:25]MH_I2C_Read... [14:49:25]Read from MH i2c: 01 [14:49:25]MH_I2C_Read... [14:49:25]Read from MH i2c: 01 07 00 [14:49:25]MH_I2C_Read... [14:49:25]Read from MH i2c: 01 07 00 0C 1A 00 00 00 00 00 EE 0C 27 [14:49:25]RasterBufferAndPrint [14:49:25]line [14:49:25]line [14:49:25]line [14:49:25]line [14:49:25]line [14:49:25]written 0, free lines is 3317 [14:49:25]MH_Cut [14:49:25]Write to MH i2c: D1 01 00 13 1A 01 FF [14:49:25]Write i2c OK [14:49:25]MH_I2C_Read... [14:49:25]Read from MH i2c: D1 [14:49:25]MH_I2C_Read... [14:49:25]Read from MH i2c: D1 01 00 [14:49:25]MH_I2C_Read... [14:49:25]Read from MH i2c: D1 01 00 13 1A 00 FE [14:49:25]Write to MH i2c: 01 00 00 14 1A 2E [14:49:25]Write i2c OK [14:49:25]MH_I2C_Read... [14:49:25]OFD Sender: No OFD packet to send [14:49:25]*** Cut start [14:49:25]*** Partial cut [14:49:25]*** CUTSNS_PIN = 1 [14:49:26]*** CUTSNS_PIN = 0 [14:49:26]*** Brake cut motor [14:49:26]Read from MH i2c: 01 [14:49:26]MH_I2C_Read... [14:49:26]*** Stop cut motor [14:49:26]*** Cut end [14:49:26]Read from MH i2c: 01 07 00 [14:49:26]MH_I2C_Read... [14:49:26]Read from MH i2c: 01 07 00 14 1A 00 00 00 00 00 FF 0F 43 [14:49:26]process_action close_receipt done [14:49:26]requested_data is exist [14:49:26]produce_requested_data [14:49:26]requested_item fm.sn is exist - process it [14:49:26]wFMCommunicate request_size=4 [14:49:26]MH_SAM_APDU [14:49:26]CAPDU: 80 11 00 00 [14:49:26]Write to MH i2c: E2 08 00 15 1A 80 11 00 00 00 00 00 00 A9 [14:49:26]Write i2c OK [14:49:26]MH_I2C_Read... [14:49:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:26]Read from MH i2c: E2 [14:49:26]MH_I2C_Read... [14:49:26]Read from MH i2c: E2 17 00 [14:49:26]MH_I2C_Read... [14:49:26]Read from MH i2c: E2 17 00 15 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 02 [14:49:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [14:49:26]wFMCommunicate OK [14:49:26]requested_item fd.num is exist - process it [14:49:26]SAM_PROTO_GetFieldsCounters [14:49:26]wFMCommunicate request_size=4 [14:49:26]MH_SAM_APDU [14:49:26]CAPDU: 80 13 00 00 [14:49:26]Write to MH i2c: E2 08 00 16 1A 80 13 00 00 00 00 00 00 AC [14:49:26]Write i2c OK [14:49:26]MH_I2C_Read... [14:49:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:26]Read from MH i2c: E2 [14:49:26]MH_I2C_Read... [14:49:26]Read from MH i2c: E2 62 00 [14:49:26]MH_I2C_Read... [14:49:26]Read from MH i2c: E2 62 00 16 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 0A 6A 00 00 0E 04 04 00 B2 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 8E [14:49:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 0A 6A 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:49:26]wFMCommunicate OK [14:49:26]SAM_PROTO_GetFieldsCounters done [14:49:26]requested_item shift.num is exist - process it [14:49:26]requested_item shift.opened is exist - process it [14:49:26]req_shift_opened [14:49:26]FM_GetShiftState [14:49:26]SAM_PROTO_GetShiftState [14:49:26]wFMCommunicate request_size=4 [14:49:26]MH_SAM_APDU [14:49:26]CAPDU: 80 13 01 00 [14:49:26]Write to MH i2c: E2 08 00 17 1A 80 13 01 00 00 00 00 00 AE [14:49:26]Write i2c OK [14:49:26]MH_I2C_Read... [14:49:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:26]Read from MH i2c: E2 [14:49:26]MH_I2C_Read... [14:49:26]Read from MH i2c: E2 0E 00 [14:49:26]MH_I2C_Read... [14:49:26]Read from MH i2c: E2 0E 00 17 1A 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 2F [14:49:26]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [14:49:26]wFMCommunicate OK [14:49:26]SAM_PROTO_GetShiftState done [14:49:26]FM_GetShiftState done [14:49:26]req_shift_opened done [14:49:26]requested_item shift.open_date is exist - process it [14:49:26]req_shift_open_date [14:49:26]req_shift_open_date done [14:49:26]produce_requested_data done [14:49:26]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27146,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [14:49:26]process_action_free close_receipt [14:49:26]json_value_free [14:49:26]json_value_free done [14:49:26]process_json_proto returns [14:49:26]Send response to host [14:49:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27146,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [14:49:26]free response buf [14:49:26]execute_script done [14:49:26]execute_script returns [14:49:26]free content buf [14:49:26]Sock 8.Close socket [14:49:26]Sock 8.Thread stoped [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:02]accept exits with 9 [14:51:02]New connection [14:51:02]New thread 3066785124 created [14:51:02]Thread 3066928484 joined [14:51:02]Waiting for new connection... [14:51:02] Sock 9.Parse request [14:51:02]Sock 9.Check first char [14:51:02]Sock 9.First char is OK [14:51:02]request: POST /json_proto HTTP/1.0 [14:51:02]Method: POST [14:51:02]URL: /json_proto [14:51:02]Method is POST - this is cgi request [14:51:02]url: /json_proto [14:51:02]query_string will be loaded in cgi processing [14:51:02]execute_cgi json_proto POST (null) [14:51:02]execute_cgi path=json_proto method=POST [14:51:02]POST find Content-Length [14:51:02]Host: 172.17.45.8:8080 [14:51:02]Content-Length: 632 [14:51:02]Content-Type: application/json [14:51:02] [14:51:02]POST finish read [14:51:02]Found Content-Length = 632 [14:51:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150545", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 4.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:02]execute_script... [14:51: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)150545", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 4.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:02]POST & json_proto [14:51:02]process_json_proto [14:51:02]json parsed OK: [14:51:02]protocol is kg_v1.0 [14:51:02]action value=close_receipt [14:51:02]process_action close_receipt [14:51:02]cmd_close_receipt [14:51:02]MH_GetDate [14:51:02]Write to MH i2c: F0 00 00 18 1A 21 [14:51:02]Write i2c OK [14:51:02]MH_I2C_Read... [14:51:02]Read from MH i2c: F0 [14:51:02]MH_I2C_Read... [14:51:02]Read from MH i2c: F0 09 00 [14:51:02]MH_I2C_Read... [14:51:02]Read from MH i2c: F0 09 00 18 1A 00 5D AC A7 66 A6 1F 7F 64 E8 [14:51:02]GetLastDocTimeStamp 1722264568 [14:51:02]current date 1722264669 [14:51:02]FM_GetShiftState [14:51:02]SAM_PROTO_GetShiftState [14:51:02]wFMCommunicate request_size=4 [14:51:02]MH_SAM_APDU [14:51:02]CAPDU: 80 13 01 00 [14:51:02]Write to MH i2c: E2 08 00 19 1A 80 13 01 00 00 00 00 00 B0 [14:51:02]Write i2c OK [14:51:02]MH_I2C_Read... [14:51:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:03]Read from MH i2c: E2 [14:51:03]MH_I2C_Read... [14:51:03]Read from MH i2c: E2 0E 00 [14:51:03]MH_I2C_Read... [14:51:03]Read from MH i2c: E2 0E 00 19 1A 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 31 [14:51:03]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [14:51:03]wFMCommunicate OK [14:51:03]SAM_PROTO_GetShiftState done [14:51:03]FM_GetShiftState done [14:51:03]opened in 1722213509 [14:51:03]opened+sec_in_day 1722299909 [14:51:03]quantity*price = 20000 [14:51:03]sum+1 = 20001 [14:51:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 50 29.07.2024 14:51 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27147 ФПД: 178209314183892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T145109&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27147&fm=178209314183892&tin=02508201610067®Number=0000000000092663&sum=20000 0 [14:51:04]StoreToDocumentArchive [14:51:04]shift 434 fd 27147 [14:51:04]save to /storage/0434/doc_00027147 [14:51:04]save last doc name /storage/0434/doc_00027147 to /storage/kkm_last_doc_name [14:51:04]save OK [14:51:04]Clear old archive folders... [14:51:04]ProcessDocumentItem done err = 0, tmpTLVsize=269 [14:51:04]tlvbuf is B6EA29D0 [14:51:04]SAM_PROTO_ClearQueue [14:51:04]wFMCommunicate request_size=4 [14:51:04]MH_SAM_APDU [14:51:04]CAPDU: 80 09 00 00 [14:51:04]Write to MH i2c: E2 08 00 26 1A 80 09 00 00 00 00 00 00 B2 [14:51:04]Write i2c OK [14:51:04]MH_I2C_Read... [14:51:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:51:04]Read from MH i2c: E2 [14:51:04]MH_I2C_Read... [14:51:04]Read from MH i2c: E2 03 00 [14:51:04]MH_I2C_Read... [14:51:04]Read from MH i2c: E2 03 00 26 1A 00 90 00 B4 [14:51:04]RAPDU: 90 00 [14:51:04]wFMCommunicate OK [14:51:04]SAM_PROTO_ClearQueue done [14:51:04]KKMCreateOFDPacket [14:51:04]OFDProtocolAddRootSTLVToBuf [14:51:04]FM_MakeSignedData [14:51:04]FM_MakeSignedData [14:51:04]SAM_PROTO_SignData [14:51:04]wFMCommunicate request_size=4 [14:51:04]MH_SAM_APDU [14:51:04]CAPDU: 80 0D 01 02 [14:51:04]Write to MH i2c: E2 08 00 27 1A 80 0D 01 02 00 00 00 00 BA [14:51:04]Write i2c OK [14:51:04]MH_I2C_Read... [14:51:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:51:04]Read from MH i2c: E2 [14:51:04]MH_I2C_Read... [14:51:04]Read from MH i2c: E2 03 00 [14:51:04]MH_I2C_Read... [14:51:04]Read from MH i2c: E2 03 00 27 1A 00 90 00 B5 [14:51:04]RAPDU: 90 00 [14:51:04]wFMCommunicate OK [14:51:04]wFMCommunicate request_size=255 [14:51:04]MH_SAM_APDU [14:51:04]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 5D AC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [14:51:04]Write to MH i2c: E2 02 01 28 1A 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 5D AC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 CE [14:51:04]Write i2c OK [14:51:04]MH_I2C_Read... [14:51:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:04]Read from MH i2c: E2 [14:51:04]MH_I2C_Read... [14:51:04]Read from MH i2c: E2 03 00 [14:51:04]MH_I2C_Read... [14:51:04]Read from MH i2c: E2 03 00 28 1A 00 90 00 B6 [14:51:04]RAPDU: 90 00 [14:51:04]wFMCommunicate OK [14:51:04]wFMCommunicate request_size=28 [14:51:04]MH_SAM_APDU [14:51:04]CAPDU: 80 0D 02 02 17 37 34 39 33 37 10 04 04 00 0B 6A 00 00 35 04 06 00 A2 14 96 DE 1A D4 [14:51:04]Write to MH i2c: E2 1F 00 29 1A 80 0D 02 02 17 00 37 34 39 33 37 10 04 04 00 0B 6A 00 00 35 04 06 00 A2 14 96 DE 1A D4 00 00 DD [14:51:04]Write i2c OK [14:51:04]MH_I2C_Read... [14:51:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:04]Read from MH i2c: E2 [14:51:04]MH_I2C_Read... [14:51:04]Read from MH i2c: E2 03 00 [14:51:04]MH_I2C_Read... [14:51:04]Read from MH i2c: E2 03 00 29 1A 00 90 00 B7 [14:51:04]RAPDU: 90 00 [14:51:04]wFMCommunicate OK [14:51:04]wFMCommunicate request_size=4 [14:51:04]MH_SAM_APDU [14:51:04]CAPDU: 80 0D 03 02 [14:51:04]Write to MH i2c: E2 08 00 2A 1A 80 0D 03 02 00 00 00 00 BF [14:51:04]Write i2c OK [14:51:04]MH_I2C_Read... [14:51:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:51:04]Read from MH i2c: E2 [14:51:04]MH_I2C_Read... [14:51:04]Read from MH i2c: E2 0B 00 [14:51:04]MH_I2C_Read... [14:51:04]Read from MH i2c: E2 0B 00 2A 1A 00 CD 0A 12 D8 A6 45 0A 6F 90 00 E5 [14:51:04]RAPDU: CD 0A 12 D8 A6 45 0A 6F 90 00 [14:51:04]wFMCommunicate OK [14:51:04]SAM_PROTO_SignData done [14:51:04]FM_MakeSignedData done [14:51:04]CreateOFDProtocolMessage [14:51:04]wFMCommunicate request_size=4 [14:51:04]MH_SAM_APDU [14:51:04]CAPDU: 80 11 00 00 [14:51:04]Write to MH i2c: E2 08 00 2B 1A 80 11 00 00 00 00 00 00 BF [14:51:04]Write i2c OK [14:51:04]MH_I2C_Read... [14:51:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:04]Read from MH i2c: E2 [14:51:04]MH_I2C_Read... [14:51:04]Read from MH i2c: E2 17 00 [14:51:04]MH_I2C_Read... [14:51:04]Read from MH i2c: E2 17 00 2B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 18 [14:51:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [14:51:04]wFMCommunicate OK [14:51:04]CreateOFDProtocolMessage done [14:51:04]OFDSenderStorePacket 27147 [14:51:04]StoreOFDPacket docnum=27147 [14:51:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 21 01 00 00 25 E6 19 01 D6 47 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 5D AC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 0B 6A 00 00 35 04 06 00 A2 14 96 DE 1A D4 CD 0A 12 D8 A6 45 0A 6F [14:51:04]CheckFolder [14:51:04]dirname=/storage/ofd_packets [14:51:04]CheckFolder done [14:51:04]ProducePacketName [14:51:04]name=ofd_packets/00027147 [14:51:04]NVStorageSaveData ofd_packets/00027147 [14:51:04]File name is /storage/ofd_packets/00027147 [14:51:04]Write 319 bytes [14:51:04]NVStorageSaveData done [14:51:04]OFDSenderStorePacket done [14:51:04]KKMCreateOFDPacket done [14:51:04]NVStorageSaveData kkm_last_timestamp [14:51:04]File name is /storage/kkm_last_timestamp [14:51:04]Write 4 bytes [14:51:04]NVStorageSaveData done [14:51:04]ExternCall_PrintAddStr [14:51:04]wPrintStart [14:51:04]Write to MH i2c: 01 00 00 2C 1A 46 [14:51:04]Write i2c OK [14:51:04]MH_I2C_Read... [14:51:04]Read from MH i2c: 01 [14:51:04]MH_I2C_Read... [14:51:04]Read from MH i2c: 01 07 00 [14:51:04]MH_I2C_Read... [14:51:04]Read from MH i2c: 01 07 00 2C 1A 00 00 00 00 00 FF 0F 5B [14:51:04]RasterBufferAndPrint [14:51:04]line Счет N : (3)150545 [14:51:04]line ИНН: 02508201610067 [14:51:04]line Контрольно-Кассовый Чек [14:51:04]line ПРОДАЖА [14:51:04]line Товар: 4700000160358 [14:51:04]line Вода Легенда 1л [14:51:04]line 4.000 * 50.00 [14:51:04]line = 200.00 [14:51:04]line НДС 12% НСП 1% [14:51:04]line > о реализуемом товаре [14:51:04]line ИТОГО: 200.00 [14:51:04]line НСП 1% : 1.77 [14:51:04]line НДС 12% : 21.24 [14:51:04]line Наличными: 200.00 [14:51:04]line Безнал.: 0.00 [14:51:04]line Место: АЗС № 134 "Партнер Нефть" [14:51:04]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:51:04]line СНО: Общий режим [14:51:04]line Чек 50 29.07.2024 14:51 [14:51:04]line Смена: 434 ФФД: 1.0 [14:51:04]line ЗНМ: 0300000043 [14:51:04]line РНМ: 0000000000092663 [14:51:05]line Версия ККМ: 001 [14:51:05]line ФМ: 0000000000874937 [14:51:05]line ФД: 27147 [14:51:05]line ФПД: 178209314183892 [14:51:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T145109&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27147&fm=178209314183892&tin=02508201610067®Number=0000000000092663&sum=20000 [14:51:05]line 0 [14:51:05]OFD Sender: Processing packet 27147 [packets to send 9, broken 8] [14:51:05]ProducePacketName [14:51:05]name=ofd_packets/00027147 [14:51:05]OFD Sender: To server: pG, [14:51:05]CommunicateWithHost lk.salyk.kg:30040 [14:51:05]ConnectInit lk.salyk.kg [14:51:05]written 0, free lines is 4095 [14:51:05]Connected sock=10 [14:51:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 21 01 00 00 25 E6 19 01 D6 47 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 5D AC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 0B 6A 00 00 35 04 06 00 A2 14 96 DE 1A D4 CD 0A 12 D8 A6 45 0A 6F [14:51:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 1D 7B 47 00 30 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 34 39 33 37 10 04 04 00 0B 6A 00 00 F4 03 04 00 AD 52 A7 66 B6 04 01 00 00 1B 27 B5 36 3B 45 E4 14 [14:51:05]CommunicateWithHost err = 0 [14:51:05]CheckOFDResponse [14:51:05]1017 (14) - 77093643461234 [14:51:05]1041 (16) - 0000000000874937 [14:51:05]1040 (4) - 27147 [14:51:05]1012 (4) - 29.07.2024 08:28 [14:51:05]1206 (1) - 0 [14:51:05]OFD Sender: Remove packet 27147 [14:51:05]ProducePacketName [14:51:05]name=ofd_packets/00027147 [14:51:05]NVStorageDeleteData [14:51:05]Write to MH i2c: 01 00 00 53 1A 6D [14:51:05]Write i2c OK [14:51:05]MH_I2C_Read... [14:51:05]Read from MH i2c: 01 [14:51:05]MH_I2C_Read... [14:51:05]Read from MH i2c: 01 07 00 [14:51:05]MH_I2C_Read... [14:51:05]Read from MH i2c: 01 07 00 53 1A 00 00 00 00 00 FC 0C 7C [14:51:05]RasterBufferAndPrint [14:51:05]line [14:51:05]line [14:51:05]line [14:51:05]line [14:51:05]line [14:51:05]written 0, free lines is 3331 [14:51:05]MH_Cut [14:51:05]Write to MH i2c: D1 01 00 5A 1A 01 46 [14:51:05]Write i2c OK [14:51:05]MH_I2C_Read... [14:51:05]Read from MH i2c: D1 [14:51:05]MH_I2C_Read... [14:51:05]Read from MH i2c: D1 01 00 [14:51:05]MH_I2C_Read... [14:51:05]Read from MH i2c: D1 01 00 5A 1A 00 45 [14:51:05]Write to MH i2c: 01 00 00 5B 1A 75 [14:51:05]Write i2c OK [14:51:05]MH_I2C_Read... [14:51:05]OFD Sender: No OFD packet to send [14:51:06]*** Cut start [14:51:06]*** Partial cut [14:51:06]*** CUTSNS_PIN = 1 [14:51:06]*** CUTSNS_PIN = 0 [14:51:06]*** Brake cut motor [14:51:06]Read from MH i2c: 01 [14:51:06]MH_I2C_Read... [14:51:06]*** Stop cut motor [14:51:06]*** Cut end [14:51:06]Read from MH i2c: 01 07 00 [14:51:06]MH_I2C_Read... [14:51:06]Read from MH i2c: 01 07 00 5B 1A 00 00 00 00 00 FF 0F 8A [14:51:06]process_action close_receipt done [14:51:06]requested_data is exist [14:51:06]produce_requested_data [14:51:06]requested_item fm.sn is exist - process it [14:51:06]wFMCommunicate request_size=4 [14:51:06]MH_SAM_APDU [14:51:06]CAPDU: 80 11 00 00 [14:51:06]Write to MH i2c: E2 08 00 5C 1A 80 11 00 00 00 00 00 00 F0 [14:51:06]Write i2c OK [14:51:06]MH_I2C_Read... [14:51:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:06]Read from MH i2c: E2 [14:51:06]MH_I2C_Read... [14:51:06]Read from MH i2c: E2 17 00 [14:51:06]MH_I2C_Read... [14:51:06]Read from MH i2c: E2 17 00 5C 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 49 [14:51:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [14:51:06]wFMCommunicate OK [14:51:06]requested_item fd.num is exist - process it [14:51:06]SAM_PROTO_GetFieldsCounters [14:51:06]wFMCommunicate request_size=4 [14:51:06]MH_SAM_APDU [14:51:06]CAPDU: 80 13 00 00 [14:51:06]Write to MH i2c: E2 08 00 5D 1A 80 13 00 00 00 00 00 00 F3 [14:51:06]Write i2c OK [14:51:06]MH_I2C_Read... [14:51:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:06]Read from MH i2c: E2 [14:51:06]MH_I2C_Read... [14:51:06]Read from MH i2c: E2 62 00 [14:51:06]MH_I2C_Read... [14:51:06]Read from MH i2c: E2 62 00 5D 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 0B 6A 00 00 0E 04 04 00 B2 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 D9 [14:51:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 0B 6A 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:51:06]wFMCommunicate OK [14:51:06]SAM_PROTO_GetFieldsCounters done [14:51:06]requested_item shift.num is exist - process it [14:51:06]requested_item shift.opened is exist - process it [14:51:06]req_shift_opened [14:51:06]FM_GetShiftState [14:51:06]SAM_PROTO_GetShiftState [14:51:06]wFMCommunicate request_size=4 [14:51:06]MH_SAM_APDU [14:51:06]CAPDU: 80 13 01 00 [14:51:06]Write to MH i2c: E2 08 00 5E 1A 80 13 01 00 00 00 00 00 F5 [14:51:06]Write i2c OK [14:51:06]MH_I2C_Read... [14:51:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:07]Read from MH i2c: E2 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: E2 0E 00 [14:51:07]MH_I2C_Read... [14:51:07]Read from MH i2c: E2 0E 00 5E 1A 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 76 [14:51:07]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [14:51:07]wFMCommunicate OK [14:51:07]SAM_PROTO_GetShiftState done [14:51:07]FM_GetShiftState done [14:51:07]req_shift_opened done [14:51:07]requested_item shift.open_date is exist - process it [14:51:07]req_shift_open_date [14:51:07]req_shift_open_date done [14:51:07]produce_requested_data done [14:51:07]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27147,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [14:51:07]process_action_free close_receipt [14:51:07]json_value_free [14:51:07]json_value_free done [14:51:07]process_json_proto returns [14:51:07]Send response to host [14:51:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27147,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [14:51:07]free response buf [14:51:07]execute_script done [14:51:07]execute_script returns [14:51:07]free content buf [14:51:07]Sock 9.Close socket [14:51:07]Sock 9.Thread stoped [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:21]OFD Sender: No OFD packet to send [14:55:26]OFD Sender: No OFD packet to send [14:55:31]OFD Sender: No OFD packet to send [14:55:36]OFD Sender: No OFD packet to send [14:55:41]OFD Sender: No OFD packet to send [14:55:46]OFD Sender: No OFD packet to send [14:55:51]OFD Sender: No OFD packet to send [14:55:56]OFD Sender: No OFD packet to send [14:56:01]OFD Sender: No OFD packet to send [14:56:06]OFD Sender: No OFD packet to send [14:56:11]OFD Sender: No OFD packet to send [14:56:16]OFD Sender: No OFD packet to send [14:56:21]OFD Sender: No OFD packet to send [14:56:26]OFD Sender: No OFD packet to send [14:56:31]OFD Sender: No OFD packet to send [14:56:36]OFD Sender: No OFD packet to send [14:56:41]OFD Sender: No OFD packet to send [14:56:46]OFD Sender: No OFD packet to send [14:56:51]OFD Sender: No OFD packet to send [14:56:56]OFD Sender: No OFD packet to send [14:57:01]OFD Sender: No OFD packet to send [14:57:06]OFD Sender: No OFD packet to send [14:57:10]accept exits with 8 [14:57:10]New connection [14:57:10]New thread 3066928484 created [14:57:10]Thread 3066785124 joined [14:57:10]Waiting for new connection... [14:57:10] Sock 8.Parse request [14:57:10]Sock 8.Check first char [14:57:10]Sock 8.First char is OK [14:57:10]request: POST /json_proto HTTP/1.0 [14:57:10]Method: POST [14:57:10]URL: /json_proto [14:57:10]Method is POST - this is cgi request [14:57:10]url: /json_proto [14:57:10]query_string will be loaded in cgi processing [14:57:10]execute_cgi json_proto POST (null) [14:57:10]execute_cgi path=json_proto method=POST [14:57:10]POST find Content-Length [14:57:10]Host: 172.17.45.8:8080 [14:57:10]Content-Length: 654 [14:57:10]Content-Type: application/json [14:57:10] [14:57:10]POST finish read [14:57:10]Found Content-Length = 654 [14:57:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150546", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\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" ] } } [14:57:10]execute_script... [14:57: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)150546", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\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" ] } } [14:57:10]POST & json_proto [14:57:10]process_json_proto [14:57:10]json parsed OK: [14:57:10]protocol is kg_v1.0 [14:57:10]action value=close_receipt [14:57:10]process_action close_receipt [14:57:10]cmd_close_receipt [14:57:10]MH_GetDate [14:57:10]Write to MH i2c: F0 00 00 5F 1A 68 [14:57:10]Write i2c OK [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: F0 [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: F0 09 00 [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: F0 09 00 5F 1A 00 CC AD A7 66 A6 1F 7F 64 9F [14:57:10]GetLastDocTimeStamp 1722264669 [14:57:10]current date 1722265036 [14:57:10]FM_GetShiftState [14:57:10]SAM_PROTO_GetShiftState [14:57:10]wFMCommunicate request_size=4 [14:57:10]MH_SAM_APDU [14:57:10]CAPDU: 80 13 01 00 [14:57:10]Write to MH i2c: E2 08 00 60 1A 80 13 01 00 00 00 00 00 F7 [14:57:10]Write i2c OK [14:57:10]MH_I2C_Read... [14:57:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:10]Read from MH i2c: E2 [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: E2 0E 00 [14:57:10]MH_I2C_Read... [14:57:10]Read from MH i2c: E2 0E 00 60 1A 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 78 [14:57:10]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [14:57:10]wFMCommunicate OK [14:57:10]SAM_PROTO_GetShiftState done [14:57:10]FM_GetShiftState done [14:57:10]opened in 1722213509 [14:57:10]opened+sec_in_day 1722299909 [14:57:10]quantity*price = 9500 [14:57:10]sum+1 = 9501 [14:57:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 51 29.07.2024 14:57 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27148 ФПД: 97608445962878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T145717&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27148&fm=97608445962878&tin=02508201610067®Number=0000000000092663&sum=9500 0 [14:57:12]StoreToDocumentArchive [14:57:12]shift 434 fd 27148 [14:57:12]save to /storage/0434/doc_00027148 [14:57:12]save last doc name /storage/0434/doc_00027148 to /storage/kkm_last_doc_name [14:57:12]save OK [14:57:12]Clear old archive folders... [14:57:12]ProcessDocumentItem done err = 0, tmpTLVsize=293 [14:57:12]tlvbuf is B6EA2620 [14:57:12]SAM_PROTO_ClearQueue [14:57:12]wFMCommunicate request_size=4 [14:57:12]MH_SAM_APDU [14:57:12]CAPDU: 80 09 00 00 [14:57:12]Write to MH i2c: E2 08 00 6D 1A 80 09 00 00 00 00 00 00 F9 [14:57:12]Write i2c OK [14:57:12]MH_I2C_Read... [14:57:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:12]Read from MH i2c: E2 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 03 00 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 03 00 6D 1A 00 90 00 FB [14:57:12]RAPDU: 90 00 [14:57:12]wFMCommunicate OK [14:57:12]SAM_PROTO_ClearQueue done [14:57:12]KKMCreateOFDPacket [14:57:12]OFDProtocolAddRootSTLVToBuf [14:57:12]FM_MakeSignedData [14:57:12]FM_MakeSignedData [14:57:12]SAM_PROTO_SignData [14:57:12]wFMCommunicate request_size=4 [14:57:12]MH_SAM_APDU [14:57:12]CAPDU: 80 0D 01 02 [14:57:12]Write to MH i2c: E2 08 00 6E 1A 80 0D 01 02 00 00 00 00 01 [14:57:12]Write i2c OK [14:57:12]MH_I2C_Read... [14:57:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:12]Read from MH i2c: E2 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 03 00 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 03 00 6E 1A 00 90 00 FC [14:57:12]RAPDU: 90 00 [14:57:12]wFMCommunicate OK [14:57:12]wFMCommunicate request_size=255 [14:57:12]MH_SAM_APDU [14:57:12]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 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 33 00 00 00 F4 03 04 00 CD AD A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [14:57:12]Write to MH i2c: E2 02 01 6F 1A 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 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 33 00 00 00 F4 03 04 00 CD AD A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 0E [14:57:12]Write i2c OK [14:57:12]MH_I2C_Read... [14:57:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:12]Read from MH i2c: E2 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 03 00 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 03 00 6F 1A 00 90 00 FD [14:57:12]RAPDU: 90 00 [14:57:12]wFMCommunicate OK [14:57:12]wFMCommunicate request_size=52 [14:57:12]MH_SAM_APDU [14:57:12]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 0C 6A 00 00 35 04 06 00 58 C6 3C BF AA 7E [14:57:12]Write to MH i2c: E2 37 00 70 1A 80 0D 02 02 2F 00 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 0C 6A 00 00 35 04 06 00 58 C6 3C BF AA 7E 00 00 85 [14:57:12]Write i2c OK [14:57:12]MH_I2C_Read... [14:57:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:12]Read from MH i2c: E2 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 03 00 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 03 00 70 1A 00 90 00 FE [14:57:12]RAPDU: 90 00 [14:57:12]wFMCommunicate OK [14:57:12]wFMCommunicate request_size=4 [14:57:12]MH_SAM_APDU [14:57:12]CAPDU: 80 0D 03 02 [14:57:12]Write to MH i2c: E2 08 00 71 1A 80 0D 03 02 00 00 00 00 06 [14:57:12]Write i2c OK [14:57:12]MH_I2C_Read... [14:57:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:12]Read from MH i2c: E2 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 0B 00 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 0B 00 71 1A 00 1A 1D A2 CA 8E C1 08 FC 90 00 FD [14:57:12]RAPDU: 1A 1D A2 CA 8E C1 08 FC 90 00 [14:57:12]wFMCommunicate OK [14:57:12]SAM_PROTO_SignData done [14:57:12]FM_MakeSignedData done [14:57:12]CreateOFDProtocolMessage [14:57:12]wFMCommunicate request_size=4 [14:57:12]MH_SAM_APDU [14:57:12]CAPDU: 80 11 00 00 [14:57:12]Write to MH i2c: E2 08 00 72 1A 80 11 00 00 00 00 00 00 06 [14:57:12]Write i2c OK [14:57:12]MH_I2C_Read... [14:57:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:12]Read from MH i2c: E2 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 17 00 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: E2 17 00 72 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 5F [14:57:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [14:57:12]wFMCommunicate OK [14:57:12]CreateOFDProtocolMessage done [14:57:12]OFDSenderStorePacket 27148 [14:57:12]StoreOFDPacket docnum=27148 [14:57:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 39 01 00 00 1C 97 31 01 7E B1 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 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 33 00 00 00 F4 03 04 00 CD AD A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 0C 6A 00 00 35 04 06 00 58 C6 3C BF AA 7E 1A 1D A2 CA 8E C1 08 FC [14:57:12]CheckFolder [14:57:12]dirname=/storage/ofd_packets [14:57:12]CheckFolder done [14:57:12]ProducePacketName [14:57:12]name=ofd_packets/00027148 [14:57:12]NVStorageSaveData ofd_packets/00027148 [14:57:12]File name is /storage/ofd_packets/00027148 [14:57:12]Write 343 bytes [14:57:12]NVStorageSaveData done [14:57:12]OFDSenderStorePacket done [14:57:12]KKMCreateOFDPacket done [14:57:12]NVStorageSaveData kkm_last_timestamp [14:57:12]File name is /storage/kkm_last_timestamp [14:57:12]Write 4 bytes [14:57:12]NVStorageSaveData done [14:57:12]ExternCall_PrintAddStr [14:57:12]wPrintStart [14:57:12]Write to MH i2c: 01 00 00 73 1A 8D [14:57:12]Write i2c OK [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: 01 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: 01 07 00 [14:57:12]MH_I2C_Read... [14:57:12]Read from MH i2c: 01 07 00 73 1A 00 00 00 00 00 FF 0F A2 [14:57:12]RasterBufferAndPrint [14:57:12]line Счет N : (3)150546 [14:57:12]line ИНН: 02508201610067 [14:57:12]line Контрольно-Кассовый Чек [14:57:12]line ПРОДАЖА [14:57:12]line Товар: 4700000480050 [14:57:12]line Напиток Nitro Energy эн green ж/б 0,45л [14:57:12]line 1.000 * 95.00 [14:57:12]line = 95.00 [14:57:12]line НДС 12% НСП 1% [14:57:12]line > о реализуемом товаре [14:57:12]line ИТОГО: 95.00 [14:57:12]line НСП 1% : 0.84 [14:57:12]line НДС 12% : 10.09 [14:57:12]line Наличными: 95.00 [14:57:12]line Безнал.: 0.00 [14:57:12]line Место: АЗС № 134 "Партнер Нефть" [14:57:12]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:57:12]line СНО: Общий режим [14:57:12]line Чек 51 29.07.2024 14:57 [14:57:12]line Смена: 434 ФФД: 1.0 [14:57:12]line ЗНМ: 0300000043 [14:57:12]line РНМ: 0000000000092663 [14:57:12]line Версия ККМ: 001 [14:57:12]line ФМ: 0000000000874937 [14:57:12]line ФД: 27148 [14:57:12]line ФПД: 97608445962878 [14:57:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T145717&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27148&fm=97608445962878&tin=02508201610067®Number=0000000000092663&sum=9500 [14:57:12]line 0 [14:57:12]OFD Sender: Processing packet 27148 [packets to send 9, broken 8] [14:57:12]ProducePacketName [14:57:12]name=ofd_packets/00027148 [14:57:12]OFD Sender: To server: pG, [14:57:12]CommunicateWithHost lk.salyk.kg:30040 [14:57:12]ConnectInit lk.salyk.kg [14:57:12]written 0, free lines is 4095 [14:57:13]Connected sock=10 [14:57:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 39 01 00 00 1C 97 31 01 7E B1 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 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 33 00 00 00 F4 03 04 00 CD AD A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 0C 6A 00 00 35 04 06 00 58 C6 3C BF AA 7E 1A 1D A2 CA 8E C1 08 FC [14:57:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 A3 8E 47 00 B4 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 0C 6A 00 00 F4 03 04 00 1D 54 A7 66 B6 04 01 00 00 F3 AF B5 B9 4A 16 20 58 [14:57:13]CommunicateWithHost err = 0 [14:57:13]CheckOFDResponse [14:57:13]1017 (14) - 77093643461234 [14:57:13]1041 (16) - 0000000000874937 [14:57:13]1040 (4) - 27148 [14:57:13]1012 (4) - 29.07.2024 08:34 [14:57:13]1206 (1) - 0 [14:57:13]OFD Sender: Remove packet 27148 [14:57:13]ProducePacketName [14:57:13]name=ofd_packets/00027148 [14:57:13]NVStorageDeleteData [14:57:13]Write to MH i2c: 01 00 00 9B 1A B5 [14:57:13]Write i2c OK [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: 01 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: 01 07 00 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: 01 07 00 9B 1A 00 00 00 00 00 DA 0C A2 [14:57:13]RasterBufferAndPrint [14:57:13]line [14:57:13]line [14:57:13]line [14:57:13]line [14:57:13]line [14:57:13]written 0, free lines is 3295 [14:57:13]MH_Cut [14:57:13]Write to MH i2c: D1 01 00 A2 1A 01 8E [14:57:13]Write i2c OK [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: D1 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: D1 01 00 [14:57:13]MH_I2C_Read... [14:57:13]Read from MH i2c: D1 01 00 A2 1A 00 8D [14:57:13]Write to MH i2c: 01 00 00 A3 1A BD [14:57:13]Write i2c OK [14:57:13]MH_I2C_Read... [14:57:13]OFD Sender: No OFD packet to send [14:57:14]*** Cut start [14:57:14]*** Partial cut [14:57:14]*** CUTSNS_PIN = 1 [14:57:14]*** CUTSNS_PIN = 0 [14:57:14]*** Brake cut motor [14:57:14]Read from MH i2c: 01 [14:57:14]MH_I2C_Read... [14:57:14]*** Stop cut motor [14:57:14]*** Cut end [14:57:14]Read from MH i2c: 01 07 00 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: 01 07 00 A3 1A 00 00 00 00 00 FF 0F D2 [14:57:14]process_action close_receipt done [14:57:14]requested_data is exist [14:57:14]produce_requested_data [14:57:14]requested_item fm.sn is exist - process it [14:57:14]wFMCommunicate request_size=4 [14:57:14]MH_SAM_APDU [14:57:14]CAPDU: 80 11 00 00 [14:57:14]Write to MH i2c: E2 08 00 A4 1A 80 11 00 00 00 00 00 00 38 [14:57:14]Write i2c OK [14:57:14]MH_I2C_Read... [14:57:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:14]Read from MH i2c: E2 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: E2 17 00 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: E2 17 00 A4 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 91 [14:57:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [14:57:14]wFMCommunicate OK [14:57:14]requested_item fd.num is exist - process it [14:57:14]SAM_PROTO_GetFieldsCounters [14:57:14]wFMCommunicate request_size=4 [14:57:14]MH_SAM_APDU [14:57:14]CAPDU: 80 13 00 00 [14:57:14]Write to MH i2c: E2 08 00 A5 1A 80 13 00 00 00 00 00 00 3B [14:57:14]Write i2c OK [14:57:14]MH_I2C_Read... [14:57:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:14]Read from MH i2c: E2 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: E2 62 00 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: E2 62 00 A5 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 0C 6A 00 00 0E 04 04 00 B2 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 25 [14:57:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 0C 6A 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:57:14]wFMCommunicate OK [14:57:14]SAM_PROTO_GetFieldsCounters done [14:57:14]requested_item shift.num is exist - process it [14:57:14]requested_item shift.opened is exist - process it [14:57:14]req_shift_opened [14:57:14]FM_GetShiftState [14:57:14]SAM_PROTO_GetShiftState [14:57:14]wFMCommunicate request_size=4 [14:57:14]MH_SAM_APDU [14:57:14]CAPDU: 80 13 01 00 [14:57:14]Write to MH i2c: E2 08 00 A6 1A 80 13 01 00 00 00 00 00 3D [14:57:14]Write i2c OK [14:57:14]MH_I2C_Read... [14:57:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:14]Read from MH i2c: E2 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: E2 0E 00 [14:57:14]MH_I2C_Read... [14:57:14]Read from MH i2c: E2 0E 00 A6 1A 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 BE [14:57:14]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [14:57:14]wFMCommunicate OK [14:57:14]SAM_PROTO_GetShiftState done [14:57:14]FM_GetShiftState done [14:57:14]req_shift_opened done [14:57:14]requested_item shift.open_date is exist - process it [14:57:14]req_shift_open_date [14:57:14]req_shift_open_date done [14:57:14]produce_requested_data done [14:57:14]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27148,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [14:57:14]process_action_free close_receipt [14:57:14]json_value_free [14:57:14]json_value_free done [14:57:14]process_json_proto returns [14:57:14]Send response to host [14:57:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27148,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [14:57:14]free response buf [14:57:14]execute_script done [14:57:14]execute_script returns [14:57:14]free content buf [14:57:14]Sock 8.Close socket [14:57:14]Sock 8.Thread stoped [14:57:18]OFD Sender: No OFD packet to send [14:57:23]OFD Sender: No OFD packet to send [14:57:28]OFD Sender: No OFD packet to send [14:57:33]OFD Sender: No OFD packet to send [14:57:38]OFD Sender: No OFD packet to send [14:57:43]OFD Sender: No OFD packet to send [14:57:48]OFD Sender: No OFD packet to send [14:57:53]OFD Sender: No OFD packet to send [14:57:58]OFD Sender: No OFD packet to send [14:58:03]OFD Sender: No OFD packet to send [14:58:08]OFD Sender: No OFD packet to send [14:58:13]OFD Sender: No OFD packet to send [14:58:18]OFD Sender: No OFD packet to send [14:58:23]OFD Sender: No OFD packet to send [14:58:28]OFD Sender: No OFD packet to send [14:58:33]OFD Sender: No OFD packet to send [14:58:38]OFD Sender: No OFD packet to send [14:58:43]OFD Sender: No OFD packet to send [14:58:48]OFD Sender: No OFD packet to send [14:58:53]OFD Sender: No OFD packet to send [14:58:58]OFD Sender: No OFD packet to send [14:59:03]OFD Sender: No OFD packet to send [14:59:08]OFD Sender: No OFD packet to send [14:59:13]OFD Sender: No OFD packet to send [14:59:18]OFD Sender: No OFD packet to send [14:59:23]OFD Sender: No OFD packet to send [14:59:28]OFD Sender: No OFD packet to send [14:59:33]OFD Sender: No OFD packet to send [14:59:38]OFD Sender: No OFD packet to send [14:59:43]OFD Sender: No OFD packet to send [14:59:48]OFD Sender: No OFD packet to send [14:59:49]accept exits with 9 [14:59:49]New connection [14:59:49]New thread 3066785124 created [14:59:49]Thread 3066928484 joined [14:59:49]Waiting for new connection... [14:59:49] Sock 9.Parse request [14:59:49]Sock 9.Check first char [14:59:49]Sock 9.First char is OK [14:59:49]request: POST /json_proto HTTP/1.0 [14:59:49]Method: POST [14:59:49]URL: /json_proto [14:59:49]Method is POST - this is cgi request [14:59:49]url: /json_proto [14:59:49]query_string will be loaded in cgi processing [14:59:49]execute_cgi json_proto POST (null) [14:59:49]execute_cgi path=json_proto method=POST [14:59:49]POST find Content-Length [14:59:49]Host: 172.17.45.8:8080 [14:59:49]Content-Length: 821 [14:59:49]Content-Type: application/json [14:59:49] [14:59:49]POST finish read [14:59:49]Found Content-Length = 821 [14:59:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150547", "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 }]} ], "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" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:49]execute_script... [14:59: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)150547", "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 }]} ], "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" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:49]POST & json_proto [14:59:49]process_json_proto [14:59:49]json parsed OK: [14:59:49]protocol is kg_v1.0 [14:59:49]action value=close_receipt [14:59:49]process_action close_receipt [14:59:49]cmd_close_receipt [14:59:49]MH_GetDate [14:59:49]Write to MH i2c: F0 00 00 A7 1A B0 [14:59:49]Write i2c OK [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: F0 [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: F0 09 00 [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: F0 09 00 A7 1A 00 6B AE A7 66 A6 1F 7F 64 87 [14:59:49]GetLastDocTimeStamp 1722265037 [14:59:49]current date 1722265195 [14:59:49]FM_GetShiftState [14:59:49]SAM_PROTO_GetShiftState [14:59:49]wFMCommunicate request_size=4 [14:59:49]MH_SAM_APDU [14:59:49]CAPDU: 80 13 01 00 [14:59:49]Write to MH i2c: E2 08 00 A8 1A 80 13 01 00 00 00 00 00 3F [14:59:49]Write i2c OK [14:59:49]MH_I2C_Read... [14:59:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:49]Read from MH i2c: E2 [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: E2 0E 00 [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: E2 0E 00 A8 1A 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 C0 [14:59:49]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [14:59:49]wFMCommunicate OK [14:59:49]SAM_PROTO_GetShiftState done [14:59:49]FM_GetShiftState done [14:59:49]opened in 1722213509 [14:59:49]opened+sec_in_day 1722299909 [14:59:49]quantity*price = 11500 [14:59:49]sum+1 = 11501 [14:59:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 0.00 Безнал.: 115.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 52 29.07.2024 14:59 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874937 ФД: 27149 ФПД: 4009304549876 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T145955&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27149&fm=4009304549876&tin=02508201610067®Number=0000000000092663&sum=11500 0 [14:59:50]StoreToDocumentArchive [14:59:50]shift 434 fd 27149 [14:59:50]save to /storage/0434/doc_00027149 [14:59:50]save last doc name /storage/0434/doc_00027149 to /storage/kkm_last_doc_name [14:59:50]save OK [14:59:50]Clear old archive folders... [14:59:50]ProcessDocumentItem done err = 0, tmpTLVsize=280 [14:59:50]tlvbuf is 001ACBB0 [14:59:50]SAM_PROTO_ClearQueue [14:59:50]wFMCommunicate request_size=4 [14:59:50]MH_SAM_APDU [14:59:50]CAPDU: 80 09 00 00 [14:59:50]Write to MH i2c: E2 08 00 B5 1A 80 09 00 00 00 00 00 00 41 [14:59:51]Write i2c OK [14:59:51]MH_I2C_Read... [14:59:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:51]Read from MH i2c: E2 [14:59:51]MH_I2C_Read... [14:59:51]Read from MH i2c: E2 03 00 [14:59:51]MH_I2C_Read... [14:59:51]Read from MH i2c: E2 03 00 B5 1A 00 90 00 43 [14:59:51]RAPDU: 90 00 [14:59:51]wFMCommunicate OK [14:59:51]SAM_PROTO_ClearQueue done [14:59:51]KKMCreateOFDPacket [14:59:51]OFDProtocolAddRootSTLVToBuf [14:59:51]FM_MakeSignedData [14:59:51]FM_MakeSignedData [14:59:51]SAM_PROTO_SignData [14:59:51]wFMCommunicate request_size=4 [14:59:51]MH_SAM_APDU [14:59:51]CAPDU: 80 0D 01 02 [14:59:51]Write to MH i2c: E2 08 00 B6 1A 80 0D 01 02 00 00 00 00 49 [14:59:51]Write i2c OK [14:59:51]MH_I2C_Read... [14:59:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:51]Read from MH i2c: E2 [14:59:51]MH_I2C_Read... [14:59:51]Read from MH i2c: E2 03 00 [14:59:51]MH_I2C_Read... [14:59:51]Read from MH i2c: E2 03 00 B6 1A 00 90 00 44 [14:59:51]RAPDU: 90 00 [14:59:51]wFMCommunicate OK [14:59:51]wFMCommunicate request_size=255 [14:59:51]MH_SAM_APDU [14:59:51]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 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 34 00 00 00 F4 03 04 00 6B AE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 [14:59:51]Write to MH i2c: E2 02 01 B7 1A 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 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 34 00 00 00 F4 03 04 00 6B AE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 00 00 97 [14:59:51]Write i2c OK [14:59:51]MH_I2C_Read... [14:59:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:51]Read from MH i2c: E2 [14:59:51]MH_I2C_Read... [14:59:51]Read from MH i2c: E2 03 00 [14:59:51]MH_I2C_Read... [14:59:51]Read from MH i2c: E2 03 00 B7 1A 00 90 00 45 [14:59:51]RAPDU: 90 00 [14:59:51]wFMCommunicate OK [14:59:51]wFMCommunicate request_size=39 [14:59:51]MH_SAM_APDU [14:59:51]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 0D 6A 00 00 35 04 06 00 03 A5 7D 2C 69 F4 [14:59:51]Write to MH i2c: E2 2A 00 B8 1A 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 0D 6A 00 00 35 04 06 00 03 A5 7D 2C 69 F4 00 00 32 [14:59:51]Write i2c OK [14:59:51]MH_I2C_Read... [14:59:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:51]Read from MH i2c: E2 [14:59:51]MH_I2C_Read... [14:59:51]Read from MH i2c: E2 03 00 [14:59:51]MH_I2C_Read... [14:59:51]Read from MH i2c: E2 03 00 B8 1A 00 90 00 46 [14:59:51]RAPDU: 90 00 [14:59:51]wFMCommunicate OK [14:59:51]wFMCommunicate request_size=4 [14:59:51]MH_SAM_APDU [14:59:51]CAPDU: 80 0D 03 02 [14:59:51]Write to MH i2c: E2 08 00 B9 1A 80 0D 03 02 00 00 00 00 4E [14:59:51]Write i2c OK [14:59:51]MH_I2C_Read... [14:59:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:51]Read from MH i2c: E2 [14:59:51]MH_I2C_Read... [14:59:51]Read from MH i2c: E2 0B 00 [14:59:51]MH_I2C_Read... [14:59:51]Read from MH i2c: E2 0B 00 B9 1A 00 14 92 E3 FA 65 11 BC BD 90 00 C1 [14:59:51]RAPDU: 14 92 E3 FA 65 11 BC BD 90 00 [14:59:51]wFMCommunicate OK [14:59:51]SAM_PROTO_SignData done [14:59:51]FM_MakeSignedData done [14:59:51]CreateOFDProtocolMessage [14:59:51]wFMCommunicate request_size=4 [14:59:51]MH_SAM_APDU [14:59:51]CAPDU: 80 11 00 00 [14:59:51]Write to MH i2c: E2 08 00 BA 1A 80 11 00 00 00 00 00 00 4E [14:59:51]Write i2c OK [14:59:51]MH_I2C_Read... [14:59:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:51]Read from MH i2c: E2 [14:59:51]MH_I2C_Read... [14:59:51]Read from MH i2c: E2 17 00 [14:59:51]MH_I2C_Read... [14:59:51]Read from MH i2c: E2 17 00 BA 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 A7 [14:59:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [14:59:51]wFMCommunicate OK [14:59:51]CreateOFDProtocolMessage done [14:59:51]OFDSenderStorePacket 27149 [14:59:51]StoreOFDPacket docnum=27149 [14:59:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 2C 01 00 00 87 BF 24 01 4E DF 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 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 34 00 00 00 F4 03 04 00 6B AE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 0D 6A 00 00 35 04 06 00 03 A5 7D 2C 69 F4 14 92 E3 FA 65 11 BC BD [14:59:51]CheckFolder [14:59:51]dirname=/storage/ofd_packets [14:59:51]CheckFolder done [14:59:51]ProducePacketName [14:59:51]name=ofd_packets/00027149 [14:59:51]NVStorageSaveData ofd_packets/00027149 [14:59:51]File name is /storage/ofd_packets/00027149 [14:59:51]Write 330 bytes [14:59:51]NVStorageSaveData done [14:59:51]OFDSenderStorePacket done [14:59:51]KKMCreateOFDPacket done [14:59:51]NVStorageSaveData kkm_last_timestamp [14:59:51]File name is /storage/kkm_last_timestamp [14:59:51]Write 4 bytes [14:59:51]NVStorageSaveData done [14:59:51]ExternCall_PrintAddStr [14:59:51]wPrintStart [14:59:51]Write to MH i2c: 01 00 00 BB 1A D5 [14:59:51]Write i2c OK [14:59:51]MH_I2C_Read... [14:59:51]Read from MH i2c: 01 [14:59:51]MH_I2C_Read... [14:59:51]Read from MH i2c: 01 07 00 [14:59:51]MH_I2C_Read... [14:59:51]Read from MH i2c: 01 07 00 BB 1A 00 00 00 00 00 FF 0F EA [14:59:51]RasterBufferAndPrint [14:59:51]line Счет N : (3)150547 [14:59:51]line ИНН: 02508201610067 [14:59:51]line Контрольно-Кассовый Чек [14:59:51]line ПРОДАЖА [14:59:51]line Товар: 2000036210013 [14:59:51]line Кофе Капучино (GABB TRADE) [14:59:51]line 1.000 * 115.00 [14:59:51]line = 115.00 [14:59:51]line НДС 12% НСП 1% [14:59:51]line > о реализуемом товаре [14:59:51]line ИТОГО: 115.00 [14:59:51]line НСП 1% : 1.02 [14:59:51]line НДС 12% : 12.21 [14:59:51]line Наличными: 0.00 [14:59:51]line Безнал.: 115.00 [14:59:51]line Место: АЗС № 134 "Партнер Нефть" [14:59:51]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [14:59:51]line СНО: Общий режим [14:59:51]line Чек 52 29.07.2024 14:59 [14:59:51]line Смена: 434 ФФД: 1.0 [14:59:51]line ЗНМ: 0300000043 [14:59:51]line РНМ: 0000000000092663 [14:59:51]line Версия ККМ: 001 [14:59:51]line Платежная система: Бакай Банк [14:59:51]line ФМ: 0000000000874937 [14:59:51]line ФД: 27149 [14:59:51]line ФПД: 4009304549876 [14:59:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T145955&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27149&fm=4009304549876&tin=02508201610067®Number=0000000000092663&sum=11500 [14:59:51]line 0 [14:59:51]written 0, free lines is 4095 [14:59:51]OFD Sender: Processing packet 27149 [packets to send 9, broken 8] [14:59:51]ProducePacketName [14:59:51]name=ofd_packets/00027149 [14:59:51]OFD Sender: To server: pG, [14:59:51]CommunicateWithHost lk.salyk.kg:30040 [14:59:51]ConnectInit lk.salyk.kg [14:59:51]Connected sock=11 [14:59:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 2C 01 00 00 87 BF 24 01 4E DF 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 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 34 00 00 00 F4 03 04 00 6B AE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 0D 6A 00 00 35 04 06 00 03 A5 7D 2C 69 F4 14 92 E3 FA 65 11 BC BD [14:59:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 53 D4 47 00 F5 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 0D 6A 00 00 F4 03 04 00 BC 54 A7 66 B6 04 01 00 00 95 C2 A2 F1 43 CE 14 11 [14:59:51]CommunicateWithHost err = 0 [14:59:51]CheckOFDResponse [14:59:51]1017 (14) - 77093643461234 [14:59:51]1041 (16) - 0000000000874937 [14:59:51]1040 (4) - 27149 [14:59:51]1012 (4) - 29.07.2024 08:37 [14:59:51]1206 (1) - 0 [14:59:51]OFD Sender: Remove packet 27149 [14:59:51]ProducePacketName [14:59:51]name=ofd_packets/00027149 [14:59:51]NVStorageDeleteData [14:59:52]Write to MH i2c: 01 00 00 E4 1A FE [14:59:52]Write i2c OK [14:59:52]MH_I2C_Read... [14:59:52]Read from MH i2c: 01 [14:59:52]MH_I2C_Read... [14:59:52]Read from MH i2c: 01 07 00 [14:59:52]MH_I2C_Read... [14:59:52]Read from MH i2c: 01 07 00 E4 1A 00 00 00 00 00 CF 0C E0 [14:59:52]RasterBufferAndPrint [14:59:52]line [14:59:52]line [14:59:52]line [14:59:52]line [14:59:52]line [14:59:52]written 0, free lines is 3285 [14:59:52]MH_Cut [14:59:52]Write to MH i2c: D1 01 00 EB 1A 01 D7 [14:59:52]Write i2c OK [14:59:52]MH_I2C_Read... [14:59:52]Read from MH i2c: D1 [14:59:52]MH_I2C_Read... [14:59:52]Read from MH i2c: D1 01 00 [14:59:52]MH_I2C_Read... [14:59:52]Read from MH i2c: D1 01 00 EB 1A 00 D6 [14:59:52]Write to MH i2c: 01 00 00 EC 1A 06 [14:59:52]Write i2c OK [14:59:52]MH_I2C_Read... [14:59:52]OFD Sender: No OFD packet to send [14:59:52]*** Cut start [14:59:52]*** Partial cut [14:59:52]*** CUTSNS_PIN = 1 [14:59:52]*** CUTSNS_PIN = 0 [14:59:53]*** Brake cut motor [14:59:53]Read from MH i2c: 01 [14:59:53]MH_I2C_Read... [14:59:53]*** Stop cut motor [14:59:53]*** Cut end [14:59:53]Read from MH i2c: 01 07 00 [14:59:53]MH_I2C_Read... [14:59:53]Read from MH i2c: 01 07 00 EC 1A 00 00 00 00 00 FF 0F 1B [14:59:53]process_action close_receipt done [14:59:53]requested_data is exist [14:59:53]produce_requested_data [14:59:53]requested_item fm.sn is exist - process it [14:59:53]wFMCommunicate request_size=4 [14:59:53]MH_SAM_APDU [14:59:53]CAPDU: 80 11 00 00 [14:59:53]Write to MH i2c: E2 08 00 ED 1A 80 11 00 00 00 00 00 00 81 [14:59:53]Write i2c OK [14:59:53]MH_I2C_Read... [14:59:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:53]Read from MH i2c: E2 [14:59:53]MH_I2C_Read... [14:59:53]Read from MH i2c: E2 17 00 [14:59:53]MH_I2C_Read... [14:59:53]Read from MH i2c: E2 17 00 ED 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 DA [14:59:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [14:59:53]wFMCommunicate OK [14:59:53]requested_item fd.num is exist - process it [14:59:53]SAM_PROTO_GetFieldsCounters [14:59:53]wFMCommunicate request_size=4 [14:59:53]MH_SAM_APDU [14:59:53]CAPDU: 80 13 00 00 [14:59:53]Write to MH i2c: E2 08 00 EE 1A 80 13 00 00 00 00 00 00 84 [14:59:53]Write i2c OK [14:59:53]MH_I2C_Read... [14:59:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:53]Read from MH i2c: E2 [14:59:53]MH_I2C_Read... [14:59:53]Read from MH i2c: E2 62 00 [14:59:53]MH_I2C_Read... [14:59:53]Read from MH i2c: E2 62 00 EE 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 0D 6A 00 00 0E 04 04 00 B2 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 72 [14:59:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 0D 6A 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:59:53]wFMCommunicate OK [14:59:53]SAM_PROTO_GetFieldsCounters done [14:59:53]requested_item shift.num is exist - process it [14:59:53]requested_item shift.opened is exist - process it [14:59:53]req_shift_opened [14:59:53]FM_GetShiftState [14:59:53]SAM_PROTO_GetShiftState [14:59:53]wFMCommunicate request_size=4 [14:59:53]MH_SAM_APDU [14:59:53]CAPDU: 80 13 01 00 [14:59:53]Write to MH i2c: E2 08 00 EF 1A 80 13 01 00 00 00 00 00 86 [14:59:53]Write i2c OK [14:59:53]MH_I2C_Read... [14:59:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:53]Read from MH i2c: E2 [14:59:53]MH_I2C_Read... [14:59:53]Read from MH i2c: E2 0E 00 [14:59:53]MH_I2C_Read... [14:59:53]Read from MH i2c: E2 0E 00 EF 1A 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 07 [14:59:53]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [14:59:53]wFMCommunicate OK [14:59:53]SAM_PROTO_GetShiftState done [14:59:53]FM_GetShiftState done [14:59:53]req_shift_opened done [14:59:53]requested_item shift.open_date is exist - process it [14:59:53]req_shift_open_date [14:59:53]req_shift_open_date done [14:59:53]produce_requested_data done [14:59:53]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27149,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [14:59:53]process_action_free close_receipt [14:59:53]json_value_free [14:59:53]json_value_free done [14:59:53]process_json_proto returns [14:59:53]Send response to host [14:59:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27149,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [14:59:53]free response buf [14:59:53]execute_script done [14:59:53]execute_script returns [14:59:53]free content buf [14:59:53]Sock 9.Close socket [14:59:53]Sock 9.Thread stoped [14:59:57]OFD Sender: No OFD packet to send [15:00:02]OFD Sender: No OFD packet to send [15:00:07]OFD Sender: No OFD packet to send [15:00:12]OFD Sender: No OFD packet to send [15:00:17]OFD Sender: No OFD packet to send [15:00:22]OFD Sender: No OFD packet to send [15:00:27]OFD Sender: No OFD packet to send [15:00:32]OFD Sender: No OFD packet to send [15:00:37]OFD Sender: No OFD packet to send [15:00:42]OFD Sender: No OFD packet to send [15:00:47]OFD Sender: No OFD packet to send [15:00:52]OFD Sender: No OFD packet to send [15:00:57]OFD Sender: No OFD packet to send [15:01:02]OFD Sender: No OFD packet to send [15:01:07]OFD Sender: No OFD packet to send [15:01:12]OFD Sender: No OFD packet to send [15:01:17]OFD Sender: No OFD packet to send [15:01:22]OFD Sender: No OFD packet to send [15:01:27]OFD Sender: No OFD packet to send [15:01:32]OFD Sender: No OFD packet to send [15:01:37]OFD Sender: No OFD packet to send [15:01:42]OFD Sender: No OFD packet to send [15:01:47]OFD Sender: No OFD packet to send [15:01:52]OFD Sender: No OFD packet to send [15:01:57]OFD Sender: No OFD packet to send [15:02:02]OFD Sender: No OFD packet to send [15:02:07]OFD Sender: No OFD packet to send [15:02:12]OFD Sender: No OFD packet to send [15:02:17]OFD Sender: No OFD packet to send [15:02:22]OFD Sender: No OFD packet to send [15:02:27]OFD Sender: No OFD packet to send [15:02:32]OFD Sender: No OFD packet to send [15:02:37]OFD Sender: No OFD packet to send [15:02:42]OFD Sender: No OFD packet to send [15:02:47]OFD Sender: No OFD packet to send [15:02:52]OFD Sender: No OFD packet to send [15:02:57]OFD Sender: No OFD packet to send [15:03:02]OFD Sender: No OFD packet to send [15:03:07]OFD Sender: No OFD packet to send [15:03:12]OFD Sender: No OFD packet to send [15:03:17]OFD Sender: No OFD packet to send [15:03:22]OFD Sender: No OFD packet to send [15:03:25]accept exits with 8 [15:03:25]New connection [15:03:25]New thread 3066928484 created [15:03:25]Thread 3066785124 joined [15:03:25]Waiting for new connection... [15:03:25] Sock 8.Parse request [15:03:25]Sock 8.Check first char [15:03:25]Sock 8.First char is OK [15:03:25]request: POST /json_proto HTTP/1.0 [15:03:25]Method: POST [15:03:25]URL: /json_proto [15:03:25]Method is POST - this is cgi request [15:03:25]url: /json_proto [15:03:25]query_string will be loaded in cgi processing [15:03:25]execute_cgi json_proto POST (null) [15:03:25]execute_cgi path=json_proto method=POST [15:03:25]POST find Content-Length [15:03:25]Host: 172.17.45.8:8080 [15:03:25]Content-Length: 630 [15:03:25]Content-Type: application/json [15:03:25] [15:03:25]POST finish read [15:03:25]Found Content-Length = 630 [15:03:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150548", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\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" ] } } [15:03:25]execute_script... [15:03: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)150548", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\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" ] } } [15:03:25]POST & json_proto [15:03:25]process_json_proto [15:03:25]json parsed OK: [15:03:25]protocol is kg_v1.0 [15:03:25]action value=close_receipt [15:03:25]process_action close_receipt [15:03:25]cmd_close_receipt [15:03:25]MH_GetDate [15:03:25]Write to MH i2c: F0 00 00 F0 1A F9 [15:03:25]Write i2c OK [15:03:25]MH_I2C_Read... [15:03:25]Read from MH i2c: F0 [15:03:25]MH_I2C_Read... [15:03:25]Read from MH i2c: F0 09 00 [15:03:25]MH_I2C_Read... [15:03:25]Read from MH i2c: F0 09 00 F0 1A 00 44 AF A7 66 A6 1F 7F 64 AA [15:03:25]GetLastDocTimeStamp 1722265195 [15:03:25]current date 1722265412 [15:03:25]FM_GetShiftState [15:03:25]SAM_PROTO_GetShiftState [15:03:25]wFMCommunicate request_size=4 [15:03:25]MH_SAM_APDU [15:03:25]CAPDU: 80 13 01 00 [15:03:25]Write to MH i2c: E2 08 00 F1 1A 80 13 01 00 00 00 00 00 88 [15:03:25]Write i2c OK [15:03:25]MH_I2C_Read... [15:03:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:25]Read from MH i2c: E2 [15:03:25]MH_I2C_Read... [15:03:25]Read from MH i2c: E2 0E 00 [15:03:25]MH_I2C_Read... [15:03:25]Read from MH i2c: E2 0E 00 F1 1A 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 09 [15:03:25]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [15:03:25]wFMCommunicate OK [15:03:25]SAM_PROTO_GetShiftState done [15:03:25]FM_GetShiftState done [15:03:25]opened in 1722213509 [15:03:25]opened+sec_in_day 1722299909 [15:03:25]quantity*price = 5000 [15:03:25]sum+1 = 5001 [15:03:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 53 29.07.2024 15:03 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27150 ФПД: 275493174873346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T150332&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27150&fm=275493174873346&tin=02508201610067®Number=0000000000092663&sum=5000 0 [15:03:27]StoreToDocumentArchive [15:03:27]shift 434 fd 27150 [15:03:27]save to /storage/0434/doc_00027150 [15:03:27]save last doc name /storage/0434/doc_00027150 to /storage/kkm_last_doc_name [15:03:27]save OK [15:03:27]Clear old archive folders... [15:03:27]ProcessDocumentItem done err = 0, tmpTLVsize=269 [15:03:27]tlvbuf is 0021B3C0 [15:03:27]SAM_PROTO_ClearQueue [15:03:27]wFMCommunicate request_size=4 [15:03:27]MH_SAM_APDU [15:03:27]CAPDU: 80 09 00 00 [15:03:27]Write to MH i2c: E2 08 00 FE 1A 80 09 00 00 00 00 00 00 8A [15:03:27]Write i2c OK [15:03:27]MH_I2C_Read... [15:03:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:27]Read from MH i2c: E2 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: E2 03 00 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: E2 03 00 FE 1A 00 90 00 8C [15:03:27]RAPDU: 90 00 [15:03:27]wFMCommunicate OK [15:03:27]SAM_PROTO_ClearQueue done [15:03:27]KKMCreateOFDPacket [15:03:27]OFDProtocolAddRootSTLVToBuf [15:03:27]FM_MakeSignedData [15:03:27]FM_MakeSignedData [15:03:27]SAM_PROTO_SignData [15:03:27]wFMCommunicate request_size=4 [15:03:27]MH_SAM_APDU [15:03:27]CAPDU: 80 0D 01 02 [15:03:27]Write to MH i2c: E2 08 00 FF 1A 80 0D 01 02 00 00 00 00 92 [15:03:27]Write i2c OK [15:03:27]MH_I2C_Read... [15:03:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:27]Read from MH i2c: E2 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: E2 03 00 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: E2 03 00 FF 1A 00 90 00 8D [15:03:27]RAPDU: 90 00 [15:03:27]wFMCommunicate OK [15:03:27]wFMCommunicate request_size=255 [15:03:27]MH_SAM_APDU [15:03:27]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 35 00 00 00 F4 03 04 00 44 AF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [15:03:27]Write to MH i2c: E2 02 01 00 1B 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 35 00 00 00 F4 03 04 00 44 AF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 93 [15:03:27]Write i2c OK [15:03:27]MH_I2C_Read... [15:03:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:27]Read from MH i2c: E2 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: E2 03 00 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: E2 03 00 00 1B 00 90 00 8F [15:03:27]RAPDU: 90 00 [15:03:27]wFMCommunicate OK [15:03:27]wFMCommunicate request_size=28 [15:03:27]MH_SAM_APDU [15:03:27]CAPDU: 80 0D 02 02 17 37 34 39 33 37 10 04 04 00 0E 6A 00 00 35 04 06 00 FA 8F 40 D3 8D 02 [15:03:27]Write to MH i2c: E2 1F 00 01 1B 80 0D 02 02 17 00 37 34 39 33 37 10 04 04 00 0E 6A 00 00 35 04 06 00 FA 8F 40 D3 8D 02 00 00 CC [15:03:27]Write i2c OK [15:03:27]MH_I2C_Read... [15:03:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:27]Read from MH i2c: E2 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: E2 03 00 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: E2 03 00 01 1B 00 90 00 90 [15:03:27]RAPDU: 90 00 [15:03:27]wFMCommunicate OK [15:03:27]wFMCommunicate request_size=4 [15:03:27]MH_SAM_APDU [15:03:27]CAPDU: 80 0D 03 02 [15:03:27]Write to MH i2c: E2 08 00 02 1B 80 0D 03 02 00 00 00 00 98 [15:03:27]Write i2c OK [15:03:27]MH_I2C_Read... [15:03:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:27]Read from MH i2c: E2 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: E2 0B 00 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: E2 0B 00 02 1B 00 F9 1E 31 A2 84 7C 22 05 90 00 AA [15:03:27]RAPDU: F9 1E 31 A2 84 7C 22 05 90 00 [15:03:27]wFMCommunicate OK [15:03:27]SAM_PROTO_SignData done [15:03:27]FM_MakeSignedData done [15:03:27]CreateOFDProtocolMessage [15:03:27]wFMCommunicate request_size=4 [15:03:27]MH_SAM_APDU [15:03:27]CAPDU: 80 11 00 00 [15:03:27]Write to MH i2c: E2 08 00 03 1B 80 11 00 00 00 00 00 00 98 [15:03:27]Write i2c OK [15:03:27]MH_I2C_Read... [15:03:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:27]Read from MH i2c: E2 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: E2 17 00 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: E2 17 00 03 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 F1 [15:03:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [15:03:27]wFMCommunicate OK [15:03:27]CreateOFDProtocolMessage done [15:03:27]OFDSenderStorePacket 27150 [15:03:27]StoreOFDPacket docnum=27150 [15:03:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 21 01 00 00 99 C9 19 01 D2 57 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 35 00 00 00 F4 03 04 00 44 AF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 0E 6A 00 00 35 04 06 00 FA 8F 40 D3 8D 02 F9 1E 31 A2 84 7C 22 05 [15:03:27]CheckFolder [15:03:27]dirname=/storage/ofd_packets [15:03:27]CheckFolder done [15:03:27]ProducePacketName [15:03:27]name=ofd_packets/00027150 [15:03:27]NVStorageSaveData ofd_packets/00027150 [15:03:27]File name is /storage/ofd_packets/00027150 [15:03:27]Write 319 bytes [15:03:27]NVStorageSaveData done [15:03:27]OFDSenderStorePacket done [15:03:27]KKMCreateOFDPacket done [15:03:27]NVStorageSaveData kkm_last_timestamp [15:03:27]File name is /storage/kkm_last_timestamp [15:03:27]Write 4 bytes [15:03:27]NVStorageSaveData done [15:03:27]ExternCall_PrintAddStr [15:03:27]wPrintStart [15:03:27]Write to MH i2c: 01 00 00 04 1B 1F [15:03:27]Write i2c OK [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: 01 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: 01 07 00 [15:03:27]MH_I2C_Read... [15:03:27]Read from MH i2c: 01 07 00 04 1B 00 00 00 00 00 FF 0F 34 [15:03:27]RasterBufferAndPrint [15:03:27]line Счет N : (3)150548 [15:03:27]line ИНН: 02508201610067 [15:03:27]line Контрольно-Кассовый Чек [15:03:27]line ПРОДАЖА [15:03:27]line Товар: 4700000160358 [15:03:27]line Вода Легенда 1л [15:03:27]line 1.000 * 50.00 [15:03:27]line = 50.00 [15:03:27]line НДС 12% НСП 1% [15:03:27]line > о реализуемом товаре [15:03:27]line ИТОГО: 50.00 [15:03:27]line НСП 1% : 0.44 [15:03:27]line НДС 12% : 5.31 [15:03:27]line Наличными: 50.00 [15:03:27]line Безнал.: 0.00 [15:03:27]line Место: АЗС № 134 "Партнер Нефть" [15:03:27]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:03:27]line СНО: Общий режим [15:03:27]line Чек 53 29.07.2024 15:03 [15:03:27]line Смена: 434 ФФД: 1.0 [15:03:27]line ЗНМ: 0300000043 [15:03:27]line РНМ: 0000000000092663 [15:03:27]line Версия ККМ: 001 [15:03:27]line ФМ: 0000000000874937 [15:03:27]line ФД: 27150 [15:03:27]line ФПД: 275493174873346 [15:03:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T150332&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27150&fm=275493174873346&tin=02508201610067®Number=0000000000092663&sum=5000 [15:03:27]line 0 [15:03:27]written 0, free lines is 4095 [15:03:27]OFD Sender: Processing packet 27150 [packets to send 9, broken 8] [15:03:27]ProducePacketName [15:03:27]name=ofd_packets/00027150 [15:03:27]OFD Sender: To server: pG, [15:03:27]CommunicateWithHost lk.salyk.kg:30040 [15:03:27]ConnectInit lk.salyk.kg [15:03:28]Connected sock=11 [15:03:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 21 01 00 00 99 C9 19 01 D2 57 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 35 00 00 00 F4 03 04 00 44 AF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 0E 6A 00 00 35 04 06 00 FA 8F 40 D3 8D 02 F9 1E 31 A2 84 7C 22 05 [15:03:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 4F A8 47 00 11 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 34 39 33 37 10 04 04 00 0E 6A 00 00 F4 03 04 00 94 55 A7 66 B6 04 01 00 00 37 BB 14 29 8C 5D E5 0D [15:03:28]CommunicateWithHost err = 0 [15:03:28]CheckOFDResponse [15:03:28]1017 (14) - 77093643461234 [15:03:28]1041 (16) - 0000000000874937 [15:03:28]1040 (4) - 27150 [15:03:28]1012 (4) - 29.07.2024 08:40 [15:03:28]1206 (1) - 0 [15:03:28]OFD Sender: Remove packet 27150 [15:03:28]ProducePacketName [15:03:28]name=ofd_packets/00027150 [15:03:28]NVStorageDeleteData [15:03:28]Write to MH i2c: 01 00 00 2B 1B 46 [15:03:28]Write i2c OK [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: 01 [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: 01 07 00 [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: 01 07 00 2B 1B 00 00 00 00 00 F8 0C 51 [15:03:28]RasterBufferAndPrint [15:03:28]line [15:03:28]line [15:03:28]line [15:03:28]line [15:03:28]line [15:03:28]written 0, free lines is 3326 [15:03:28]MH_Cut [15:03:28]Write to MH i2c: D1 01 00 32 1B 01 1F [15:03:28]Write i2c OK [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: D1 [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: D1 01 00 [15:03:28]MH_I2C_Read... [15:03:28]Read from MH i2c: D1 01 00 32 1B 00 1E [15:03:28]Write to MH i2c: 01 00 00 33 1B 4E [15:03:28]Write i2c OK [15:03:28]MH_I2C_Read... [15:03:28]OFD Sender: No OFD packet to send [15:03:29]*** Cut start [15:03:29]*** Partial cut [15:03:29]*** CUTSNS_PIN = 1 [15:03:29]*** CUTSNS_PIN = 0 [15:03:29]*** Brake cut motor [15:03:29]Read from MH i2c: 01 [15:03:29]MH_I2C_Read... [15:03:29]*** Stop cut motor [15:03:29]*** Cut end [15:03:29]Read from MH i2c: 01 07 00 [15:03:29]MH_I2C_Read... [15:03:29]Read from MH i2c: 01 07 00 33 1B 00 00 00 00 00 FF 0F 63 [15:03:29]process_action close_receipt done [15:03:29]requested_data is exist [15:03:29]produce_requested_data [15:03:29]requested_item fm.sn is exist - process it [15:03:29]wFMCommunicate request_size=4 [15:03:29]MH_SAM_APDU [15:03:29]CAPDU: 80 11 00 00 [15:03:29]Write to MH i2c: E2 08 00 34 1B 80 11 00 00 00 00 00 00 C9 [15:03:29]Write i2c OK [15:03:29]MH_I2C_Read... [15:03:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:29]Read from MH i2c: E2 [15:03:29]MH_I2C_Read... [15:03:29]Read from MH i2c: E2 17 00 [15:03:29]MH_I2C_Read... [15:03:29]Read from MH i2c: E2 17 00 34 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 22 [15:03:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [15:03:29]wFMCommunicate OK [15:03:29]requested_item fd.num is exist - process it [15:03:29]SAM_PROTO_GetFieldsCounters [15:03:29]wFMCommunicate request_size=4 [15:03:29]MH_SAM_APDU [15:03:29]CAPDU: 80 13 00 00 [15:03:29]Write to MH i2c: E2 08 00 35 1B 80 13 00 00 00 00 00 00 CC [15:03:29]Write i2c OK [15:03:29]MH_I2C_Read... [15:03:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:29]Read from MH i2c: E2 [15:03:29]MH_I2C_Read... [15:03:29]Read from MH i2c: E2 62 00 [15:03:29]MH_I2C_Read... [15:03:29]Read from MH i2c: E2 62 00 35 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 0E 6A 00 00 0E 04 04 00 B2 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 BE [15:03:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 0E 6A 00 00 0E 04 04 00 B2 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 [15:03:29]wFMCommunicate OK [15:03:29]SAM_PROTO_GetFieldsCounters done [15:03:29]requested_item shift.num is exist - process it [15:03:29]requested_item shift.opened is exist - process it [15:03:29]req_shift_opened [15:03:29]FM_GetShiftState [15:03:29]SAM_PROTO_GetShiftState [15:03:29]wFMCommunicate request_size=4 [15:03:29]MH_SAM_APDU [15:03:29]CAPDU: 80 13 01 00 [15:03:29]Write to MH i2c: E2 08 00 36 1B 80 13 01 00 00 00 00 00 CE [15:03:29]Write i2c OK [15:03:29]MH_I2C_Read... [15:03:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:29]Read from MH i2c: E2 [15:03:29]MH_I2C_Read... [15:03:29]Read from MH i2c: E2 0E 00 [15:03:29]MH_I2C_Read... [15:03:29]Read from MH i2c: E2 0E 00 36 1B 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 4F [15:03:29]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [15:03:29]wFMCommunicate OK [15:03:29]SAM_PROTO_GetShiftState done [15:03:29]FM_GetShiftState done [15:03:29]req_shift_opened done [15:03:29]requested_item shift.open_date is exist - process it [15:03:29]req_shift_open_date [15:03:29]req_shift_open_date done [15:03:29]produce_requested_data done [15:03:29]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27150,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [15:03:29]process_action_free close_receipt [15:03:29]json_value_free [15:03:29]json_value_free done [15:03:29]process_json_proto returns [15:03:29]Send response to host [15:03:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27150,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [15:03:29]free response buf [15:03:29]execute_script done [15:03:29]execute_script returns [15:03:29]free content buf [15:03:29]Sock 8.Close socket [15:03:29]Sock 8.Thread stoped [15:03:33]OFD Sender: No OFD packet to send [15:03:38]OFD Sender: No OFD packet to send [15:03:43]OFD Sender: No OFD packet to send [15:03:48]OFD Sender: No OFD packet to send [15:03:53]OFD Sender: No OFD packet to send [15:03:58]OFD Sender: No OFD packet to send [15:04:03]OFD Sender: No OFD packet to send [15:04:08]OFD Sender: No OFD packet to send [15:04:13]OFD Sender: No OFD packet to send [15:04:18]OFD Sender: No OFD packet to send [15:04:23]OFD Sender: No OFD packet to send [15:04:28]OFD Sender: No OFD packet to send [15:04:33]OFD Sender: No OFD packet to send [15:04:38]OFD Sender: No OFD packet to send [15:04:43]OFD Sender: No OFD packet to send [15:04:48]OFD Sender: No OFD packet to send [15:04:53]OFD Sender: No OFD packet to send [15:04:58]OFD Sender: No OFD packet to send [15:05:03]OFD Sender: No OFD packet to send [15:05:08]OFD Sender: No OFD packet to send [15:05:13]OFD Sender: No OFD packet to send [15:05:18]OFD Sender: No OFD packet to send [15:05:23]OFD Sender: No OFD packet to send [15:05:28]OFD Sender: No OFD packet to send [15:05:33]OFD Sender: No OFD packet to send [15:05:38]OFD Sender: No OFD packet to send [15:05:43]OFD Sender: No OFD packet to send [15:05:48]OFD Sender: No OFD packet to send [15:05:53]OFD Sender: No OFD packet to send [15:05:58]OFD Sender: No OFD packet to send [15:06:01]accept exits with 9 [15:06:01]New connection [15:06:01]New thread 3066785124 created [15:06:01]Thread 3066928484 joined [15:06:01]Waiting for new connection... [15:06:01] Sock 9.Parse request [15:06:01]Sock 9.Check first char [15:06:01]Sock 9.First char is OK [15:06:01]request: POST /json_proto HTTP/1.0 [15:06:01]Method: POST [15:06:01]URL: /json_proto [15:06:01]Method is POST - this is cgi request [15:06:01]url: /json_proto [15:06:01]query_string will be loaded in cgi processing [15:06:01]execute_cgi json_proto POST (null) [15:06:01]execute_cgi path=json_proto method=POST [15:06:01]POST find Content-Length [15:06:01]Host: 172.17.45.8:8080 [15:06:01]Content-Length: 676 [15:06:01]Content-Type: application/json [15:06:01] [15:06:01]POST finish read [15:06:01]Found Content-Length = 676 [15:06:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150549", "tax_sys" : 0, "items" : [ { "code": "4700003241276", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 \u0422\u0410\u041D 1\u043B", "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" ] } } [15:06:01]execute_script... [15:06:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150549", "tax_sys" : 0, "items" : [ { "code": "4700003241276", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 \u0422\u0410\u041D 1\u043B", "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" ] } } [15:06:01]POST & json_proto [15:06:01]process_json_proto [15:06:01]json parsed OK: [15:06:01]protocol is kg_v1.0 [15:06:01]action value=close_receipt [15:06:01]process_action close_receipt [15:06:01]cmd_close_receipt [15:06:01]MH_GetDate [15:06:01]Write to MH i2c: F0 00 00 37 1B 41 [15:06:01]Write i2c OK [15:06:01]MH_I2C_Read... [15:06:01]Read from MH i2c: F0 [15:06:01]MH_I2C_Read... [15:06:01]Read from MH i2c: F0 09 00 [15:06:01]MH_I2C_Read... [15:06:01]Read from MH i2c: F0 09 00 37 1B 00 E0 AF A7 66 A6 1F 7F 64 8E [15:06:01]GetLastDocTimeStamp 1722265412 [15:06:01]current date 1722265568 [15:06:01]FM_GetShiftState [15:06:01]SAM_PROTO_GetShiftState [15:06:01]wFMCommunicate request_size=4 [15:06:01]MH_SAM_APDU [15:06:01]CAPDU: 80 13 01 00 [15:06:01]Write to MH i2c: E2 08 00 38 1B 80 13 01 00 00 00 00 00 D0 [15:06:01]Write i2c OK [15:06:01]MH_I2C_Read... [15:06:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:01]Read from MH i2c: E2 [15:06:01]MH_I2C_Read... [15:06:01]Read from MH i2c: E2 0E 00 [15:06:01]MH_I2C_Read... [15:06:01]Read from MH i2c: E2 0E 00 38 1B 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 51 [15:06:01]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [15:06:01]wFMCommunicate OK [15:06:01]SAM_PROTO_GetShiftState done [15:06:01]FM_GetShiftState done [15:06:01]opened in 1722213509 [15:06:01]opened+sec_in_day 1722299909 [15:06:01]quantity*price = 11000 [15:06:01]sum+1 = 11001 [15:06:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 54 29.07.2024 15:06 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27151 ФПД: 171722658666579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T150608&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27151&fm=171722658666579&tin=02508201610067®Number=0000000000092663&sum=11000 0 [15:06:03]StoreToDocumentArchive [15:06:03]shift 434 fd 27151 [15:06:03]save to /storage/0434/doc_00027151 [15:06:03]save last doc name /storage/0434/doc_00027151 to /storage/kkm_last_doc_name [15:06:03]save OK [15:06:03]Clear old archive folders... [15:06:03]ProcessDocumentItem done err = 0, tmpTLVsize=284 [15:06:03]tlvbuf is B6EA25D0 [15:06:03]SAM_PROTO_ClearQueue [15:06:03]wFMCommunicate request_size=4 [15:06:03]MH_SAM_APDU [15:06:03]CAPDU: 80 09 00 00 [15:06:03]Write to MH i2c: E2 08 00 45 1B 80 09 00 00 00 00 00 00 D2 [15:06:03]Write i2c OK [15:06:03]MH_I2C_Read... [15:06:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:03]Read from MH i2c: E2 [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: E2 03 00 [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: E2 03 00 45 1B 00 90 00 D4 [15:06:03]RAPDU: 90 00 [15:06:03]wFMCommunicate OK [15:06:03]SAM_PROTO_ClearQueue done [15:06:03]KKMCreateOFDPacket [15:06:03]OFDProtocolAddRootSTLVToBuf [15:06:03]FM_MakeSignedData [15:06:03]FM_MakeSignedData [15:06:03]SAM_PROTO_SignData [15:06:03]wFMCommunicate request_size=4 [15:06:03]MH_SAM_APDU [15:06:03]CAPDU: 80 0D 01 02 [15:06:03]Write to MH i2c: E2 08 00 46 1B 80 0D 01 02 00 00 00 00 DA [15:06:03]Write i2c OK [15:06:03]MH_I2C_Read... [15:06:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:03]Read from MH i2c: E2 [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: E2 03 00 [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: E2 03 00 46 1B 00 90 00 D5 [15:06:03]RAPDU: 90 00 [15:06:03]wFMCommunicate OK [15:06:03]wFMCommunicate request_size=255 [15:06:03]MH_SAM_APDU [15:06:03]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 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB 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 36 00 00 00 F4 03 04 00 E0 AF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 [15:06:03]Write to MH i2c: E2 02 01 47 1B 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 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB 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 36 00 00 00 F4 03 04 00 E0 AF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 00 00 67 [15:06:03]Write i2c OK [15:06:03]MH_I2C_Read... [15:06:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:03]Read from MH i2c: E2 [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: E2 03 00 [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: E2 03 00 47 1B 00 90 00 D6 [15:06:03]RAPDU: 90 00 [15:06:03]wFMCommunicate OK [15:06:03]wFMCommunicate request_size=43 [15:06:03]MH_SAM_APDU [15:06:03]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 0F 6A 00 00 35 04 06 00 9C 2E 4C 11 D8 53 [15:06:03]Write to MH i2c: E2 2E 00 48 1B 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 0F 6A 00 00 35 04 06 00 9C 2E 4C 11 D8 53 00 00 96 [15:06:03]Write i2c OK [15:06:03]MH_I2C_Read... [15:06:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:03]Read from MH i2c: E2 [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: E2 03 00 [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: E2 03 00 48 1B 00 90 00 D7 [15:06:03]RAPDU: 90 00 [15:06:03]wFMCommunicate OK [15:06:03]wFMCommunicate request_size=4 [15:06:03]MH_SAM_APDU [15:06:03]CAPDU: 80 0D 03 02 [15:06:03]Write to MH i2c: E2 08 00 49 1B 80 0D 03 02 00 00 00 00 DF [15:06:03]Write i2c OK [15:06:03]MH_I2C_Read... [15:06:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:03]Read from MH i2c: E2 [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: E2 0B 00 [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: E2 0B 00 49 1B 00 85 FA A9 46 B7 2B 2A 4E 90 00 A8 [15:06:03]RAPDU: 85 FA A9 46 B7 2B 2A 4E 90 00 [15:06:03]wFMCommunicate OK [15:06:03]SAM_PROTO_SignData done [15:06:03]FM_MakeSignedData done [15:06:03]CreateOFDProtocolMessage [15:06:03]wFMCommunicate request_size=4 [15:06:03]MH_SAM_APDU [15:06:03]CAPDU: 80 11 00 00 [15:06:03]Write to MH i2c: E2 08 00 4A 1B 80 11 00 00 00 00 00 00 DF [15:06:03]Write i2c OK [15:06:03]MH_I2C_Read... [15:06:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:03]Read from MH i2c: E2 [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: E2 17 00 [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: E2 17 00 4A 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 38 [15:06:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [15:06:03]wFMCommunicate OK [15:06:03]CreateOFDProtocolMessage done [15:06:03]OFDSenderStorePacket 27151 [15:06:03]StoreOFDPacket docnum=27151 [15:06:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 30 01 00 00 D4 66 28 01 8C F7 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 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB 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 36 00 00 00 F4 03 04 00 E0 AF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 0F 6A 00 00 35 04 06 00 9C 2E 4C 11 D8 53 85 FA A9 46 B7 2B 2A 4E [15:06:03]CheckFolder [15:06:03]dirname=/storage/ofd_packets [15:06:03]CheckFolder done [15:06:03]ProducePacketName [15:06:03]name=ofd_packets/00027151 [15:06:03]NVStorageSaveData ofd_packets/00027151 [15:06:03]File name is /storage/ofd_packets/00027151 [15:06:03]Write 334 bytes [15:06:03]NVStorageSaveData done [15:06:03]OFDSenderStorePacket done [15:06:03]KKMCreateOFDPacket done [15:06:03]NVStorageSaveData kkm_last_timestamp [15:06:03]File name is /storage/kkm_last_timestamp [15:06:03]Write 4 bytes [15:06:03]NVStorageSaveData done [15:06:03]ExternCall_PrintAddStr [15:06:03]wPrintStart [15:06:03]Write to MH i2c: 01 00 00 4B 1B 66 [15:06:03]Write i2c OK [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: 01 [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: 01 07 00 [15:06:03]MH_I2C_Read... [15:06:03]Read from MH i2c: 01 07 00 4B 1B 00 00 00 00 00 FF 0F 7B [15:06:03]RasterBufferAndPrint [15:06:03]line Счет N : (3)150549 [15:06:03]line ИНН: 02508201610067 [15:06:03]line Контрольно-Кассовый Чек [15:06:03]line ПРОДАЖА [15:06:03]line Товар: 4700003241276 [15:06:03]line Напиток Молочный ТАН 1л [15:06:03]line 1.000 * 110.00 [15:06:03]line = 110.00 [15:06:03]line НДС 12% НСП 1% [15:06:03]line > о реализуемом товаре [15:06:03]line ИТОГО: 110.00 [15:06:03]line НСП 1% : 0.97 [15:06:03]line НДС 12% : 11.68 [15:06:03]line Наличными: 110.00 [15:06:03]line Безнал.: 0.00 [15:06:03]line Место: АЗС № 134 "Партнер Нефть" [15:06:03]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [15:06:03]line СНО: Общий режим [15:06:03]line Чек 54 29.07.2024 15:06 [15:06:03]line Смена: 434 ФФД: 1.0 [15:06:03]line ЗНМ: 0300000043 [15:06:03]line РНМ: 0000000000092663 [15:06:03]line Версия ККМ: 001 [15:06:03]line ФМ: 0000000000874937 [15:06:03]line ФД: 27151 [15:06:03]line ФПД: 171722658666579 [15:06:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T150608&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27151&fm=171722658666579&tin=02508201610067®Number=0000000000092663&sum=11000 [15:06:03]OFD Sender: Processing packet 27151 [packets to send 9, broken 8] [15:06:03]ProducePacketName [15:06:03]name=ofd_packets/00027151 [15:06:03]OFD Sender: To server: pG, [15:06:03]CommunicateWithHost lk.salyk.kg:30040 [15:06:03]ConnectInit lk.salyk.kg [15:06:03]line 0 [15:06:03]written 0, free lines is 4095 [15:06:04]Connected sock=10 [15:06:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 30 01 00 00 D4 66 28 01 8C F7 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 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB 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 36 00 00 00 F4 03 04 00 E0 AF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 0F 6A 00 00 35 04 06 00 9C 2E 4C 11 D8 53 85 FA A9 46 B7 2B 2A 4E [15:06:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 52 40 47 00 9B 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 0F 6A 00 00 F4 03 04 00 30 56 A7 66 B6 04 01 00 00 90 3F 88 7D 7B EE CC 55 [15:06:04]CommunicateWithHost err = 0 [15:06:04]CheckOFDResponse [15:06:04]1017 (14) - 77093643461234 [15:06:04]1041 (16) - 0000000000874937 [15:06:04]1040 (4) - 27151 [15:06:04]1012 (4) - 29.07.2024 08:43 [15:06:04]1206 (1) - 0 [15:06:04]OFD Sender: Remove packet 27151 [15:06:04]ProducePacketName [15:06:04]name=ofd_packets/00027151 [15:06:04]NVStorageDeleteData [15:06:04]Write to MH i2c: 01 00 00 72 1B 8D [15:06:04]Write i2c OK [15:06:04]MH_I2C_Read... [15:06:04]Read from MH i2c: 01 [15:06:04]MH_I2C_Read... [15:06:04]Read from MH i2c: 01 07 00 [15:06:04]MH_I2C_Read... [15:06:04]Read from MH i2c: 01 07 00 72 1B 00 00 00 00 00 0B 0D AC [15:06:04]RasterBufferAndPrint [15:06:04]line [15:06:04]line [15:06:04]line [15:06:04]line [15:06:04]line [15:06:04]written 0, free lines is 3345 [15:06:04]MH_Cut [15:06:04]Write to MH i2c: D1 01 00 79 1B 01 66 [15:06:04]Write i2c OK [15:06:04]MH_I2C_Read... [15:06:04]Read from MH i2c: D1 [15:06:04]MH_I2C_Read... [15:06:04]Read from MH i2c: D1 01 00 [15:06:04]MH_I2C_Read... [15:06:04]Read from MH i2c: D1 01 00 79 1B 00 65 [15:06:04]Write to MH i2c: 01 00 00 7A 1B 95 [15:06:04]Write i2c OK [15:06:04]MH_I2C_Read... [15:06:04]OFD Sender: No OFD packet to send [15:06:05]*** Cut start [15:06:05]*** Partial cut [15:06:05]*** CUTSNS_PIN = 1 [15:06:05]*** CUTSNS_PIN = 0 [15:06:05]*** Brake cut motor [15:06:05]Read from MH i2c: 01 [15:06:05]MH_I2C_Read... [15:06:05]*** Stop cut motor [15:06:05]*** Cut end [15:06:05]Read from MH i2c: 01 07 00 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: 01 07 00 7A 1B 00 00 00 00 00 FF 0F AA [15:06:05]process_action close_receipt done [15:06:05]requested_data is exist [15:06:05]produce_requested_data [15:06:05]requested_item fm.sn is exist - process it [15:06:05]wFMCommunicate request_size=4 [15:06:05]MH_SAM_APDU [15:06:05]CAPDU: 80 11 00 00 [15:06:05]Write to MH i2c: E2 08 00 7B 1B 80 11 00 00 00 00 00 00 10 [15:06:05]Write i2c OK [15:06:05]MH_I2C_Read... [15:06:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:05]Read from MH i2c: E2 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: E2 17 00 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: E2 17 00 7B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 69 [15:06:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [15:06:05]wFMCommunicate OK [15:06:05]requested_item fd.num is exist - process it [15:06:05]SAM_PROTO_GetFieldsCounters [15:06:05]wFMCommunicate request_size=4 [15:06:05]MH_SAM_APDU [15:06:05]CAPDU: 80 13 00 00 [15:06:05]Write to MH i2c: E2 08 00 7C 1B 80 13 00 00 00 00 00 00 13 [15:06:05]Write i2c OK [15:06:05]MH_I2C_Read... [15:06:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:05]Read from MH i2c: E2 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: E2 62 00 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: E2 62 00 7C 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 0F 6A 00 00 0E 04 04 00 B2 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 09 [15:06:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 0F 6A 00 00 0E 04 04 00 B2 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 [15:06:05]wFMCommunicate OK [15:06:05]SAM_PROTO_GetFieldsCounters done [15:06:05]requested_item shift.num is exist - process it [15:06:05]requested_item shift.opened is exist - process it [15:06:05]req_shift_opened [15:06:05]FM_GetShiftState [15:06:05]SAM_PROTO_GetShiftState [15:06:05]wFMCommunicate request_size=4 [15:06:05]MH_SAM_APDU [15:06:05]CAPDU: 80 13 01 00 [15:06:05]Write to MH i2c: E2 08 00 7D 1B 80 13 01 00 00 00 00 00 15 [15:06:05]Write i2c OK [15:06:05]MH_I2C_Read... [15:06:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:05]Read from MH i2c: E2 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: E2 0E 00 [15:06:05]MH_I2C_Read... [15:06:05]Read from MH i2c: E2 0E 00 7D 1B 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 96 [15:06:05]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [15:06:05]wFMCommunicate OK [15:06:05]SAM_PROTO_GetShiftState done [15:06:05]FM_GetShiftState done [15:06:05]req_shift_opened done [15:06:05]requested_item shift.open_date is exist - process it [15:06:05]req_shift_open_date [15:06:05]req_shift_open_date done [15:06:05]produce_requested_data done [15:06:06]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27151,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [15:06:06]process_action_free close_receipt [15:06:06]json_value_free [15:06:06]json_value_free done [15:06:06]process_json_proto returns [15:06:06]Send response to host [15:06:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27151,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [15:06:06]free response buf [15:06:06]execute_script done [15:06:06]execute_script returns [15:06:06]free content buf [15:06:06]Sock 9.Close socket [15:06:06]Sock 9.Thread stoped [15:06:09]OFD Sender: No OFD packet to send [15:06:14]OFD Sender: No OFD packet to send [15:06:19]OFD Sender: No OFD packet to send [15:06:24]OFD Sender: No OFD packet to send [15:06:29]OFD Sender: No OFD packet to send [15:06:34]OFD Sender: No OFD packet to send [15:06:39]OFD Sender: No OFD packet to send [15:06:44]OFD Sender: No OFD packet to send [15:06:49]OFD Sender: No OFD packet to send [15:06:54]OFD Sender: No OFD packet to send [15:06:59]OFD Sender: No OFD packet to send [15:07:04]OFD Sender: No OFD packet to send [15:07:09]OFD Sender: No OFD packet to send [15:07:14]OFD Sender: No OFD packet to send [15:07:19]OFD Sender: No OFD packet to send [15:07:24]OFD Sender: No OFD packet to send [15:07:29]OFD Sender: No OFD packet to send [15:07:34]OFD Sender: No OFD packet to send [15:07:39]OFD Sender: No OFD packet to send [15:07:44]OFD Sender: No OFD packet to send [15:07:49]OFD Sender: No OFD packet to send [15:07:54]OFD Sender: No OFD packet to send [15:07:59]OFD Sender: No OFD packet to send [15:08:04]OFD Sender: No OFD packet to send [15:08:09]OFD Sender: No OFD packet to send [15:08:14]OFD Sender: No OFD packet to send [15:08:19]OFD Sender: No OFD packet to send [15:08:24]OFD Sender: No OFD packet to send [15:08:29]OFD Sender: No OFD packet to send [15:08:34]OFD Sender: No OFD packet to send [15:08:39]OFD Sender: No OFD packet to send [15:08:44]OFD Sender: No OFD packet to send [15:08:49]OFD Sender: No OFD packet to send [15:08:54]OFD Sender: No OFD packet to send [15:08:59]OFD Sender: No OFD packet to send [15:09:04]OFD Sender: No OFD packet to send [15:09:09]OFD Sender: No OFD packet to send [15:09:14]OFD Sender: No OFD packet to send [15:09:19]OFD Sender: No OFD packet to send [15:09:24]OFD Sender: No OFD packet to send [15:09:29]OFD Sender: No OFD packet to send [15:09:34]OFD Sender: No OFD packet to send [15:09:39]OFD Sender: No OFD packet to send [15:09:44]OFD Sender: No OFD packet to send [15:09:49]OFD Sender: No OFD packet to send [15:09:54]OFD Sender: No OFD packet to send [15:09:59]OFD Sender: No OFD packet to send [15:10:04]OFD Sender: No OFD packet to send [15:10:09]OFD Sender: No OFD packet to send [15:10:14]OFD Sender: No OFD packet to send [15:10:19]OFD Sender: No OFD packet to send [15:10:24]OFD Sender: No OFD packet to send [15:10:29]OFD Sender: No OFD packet to send [15:10:34]OFD Sender: No OFD packet to send [15:10:39]OFD Sender: No OFD packet to send [15:10:45]OFD Sender: No OFD packet to send [15:10:50]OFD Sender: No OFD packet to send [15:10:55]OFD Sender: No OFD packet to send [15:11:00]OFD Sender: No OFD packet to send [15:11:05]OFD Sender: No OFD packet to send [15:11:10]OFD Sender: No OFD packet to send [15:11:15]OFD Sender: No OFD packet to send [15:11:20]OFD Sender: No OFD packet to send [15:11:25]OFD Sender: No OFD packet to send [15:11:30]OFD Sender: No OFD packet to send [15:11:35]OFD Sender: No OFD packet to send [15:11:40]OFD Sender: No OFD packet to send [15:11:45]OFD Sender: No OFD packet to send [15:11:50]OFD Sender: No OFD packet to send [15:11:55]OFD Sender: No OFD packet to send [15:12:00]OFD Sender: No OFD packet to send [15:12:05]OFD Sender: No OFD packet to send [15:12:10]OFD Sender: No OFD packet to send [15:12:15]OFD Sender: No OFD packet to send [15:12:20]OFD Sender: No OFD packet to send [15:12:25]OFD Sender: No OFD packet to send [15:12:30]OFD Sender: No OFD packet to send [15:12:35]OFD Sender: No OFD packet to send [15:12:40]OFD Sender: No OFD packet to send [15:12:45]OFD Sender: No OFD packet to send [15:12:50]OFD Sender: No OFD packet to send [15:12:55]OFD Sender: No OFD packet to send [15:13:00]OFD Sender: No OFD packet to send [15:13:05]OFD Sender: No OFD packet to send [15:13:10]OFD Sender: No OFD packet to send [15:13:15]OFD Sender: No OFD packet to send [15:13:20]OFD Sender: No OFD packet to send [15:13:25]OFD Sender: No OFD packet to send [15:13:30]OFD Sender: No OFD packet to send [15:13:35]OFD Sender: No OFD packet to send [15:13:40]OFD Sender: No OFD packet to send [15:13:45]OFD Sender: No OFD packet to send [15:13:50]OFD Sender: No OFD packet to send [15:13:55]OFD Sender: No OFD packet to send [15:14:00]OFD Sender: No OFD packet to send [15:14:05]OFD Sender: No OFD packet to send [15:14:10]OFD Sender: No OFD packet to send [15:14:15]OFD Sender: No OFD packet to send [15:14:20]OFD Sender: No OFD packet to send [15:14:25]OFD Sender: No OFD packet to send [15:14:30]OFD Sender: No OFD packet to send [15:14:35]OFD Sender: No OFD packet to send [15:14:40]OFD Sender: No OFD packet to send [15:14:45]OFD Sender: No OFD packet to send [15:14:50]OFD Sender: No OFD packet to send [15:14:55]OFD Sender: No OFD packet to send [15:15:00]OFD Sender: No OFD packet to send [15:15:05]OFD Sender: No OFD packet to send [15:15:10]OFD Sender: No OFD packet to send [15:15:15]OFD Sender: No OFD packet to send [15:15:20]OFD Sender: No OFD packet to send [15:15:25]OFD Sender: No OFD packet to send [15:15:30]OFD Sender: No OFD packet to send [15:15:35]OFD Sender: No OFD packet to send [15:15:40]OFD Sender: No OFD packet to send [15:15:45]OFD Sender: No OFD packet to send [15:15:50]OFD Sender: No OFD packet to send [15:15:55]OFD Sender: No OFD packet to send [15:16:00]OFD Sender: No OFD packet to send [15:16:05]OFD Sender: No OFD packet to send [15:16:10]OFD Sender: No OFD packet to send [15:16:15]OFD Sender: No OFD packet to send [15:16:20]OFD Sender: No OFD packet to send [15:16:25]OFD Sender: No OFD packet to send [15:16:30]OFD Sender: No OFD packet to send [15:16:35]OFD Sender: No OFD packet to send [15:16:40]OFD Sender: No OFD packet to send [15:16:45]OFD Sender: No OFD packet to send [15:16:50]OFD Sender: No OFD packet to send [15:16:55]OFD Sender: No OFD packet to send [15:17:00]OFD Sender: No OFD packet to send [15:17:05]OFD Sender: No OFD packet to send [15:17:10]OFD Sender: No OFD packet to send [15:17:15]OFD Sender: No OFD packet to send [15:17:20]OFD Sender: No OFD packet to send [15:17:25]OFD Sender: No OFD packet to send [15:17:30]OFD Sender: No OFD packet to send [15:17:35]OFD Sender: No OFD packet to send [15:17:40]OFD Sender: No OFD packet to send [15:17:45]OFD Sender: No OFD packet to send [15:17:50]OFD Sender: No OFD packet to send [15:17:55]OFD Sender: No OFD packet to send [15:18:00]OFD Sender: No OFD packet to send [15:18:05]OFD Sender: No OFD packet to send [15:18:10]OFD Sender: No OFD packet to send [15:18:15]OFD Sender: No OFD packet to send [15:18:20]OFD Sender: No OFD packet to send [15:18:25]OFD Sender: No OFD packet to send [15:18:30]OFD Sender: No OFD packet to send [15:18:35]OFD Sender: No OFD packet to send [15:18:40]OFD Sender: No OFD packet to send [15:18:45]OFD Sender: No OFD packet to send [15:18:50]OFD Sender: No OFD packet to send [15:18:55]OFD Sender: No OFD packet to send [15:19:00]OFD Sender: No OFD packet to send [15:19:05]OFD Sender: No OFD packet to send [15:19:10]OFD Sender: No OFD packet to send [15:19:15]OFD Sender: No OFD packet to send [15:19:20]OFD Sender: No OFD packet to send [15:19:25]OFD Sender: No OFD packet to send [15:19:30]OFD Sender: No OFD packet to send [15:19:35]OFD Sender: No OFD packet to send [15:19:40]OFD Sender: No OFD packet to send [15:19:45]OFD Sender: No OFD packet to send [15:19:50]OFD Sender: No OFD packet to send [15:19:55]OFD Sender: No OFD packet to send [15:20:00]OFD Sender: No OFD packet to send [15:20:05]OFD Sender: No OFD packet to send [15:20:10]OFD Sender: No OFD packet to send [15:20:15]OFD Sender: No OFD packet to send [15:20:20]OFD Sender: No OFD packet to send [15:20:25]OFD Sender: No OFD packet to send [15:20:30]OFD Sender: No OFD packet to send [15:20:35]OFD Sender: No OFD packet to send [15:20:40]OFD Sender: No OFD packet to send [15:20:45]OFD Sender: No OFD packet to send [15:20:50]OFD Sender: No OFD packet to send [15:20:55]OFD Sender: No OFD packet to send [15:21:00]OFD Sender: No OFD packet to send [15:21:05]OFD Sender: No OFD packet to send [15:21:10]OFD Sender: No OFD packet to send [15:21:15]OFD Sender: No OFD packet to send [15:21:20]OFD Sender: No OFD packet to send [15:21:25]OFD Sender: No OFD packet to send [15:21:30]OFD Sender: No OFD packet to send [15:21:35]OFD Sender: No OFD packet to send [15:21:40]OFD Sender: No OFD packet to send [15:21:45]OFD Sender: No OFD packet to send [15:21:50]OFD Sender: No OFD packet to send [15:21:55]OFD Sender: No OFD packet to send [15:22:00]OFD Sender: No OFD packet to send [15:22:05]OFD Sender: No OFD packet to send [15:22:10]OFD Sender: No OFD packet to send [15:22:15]OFD Sender: No OFD packet to send [15:22:20]OFD Sender: No OFD packet to send [15:22:25]OFD Sender: No OFD packet to send [15:22:30]OFD Sender: No OFD packet to send [15:22:35]OFD Sender: No OFD packet to send [15:22:40]OFD Sender: No OFD packet to send [15:22:45]OFD Sender: No OFD packet to send [15:22:50]OFD Sender: No OFD packet to send [15:22:55]OFD Sender: No OFD packet to send [15:23:00]OFD Sender: No OFD packet to send [15:23:05]OFD Sender: No OFD packet to send [15:23:10]OFD Sender: No OFD packet to send [15:23:15]OFD Sender: No OFD packet to send [15:23:20]OFD Sender: No OFD packet to send [15:23:25]OFD Sender: No OFD packet to send [15:23:30]OFD Sender: No OFD packet to send [15:23:35]OFD Sender: No OFD packet to send [15:23:40]OFD Sender: No OFD packet to send [15:23:45]OFD Sender: No OFD packet to send [15:23:50]OFD Sender: No OFD packet to send [15:23:55]OFD Sender: No OFD packet to send [15:24:00]OFD Sender: No OFD packet to send [15:24:05]OFD Sender: No OFD packet to send [15:24:10]OFD Sender: No OFD packet to send [15:24:15]OFD Sender: No OFD packet to send [15:24:20]OFD Sender: No OFD packet to send [15:24:25]OFD Sender: No OFD packet to send [15:24:30]OFD Sender: No OFD packet to send [15:24:35]OFD Sender: No OFD packet to send [15:24:40]OFD Sender: No OFD packet to send [15:24:45]OFD Sender: No OFD packet to send [15:24:50]OFD Sender: No OFD packet to send [15:24:55]OFD Sender: No OFD packet to send [15:25:00]OFD Sender: No OFD packet to send [15:25:05]OFD Sender: No OFD packet to send [15:25:10]OFD Sender: No OFD packet to send [15:25:15]OFD Sender: No OFD packet to send [15:25:20]OFD Sender: No OFD packet to send [15:25:25]OFD Sender: No OFD packet to send [15:25:30]OFD Sender: No OFD packet to send [15:25:35]OFD Sender: No OFD packet to send [15:25:40]OFD Sender: No OFD packet to send [15:25:45]OFD Sender: No OFD packet to send [15:25:50]OFD Sender: No OFD packet to send [15:25:55]OFD Sender: No OFD packet to send [15:26:00]OFD Sender: No OFD packet to send [15:26:05]OFD Sender: No OFD packet to send [15:26:10]OFD Sender: No OFD packet to send [15:26:15]OFD Sender: No OFD packet to send [15:26:20]OFD Sender: No OFD packet to send [15:26:25]OFD Sender: No OFD packet to send [15:26:30]OFD Sender: No OFD packet to send [15:26:35]OFD Sender: No OFD packet to send [15:26:40]OFD Sender: No OFD packet to send [15:26:45]OFD Sender: No OFD packet to send [15:26:50]OFD Sender: No OFD packet to send [15:26:55]OFD Sender: No OFD packet to send [15:27:00]OFD Sender: No OFD packet to send [15:27:05]OFD Sender: No OFD packet to send [15:27:10]OFD Sender: No OFD packet to send [15:27:15]OFD Sender: No OFD packet to send [15:27:20]OFD Sender: No OFD packet to send [15:27:25]OFD Sender: No OFD packet to send [15:27:30]OFD Sender: No OFD packet to send [15:27:35]OFD Sender: No OFD packet to send [15:27:40]OFD Sender: No OFD packet to send [15:27:45]OFD Sender: No OFD packet to send [15:27:50]OFD Sender: No OFD packet to send [15:27:55]OFD Sender: No OFD packet to send [15:28:00]OFD Sender: No OFD packet to send [15:28:05]OFD Sender: No OFD packet to send [15:28:10]OFD Sender: No OFD packet to send [15:28:15]OFD Sender: No OFD packet to send [15:28:20]OFD Sender: No OFD packet to send [15:28:25]OFD Sender: No OFD packet to send [15:28:30]OFD Sender: No OFD packet to send [15:28:35]OFD Sender: No OFD packet to send [15:28:40]OFD Sender: No OFD packet to send [15:28:45]OFD Sender: No OFD packet to send [15:28:50]OFD Sender: No OFD packet to send [15:28:55]OFD Sender: No OFD packet to send [15:29:00]OFD Sender: No OFD packet to send [15:29:05]OFD Sender: No OFD packet to send [15:29:10]OFD Sender: No OFD packet to send [15:29:15]OFD Sender: No OFD packet to send [15:29:20]OFD Sender: No OFD packet to send [15:29:25]OFD Sender: No OFD packet to send [15:29:30]OFD Sender: No OFD packet to send [15:29:35]OFD Sender: No OFD packet to send [15:29:40]OFD Sender: No OFD packet to send [15:29:45]OFD Sender: No OFD packet to send [15:29:50]OFD Sender: No OFD packet to send [15:29:55]OFD Sender: No OFD packet to send [15:30:00]OFD Sender: No OFD packet to send [15:30:05]OFD Sender: No OFD packet to send [15:30:10]OFD Sender: No OFD packet to send [15:30:15]OFD Sender: No OFD packet to send [15:30:20]OFD Sender: No OFD packet to send [15:30:25]OFD Sender: No OFD packet to send [15:30:30]OFD Sender: No OFD packet to send [15:30:35]OFD Sender: No OFD packet to send [15:30:40]OFD Sender: No OFD packet to send [15:30:45]OFD Sender: No OFD packet to send [15:30:50]OFD Sender: No OFD packet to send [15:30:55]OFD Sender: No OFD packet to send [15:31:00]OFD Sender: No OFD packet to send [15:31:05]OFD Sender: No OFD packet to send [15:31:10]OFD Sender: No OFD packet to send [15:31:15]OFD Sender: No OFD packet to send [15:31:20]OFD Sender: No OFD packet to send [15:31:25]OFD Sender: No OFD packet to send [15:31:30]OFD Sender: No OFD packet to send [15:31:35]OFD Sender: No OFD packet to send [15:31:40]OFD Sender: No OFD packet to send [15:31:45]OFD Sender: No OFD packet to send [15:31:50]OFD Sender: No OFD packet to send [15:31:55]OFD Sender: No OFD packet to send [15:32:00]OFD Sender: No OFD packet to send [15:32:06]OFD Sender: No OFD packet to send [15:32:11]OFD Sender: No OFD packet to send [15:32:16]OFD Sender: No OFD packet to send [15:32:21]OFD Sender: No OFD packet to send [15:32:26]OFD Sender: No OFD packet to send [15:32:31]OFD Sender: No OFD packet to send [15:32:36]OFD Sender: No OFD packet to send [15:32:41]OFD Sender: No OFD packet to send [15:32:46]OFD Sender: No OFD packet to send [15:32:51]OFD Sender: No OFD packet to send [15:32:56]OFD Sender: No OFD packet to send [15:33:01]OFD Sender: No OFD packet to send [15:33:06]OFD Sender: No OFD packet to send [15:33:11]OFD Sender: No OFD packet to send [15:33:16]OFD Sender: No OFD packet to send [15:33:21]OFD Sender: No OFD packet to send [15:33:26]OFD Sender: No OFD packet to send [15:33:31]OFD Sender: No OFD packet to send [15:33:36]OFD Sender: No OFD packet to send [15:33:41]OFD Sender: No OFD packet to send [15:33:46]OFD Sender: No OFD packet to send [15:33:51]OFD Sender: No OFD packet to send [15:33:56]OFD Sender: No OFD packet to send [15:34:01]OFD Sender: No OFD packet to send [15:34:06]OFD Sender: No OFD packet to send [15:34:11]OFD Sender: No OFD packet to send [15:34:16]OFD Sender: No OFD packet to send [15:34:21]OFD Sender: No OFD packet to send [15:34:26]OFD Sender: No OFD packet to send [15:34:31]OFD Sender: No OFD packet to send [15:34:36]OFD Sender: No OFD packet to send [15:34:41]OFD Sender: No OFD packet to send [15:34:46]OFD Sender: No OFD packet to send [15:34:51]OFD Sender: No OFD packet to send [15:34:56]OFD Sender: No OFD packet to send [15:35:01]OFD Sender: No OFD packet to send [15:35:06]OFD Sender: No OFD packet to send [15:35:11]OFD Sender: No OFD packet to send [15:35:16]OFD Sender: No OFD packet to send [15:35:21]OFD Sender: No OFD packet to send [15:35:26]OFD Sender: No OFD packet to send [15:35:31]OFD Sender: No OFD packet to send [15:35:36]OFD Sender: No OFD packet to send [15:35:41]OFD Sender: No OFD packet to send [15:35:46]OFD Sender: No OFD packet to send [15:35:51]OFD Sender: No OFD packet to send [15:35:56]OFD Sender: No OFD packet to send [15:36:01]OFD Sender: No OFD packet to send [15:36:06]OFD Sender: No OFD packet to send [15:36:11]OFD Sender: No OFD packet to send [15:36:16]OFD Sender: No OFD packet to send [15:36:21]OFD Sender: No OFD packet to send [15:36:26]OFD Sender: No OFD packet to send [15:36:31]OFD Sender: No OFD packet to send [15:36:36]OFD Sender: No OFD packet to send [15:36:41]OFD Sender: No OFD packet to send [15:36:46]OFD Sender: No OFD packet to send [15:36:51]OFD Sender: No OFD packet to send [15:36:56]OFD Sender: No OFD packet to send [15:37:01]OFD Sender: No OFD packet to send [15:37:06]OFD Sender: No OFD packet to send [15:37:11]OFD Sender: No OFD packet to send [15:37:16]OFD Sender: No OFD packet to send [15:37:21]OFD Sender: No OFD packet to send [15:37:26]OFD Sender: No OFD packet to send [15:37:31]OFD Sender: No OFD packet to send [15:37:36]OFD Sender: No OFD packet to send [15:37:41]OFD Sender: No OFD packet to send [15:37:46]OFD Sender: No OFD packet to send [15:37:51]OFD Sender: No OFD packet to send [15:37:56]OFD Sender: No OFD packet to send [15:38:01]OFD Sender: No OFD packet to send [15:38:06]OFD Sender: No OFD packet to send [15:38:11]OFD Sender: No OFD packet to send [15:38:16]OFD Sender: No OFD packet to send [15:38:21]OFD Sender: No OFD packet to send [15:38:26]OFD Sender: No OFD packet to send [15:38:31]OFD Sender: No OFD packet to send [15:38:36]OFD Sender: No OFD packet to send [15:38:41]OFD Sender: No OFD packet to send [15:38:46]OFD Sender: No OFD packet to send [15:38:51]OFD Sender: No OFD packet to send [15:38:56]OFD Sender: No OFD packet to send [15:39:01]OFD Sender: No OFD packet to send [15:39:06]OFD Sender: No OFD packet to send [15:39:11]OFD Sender: No OFD packet to send [15:39:16]OFD Sender: No OFD packet to send [15:39:21]OFD Sender: No OFD packet to send [15:39:26]OFD Sender: No OFD packet to send [15:39:31]OFD Sender: No OFD packet to send [15:39:36]OFD Sender: No OFD packet to send [15:39:41]OFD Sender: No OFD packet to send [15:39:46]OFD Sender: No OFD packet to send [15:39:51]OFD Sender: No OFD packet to send [15:39:56]OFD Sender: No OFD packet to send [15:40:01]OFD Sender: No OFD packet to send [15:40:06]OFD Sender: No OFD packet to send [15:40:11]OFD Sender: No OFD packet to send [15:40:16]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [15:41:21]OFD Sender: No OFD packet to send [15:41:26]OFD Sender: No OFD packet to send [15:41:31]OFD Sender: No OFD packet to send [15:41:36]OFD Sender: No OFD packet to send [15:41:41]OFD Sender: No OFD packet to send [15:41:46]OFD Sender: No OFD packet to send [15:41:51]OFD Sender: No OFD packet to send [15:41:56]OFD Sender: No OFD packet to send [15:42:01]OFD Sender: No OFD packet to send [15:42:06]OFD Sender: No OFD packet to send [15:42:11]OFD Sender: No OFD packet to send [15:42:16]OFD Sender: No OFD packet to send [15:42:21]OFD Sender: No OFD packet to send [15:42:26]OFD Sender: No OFD packet to send [15:42:31]OFD Sender: No OFD packet to send [15:42:36]OFD Sender: No OFD packet to send [15:42:41]OFD Sender: No OFD packet to send [15:42:46]OFD Sender: No OFD packet to send [15:42:51]OFD Sender: No OFD packet to send [15:42:56]OFD Sender: No OFD packet to send [15:43:01]OFD Sender: No OFD packet to send [15:43:06]OFD Sender: No OFD packet to send [15:43:11]OFD Sender: No OFD packet to send [15:43:16]OFD Sender: No OFD packet to send [15:43:21]OFD Sender: No OFD packet to send [15:43:26]OFD Sender: No OFD packet to send [15:43:31]OFD Sender: No OFD packet to send [15:43:36]OFD Sender: No OFD packet to send [15:43:41]OFD Sender: No OFD packet to send [15:43:46]OFD Sender: No OFD packet to send [15:43:51]OFD Sender: No OFD packet to send [15:43:56]OFD Sender: No OFD packet to send [15:44:01]OFD Sender: No OFD packet to send [15:44:06]OFD Sender: No OFD packet to send [15:44:11]OFD Sender: No OFD packet to send [15:44:16]OFD Sender: No OFD packet to send [15:44:21]OFD Sender: No OFD packet to send [15:44:26]OFD Sender: No OFD packet to send [15:44:31]OFD Sender: No OFD packet to send [15:44:36]OFD Sender: No OFD packet to send [15:44:41]OFD Sender: No OFD packet to send [15:44:46]OFD Sender: No OFD packet to send [15:44:51]OFD Sender: No OFD packet to send [15:44:56]OFD Sender: No OFD packet to send [15:45:01]OFD Sender: No OFD packet to send [15:45:06]OFD Sender: No OFD packet to send [15:45:11]OFD Sender: No OFD packet to send [15:45:16]OFD Sender: No OFD packet to send [15:45:21]OFD Sender: No OFD packet to send [15:45:26]OFD Sender: No OFD packet to send [15:45:31]OFD Sender: No OFD packet to send [15:45:36]OFD Sender: No OFD packet to send [15:45:41]OFD Sender: No OFD packet to send [15:45:46]OFD Sender: No OFD packet to send [15:45:51]OFD Sender: No OFD packet to send [15:45:56]OFD Sender: No OFD packet to send [15:46:01]OFD Sender: No OFD packet to send [15:46:06]OFD Sender: No OFD packet to send [15:46:11]OFD Sender: No OFD packet to send [15:46:16]OFD Sender: No OFD packet to send [15:46:21]OFD Sender: No OFD packet to send [15:46:26]OFD Sender: No OFD packet to send [15:46:31]OFD Sender: No OFD packet to send [15:46:36]OFD Sender: No OFD packet to send [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:22]OFD Sender: No OFD packet to send [15:53:27]OFD Sender: No OFD packet to send [15:53:32]OFD Sender: No OFD packet to send [15:53:37]OFD Sender: No OFD packet to send [15:53:42]OFD Sender: No OFD packet to send [15:53:47]OFD Sender: No OFD packet to send [15:53:52]OFD Sender: No OFD packet to send [15:53:57]OFD Sender: No OFD packet to send [15:54:02]OFD Sender: No OFD packet to send [15:54:07]OFD Sender: No OFD packet to send [15:54:12]OFD Sender: No OFD packet to send [15:54:17]OFD Sender: No OFD packet to send [15:54:22]OFD Sender: No OFD packet to send [15:54:27]OFD Sender: No OFD packet to send [15:54:32]OFD Sender: No OFD packet to send [15:54:37]OFD Sender: No OFD packet to send [15:54:42]OFD Sender: No OFD packet to send [15:54:47]OFD Sender: No OFD packet to send [15:54:52]OFD Sender: No OFD packet to send [15:54:57]OFD Sender: No OFD packet to send [15:55:02]OFD Sender: No OFD packet to send [15:55:07]OFD Sender: No OFD packet to send [15:55:12]OFD Sender: No OFD packet to send [15:55:17]OFD Sender: No OFD packet to send [15:55:22]OFD Sender: No OFD packet to send [15:55:27]OFD Sender: No OFD packet to send [15:55:32]OFD Sender: No OFD packet to send [15:55:37]OFD Sender: No OFD packet to send [15:55:42]OFD Sender: No OFD packet to send [15:55:47]OFD Sender: No OFD packet to send [15:55:52]OFD Sender: No OFD packet to send [15:55:57]OFD Sender: No OFD packet to send [15:56:02]OFD Sender: No OFD packet to send [15:56:07]OFD Sender: No OFD packet to send [15:56:12]OFD Sender: No OFD packet to send [15:56:17]OFD Sender: No OFD packet to send [15:56:22]OFD Sender: No OFD packet to send [15:56:27]OFD Sender: No OFD packet to send [15:56:32]OFD Sender: No OFD packet to send [15:56:37]OFD Sender: No OFD packet to send [15:56:42]OFD Sender: No OFD packet to send [15:56:47]OFD Sender: No OFD packet to send [15:56:52]OFD Sender: No OFD packet to send [15:56:57]OFD Sender: No OFD packet to send [15:57:02]OFD Sender: No OFD packet to send [15:57:07]OFD Sender: No OFD packet to send [15:57:12]OFD Sender: No OFD packet to send [15:57:17]OFD Sender: No OFD packet to send [15:57:22]OFD Sender: No OFD packet to send [15:57:27]OFD Sender: No OFD packet to send [15:57:32]OFD Sender: No OFD packet to send [15:57:37]OFD Sender: No OFD packet to send [15:57:42]OFD Sender: No OFD packet to send [15:57:47]OFD Sender: No OFD packet to send [15:57:52]OFD Sender: No OFD packet to send [15:57:57]OFD Sender: No OFD packet to send [15:58:02]OFD Sender: No OFD packet to send [15:58:07]OFD Sender: No OFD packet to send [15:58:12]OFD Sender: No OFD packet to send [15:58:17]OFD Sender: No OFD packet to send [15:58:22]OFD Sender: No OFD packet to send [15:58:27]OFD Sender: No OFD packet to send [15:58:32]OFD Sender: No OFD packet to send [15:58:37]OFD Sender: No OFD packet to send [15:58:42]OFD Sender: No OFD packet to send [15:58:47]OFD Sender: No OFD packet to send [15:58:52]OFD Sender: No OFD packet to send [15:58:57]OFD Sender: No OFD packet to send [15:59:02]OFD Sender: No OFD packet to send [15:59:07]OFD Sender: No OFD packet to send [15:59:12]OFD Sender: No OFD packet to send [15:59:17]OFD Sender: No OFD packet to send [15:59:22]OFD Sender: No OFD packet to send [15:59:27]OFD Sender: No OFD packet to send [15:59:32]OFD Sender: No OFD packet to send [15:59:37]OFD Sender: No OFD packet to send [15:59:42]OFD Sender: No OFD packet to send [15:59:47]OFD Sender: No OFD packet to send [15:59:52]OFD Sender: No OFD packet to send [15:59:57]OFD Sender: No OFD packet to send [16:00:02]OFD Sender: No OFD packet to send [16:00:07]OFD Sender: No OFD packet to send [16:00:12]OFD Sender: No OFD packet to send [16:00:17]OFD Sender: No OFD packet to send [16:00:22]OFD Sender: No OFD packet to send [16:00:27]OFD Sender: No OFD packet to send [16:00:32]OFD Sender: No OFD packet to send [16:00:37]OFD Sender: No OFD packet to send [16:00:42]OFD Sender: No OFD packet to send [16:00:47]OFD Sender: No OFD packet to send [16:00:52]OFD Sender: No OFD packet to send [16:00:57]OFD Sender: No OFD packet to send [16:01:02]OFD Sender: No OFD packet to send [16:01:07]OFD Sender: No OFD packet to send [16:01:12]OFD Sender: No OFD packet to send [16:01:17]OFD Sender: No OFD packet to send [16:01:22]OFD Sender: No OFD packet to send [16:01:27]OFD Sender: No OFD packet to send [16:01:32]OFD Sender: No OFD packet to send [16:01:37]OFD Sender: No OFD packet to send [16:01:42]OFD Sender: No OFD packet to send [16:01:47]OFD Sender: No OFD packet to send [16:01:52]OFD Sender: No OFD packet to send [16:01:57]OFD Sender: No OFD packet to send [16:02:02]OFD Sender: No OFD packet to send [16:02:07]OFD Sender: No OFD packet to send [16:02:12]OFD Sender: No OFD packet to send [16:02:17]OFD Sender: No OFD packet to send [16:02:22]OFD Sender: No OFD packet to send [16:02:27]OFD Sender: No OFD packet to send [16:02:32]OFD Sender: No OFD packet to send [16:02:37]OFD Sender: No OFD packet to send [16:02:42]OFD Sender: No OFD packet to send [16:02:47]OFD Sender: No OFD packet to send [16:02:52]OFD Sender: No OFD packet to send [16:02:57]OFD Sender: No OFD packet to send [16:03:02]OFD Sender: No OFD packet to send [16:03:07]OFD Sender: No OFD packet to send [16:03:12]OFD Sender: No OFD packet to send [16:03:17]OFD Sender: No OFD packet to send [16:03:22]OFD Sender: No OFD packet to send [16:03:27]OFD Sender: No OFD packet to send [16:03:32]OFD Sender: No OFD packet to send [16:03:37]OFD Sender: No OFD packet to send [16:03:42]OFD Sender: No OFD packet to send [16:03:47]OFD Sender: No OFD packet to send [16:03:52]OFD Sender: No OFD packet to send [16:03:57]OFD Sender: No OFD packet to send [16:04:02]OFD Sender: No OFD packet to send [16:04:07]OFD Sender: No OFD packet to send [16:04:12]OFD Sender: No OFD packet to send [16:04:17]OFD Sender: No OFD packet to send [16:04:22]OFD Sender: No OFD packet to send [16:04:27]OFD Sender: No OFD packet to send [16:04:32]OFD Sender: No OFD packet to send [16:04:37]OFD Sender: No OFD packet to send [16:04:42]OFD Sender: No OFD packet to send [16:04:47]OFD Sender: No OFD packet to send [16:04:52]OFD Sender: No OFD packet to send [16:04:57]OFD Sender: No OFD packet to send [16:05:02]OFD Sender: No OFD packet to send [16:05:07]OFD Sender: No OFD packet to send [16:05:12]OFD Sender: No OFD packet to send [16:05:17]OFD Sender: No OFD packet to send [16:05:22]OFD Sender: No OFD packet to send [16:05:27]OFD Sender: No OFD packet to send [16:05:32]OFD Sender: No OFD packet to send [16:05:37]OFD Sender: No OFD packet to send [16:05:42]OFD Sender: No OFD packet to send [16:05:47]OFD Sender: No OFD packet to send [16:05:52]OFD Sender: No OFD packet to send [16:05:57]OFD Sender: No OFD packet to send [16:06:02]OFD Sender: No OFD packet to send [16:06:07]OFD Sender: No OFD packet to send [16:06:12]OFD Sender: No OFD packet to send [16:06:17]OFD Sender: No OFD packet to send [16:06:22]OFD Sender: No OFD packet to send [16:06:27]OFD Sender: No OFD packet to send [16:06:32]OFD Sender: No OFD packet to send [16:06:37]OFD Sender: No OFD packet to send [16:06:42]OFD Sender: No OFD packet to send [16:06:47]OFD Sender: No OFD packet to send [16:06:52]OFD Sender: No OFD packet to send [16:06:57]OFD Sender: No OFD packet to send [16:07:02]OFD Sender: No OFD packet to send [16:07:07]OFD Sender: No OFD packet to send [16:07:12]OFD Sender: No OFD packet to send [16:07:17]OFD Sender: No OFD packet to send [16:07:22]OFD Sender: No OFD packet to send [16:07:27]OFD Sender: No OFD packet to send [16:07:32]OFD Sender: No OFD packet to send [16:07:37]OFD Sender: No OFD packet to send [16:07:42]OFD Sender: No OFD packet to send [16:07:47]OFD Sender: No OFD packet to send [16:07:52]OFD Sender: No OFD packet to send [16:07:57]OFD Sender: No OFD packet to send [16:08:02]OFD Sender: No OFD packet to send [16:08:07]OFD Sender: No OFD packet to send [16:08:12]OFD Sender: No OFD packet to send [16:08:17]OFD Sender: No OFD packet to send [16:08:22]OFD Sender: No OFD packet to send [16:08:27]OFD Sender: No OFD packet to send [16:08:32]OFD Sender: No OFD packet to send [16:08:37]OFD Sender: No OFD packet to send [16:08:42]OFD Sender: No OFD packet to send [16:08:47]OFD Sender: No OFD packet to send [16:08:52]OFD Sender: No OFD packet to send [16:08:57]OFD Sender: No OFD packet to send [16:09:02]OFD Sender: No OFD packet to send [16:09:07]OFD Sender: No OFD packet to send [16:09:12]OFD Sender: No OFD packet to send [16:09:17]OFD Sender: No OFD packet to send [16:09:22]OFD Sender: No OFD packet to send [16:09:27]OFD Sender: No OFD packet to send [16:09:32]OFD Sender: No OFD packet to send [16:09:37]OFD Sender: No OFD packet to send [16:09:42]OFD Sender: No OFD packet to send [16:09:47]OFD Sender: No OFD packet to send [16:09:52]OFD Sender: No OFD packet to send [16:09:57]OFD Sender: No OFD packet to send [16:10:02]OFD Sender: No OFD packet to send [16:10:07]OFD Sender: No OFD packet to send [16:10:12]OFD Sender: No OFD packet to send [16:10:17]OFD Sender: No OFD packet to send [16:10:22]OFD Sender: No OFD packet to send [16:10:27]OFD Sender: No OFD packet to send [16:10:32]OFD Sender: No OFD packet to send [16:10:37]OFD Sender: No OFD packet to send [16:10:42]OFD Sender: No OFD packet to send [16:10:47]OFD Sender: No OFD packet to send [16:10:52]OFD Sender: No OFD packet to send [16:10:57]OFD Sender: No OFD packet to send [16:11:02]OFD Sender: No OFD packet to send [16:11:07]OFD Sender: No OFD packet to send [16:11:12]OFD Sender: No OFD packet to send [16:11:17]OFD Sender: No OFD packet to send [16:11:22]OFD Sender: No OFD packet to send [16:11:27]OFD Sender: No OFD packet to send [16:11:32]OFD Sender: No OFD packet to send [16:11:37]OFD Sender: No OFD packet to send [16:11:42]OFD Sender: No OFD packet to send [16:11:47]OFD Sender: No OFD packet to send [16:11:52]OFD Sender: No OFD packet to send [16:11:57]OFD Sender: No OFD packet to send [16:12:02]OFD Sender: No OFD packet to send [16:12:07]OFD Sender: No OFD packet to send [16:12:12]OFD Sender: No OFD packet to send [16:12:14]accept exits with 8 [16:12:14]New connection [16:12:14]New thread 3066928484 created [16:12:14]Thread 3066785124 joined [16:12:14]Waiting for new connection... [16:12:14] Sock 8.Parse request [16:12:14]Sock 8.Check first char [16:12:14]Sock 8.First char is OK [16:12:14]request: POST /json_proto HTTP/1.0 [16:12:14]Method: POST [16:12:14]URL: /json_proto [16:12:14]Method is POST - this is cgi request [16:12:14]url: /json_proto [16:12:14]query_string will be loaded in cgi processing [16:12:14]execute_cgi json_proto POST (null) [16:12:14]execute_cgi path=json_proto method=POST [16:12:14]POST find Content-Length [16:12:14]Host: 172.17.45.8:8080 [16:12:14]Content-Length: 946 [16:12:14]Content-Type: application/json [16:12:14] [16:12:14]POST finish read [16:12:14]Found Content-Length = 946 [16:12:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150550", "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 }]} ,{ "code": "46196613", "name": "\u0420/\u0436 Orbit XXL white c\u043E\u0447\u043D\u043E\u0435 \u044F\u0431\u043B\u043E\u043A\u043E 20,4\u0433", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 116.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:14]execute_script... [16: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 : (3)150550", "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 }]} ,{ "code": "46196613", "name": "\u0420/\u0436 Orbit XXL white c\u043E\u0447\u043D\u043E\u0435 \u044F\u0431\u043B\u043E\u043A\u043E 20,4\u0433", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 116.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:14]POST & json_proto [16:12:14]process_json_proto [16:12:14]json parsed OK: [16:12:14]protocol is kg_v1.0 [16:12:14]action value=close_receipt [16:12:14]process_action close_receipt [16:12:14]cmd_close_receipt [16:12:14]MH_GetDate [16:12:14]Write to MH i2c: F0 00 00 7E 1B 88 [16:12:14]Write i2c OK [16:12:14]MH_I2C_Read... [16:12:14]Read from MH i2c: F0 [16:12:14]MH_I2C_Read... [16:12:14]Read from MH i2c: F0 09 00 [16:12:14]MH_I2C_Read... [16:12:14]Read from MH i2c: F0 09 00 7E 1B 00 65 BF A7 66 A6 1F 7F 64 6A [16:12:14]GetLastDocTimeStamp 1722265568 [16:12:14]current date 1722269541 [16:12:14]FM_GetShiftState [16:12:14]SAM_PROTO_GetShiftState [16:12:14]wFMCommunicate request_size=4 [16:12:14]MH_SAM_APDU [16:12:14]CAPDU: 80 13 01 00 [16:12:14]Write to MH i2c: E2 08 00 7F 1B 80 13 01 00 00 00 00 00 17 [16:12:14]Write i2c OK [16:12:14]MH_I2C_Read... [16:12:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:14]Read from MH i2c: E2 [16:12:14]MH_I2C_Read... [16:12:14]Read from MH i2c: E2 0E 00 [16:12:14]MH_I2C_Read... [16:12:14]Read from MH i2c: E2 0E 00 7F 1B 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 98 [16:12:14]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [16:12:14]wFMCommunicate OK [16:12:14]SAM_PROTO_GetShiftState done [16:12:14]FM_GetShiftState done [16:12:14]opened in 1722213509 [16:12:14]opened+sec_in_day 1722299909 [16:12:14]quantity*price = 6500 [16:12:14]sum+1 = 6501 [16:12:14]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46196613 Р/ж Orbit XXL white cочное яблоко 20,4г 1.000 * 51.00 = 51.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 116.00 НСП 1% : 1.02 НДС 12% : 12.32 Наличными: 116.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 55 29.07.2024 16:12 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27152 ФПД: 218886380804136 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T161221&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27152&fm=218886380804136&tin=02508201610067®Number=0000000000092663&sum=11600 0 [16:12:15]StoreToDocumentArchive [16:12:15]shift 434 fd 27152 [16:12:15]save to /storage/0434/doc_00027152 [16:12:15]save last doc name /storage/0434/doc_00027152 to /storage/kkm_last_doc_name [16:12:15]save OK [16:12:15]Clear old archive folders... [16:12:16]ProcessDocumentItem done err = 0, tmpTLVsize=404 [16:12:16]tlvbuf is 001A89E0 [16:12:16]SAM_PROTO_ClearQueue [16:12:16]wFMCommunicate request_size=4 [16:12:16]MH_SAM_APDU [16:12:16]CAPDU: 80 09 00 00 [16:12:16]Write to MH i2c: E2 08 00 8C 1B 80 09 00 00 00 00 00 00 19 [16:12:16]Write i2c OK [16:12:16]MH_I2C_Read... [16:12:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:12:16]Read from MH i2c: E2 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: E2 03 00 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: E2 03 00 8C 1B 00 90 00 1B [16:12:16]RAPDU: 90 00 [16:12:16]wFMCommunicate OK [16:12:16]SAM_PROTO_ClearQueue done [16:12:16]KKMCreateOFDPacket [16:12:16]OFDProtocolAddRootSTLVToBuf [16:12:16]FM_MakeSignedData [16:12:16]FM_MakeSignedData [16:12:16]SAM_PROTO_SignData [16:12:16]wFMCommunicate request_size=4 [16:12:16]MH_SAM_APDU [16:12:16]CAPDU: 80 0D 01 02 [16:12:16]Write to MH i2c: E2 08 00 8D 1B 80 0D 01 02 00 00 00 00 21 [16:12:16]Write i2c OK [16:12:16]MH_I2C_Read... [16:12:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:12:16]Read from MH i2c: E2 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: E2 03 00 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: E2 03 00 8D 1B 00 90 00 1C [16:12:16]RAPDU: 90 00 [16:12:16]wFMCommunicate OK [16:12:16]wFMCommunicate request_size=255 [16:12:16]MH_SAM_APDU [16:12:16]CAPDU: 80 0D 02 02 FA 03 00 94 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 23 04 74 00 8A 04 08 00 34 36 31 39 36 36 31 33 06 04 35 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 63 D0 BE D1 87 D0 BD D0 BE D0 B5 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 2D 00 [16:12:16]Write to MH i2c: E2 02 01 8E 1B 80 0D 02 02 FA 00 03 00 94 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 23 04 74 00 8A 04 08 00 34 36 31 39 36 36 31 33 06 04 35 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 63 D0 BE D1 87 D0 BD D0 BE D0 B5 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 2D 00 00 00 78 [16:12:16]Write i2c OK [16:12:16]MH_I2C_Read... [16:12:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:16]Read from MH i2c: E2 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: E2 03 00 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: E2 03 00 8E 1B 00 90 00 1D [16:12:16]RAPDU: 90 00 [16:12:16]wFMCommunicate OK [16:12:16]wFMCommunicate request_size=163 [16:12:16]MH_SAM_APDU [16:12:16]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 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 04 00 00 00 00 07 04 06 00 50 2D 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 65 BF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 10 6A 00 00 35 04 06 00 C7 13 74 F9 58 28 [16:12:16]Write to MH i2c: E2 A6 00 8F 1B 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 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 04 00 00 00 00 07 04 06 00 50 2D 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 65 BF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 10 6A 00 00 35 04 06 00 C7 13 74 F9 58 28 00 00 B7 [16:12:16]Write i2c OK [16:12:16]MH_I2C_Read... [16:12:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:16]Read from MH i2c: E2 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: E2 03 00 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: E2 03 00 8F 1B 00 90 00 1E [16:12:16]RAPDU: 90 00 [16:12:16]wFMCommunicate OK [16:12:16]wFMCommunicate request_size=4 [16:12:16]MH_SAM_APDU [16:12:16]CAPDU: 80 0D 03 02 [16:12:16]Write to MH i2c: E2 08 00 90 1B 80 0D 03 02 00 00 00 00 26 [16:12:16]Write i2c OK [16:12:16]MH_I2C_Read... [16:12:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:12:16]Read from MH i2c: E2 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: E2 0B 00 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: E2 0B 00 90 1B 00 25 01 73 3B 0B A5 89 36 90 00 6A [16:12:16]RAPDU: 25 01 73 3B 0B A5 89 36 90 00 [16:12:16]wFMCommunicate OK [16:12:16]SAM_PROTO_SignData done [16:12:16]FM_MakeSignedData done [16:12:16]CreateOFDProtocolMessage [16:12:16]wFMCommunicate request_size=4 [16:12:16]MH_SAM_APDU [16:12:16]CAPDU: 80 11 00 00 [16:12:16]Write to MH i2c: E2 08 00 91 1B 80 11 00 00 00 00 00 00 26 [16:12:16]Write i2c OK [16:12:16]MH_I2C_Read... [16:12:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:16]Read from MH i2c: E2 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: E2 17 00 [16:12:16]MH_I2C_Read... [16:12:16]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 34 39 33 37 90 00 7F [16:12:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [16:12:16]wFMCommunicate OK [16:12:16]CreateOFDProtocolMessage done [16:12:16]OFDSenderStorePacket 27152 [16:12:16]StoreOFDPacket docnum=27152 [16:12:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 A8 01 00 00 34 AF A0 01 62 7F 5A 03 01 00 03 00 94 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 23 04 74 00 8A 04 08 00 34 36 31 39 36 36 31 33 06 04 35 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 63 D0 BE D1 87 D0 BD D0 BE D0 B5 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 2D 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 D0 04 00 00 00 00 07 04 06 00 50 2D 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 65 BF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 10 6A 00 00 35 04 06 00 C7 13 74 F9 58 28 25 01 73 3B 0B A5 89 36 [16:12:16]CheckFolder [16:12:16]dirname=/storage/ofd_packets [16:12:16]CheckFolder done [16:12:16]ProducePacketName [16:12:16]name=ofd_packets/00027152 [16:12:16]NVStorageSaveData ofd_packets/00027152 [16:12:16]File name is /storage/ofd_packets/00027152 [16:12:16]Write 454 bytes [16:12:16]NVStorageSaveData done [16:12:16]OFDSenderStorePacket done [16:12:16]KKMCreateOFDPacket done [16:12:16]NVStorageSaveData kkm_last_timestamp [16:12:16]File name is /storage/kkm_last_timestamp [16:12:16]Write 4 bytes [16:12:16]NVStorageSaveData done [16:12:16]ExternCall_PrintAddStr [16:12:16]wPrintStart [16:12:16]Write to MH i2c: 01 00 00 92 1B AD [16:12:16]Write i2c OK [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: 01 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: 01 07 00 [16:12:16]MH_I2C_Read... [16:12:16]Read from MH i2c: 01 07 00 92 1B 00 00 00 00 00 FF 0F C2 [16:12:16]RasterBufferAndPrint [16:12:16]line Счет N : (3)150550 [16:12:16]line ИНН: 02508201610067 [16:12:16]line Контрольно-Кассовый Чек [16:12:16]line ПРОДАЖА [16:12:17]line Товар: 4700040114137 [16:12:17]line Султан чай 1л. зел лимон [16:12:17]line 1.000 * 65.00 [16:12:17]line = 65.00 [16:12:17]line НДС 12% НСП 1% [16:12:17]line > о реализуемом товаре [16:12:17]line Товар: 46196613 [16:12:17]line Р/ж Orbit XXL white cочное яблоко 20,4г [16:12:17]line 1.000 * 51.00 [16:12:17]line = 51.00 [16:12:17]line НДС 12% НСП 1% [16:12:17]line > о реализуемом товаре [16:12:17]line ИТОГО: 116.00 [16:12:17]line НСП 1% : 1.02 [16:12:17]line НДС 12% : 12.32 [16:12:17]line Наличными: 116.00 [16:12:17]line Безнал.: 0.00 [16:12:17]line Место: АЗС № 134 "Партнер Нефть" [16:12:17]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:12:17]line СНО: Общий режим [16:12:17]line Чек 55 29.07.2024 16:12 [16:12:17]line Смена: 434 ФФД: 1.0 [16:12:17]line ЗНМ: 0300000043 [16:12:17]line РНМ: 0000000000092663 [16:12:17]line Версия ККМ: 001 [16:12:17]line ФМ: 0000000000874937 [16:12:17]line ФД: 27152 [16:12:17]line ФПД: 218886380804136 [16:12:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T161221&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27152&fm=218886380804136&tin=02508201610067®Number=0000000000092663&sum=11600 [16:12:17]line 0 [16:12:17]OFD Sender: Processing packet 27152 [packets to send 9, broken 8] [16:12:17]ProducePacketName [16:12:17]name=ofd_packets/00027152 [16:12:17]OFD Sender: To server: pG, [16:12:17]CommunicateWithHost lk.salyk.kg:30040 [16:12:17]ConnectInit lk.salyk.kg [16:12:17]written 0, free lines is 4095 [16:12:17]Connected sock=10 [16:12:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 A8 01 00 00 34 AF A0 01 62 7F 5A 03 01 00 03 00 94 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 23 04 74 00 8A 04 08 00 34 36 31 39 36 36 31 33 06 04 35 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 63 D0 BE D1 87 D0 BD D0 BE D0 B5 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 2D 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 D0 04 00 00 00 00 07 04 06 00 50 2D 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 65 BF A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 10 6A 00 00 35 04 06 00 C7 13 74 F9 58 28 25 01 73 3B 0B A5 89 36 [16:12:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 CC D2 47 00 D5 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 10 6A 00 00 F4 03 04 00 B5 65 A7 66 B6 04 01 00 00 E8 FF 0B 1A 07 F9 BC 8A [16:12:17]CommunicateWithHost err = 0 [16:12:17]CheckOFDResponse [16:12:17]1017 (14) - 77093643461234 [16:12:17]1041 (16) - 0000000000874937 [16:12:17]1040 (4) - 27152 [16:12:17]1012 (4) - 29.07.2024 09:49 [16:12:17]1206 (1) - 0 [16:12:17]OFD Sender: Remove packet 27152 [16:12:17]ProducePacketName [16:12:17]name=ofd_packets/00027152 [16:12:17]NVStorageDeleteData [16:12:17]Write to MH i2c: 01 00 00 C0 1B DB [16:12:17]Write i2c OK [16:12:17]MH_I2C_Read... [16:12:17]Read from MH i2c: 01 [16:12:17]MH_I2C_Read... [16:12:17]Read from MH i2c: 01 07 00 [16:12:17]MH_I2C_Read... [16:12:17]Read from MH i2c: 01 07 00 C0 1B 00 00 00 00 00 99 0C 87 [16:12:17]RasterBufferAndPrint [16:12:17]line [16:12:17]line [16:12:17]line [16:12:17]line [16:12:17]line [16:12:17]written 0, free lines is 3233 [16:12:17]MH_Cut [16:12:17]Write to MH i2c: D1 01 00 C7 1B 01 B4 [16:12:17]Write i2c OK [16:12:17]MH_I2C_Read... [16:12:17]Read from MH i2c: D1 [16:12:17]MH_I2C_Read... [16:12:17]Read from MH i2c: D1 01 00 [16:12:17]MH_I2C_Read... [16:12:17]Read from MH i2c: D1 01 00 C7 1B 00 B3 [16:12:17]Write to MH i2c: 01 00 00 C8 1B E3 [16:12:17]Write i2c OK [16:12:17]MH_I2C_Read... [16:12:17]OFD Sender: No OFD packet to send [16:12:18]*** Cut start [16:12:18]*** Partial cut [16:12:18]*** CUTSNS_PIN = 1 [16:12:18]*** CUTSNS_PIN = 0 [16:12:18]*** Brake cut motor [16:12:18]Read from MH i2c: 01 [16:12:18]MH_I2C_Read... [16:12:18]*** Stop cut motor [16:12:18]*** Cut end [16:12:18]Read from MH i2c: 01 07 00 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: 01 07 00 C8 1B 00 00 00 00 00 FF 0F F8 [16:12:18]process_action close_receipt done [16:12:18]requested_data is exist [16:12:18]produce_requested_data [16:12:18]requested_item fm.sn is exist - process it [16:12:18]wFMCommunicate request_size=4 [16:12:18]MH_SAM_APDU [16:12:18]CAPDU: 80 11 00 00 [16:12:18]Write to MH i2c: E2 08 00 C9 1B 80 11 00 00 00 00 00 00 5E [16:12:18]Write i2c OK [16:12:18]MH_I2C_Read... [16:12:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:18]Read from MH i2c: E2 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 17 00 [16:12:18]MH_I2C_Read... [16:12:18]Read from MH i2c: E2 17 00 C9 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 B7 [16:12:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [16:12:18]wFMCommunicate OK [16:12:18]requested_item fd.num is exist - process it [16:12:18]SAM_PROTO_GetFieldsCounters [16:12:18]wFMCommunicate request_size=4 [16:12:18]MH_SAM_APDU [16:12:18]CAPDU: 80 13 00 00 [16:12:18]Write to MH i2c: E2 08 00 CA 1B 80 13 00 00 00 00 00 00 61 [16:12:18]Write i2c OK [16:12:18]MH_I2C_Read... [16:12:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:19]Read from MH i2c: E2 [16:12:19]MH_I2C_Read... [16:12:19]Read from MH i2c: E2 62 00 [16:12:19]MH_I2C_Read... [16:12:19]Read from MH i2c: E2 62 00 CA 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 10 6A 00 00 0E 04 04 00 B2 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 5B [16:12:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 10 6A 00 00 0E 04 04 00 B2 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 [16:12:19]wFMCommunicate OK [16:12:19]SAM_PROTO_GetFieldsCounters done [16:12:19]requested_item shift.num is exist - process it [16:12:19]requested_item shift.opened is exist - process it [16:12:19]req_shift_opened [16:12:19]FM_GetShiftState [16:12:19]SAM_PROTO_GetShiftState [16:12:19]wFMCommunicate request_size=4 [16:12:19]MH_SAM_APDU [16:12:19]CAPDU: 80 13 01 00 [16:12:19]Write to MH i2c: E2 08 00 CB 1B 80 13 01 00 00 00 00 00 63 [16:12:19]Write i2c OK [16:12:19]MH_I2C_Read... [16:12:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:19]Read from MH i2c: E2 [16:12:19]MH_I2C_Read... [16:12:19]Read from MH i2c: E2 0E 00 [16:12:19]MH_I2C_Read... [16:12:19]Read from MH i2c: E2 0E 00 CB 1B 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 E4 [16:12:19]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [16:12:19]wFMCommunicate OK [16:12:19]SAM_PROTO_GetShiftState done [16:12:19]FM_GetShiftState done [16:12:19]req_shift_opened done [16:12:19]requested_item shift.open_date is exist - process it [16:12:19]req_shift_open_date [16:12:19]req_shift_open_date done [16:12:19]produce_requested_data done [16:12:19]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27152,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [16:12:19]process_action_free close_receipt [16:12:19]json_value_free [16:12:19]json_value_free done [16:12:19]process_json_proto returns [16:12:19]Send response to host [16:12:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27152,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [16:12:19]free response buf [16:12:19]execute_script done [16:12:19]execute_script returns [16:12:19]free content buf [16:12:19]Sock 8.Close socket [16:12:19]Sock 8.Thread stoped [16:12:22]OFD Sender: No OFD packet to send [16:12:27]OFD Sender: No OFD packet to send [16:12:32]OFD Sender: No OFD packet to send [16:12:37]OFD Sender: No OFD packet to send [16:12:42]OFD Sender: No OFD packet to send [16:12:47]OFD Sender: No OFD packet to send [16:12:52]OFD Sender: No OFD packet to send [16:12:57]OFD Sender: No OFD packet to send [16:13:02]OFD Sender: No OFD packet to send [16:13:07]OFD Sender: No OFD packet to send [16:13:12]OFD Sender: No OFD packet to send [16:13:17]OFD Sender: No OFD packet to send [16:13:22]OFD Sender: No OFD packet to send [16:13:27]OFD Sender: No OFD packet to send [16:13:32]OFD Sender: No OFD packet to send [16:13:37]OFD Sender: No OFD packet to send [16:13:42]OFD Sender: No OFD packet to send [16:13:47]OFD Sender: No OFD packet to send [16:13:52]OFD Sender: No OFD packet to send [16:13:57]OFD Sender: No OFD packet to send [16:14:02]OFD Sender: No OFD packet to send [16:14:07]OFD Sender: No OFD packet to send [16:14:12]OFD Sender: No OFD packet to send [16:14:17]OFD Sender: No OFD packet to send [16:14:22]OFD Sender: No OFD packet to send [16:14:27]OFD Sender: No OFD packet to send [16:14:32]OFD Sender: No OFD packet to send [16:14:37]OFD Sender: No OFD packet to send [16:14:42]OFD Sender: No OFD packet to send [16:14:47]OFD Sender: No OFD packet to send [16:14:52]OFD Sender: No OFD packet to send [16:14:57]OFD Sender: No OFD packet to send [16:15:02]OFD Sender: No OFD packet to send [16:15:07]OFD Sender: No OFD packet to send [16:15:12]OFD Sender: No OFD packet to send [16:15:17]OFD Sender: No OFD packet to send [16:15:22]OFD Sender: No OFD packet to send [16:15:27]OFD Sender: No OFD packet to send [16:15:32]OFD Sender: No OFD packet to send [16:15:37]OFD Sender: No OFD packet to send [16:15:42]OFD Sender: No OFD packet to send [16:15:47]OFD Sender: No OFD packet to send [16:15:52]OFD Sender: No OFD packet to send [16:15:57]OFD Sender: No OFD packet to send [16:16:03]OFD Sender: No OFD packet to send [16:16:08]OFD Sender: No OFD packet to send [16:16:13]OFD Sender: No OFD packet to send [16:16:18]OFD Sender: No OFD packet to send [16:16:23]OFD Sender: No OFD packet to send [16:16:28]OFD Sender: No OFD packet to send [16:16:33]OFD Sender: No OFD packet to send [16:16:38]OFD Sender: No OFD packet to send [16:16:43]OFD Sender: No OFD packet to send [16:16:48]OFD Sender: No OFD packet to send [16:16:53]OFD Sender: No OFD packet to send [16:16:58]OFD Sender: No OFD packet to send [16:17:03]OFD Sender: No OFD packet to send [16:17:08]OFD Sender: No OFD packet to send [16:17:13]OFD Sender: No OFD packet to send [16:17:18]OFD Sender: No OFD packet to send [16:17:23]OFD Sender: No OFD packet to send [16:17:28]OFD Sender: No OFD packet to send [16:17:33]OFD Sender: No OFD packet to send [16:17:38]OFD Sender: No OFD packet to send [16:17:43]OFD Sender: No OFD packet to send [16:17:48]OFD Sender: No OFD packet to send [16:17:53]OFD Sender: No OFD packet to send [16:17:58]OFD Sender: No OFD packet to send [16:18:03]OFD Sender: No OFD packet to send [16:18:08]OFD Sender: No OFD packet to send [16:18:13]OFD Sender: No OFD packet to send [16:18:18]OFD Sender: No OFD packet to send [16:18:23]OFD Sender: No OFD packet to send [16:18:28]OFD Sender: No OFD packet to send [16:18:33]OFD Sender: No OFD packet to send [16:18:38]OFD Sender: No OFD packet to send [16:18:43]OFD Sender: No OFD packet to send [16:18:48]OFD Sender: No OFD packet to send [16:18:53]OFD Sender: No OFD packet to send [16:18:58]OFD Sender: No OFD packet to send [16:19:03]OFD Sender: No OFD packet to send [16:19:08]OFD Sender: No OFD packet to send [16:19:13]OFD Sender: No OFD packet to send [16:19:18]OFD Sender: No OFD packet to send [16:19:23]OFD Sender: No OFD packet to send [16:19:28]OFD Sender: No OFD packet to send [16:19:33]OFD Sender: No OFD packet to send [16:19:38]OFD Sender: No OFD packet to send [16:19:43]OFD Sender: No OFD packet to send [16:19:48]OFD Sender: No OFD packet to send [16:19:53]OFD Sender: No OFD packet to send [16:19:58]OFD Sender: No OFD packet to send [16:20:03]OFD Sender: No OFD packet to send [16:20:08]OFD Sender: No OFD packet to send [16:20:13]OFD Sender: No OFD packet to send [16:20:18]OFD Sender: No OFD packet to send [16:20:23]OFD Sender: No OFD packet to send [16:20:28]OFD Sender: No OFD packet to send [16:20:33]OFD Sender: No OFD packet to send [16:20:38]OFD Sender: No OFD packet to send [16:20:43]OFD Sender: No OFD packet to send [16:20:48]OFD Sender: No OFD packet to send [16:20:53]OFD Sender: No OFD packet to send [16:20:58]OFD Sender: No OFD packet to send [16:21:03]OFD Sender: No OFD packet to send [16:21:08]OFD Sender: No OFD packet to send [16:21:13]OFD Sender: No OFD packet to send [16:21:18]OFD Sender: No OFD packet to send [16:21:23]OFD Sender: No OFD packet to send [16:21:28]OFD Sender: No OFD packet to send [16:21:33]OFD Sender: No OFD packet to send [16:21:38]OFD Sender: No OFD packet to send [16:21:43]OFD Sender: No OFD packet to send [16:21:48]OFD Sender: No OFD packet to send [16:21:53]OFD Sender: No OFD packet to send [16:21:58]OFD Sender: No OFD packet to send [16:22:03]OFD Sender: No OFD packet to send [16:22:08]OFD Sender: No OFD packet to send [16:22:13]OFD Sender: No OFD packet to send [16:22:18]OFD Sender: No OFD packet to send [16:22:23]OFD Sender: No OFD packet to send [16:22:28]OFD Sender: No OFD packet to send [16:22:33]OFD Sender: No OFD packet to send [16:22:38]OFD Sender: No OFD packet to send [16:22:43]OFD Sender: No OFD packet to send [16:22:48]OFD Sender: No OFD packet to send [16:22:53]OFD Sender: No OFD packet to send [16:22:58]OFD Sender: No OFD packet to send [16:23:03]OFD Sender: No OFD packet to send [16:23:08]OFD Sender: No OFD packet to send [16:23:13]OFD Sender: No OFD packet to send [16:23:18]OFD Sender: No OFD packet to send [16:23:23]OFD Sender: No OFD packet to send [16:23:28]OFD Sender: No OFD packet to send [16:23:33]OFD Sender: No OFD packet to send [16:23:38]OFD Sender: No OFD packet to send [16:23:43]OFD Sender: No OFD packet to send [16:23:48]OFD Sender: No OFD packet to send [16:23:53]OFD Sender: No OFD packet to send [16:23:58]OFD Sender: No OFD packet to send [16:24:03]OFD Sender: No OFD packet to send [16:24:08]OFD Sender: No OFD packet to send [16:24:13]OFD Sender: No OFD packet to send [16:24:18]OFD Sender: No OFD packet to send [16:24:23]OFD Sender: No OFD packet to send [16:24:28]OFD Sender: No OFD packet to send [16:24:33]OFD Sender: No OFD packet to send [16:24:38]OFD Sender: No OFD packet to send [16:24:43]OFD Sender: No OFD packet to send [16:24:48]OFD Sender: No OFD packet to send [16:24:53]OFD Sender: No OFD packet to send [16:24:58]OFD Sender: No OFD packet to send [16:25:03]OFD Sender: No OFD packet to send [16:25:08]OFD Sender: No OFD packet to send [16:25:13]OFD Sender: No OFD packet to send [16:25:18]OFD Sender: No OFD packet to send [16:25:23]OFD Sender: No OFD packet to send [16:25:28]OFD Sender: No OFD packet to send [16:25:33]OFD Sender: No OFD packet to send [16:25:38]OFD Sender: No OFD packet to send [16:25:43]OFD Sender: No OFD packet to send [16:25:48]OFD Sender: No OFD packet to send [16:25:53]OFD Sender: No OFD packet to send [16:25:58]OFD Sender: No OFD packet to send [16:26:03]OFD Sender: No OFD packet to send [16:26:08]OFD Sender: No OFD packet to send [16:26:13]OFD Sender: No OFD packet to send [16:26:18]OFD Sender: No OFD packet to send [16:26:23]OFD Sender: No OFD packet to send [16:26:28]OFD Sender: No OFD packet to send [16:26:33]OFD Sender: No OFD packet to send [16:26:38]OFD Sender: No OFD packet to send [16:26:43]OFD Sender: No OFD packet to send [16:26:48]OFD Sender: No OFD packet to send [16:26:53]OFD Sender: No OFD packet to send [16:26:58]OFD Sender: No OFD packet to send [16:27:03]OFD Sender: No OFD packet to send [16:27:08]OFD Sender: No OFD packet to send [16:27:13]OFD Sender: No OFD packet to send [16:27:18]OFD Sender: No OFD packet to send [16:27:23]OFD Sender: No OFD packet to send [16:27:28]OFD Sender: No OFD packet to send [16:27:33]OFD Sender: No OFD packet to send [16:27:38]OFD Sender: No OFD packet to send [16:27:43]OFD Sender: No OFD packet to send [16:27:48]OFD Sender: No OFD packet to send [16:27:53]OFD Sender: No OFD packet to send [16:27:58]OFD Sender: No OFD packet to send [16:28:03]OFD Sender: No OFD packet to send [16:28:08]OFD Sender: No OFD packet to send [16:28:13]OFD Sender: No OFD packet to send [16:28:18]OFD Sender: No OFD packet to send [16:28:23]OFD Sender: No OFD packet to send [16:28:28]OFD Sender: No OFD packet to send [16:28:33]OFD Sender: No OFD packet to send [16:28:38]OFD Sender: No OFD packet to send [16:28:43]OFD Sender: No OFD packet to send [16:28:48]OFD Sender: No OFD packet to send [16:28:53]OFD Sender: No OFD packet to send [16:28:58]OFD Sender: No OFD packet to send [16:29:03]OFD Sender: No OFD packet to send [16:29:08]OFD Sender: No OFD packet to send [16:29:13]OFD Sender: No OFD packet to send [16:29:18]OFD Sender: No OFD packet to send [16:29:23]OFD Sender: No OFD packet to send [16:29:28]OFD Sender: No OFD packet to send [16:29:32]accept exits with 9 [16:29:32]New connection [16:29:32]New thread 3066785124 created [16:29:32]Thread 3066928484 joined [16:29:32]Waiting for new connection... [16:29:32] Sock 9.Parse request [16:29:32]Sock 9.Check first char [16:29:32]Sock 9.First char is OK [16:29:32]request: POST /json_proto HTTP/1.0 [16:29:32]Method: POST [16:29:32]URL: /json_proto [16:29:32]Method is POST - this is cgi request [16:29:32]url: /json_proto [16:29:32]query_string will be loaded in cgi processing [16:29:32]execute_cgi json_proto POST (null) [16:29:32]execute_cgi path=json_proto method=POST [16:29:32]POST find Content-Length [16:29:32]Host: 172.17.45.8:8080 [16:29:32]Content-Length: 893 [16:29:32]Content-Type: application/json [16:29:32] [16:29:32]POST finish read [16:29:32]Found Content-Length = 893 [16:29:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150551", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\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" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:32]execute_script... [16:29: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)150551", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\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" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:32]POST & json_proto [16:29:32]process_json_proto [16:29:32]json parsed OK: [16:29:32]protocol is kg_v1.0 [16:29:32]action value=close_receipt [16:29:32]process_action close_receipt [16:29:32]cmd_close_receipt [16:29:32]MH_GetDate [16:29:32]Write to MH i2c: F0 00 00 CC 1B D6 [16:29:32]Write i2c OK [16:29:32]MH_I2C_Read... [16:29:32]Read from MH i2c: F0 [16:29:32]MH_I2C_Read... [16:29:32]Read from MH i2c: F0 09 00 [16:29:32]MH_I2C_Read... [16:29:32]Read from MH i2c: F0 09 00 CC 1B 00 73 C3 A7 66 A6 1F 7F 64 CA [16:29:32]GetLastDocTimeStamp 1722269541 [16:29:32]current date 1722270579 [16:29:32]FM_GetShiftState [16:29:32]SAM_PROTO_GetShiftState [16:29:32]wFMCommunicate request_size=4 [16:29:32]MH_SAM_APDU [16:29:32]CAPDU: 80 13 01 00 [16:29:32]Write to MH i2c: E2 08 00 CD 1B 80 13 01 00 00 00 00 00 65 [16:29:32]Write i2c OK [16:29:32]MH_I2C_Read... [16:29:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:32]Read from MH i2c: E2 [16:29:32]MH_I2C_Read... [16:29:32]Read from MH i2c: E2 0E 00 [16:29:32]MH_I2C_Read... [16:29:32]Read from MH i2c: E2 0E 00 CD 1B 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 E6 [16:29:32]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [16:29:32]wFMCommunicate OK [16:29:32]SAM_PROTO_GetShiftState done [16:29:32]FM_GetShiftState done [16:29:32]opened in 1722213509 [16:29:32]opened+sec_in_day 1722299909 [16:29:32]quantity*price = 6000 [16:29:32]sum+1 = 6001 [16:29:32]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 56 29.07.2024 16:29 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27153 ФПД: 61577225262253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T162939&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27153&fm=61577225262253&tin=02508201610067®Number=0000000000092663&sum=11000 0 [16:29:33]StoreToDocumentArchive [16:29:33]shift 434 fd 27153 [16:29:33]save to /storage/0434/doc_00027153 [16:29:33]save last doc name /storage/0434/doc_00027153 to /storage/kkm_last_doc_name [16:29:33]save OK [16:29:33]Clear old archive folders... [16:29:33]ProcessDocumentItem done err = 0, tmpTLVsize=375 [16:29:33]tlvbuf is 001C8620 [16:29:33]SAM_PROTO_ClearQueue [16:29:33]wFMCommunicate request_size=4 [16:29:33]MH_SAM_APDU [16:29:33]CAPDU: 80 09 00 00 [16:29:33]Write to MH i2c: E2 08 00 DA 1B 80 09 00 00 00 00 00 00 67 [16:29:33]Write i2c OK [16:29:33]MH_I2C_Read... [16:29:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:33]Read from MH i2c: E2 [16:29:33]MH_I2C_Read... [16:29:33]Read from MH i2c: E2 03 00 [16:29:33]MH_I2C_Read... [16:29:33]Read from MH i2c: E2 03 00 DA 1B 00 90 00 69 [16:29:33]RAPDU: 90 00 [16:29:33]wFMCommunicate OK [16:29:33]SAM_PROTO_ClearQueue done [16:29:33]KKMCreateOFDPacket [16:29:33]OFDProtocolAddRootSTLVToBuf [16:29:33]FM_MakeSignedData [16:29:33]FM_MakeSignedData [16:29:33]SAM_PROTO_SignData [16:29:33]wFMCommunicate request_size=4 [16:29:33]MH_SAM_APDU [16:29:33]CAPDU: 80 0D 01 02 [16:29:33]Write to MH i2c: E2 08 00 DB 1B 80 0D 01 02 00 00 00 00 6F [16:29:33]Write i2c OK [16:29:33]MH_I2C_Read... [16:29:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:34]Read from MH i2c: E2 [16:29:34]MH_I2C_Read... [16:29:34]Read from MH i2c: E2 03 00 [16:29:34]MH_I2C_Read... [16:29:34]Read from MH i2c: E2 03 00 DB 1B 00 90 00 6A [16:29:34]RAPDU: 90 00 [16:29:34]wFMCommunicate OK [16:29:34]wFMCommunicate request_size=255 [16:29:34]MH_SAM_APDU [16:29:34]CAPDU: 80 0D 02 02 FA 03 00 77 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 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 [16:29:34]Write to MH i2c: E2 02 01 DC 1B 80 0D 02 02 FA 00 03 00 77 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 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 00 E9 [16:29:34]Write i2c OK [16:29:34]MH_I2C_Read... [16:29:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:34]Read from MH i2c: E2 [16:29:34]MH_I2C_Read... [16:29:34]Read from MH i2c: E2 03 00 [16:29:34]MH_I2C_Read... [16:29:34]Read from MH i2c: E2 03 00 DC 1B 00 90 00 6B [16:29:34]RAPDU: 90 00 [16:29:34]wFMCommunicate OK [16:29:34]wFMCommunicate request_size=134 [16:29:34]MH_SAM_APDU [16:29:34]CAPDU: 80 0D 02 02 81 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 38 00 00 00 F4 03 04 00 73 C3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 11 6A 00 00 35 04 06 00 38 01 10 A3 54 AD [16:29:34]Write to MH i2c: E2 89 00 DD 1B 80 0D 02 02 81 00 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 38 00 00 00 F4 03 04 00 73 C3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 11 6A 00 00 35 04 06 00 38 01 10 A3 54 AD 00 00 F4 [16:29:34]Write i2c OK [16:29:34]MH_I2C_Read... [16:29:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:34]Read from MH i2c: E2 [16:29:34]MH_I2C_Read... [16:29:34]Read from MH i2c: E2 03 00 [16:29:34]MH_I2C_Read... [16:29:34]Read from MH i2c: E2 03 00 DD 1B 00 90 00 6C [16:29:34]RAPDU: 90 00 [16:29:34]wFMCommunicate OK [16:29:34]wFMCommunicate request_size=4 [16:29:34]MH_SAM_APDU [16:29:34]CAPDU: 80 0D 03 02 [16:29:34]Write to MH i2c: E2 08 00 DE 1B 80 0D 03 02 00 00 00 00 74 [16:29:34]Write i2c OK [16:29:34]MH_I2C_Read... [16:29:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:34]Read from MH i2c: E2 [16:29:34]MH_I2C_Read... [16:29:34]Read from MH i2c: E2 0B 00 [16:29:34]MH_I2C_Read... [16:29:34]Read from MH i2c: E2 0B 00 DE 1B 00 43 92 A0 45 F9 3D 99 5A 90 00 58 [16:29:34]RAPDU: 43 92 A0 45 F9 3D 99 5A 90 00 [16:29:34]wFMCommunicate OK [16:29:34]SAM_PROTO_SignData done [16:29:34]FM_MakeSignedData done [16:29:34]CreateOFDProtocolMessage [16:29:34]wFMCommunicate request_size=4 [16:29:34]MH_SAM_APDU [16:29:34]CAPDU: 80 11 00 00 [16:29:34]Write to MH i2c: E2 08 00 DF 1B 80 11 00 00 00 00 00 00 74 [16:29:34]Write i2c OK [16:29:34]MH_I2C_Read... [16:29:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:34]Read from MH i2c: E2 [16:29:34]MH_I2C_Read... [16:29:34]Read from MH i2c: E2 17 00 [16:29:34]MH_I2C_Read... [16:29:34]Read from MH i2c: E2 17 00 DF 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 CD [16:29:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [16:29:34]wFMCommunicate OK [16:29:34]CreateOFDProtocolMessage done [16:29:34]OFDSenderStorePacket 27153 [16:29:34]StoreOFDPacket docnum=27153 [16:29:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 8B 01 00 00 C6 21 83 01 1C 5A 5A 03 01 00 03 00 77 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 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 38 00 00 00 F4 03 04 00 73 C3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 11 6A 00 00 35 04 06 00 38 01 10 A3 54 AD 43 92 A0 45 F9 3D 99 5A [16:29:34]CheckFolder [16:29:34]dirname=/storage/ofd_packets [16:29:34]CheckFolder done [16:29:34]ProducePacketName [16:29:34]name=ofd_packets/00027153 [16:29:34]NVStorageSaveData ofd_packets/00027153 [16:29:34]File name is /storage/ofd_packets/00027153 [16:29:34]Write 425 bytes [16:29:34]NVStorageSaveData done [16:29:34]OFDSenderStorePacket done [16:29:34]KKMCreateOFDPacket done [16:29:34]NVStorageSaveData kkm_last_timestamp [16:29:34]File name is /storage/kkm_last_timestamp [16:29:34]Write 4 bytes [16:29:34]NVStorageSaveData done [16:29:34]ExternCall_PrintAddStr [16:29:34]wPrintStart [16:29:34]Write to MH i2c: 01 00 00 E0 1B FB [16:29:34]Write i2c OK [16:29:34]MH_I2C_Read... [16:29:34]Read from MH i2c: 01 [16:29:34]MH_I2C_Read... [16:29:34]Read from MH i2c: 01 07 00 [16:29:34]MH_I2C_Read... [16:29:34]Read from MH i2c: 01 07 00 E0 1B 00 00 00 00 00 FF 0F 10 [16:29:34]RasterBufferAndPrint [16:29:34]line Счет N : (3)150551 [16:29:34]line ИНН: 02508201610067 [16:29:34]line Контрольно-Кассовый Чек [16:29:34]line ПРОДАЖА [16:29:34]line Товар: 4700000310043 [16:29:34]line Вода Жалалабат 27 1л [16:29:34]line 1.000 * 60.00 [16:29:34]line = 60.00 [16:29:34]line НДС 12% НСП 1% [16:29:34]line > о реализуемом товаре [16:29:34]line Товар: 4700000160358 [16:29:34]line Вода Легенда 1л [16:29:34]line 1.000 * 50.00 [16:29:34]line = 50.00 [16:29:34]line НДС 12% НСП 1% [16:29:34]line > о реализуемом товаре [16:29:34]line ИТОГО: 110.00 [16:29:34]line НСП 1% : 0.97 [16:29:34]line НДС 12% : 11.68 [16:29:34]line Наличными: 110.00 [16:29:34]line Безнал.: 0.00 [16:29:34]line Место: АЗС № 134 "Партнер Нефть" [16:29:34]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:29:34]line СНО: Общий режим [16:29:34]line Чек 56 29.07.2024 16:29 [16:29:34]line Смена: 434 ФФД: 1.0 [16:29:34]line ЗНМ: 0300000043 [16:29:34]line РНМ: 0000000000092663 [16:29:34]line Версия ККМ: 001 [16:29:34]line ФМ: 0000000000874937 [16:29:34]line ФД: 27153 [16:29:34]line ФПД: 61577225262253 [16:29:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T162939&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27153&fm=61577225262253&tin=02508201610067®Number=0000000000092663&sum=11000 [16:29:34]line 0 [16:29:34]OFD Sender: Processing packet 27153 [packets to send 9, broken 8] [16:29:34]ProducePacketName [16:29:34]name=ofd_packets/00027153 [16:29:34]OFD Sender: To server: pG, [16:29:34]CommunicateWithHost lk.salyk.kg:30040 [16:29:34]ConnectInit lk.salyk.kg [16:29:34]written 0, free lines is 4095 [16:29:34]Connected sock=10 [16:29:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 8B 01 00 00 C6 21 83 01 1C 5A 5A 03 01 00 03 00 77 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 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 38 00 00 00 F4 03 04 00 73 C3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 11 6A 00 00 35 04 06 00 38 01 10 A3 54 AD 43 92 A0 45 F9 3D 99 5A [16:29:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 15 97 47 00 A8 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 11 6A 00 00 F4 03 04 00 C3 69 A7 66 B6 04 01 00 00 38 78 62 63 80 D8 FF 56 [16:29:35]CommunicateWithHost err = 0 [16:29:35]CheckOFDResponse [16:29:35]1017 (14) - 77093643461234 [16:29:35]1041 (16) - 0000000000874937 [16:29:35]1040 (4) - 27153 [16:29:35]1012 (4) - 29.07.2024 10:06 [16:29:35]1206 (1) - 0 [16:29:35]OFD Sender: Remove packet 27153 [16:29:35]ProducePacketName [16:29:35]name=ofd_packets/00027153 [16:29:35]NVStorageDeleteData [16:29:35]Write to MH i2c: 01 00 00 0D 1C 29 [16:29:35]Write i2c OK [16:29:35]MH_I2C_Read... [16:29:35]Read from MH i2c: 01 [16:29:35]MH_I2C_Read... [16:29:35]Read from MH i2c: 01 07 00 [16:29:35]MH_I2C_Read... [16:29:35]Read from MH i2c: 01 07 00 0D 1C 00 00 00 00 00 A8 0C E4 [16:29:35]RasterBufferAndPrint [16:29:35]line [16:29:35]line [16:29:35]line [16:29:35]line [16:29:35]line [16:29:35]written 0, free lines is 3244 [16:29:35]MH_Cut [16:29:35]Write to MH i2c: D1 01 00 14 1C 01 02 [16:29:35]Write i2c OK [16:29:35]MH_I2C_Read... [16:29:35]Read from MH i2c: D1 [16:29:35]MH_I2C_Read... [16:29:35]Read from MH i2c: D1 01 00 [16:29:35]MH_I2C_Read... [16:29:35]Read from MH i2c: D1 01 00 14 1C 00 01 [16:29:35]Write to MH i2c: 01 00 00 15 1C 31 [16:29:35]Write i2c OK [16:29:35]MH_I2C_Read... [16:29:35]OFD Sender: No OFD packet to send [16:29:36]*** Cut start [16:29:36]*** Partial cut [16:29:36]*** CUTSNS_PIN = 1 [16:29:36]*** CUTSNS_PIN = 0 [16:29:36]*** Brake cut motor [16:29:36]Read from MH i2c: 01 [16:29:36]MH_I2C_Read... [16:29:36]*** Stop cut motor [16:29:36]*** Cut end [16:29:36]Read from MH i2c: 01 07 00 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: 01 07 00 15 1C 00 00 00 00 00 FF 0F 46 [16:29:36]process_action close_receipt done [16:29:36]requested_data is exist [16:29:36]produce_requested_data [16:29:36]requested_item fm.sn is exist - process it [16:29:36]wFMCommunicate request_size=4 [16:29:36]MH_SAM_APDU [16:29:36]CAPDU: 80 11 00 00 [16:29:36]Write to MH i2c: E2 08 00 16 1C 80 11 00 00 00 00 00 00 AC [16:29:36]Write i2c OK [16:29:36]MH_I2C_Read... [16:29:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:36]Read from MH i2c: E2 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: E2 17 00 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: E2 17 00 16 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 05 [16:29:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [16:29:36]wFMCommunicate OK [16:29:36]requested_item fd.num is exist - process it [16:29:36]SAM_PROTO_GetFieldsCounters [16:29:36]wFMCommunicate request_size=4 [16:29:36]MH_SAM_APDU [16:29:36]CAPDU: 80 13 00 00 [16:29:36]Write to MH i2c: E2 08 00 17 1C 80 13 00 00 00 00 00 00 AF [16:29:36]Write i2c OK [16:29:36]MH_I2C_Read... [16:29:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:36]Read from MH i2c: E2 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: E2 62 00 [16:29:36]MH_I2C_Read... [16:29:36]Read from MH i2c: E2 62 00 17 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 11 6A 00 00 0E 04 04 00 B2 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 AD [16:29:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 11 6A 00 00 0E 04 04 00 B2 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 [16:29:36]wFMCommunicate OK [16:29:36]SAM_PROTO_GetFieldsCounters done [16:29:36]requested_item shift.num is exist - process it [16:29:36]requested_item shift.opened is exist - process it [16:29:36]req_shift_opened [16:29:36]FM_GetShiftState [16:29:36]SAM_PROTO_GetShiftState [16:29:36]wFMCommunicate request_size=4 [16:29:36]MH_SAM_APDU [16:29:36]CAPDU: 80 13 01 00 [16:29:36]Write to MH i2c: E2 08 00 18 1C 80 13 01 00 00 00 00 00 B1 [16:29:36]Write i2c OK [16:29:36]MH_I2C_Read... [16:29:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:37]Read from MH i2c: E2 [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: E2 0E 00 [16:29:37]MH_I2C_Read... [16:29:37]Read from MH i2c: E2 0E 00 18 1C 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 32 [16:29:37]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [16:29:37]wFMCommunicate OK [16:29:37]SAM_PROTO_GetShiftState done [16:29:37]FM_GetShiftState done [16:29:37]req_shift_opened done [16:29:37]requested_item shift.open_date is exist - process it [16:29:37]req_shift_open_date [16:29:37]req_shift_open_date done [16:29:37]produce_requested_data done [16:29:37]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27153,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [16:29:37]process_action_free close_receipt [16:29:37]json_value_free [16:29:37]json_value_free done [16:29:37]process_json_proto returns [16:29:37]Send response to host [16:29:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27153,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [16:29:37]free response buf [16:29:37]execute_script done [16:29:37]execute_script returns [16:29:37]free content buf [16:29:37]Sock 9.Close socket [16:29:37]Sock 9.Thread stoped [16:29:40]OFD Sender: No OFD packet to send [16:29:45]OFD Sender: No OFD packet to send [16:29:50]OFD Sender: No OFD packet to send [16:29:55]OFD Sender: No OFD packet to send [16:30:00]OFD Sender: No OFD packet to send [16:30:05]accept exits with 8 [16:30:05]New connection [16:30:05]New thread 3066928484 created [16:30:05]Thread 3066785124 joined [16:30:05]Waiting for new connection... [16:30:05] Sock 8.Parse request [16:30:05]Sock 8.Check first char [16:30:05]Sock 8.First char is OK [16:30:05]request: POST /json_proto HTTP/1.0 [16:30:05]Method: POST [16:30:05]URL: /json_proto [16:30:05]Method is POST - this is cgi request [16:30:05]url: /json_proto [16:30:05]query_string will be loaded in cgi processing [16:30:05]execute_cgi json_proto POST (null) [16:30:05]execute_cgi path=json_proto method=POST [16:30:05]POST find Content-Length [16:30:05]Host: 172.17.45.8:8080 [16:30:05]Content-Length: 690 [16:30:05]Content-Type: application/json [16:30:05] [16:30:05]POST finish read [16:30:05]Found Content-Length = 690 [16:30:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150552", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "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" ] } } [16:30:05]execute_script... [16:30:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150552", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "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" ] } } [16:30:05]POST & json_proto [16:30:05]process_json_proto [16:30:05]json parsed OK: [16:30:05]protocol is kg_v1.0 [16:30:05]action value=close_receipt [16:30:05]process_action close_receipt [16:30:05]cmd_close_receipt [16:30:05]MH_GetDate [16:30:05]Write to MH i2c: F0 00 00 19 1C 24 [16:30:05]Write i2c OK [16:30:05]MH_I2C_Read... [16:30:05]Read from MH i2c: F0 [16:30:05]MH_I2C_Read... [16:30:05]Read from MH i2c: F0 09 00 [16:30:05]MH_I2C_Read... [16:30:05]Read from MH i2c: F0 09 00 19 1C 00 93 C3 A7 66 A6 1F 7F 64 38 [16:30:05]GetLastDocTimeStamp 1722270579 [16:30:05]current date 1722270611 [16:30:05]FM_GetShiftState [16:30:05]SAM_PROTO_GetShiftState [16:30:05]wFMCommunicate request_size=4 [16:30:05]MH_SAM_APDU [16:30:05]CAPDU: 80 13 01 00 [16:30:05]Write to MH i2c: E2 08 00 1A 1C 80 13 01 00 00 00 00 00 B3 [16:30:05]Write i2c OK [16:30:05]MH_I2C_Read... [16:30:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:05]Read from MH i2c: E2 [16:30:05]MH_I2C_Read... [16:30:05]Read from MH i2c: E2 0E 00 [16:30:05]MH_I2C_Read... [16:30:05]Read from MH i2c: E2 0E 00 1A 1C 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 34 [16:30:05]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [16:30:05]wFMCommunicate OK [16:30:05]SAM_PROTO_GetShiftState done [16:30:05]FM_GetShiftState done [16:30:05]opened in 1722213509 [16:30:05]opened+sec_in_day 1722299909 [16:30:05]quantity*price = 12500 [16:30:05]sum+1 = 12501 [16:30:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 57 29.07.2024 16:30 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27154 ФПД: 217994434807313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T163011&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27154&fm=217994434807313&tin=02508201610067®Number=0000000000092663&sum=12500 0 [16:30:06]StoreToDocumentArchive [16:30:06]shift 434 fd 27154 [16:30:06]save to /storage/0434/doc_00027154 [16:30:06]save last doc name /storage/0434/doc_00027154 to /storage/kkm_last_doc_name [16:30:06]save OK [16:30:06]Clear old archive folders... [16:30:06]ProcessDocumentItem done err = 0, tmpTLVsize=294 [16:30:06]tlvbuf is 0021B4D0 [16:30:06]SAM_PROTO_ClearQueue [16:30:06]wFMCommunicate request_size=4 [16:30:06]MH_SAM_APDU [16:30:06]CAPDU: 80 09 00 00 [16:30:06]Write to MH i2c: E2 08 00 27 1C 80 09 00 00 00 00 00 00 B5 [16:30:06]Write i2c OK [16:30:06]MH_I2C_Read... [16:30:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:30:06]Read from MH i2c: E2 [16:30:06]MH_I2C_Read... [16:30:06]Read from MH i2c: E2 03 00 [16:30:06]MH_I2C_Read... [16:30:06]Read from MH i2c: E2 03 00 27 1C 00 90 00 B7 [16:30:06]RAPDU: 90 00 [16:30:06]wFMCommunicate OK [16:30:06]SAM_PROTO_ClearQueue done [16:30:06]KKMCreateOFDPacket [16:30:06]OFDProtocolAddRootSTLVToBuf [16:30:06]FM_MakeSignedData [16:30:06]FM_MakeSignedData [16:30:06]SAM_PROTO_SignData [16:30:06]wFMCommunicate request_size=4 [16:30:06]MH_SAM_APDU [16:30:06]CAPDU: 80 0D 01 02 [16:30:06]Write to MH i2c: E2 08 00 28 1C 80 0D 01 02 00 00 00 00 BD [16:30:06]Write i2c OK [16:30:06]MH_I2C_Read... [16:30:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:30:06]Read from MH i2c: E2 [16:30:06]MH_I2C_Read... [16:30:06]Read from MH i2c: E2 03 00 [16:30:06]MH_I2C_Read... [16:30:06]Read from MH i2c: E2 03 00 28 1C 00 90 00 B8 [16:30:06]RAPDU: 90 00 [16:30:06]wFMCommunicate OK [16:30:06]wFMCommunicate request_size=255 [16:30:06]MH_SAM_APDU [16:30:06]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 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 D1 87 D0 B5 D1 80 D0 BD 2E 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 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 39 00 00 00 F4 03 04 00 93 C3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [16:30:06]Write to MH i2c: E2 02 01 29 1C 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 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 D1 87 D0 B5 D1 80 D0 BD 2E 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 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 39 00 00 00 F4 03 04 00 93 C3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 8F [16:30:06]Write i2c OK [16:30:06]MH_I2C_Read... [16:30:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:07]Read from MH i2c: E2 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: E2 03 00 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: E2 03 00 29 1C 00 90 00 B9 [16:30:07]RAPDU: 90 00 [16:30:07]wFMCommunicate OK [16:30:07]wFMCommunicate request_size=53 [16:30:07]MH_SAM_APDU [16:30:07]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 12 6A 00 00 35 04 06 00 C6 43 C8 D9 86 11 [16:30:07]Write to MH i2c: E2 38 00 2A 1C 80 0D 02 02 30 00 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 12 6A 00 00 35 04 06 00 C6 43 C8 D9 86 11 00 00 79 [16:30:07]Write i2c OK [16:30:07]MH_I2C_Read... [16:30:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:30:07]Read from MH i2c: E2 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: E2 03 00 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: E2 03 00 2A 1C 00 90 00 BA [16:30:07]RAPDU: 90 00 [16:30:07]wFMCommunicate OK [16:30:07]wFMCommunicate request_size=4 [16:30:07]MH_SAM_APDU [16:30:07]CAPDU: 80 0D 03 02 [16:30:07]Write to MH i2c: E2 08 00 2B 1C 80 0D 03 02 00 00 00 00 C2 [16:30:07]Write i2c OK [16:30:07]MH_I2C_Read... [16:30:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:30:07]Read from MH i2c: E2 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: E2 0B 00 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: E2 0B 00 2B 1C 00 4F EF D0 01 8F 02 44 2E 90 00 D5 [16:30:07]RAPDU: 4F EF D0 01 8F 02 44 2E 90 00 [16:30:07]wFMCommunicate OK [16:30:07]SAM_PROTO_SignData done [16:30:07]FM_MakeSignedData done [16:30:07]CreateOFDProtocolMessage [16:30:07]wFMCommunicate request_size=4 [16:30:07]MH_SAM_APDU [16:30:07]CAPDU: 80 11 00 00 [16:30:07]Write to MH i2c: E2 08 00 2C 1C 80 11 00 00 00 00 00 00 C2 [16:30:07]Write i2c OK [16:30:07]MH_I2C_Read... [16:30:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:07]Read from MH i2c: E2 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: E2 17 00 [16:30:07]MH_I2C_Read... [16:30:07]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 34 39 33 37 90 00 1B [16:30:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [16:30:07]wFMCommunicate OK [16:30:07]CreateOFDProtocolMessage done [16:30:07]OFDSenderStorePacket 27154 [16:30:07]StoreOFDPacket docnum=27154 [16:30:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 3A 01 00 00 ED D2 32 01 0F 8F 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 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 D1 87 D0 B5 D1 80 D0 BD 2E 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 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 39 00 00 00 F4 03 04 00 93 C3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 12 6A 00 00 35 04 06 00 C6 43 C8 D9 86 11 4F EF D0 01 8F 02 44 2E [16:30:07]CheckFolder [16:30:07]dirname=/storage/ofd_packets [16:30:07]CheckFolder done [16:30:07]ProducePacketName [16:30:07]name=ofd_packets/00027154 [16:30:07]NVStorageSaveData ofd_packets/00027154 [16:30:07]File name is /storage/ofd_packets/00027154 [16:30:07]Write 344 bytes [16:30:07]NVStorageSaveData done [16:30:07]OFDSenderStorePacket done [16:30:07]KKMCreateOFDPacket done [16:30:07]NVStorageSaveData kkm_last_timestamp [16:30:07]File name is /storage/kkm_last_timestamp [16:30:07]Write 4 bytes [16:30:07]NVStorageSaveData done [16:30:07]ExternCall_PrintAddStr [16:30:07]wPrintStart [16:30:07]Write to MH i2c: 01 00 00 2D 1C 49 [16:30:07]Write i2c OK [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: 01 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: 01 07 00 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: 01 07 00 2D 1C 00 00 00 00 00 FF 0F 5E [16:30:07]RasterBufferAndPrint [16:30:07]line Счет N : (3)150552 [16:30:07]line ИНН: 02508201610067 [16:30:07]line Контрольно-Кассовый Чек [16:30:07]line ПРОДАЖА [16:30:07]line Товар: 4870202521247 [16:30:07]line Напиток MAXI чай 1,2 черн.персик [16:30:07]line 1.000 * 125.00 [16:30:07]line = 125.00 [16:30:07]line НДС 12% НСП 1% [16:30:07]line > о реализуемом товаре [16:30:07]line ИТОГО: 125.00 [16:30:07]line НСП 1% : 1.11 [16:30:07]line НДС 12% : 13.27 [16:30:07]line Наличными: 125.00 [16:30:07]line Безнал.: 0.00 [16:30:07]line Место: АЗС № 134 "Партнер Нефть" [16:30:07]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:30:07]line СНО: Общий режим [16:30:07]line Чек 57 29.07.2024 16:30 [16:30:07]line Смена: 434 ФФД: 1.0 [16:30:07]line ЗНМ: 0300000043 [16:30:07]line РНМ: 0000000000092663 [16:30:07]line Версия ККМ: 001 [16:30:07]line ФМ: 0000000000874937 [16:30:07]line ФД: 27154 [16:30:07]line ФПД: 217994434807313 [16:30:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T163011&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27154&fm=217994434807313&tin=02508201610067®Number=0000000000092663&sum=12500 [16:30:07]line 0 [16:30:07]OFD Sender: Processing packet 27154 [packets to send 9, broken 8] [16:30:07]ProducePacketName [16:30:07]name=ofd_packets/00027154 [16:30:07]OFD Sender: To server: pG, [16:30:07]CommunicateWithHost lk.salyk.kg:30040 [16:30:07]ConnectInit lk.salyk.kg [16:30:07]written 0, free lines is 4095 [16:30:07]Connected sock=10 [16:30:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 3A 01 00 00 ED D2 32 01 0F 8F 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 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 D1 87 D0 B5 D1 80 D0 BD 2E 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 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 39 00 00 00 F4 03 04 00 93 C3 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 12 6A 00 00 35 04 06 00 C6 43 C8 D9 86 11 4F EF D0 01 8F 02 44 2E [16:30:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 A0 BD 47 00 ED 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 34 39 33 37 10 04 04 00 12 6A 00 00 F4 03 04 00 E4 69 A7 66 B6 04 01 00 00 2C 9C 8A AB EF 8F D3 7B [16:30:07]CommunicateWithHost err = 0 [16:30:07]CheckOFDResponse [16:30:07]1017 (14) - 77093643461234 [16:30:07]1041 (16) - 0000000000874937 [16:30:07]1040 (4) - 27154 [16:30:07]1012 (4) - 29.07.2024 10:07 [16:30:07]1206 (1) - 0 [16:30:07]OFD Sender: Remove packet 27154 [16:30:07]ProducePacketName [16:30:07]name=ofd_packets/00027154 [16:30:07]NVStorageDeleteData [16:30:07]Write to MH i2c: 01 00 00 55 1C 71 [16:30:07]Write i2c OK [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: 01 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: 01 07 00 [16:30:07]MH_I2C_Read... [16:30:07]Read from MH i2c: 01 07 00 55 1C 00 00 00 00 00 D9 0C 5D [16:30:07]RasterBufferAndPrint [16:30:07]line [16:30:07]line [16:30:07]line [16:30:07]line [16:30:07]line [16:30:07]written 0, free lines is 3294 [16:30:08]MH_Cut [16:30:08]Write to MH i2c: D1 01 00 5C 1C 01 4A [16:30:08]Write i2c OK [16:30:08]MH_I2C_Read... [16:30:08]Read from MH i2c: D1 [16:30:08]MH_I2C_Read... [16:30:08]Read from MH i2c: D1 01 00 [16:30:08]MH_I2C_Read... [16:30:08]Read from MH i2c: D1 01 00 5C 1C 00 49 [16:30:08]Write to MH i2c: 01 00 00 5D 1C 79 [16:30:08]Write i2c OK [16:30:08]MH_I2C_Read... [16:30:08]OFD Sender: No OFD packet to send [16:30:08]*** Cut start [16:30:08]*** Partial cut [16:30:08]*** CUTSNS_PIN = 1 [16:30:08]*** CUTSNS_PIN = 0 [16:30:08]*** Brake cut motor [16:30:09]Read from MH i2c: 01 [16:30:09]MH_I2C_Read... [16:30:09]*** Stop cut motor [16:30:09]*** Cut end [16:30:09]Read from MH i2c: 01 07 00 [16:30:09]MH_I2C_Read... [16:30:09]Read from MH i2c: 01 07 00 5D 1C 00 00 00 00 00 FF 0F 8E [16:30:09]process_action close_receipt done [16:30:09]requested_data is exist [16:30:09]produce_requested_data [16:30:09]requested_item fm.sn is exist - process it [16:30:09]wFMCommunicate request_size=4 [16:30:09]MH_SAM_APDU [16:30:09]CAPDU: 80 11 00 00 [16:30:09]Write to MH i2c: E2 08 00 5E 1C 80 11 00 00 00 00 00 00 F4 [16:30:09]Write i2c OK [16:30:09]MH_I2C_Read... [16:30:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:30:09]Read from MH i2c: E2 [16:30:09]MH_I2C_Read... [16:30:09]Read from MH i2c: E2 17 00 [16:30:09]MH_I2C_Read... [16:30:09]Read from MH i2c: E2 17 00 5E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 4D [16:30:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [16:30:09]wFMCommunicate OK [16:30:09]requested_item fd.num is exist - process it [16:30:09]SAM_PROTO_GetFieldsCounters [16:30:09]wFMCommunicate request_size=4 [16:30:09]MH_SAM_APDU [16:30:09]CAPDU: 80 13 00 00 [16:30:09]Write to MH i2c: E2 08 00 5F 1C 80 13 00 00 00 00 00 00 F7 [16:30:09]Write i2c OK [16:30:09]MH_I2C_Read... [16:30:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:30:09]Read from MH i2c: E2 [16:30:09]MH_I2C_Read... [16:30:09]Read from MH i2c: E2 62 00 [16:30:09]MH_I2C_Read... [16:30:09]Read from MH i2c: E2 62 00 5F 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 12 6A 00 00 0E 04 04 00 B2 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 F9 [16:30:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 12 6A 00 00 0E 04 04 00 B2 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 [16:30:09]wFMCommunicate OK [16:30:09]SAM_PROTO_GetFieldsCounters done [16:30:09]requested_item shift.num is exist - process it [16:30:09]requested_item shift.opened is exist - process it [16:30:09]req_shift_opened [16:30:09]FM_GetShiftState [16:30:09]SAM_PROTO_GetShiftState [16:30:09]wFMCommunicate request_size=4 [16:30:09]MH_SAM_APDU [16:30:09]CAPDU: 80 13 01 00 [16:30:09]Write to MH i2c: E2 08 00 60 1C 80 13 01 00 00 00 00 00 F9 [16:30:09]Write i2c OK [16:30:09]MH_I2C_Read... [16:30:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:30:09]Read from MH i2c: E2 [16:30:09]MH_I2C_Read... [16:30:09]Read from MH i2c: E2 0E 00 [16:30:09]MH_I2C_Read... [16:30:09]Read from MH i2c: E2 0E 00 60 1C 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 7A [16:30:09]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [16:30:09]wFMCommunicate OK [16:30:09]SAM_PROTO_GetShiftState done [16:30:09]FM_GetShiftState done [16:30:09]req_shift_opened done [16:30:09]requested_item shift.open_date is exist - process it [16:30:09]req_shift_open_date [16:30:09]req_shift_open_date done [16:30:09]produce_requested_data done [16:30:09]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27154,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [16:30:09]process_action_free close_receipt [16:30:09]json_value_free [16:30:09]json_value_free done [16:30:09]process_json_proto returns [16:30:09]Send response to host [16:30:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27154,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [16:30:09]free response buf [16:30:09]execute_script done [16:30:09]execute_script returns [16:30:09]free content buf [16:30:09]Sock 8.Close socket [16:30:09]Sock 8.Thread stoped [16:30:13]OFD Sender: No OFD packet to send [16:30:18]OFD Sender: No OFD packet to send [16:30:23]OFD Sender: No OFD packet to send [16:30:28]OFD Sender: No OFD packet to send [16:30:33]OFD Sender: No OFD packet to send [16:30:38]OFD Sender: No OFD packet to send [16:30:43]OFD Sender: No OFD packet to send [16:30:48]OFD Sender: No OFD packet to send [16:30:53]OFD Sender: No OFD packet to send [16:30:58]OFD Sender: No OFD packet to send [16:31:03]OFD Sender: No OFD packet to send [16:31:08]OFD Sender: No OFD packet to send [16:31:13]OFD Sender: No OFD packet to send [16:31:18]OFD Sender: No OFD packet to send [16:31:23]OFD Sender: No OFD packet to send [16:31:28]OFD Sender: No OFD packet to send [16:31:33]OFD Sender: No OFD packet to send [16:31:38]OFD Sender: No OFD packet to send [16:31:43]OFD Sender: No OFD packet to send [16:31:48]OFD Sender: No OFD packet to send [16:31:53]OFD Sender: No OFD packet to send [16:31:58]OFD Sender: No OFD packet to send [16:32:00]accept exits with 9 [16:32:00]New connection [16:32:00]New thread 3066785124 created [16:32:00]Thread 3066928484 joined [16:32:00]Waiting for new connection... [16:32:00] Sock 9.Parse request [16:32:00]Sock 9.Check first char [16:32:00]Sock 9.First char is OK [16:32:00]request: POST /json_proto HTTP/1.0 [16:32:00]Method: POST [16:32:00]URL: /json_proto [16:32:00]Method is POST - this is cgi request [16:32:00]url: /json_proto [16:32:00]query_string will be loaded in cgi processing [16:32:00]execute_cgi json_proto POST (null) [16:32:00]execute_cgi path=json_proto method=POST [16:32:00]POST find Content-Length [16:32:00]Host: 172.17.45.8:8080 [16:32:00]Content-Length: 1277 [16:32:00]Content-Type: application/json [16:32:00] [16:32:00]POST finish read [16:32:00]Found Content-Length = 1277 [16:32:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150553", "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": "4700003010476", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \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 }]} ,{ "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:00]execute_script... [16:32: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)150553", "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": "4700003010476", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \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 }]} ,{ "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:00]POST & json_proto [16:32:00]process_json_proto [16:32:00]json parsed OK: [16:32:00]protocol is kg_v1.0 [16:32:00]action value=close_receipt [16:32:00]process_action close_receipt [16:32:00]cmd_close_receipt [16:32:00]MH_GetDate [16:32:00]Write to MH i2c: F0 00 00 61 1C 6C [16:32:00]Write i2c OK [16:32:00]MH_I2C_Read... [16:32:00]Read from MH i2c: F0 [16:32:00]MH_I2C_Read... [16:32:00]Read from MH i2c: F0 09 00 [16:32:00]MH_I2C_Read... [16:32:00]Read from MH i2c: F0 09 00 61 1C 00 07 C4 A7 66 A6 1F 7F 64 F5 [16:32:00]GetLastDocTimeStamp 1722270611 [16:32:00]current date 1722270727 [16:32:00]FM_GetShiftState [16:32:00]SAM_PROTO_GetShiftState [16:32:00]wFMCommunicate request_size=4 [16:32:00]MH_SAM_APDU [16:32:00]CAPDU: 80 13 01 00 [16:32:00]Write to MH i2c: E2 08 00 62 1C 80 13 01 00 00 00 00 00 FB [16:32:00]Write i2c OK [16:32:00]MH_I2C_Read... [16:32:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:01]Read from MH i2c: E2 [16:32:01]MH_I2C_Read... [16:32:01]Read from MH i2c: E2 0E 00 [16:32:01]MH_I2C_Read... [16:32:01]Read from MH i2c: E2 0E 00 62 1C 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 7C [16:32:01]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [16:32:01]wFMCommunicate OK [16:32:01]SAM_PROTO_GetShiftState done [16:32:01]FM_GetShiftState done [16:32:01]opened in 1722213509 [16:32:01]opened+sec_in_day 1722299909 [16:32:01]quantity*price = 6500 [16:32:01]sum+1 = 6501 [16:32:01]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003010476 Напиток Let`s Go! с/с яблоко ПЭТ 1л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870202522015 Напиток Maxi Чай Грушевый 1,2л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 255.00 НСП 1% : 2.25 НДС 12% : 27.08 Наличными: 255.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 58 29.07.2024 16:32 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27155 ФПД: 3013449781630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T163207&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27155&fm=3013449781630&tin=02508201610067®Number=0000000000092663&sum=25500 0 [16:32:02]StoreToDocumentArchive [16:32:02]shift 434 fd 27155 [16:32:02]save to /storage/0434/doc_00027155 [16:32:02]save last doc name /storage/0434/doc_00027155 to /storage/kkm_last_doc_name [16:32:02]save OK [16:32:02]Clear old archive folders... [16:32:02]ProcessDocumentItem done err = 0, tmpTLVsize=533 [16:32:02]tlvbuf is 001C8A10 [16:32:02]SAM_PROTO_ClearQueue [16:32:02]wFMCommunicate request_size=4 [16:32:02]MH_SAM_APDU [16:32:02]CAPDU: 80 09 00 00 [16:32:02]Write to MH i2c: E2 08 00 6F 1C 80 09 00 00 00 00 00 00 FD [16:32:02]Write i2c OK [16:32:02]MH_I2C_Read... [16:32:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:32:02]Read from MH i2c: E2 [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: E2 03 00 [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: E2 03 00 6F 1C 00 90 00 FF [16:32:02]RAPDU: 90 00 [16:32:02]wFMCommunicate OK [16:32:02]SAM_PROTO_ClearQueue done [16:32:02]KKMCreateOFDPacket [16:32:02]OFDProtocolAddRootSTLVToBuf [16:32:02]FM_MakeSignedData [16:32:02]FM_MakeSignedData [16:32:02]SAM_PROTO_SignData [16:32:02]wFMCommunicate request_size=4 [16:32:02]MH_SAM_APDU [16:32:02]CAPDU: 80 0D 01 02 [16:32:02]Write to MH i2c: E2 08 00 70 1C 80 0D 01 02 00 00 00 00 05 [16:32:02]Write i2c OK [16:32:02]MH_I2C_Read... [16:32:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:32:02]Read from MH i2c: E2 [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: E2 03 00 [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: E2 03 00 70 1C 00 90 00 00 [16:32:02]RAPDU: 90 00 [16:32:02]wFMCommunicate OK [16:32:02]wFMCommunicate request_size=255 [16:32:02]MH_SAM_APDU [16:32:02]CAPDU: 80 0D 02 02 FA 03 00 15 02 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 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 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 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 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 [16:32:02]Write to MH i2c: E2 02 01 71 1C 80 0D 02 02 FA 00 03 00 15 02 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 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 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 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 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 00 00 70 [16:32:02]Write i2c OK [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: E2 [16:32:02]MH_I2C_Read... [16:32:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:02]Read from MH i2c: E2 03 00 [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: E2 03 00 71 1C 00 90 00 01 [16:32:02]RAPDU: 90 00 [16:32:02]wFMCommunicate OK [16:32:02]wFMCommunicate request_size=255 [16:32:02]MH_SAM_APDU [16:32:02]CAPDU: 80 0D 02 02 FA 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 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 31 2C 32 D0 BB 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 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 9C 63 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 07 C4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 [16:32:02]Write to MH i2c: E2 02 01 72 1C 80 0D 02 02 FA 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 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 31 2C 32 D0 BB 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 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 9C 63 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 07 C4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 00 00 B3 [16:32:02]Write i2c OK [16:32:02]MH_I2C_Read... [16:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:03]Read from MH i2c: E2 [16:32:03]MH_I2C_Read... [16:32:03]Read from MH i2c: E2 03 00 [16:32:03]MH_I2C_Read... [16:32:03]Read from MH i2c: E2 03 00 72 1C 00 90 00 02 [16:32:03]RAPDU: 90 00 [16:32:03]wFMCommunicate OK [16:32:03]wFMCommunicate request_size=42 [16:32:03]MH_SAM_APDU [16:32:03]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 13 6A 00 00 35 04 06 00 02 BD 9F 9A 91 7E [16:32:03]Write to MH i2c: E2 2D 00 73 1C 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 13 6A 00 00 35 04 06 00 02 BD 9F 9A 91 7E 00 00 68 [16:32:03]Write i2c OK [16:32:03]MH_I2C_Read... [16:32:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:03]Read from MH i2c: E2 [16:32:03]MH_I2C_Read... [16:32:03]Read from MH i2c: E2 03 00 [16:32:03]MH_I2C_Read... [16:32:03]Read from MH i2c: E2 03 00 73 1C 00 90 00 03 [16:32:03]RAPDU: 90 00 [16:32:03]wFMCommunicate OK [16:32:03]wFMCommunicate request_size=4 [16:32:03]MH_SAM_APDU [16:32:03]CAPDU: 80 0D 03 02 [16:32:03]Write to MH i2c: E2 08 00 74 1C 80 0D 03 02 00 00 00 00 0B [16:32:03]Write i2c OK [16:32:03]MH_I2C_Read... [16:32:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:32:03]Read from MH i2c: E2 [16:32:03]MH_I2C_Read... [16:32:03]Read from MH i2c: E2 0B 00 [16:32:03]MH_I2C_Read... [16:32:03]Read from MH i2c: E2 0B 00 74 1C 00 CC 5A 47 65 77 06 F6 1E 90 00 6F [16:32:03]RAPDU: CC 5A 47 65 77 06 F6 1E 90 00 [16:32:03]wFMCommunicate OK [16:32:03]SAM_PROTO_SignData done [16:32:03]FM_MakeSignedData done [16:32:03]CreateOFDProtocolMessage [16:32:03]wFMCommunicate request_size=4 [16:32:03]MH_SAM_APDU [16:32:03]CAPDU: 80 11 00 00 [16:32:03]Write to MH i2c: E2 08 00 75 1C 80 11 00 00 00 00 00 00 0B [16:32:03]Write i2c OK [16:32:03]MH_I2C_Read... [16:32:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:03]Read from MH i2c: E2 [16:32:03]MH_I2C_Read... [16:32:03]Read from MH i2c: E2 17 00 [16:32:03]MH_I2C_Read... [16:32:03]Read from MH i2c: E2 17 00 75 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 64 [16:32:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [16:32:03]wFMCommunicate OK [16:32:03]CreateOFDProtocolMessage done [16:32:03]OFDSenderStorePacket 27155 [16:32:03]StoreOFDPacket docnum=27155 [16:32:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 29 02 00 00 32 C6 21 02 45 A5 5A 03 01 00 03 00 15 02 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 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 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 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 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 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 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 31 2C 32 D0 BB 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 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 9C 63 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 07 C4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 13 6A 00 00 35 04 06 00 02 BD 9F 9A 91 7E CC 5A 47 65 77 06 F6 1E [16:32:03]CheckFolder [16:32:03]dirname=/storage/ofd_packets [16:32:03]CheckFolder done [16:32:03]ProducePacketName [16:32:03]name=ofd_packets/00027155 [16:32:03]NVStorageSaveData ofd_packets/00027155 [16:32:03]File name is /storage/ofd_packets/00027155 [16:32:03]Write 583 bytes [16:32:03]NVStorageSaveData done [16:32:03]OFDSenderStorePacket done [16:32:03]KKMCreateOFDPacket done [16:32:03]NVStorageSaveData kkm_last_timestamp [16:32:03]File name is /storage/kkm_last_timestamp [16:32:03]Write 4 bytes [16:32:03]NVStorageSaveData done [16:32:03]ExternCall_PrintAddStr [16:32:03]wPrintStart [16:32:03]Write to MH i2c: 01 00 00 76 1C 92 [16:32:03]Write i2c OK [16:32:03]MH_I2C_Read... [16:32:03]Read from MH i2c: 01 [16:32:03]MH_I2C_Read... [16:32:03]Read from MH i2c: 01 07 00 [16:32:03]MH_I2C_Read... [16:32:03]Read from MH i2c: 01 07 00 76 1C 00 00 00 00 00 FF 0F A7 [16:32:03]RasterBufferAndPrint [16:32:03]line Счет N : (3)150553 [16:32:03]line ИНН: 02508201610067 [16:32:03]line Контрольно-Кассовый Чек [16:32:03]line ПРОДАЖА [16:32:03]line Товар: 4700040114120 [16:32:03]line Султан чай 1л. чер персик [16:32:03]line 1.000 * 65.00 [16:32:03]line = 65.00 [16:32:03]line НДС 12% НСП 1% [16:32:03]line > о реализуемом товаре [16:32:03]line Товар: 4700003010476 [16:32:03]line Напиток Let`s Go! с/с яблоко ПЭТ 1л [16:32:03]line 1.000 * 80.00 [16:32:03]line = 80.00 [16:32:03]line НДС 12% НСП 1% [16:32:03]line > о реализуемом товаре [16:32:03]line Товар: 4870202522015 [16:32:03]line Напиток Maxi Чай Грушевый 1,2л [16:32:03]line 1.000 * 110.00 [16:32:03]line = 110.00 [16:32:03]line НДС 12% НСП 1% [16:32:03]line > о реализуемом товаре [16:32:03]line ИТОГО: 255.00 [16:32:03]line НСП 1% : 2.25 [16:32:03]line НДС 12% : 27.08 [16:32:03]line Наличными: 255.00 [16:32:03]line Безнал.: 0.00 [16:32:03]line Место: АЗС № 134 "Партнер Нефть" [16:32:03]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:32:03]line СНО: Общий режим [16:32:03]line Чек 58 29.07.2024 16:32 [16:32:03]line Смена: 434 ФФД: 1.0 [16:32:03]line ЗНМ: 0300000043 [16:32:03]line РНМ: 0000000000092663 [16:32:03]line Версия ККМ: 001 [16:32:03]line ФМ: 0000000000874937 [16:32:03]line ФД: 27155 [16:32:03]line ФПД: 3013449781630 [16:32:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T163207&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27155&fm=3013449781630&tin=02508201610067®Number=0000000000092663&sum=25500 [16:32:03]line 0 [16:32:03]OFD Sender: Processing packet 27155 [packets to send 9, broken 8] [16:32:03]ProducePacketName [16:32:03]name=ofd_packets/00027155 [16:32:03]OFD Sender: To server: pG, [16:32:03]CommunicateWithHost lk.salyk.kg:30040 [16:32:03]ConnectInit lk.salyk.kg [16:32:03]written 0, free lines is 4095 [16:32:03]Connected sock=10 [16:32:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 29 02 00 00 32 C6 21 02 45 A5 5A 03 01 00 03 00 15 02 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 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 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 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 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 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 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 31 2C 32 D0 BB 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 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 9C 63 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 07 C4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 13 6A 00 00 35 04 06 00 02 BD 9F 9A 91 7E CC 5A 47 65 77 06 F6 1E [16:32:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 8F 76 47 00 42 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 13 6A 00 00 F4 03 04 00 58 6A A7 66 B6 04 01 00 00 FE 1C 71 36 15 30 B5 E7 [16:32:03]CommunicateWithHost err = 0 [16:32:03]CheckOFDResponse [16:32:03]1017 (14) - 77093643461234 [16:32:03]1041 (16) - 0000000000874937 [16:32:03]1040 (4) - 27155 [16:32:03]1012 (4) - 29.07.2024 10:09 [16:32:03]1206 (1) - 0 [16:32:03]OFD Sender: Remove packet 27155 [16:32:03]ProducePacketName [16:32:03]name=ofd_packets/00027155 [16:32:03]NVStorageDeleteData [16:32:04]Write to MH i2c: 01 00 00 AB 1C C7 [16:32:04]Write i2c OK [16:32:04]MH_I2C_Read... [16:32:04]Read from MH i2c: 01 [16:32:04]MH_I2C_Read... [16:32:04]Read from MH i2c: 01 07 00 [16:32:04]MH_I2C_Read... [16:32:04]Read from MH i2c: 01 07 00 AB 1C 00 00 00 00 00 14 0C EE [16:32:04]RasterBufferAndPrint [16:32:04]line [16:32:04]line [16:32:04]line [16:32:04]line [16:32:04]line [16:32:04]written 0, free lines is 3101 [16:32:04]MH_Cut [16:32:04]Write to MH i2c: D1 01 00 B2 1C 01 A0 [16:32:04]Write i2c OK [16:32:04]MH_I2C_Read... [16:32:04]Read from MH i2c: D1 [16:32:04]MH_I2C_Read... [16:32:04]Read from MH i2c: D1 01 00 [16:32:04]MH_I2C_Read... [16:32:04]Read from MH i2c: D1 01 00 B2 1C 00 9F [16:32:04]Write to MH i2c: 01 00 00 B3 1C CF [16:32:04]Write i2c OK [16:32:04]MH_I2C_Read... [16:32:04]OFD Sender: No OFD packet to send [16:32:05]*** Cut start [16:32:05]*** Partial cut [16:32:05]*** CUTSNS_PIN = 1 [16:32:05]*** CUTSNS_PIN = 0 [16:32:05]*** Brake cut motor [16:32:05]Read from MH i2c: 01 [16:32:05]MH_I2C_Read... [16:32:05]*** Stop cut motor [16:32:05]*** Cut end [16:32:05]Read from MH i2c: 01 07 00 [16:32:05]MH_I2C_Read... [16:32:05]Read from MH i2c: 01 07 00 B3 1C 00 00 00 00 00 FF 0F E4 [16:32:05]process_action close_receipt done [16:32:05]requested_data is exist [16:32:05]produce_requested_data [16:32:05]requested_item fm.sn is exist - process it [16:32:05]wFMCommunicate request_size=4 [16:32:05]MH_SAM_APDU [16:32:05]CAPDU: 80 11 00 00 [16:32:05]Write to MH i2c: E2 08 00 B4 1C 80 11 00 00 00 00 00 00 4A [16:32:05]Write i2c OK [16:32:05]MH_I2C_Read... [16:32:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:05]Read from MH i2c: E2 [16:32:05]MH_I2C_Read... [16:32:05]Read from MH i2c: E2 17 00 [16:32:05]MH_I2C_Read... [16:32:05]Read from MH i2c: E2 17 00 B4 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 A3 [16:32:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [16:32:05]wFMCommunicate OK [16:32:05]requested_item fd.num is exist - process it [16:32:05]SAM_PROTO_GetFieldsCounters [16:32:05]wFMCommunicate request_size=4 [16:32:05]MH_SAM_APDU [16:32:05]CAPDU: 80 13 00 00 [16:32:05]Write to MH i2c: E2 08 00 B5 1C 80 13 00 00 00 00 00 00 4D [16:32:05]Write i2c OK [16:32:05]MH_I2C_Read... [16:32:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:05]Read from MH i2c: E2 [16:32:05]MH_I2C_Read... [16:32:05]Read from MH i2c: E2 62 00 [16:32:05]MH_I2C_Read... [16:32:05]Read from MH i2c: E2 62 00 B5 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 13 6A 00 00 0E 04 04 00 B2 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 53 [16:32:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 13 6A 00 00 0E 04 04 00 B2 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 [16:32:05]wFMCommunicate OK [16:32:05]SAM_PROTO_GetFieldsCounters done [16:32:05]requested_item shift.num is exist - process it [16:32:05]requested_item shift.opened is exist - process it [16:32:05]req_shift_opened [16:32:05]FM_GetShiftState [16:32:05]SAM_PROTO_GetShiftState [16:32:05]wFMCommunicate request_size=4 [16:32:05]MH_SAM_APDU [16:32:05]CAPDU: 80 13 01 00 [16:32:05]Write to MH i2c: E2 08 00 B6 1C 80 13 01 00 00 00 00 00 4F [16:32:05]Write i2c OK [16:32:05]MH_I2C_Read... [16:32:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:05]Read from MH i2c: E2 [16:32:05]MH_I2C_Read... [16:32:05]Read from MH i2c: E2 0E 00 [16:32:05]MH_I2C_Read... [16:32:05]Read from MH i2c: E2 0E 00 B6 1C 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 D0 [16:32:05]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [16:32:05]wFMCommunicate OK [16:32:05]SAM_PROTO_GetShiftState done [16:32:05]FM_GetShiftState done [16:32:05]req_shift_opened done [16:32:05]requested_item shift.open_date is exist - process it [16:32:05]req_shift_open_date [16:32:05]req_shift_open_date done [16:32:05]produce_requested_data done [16:32:05]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27155,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [16:32:05]process_action_free close_receipt [16:32:05]json_value_free [16:32:05]json_value_free done [16:32:05]process_json_proto returns [16:32:05]Send response to host [16:32:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27155,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [16:32:05]free response buf [16:32:05]execute_script done [16:32:05]execute_script returns [16:32:05]free content buf [16:32:05]Sock 9.Close socket [16:32:05]Sock 9.Thread stoped [16:32:09]OFD Sender: No OFD packet to send [16:32:14]OFD Sender: No OFD packet to send [16:32:19]OFD Sender: No OFD packet to send [16:32:24]OFD Sender: No OFD packet to send [16:32:29]OFD Sender: No OFD packet to send [16:32:34]OFD Sender: No OFD packet to send [16:32:39]OFD Sender: No OFD packet to send [16:32:44]OFD Sender: No OFD packet to send [16:32:49]OFD Sender: No OFD packet to send [16:32:54]OFD Sender: No OFD packet to send [16:32:59]OFD Sender: No OFD packet to send [16:33:04]OFD Sender: No OFD packet to send [16:33:09]OFD Sender: No OFD packet to send [16:33:14]OFD Sender: No OFD packet to send [16:33:19]OFD Sender: No OFD packet to send [16:33:24]OFD Sender: No OFD packet to send [16:33:24]accept exits with 8 [16:33:24]New connection [16:33:24]New thread 3066928484 created [16:33:24]Thread 3066785124 joined [16:33:24]Waiting for new connection... [16:33:24] Sock 8.Parse request [16:33:24]Sock 8.Check first char [16:33:24]Sock 8.First char is OK [16:33:24]request: POST /json_proto HTTP/1.0 [16:33:24]Method: POST [16:33:24]URL: /json_proto [16:33:24]Method is POST - this is cgi request [16:33:24]url: /json_proto [16:33:24]query_string will be loaded in cgi processing [16:33:24]execute_cgi json_proto POST (null) [16:33:24]execute_cgi path=json_proto method=POST [16:33:24]POST find Content-Length [16:33:24]Host: 172.17.45.8:8080 [16:33:24]Content-Length: 1033 [16:33:24]Content-Type: application/json [16:33:24] [16:33:24]POST finish read [16:33:24]Found Content-Length = 1033 [16:33:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150554", "tax_sys" : 0, "items" : [ { "code": "4700000481989", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043A\u0438\u0432\u0438-\u043C\u0430\u043D\u0433\u043E\u0441\u0442\u0438\u043D 0,45 ", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 110.00, "quantity" : 1.000, "sum" : 110.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" ] } } [16:33:24]execute_script... [16:33: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)150554", "tax_sys" : 0, "items" : [ { "code": "4700000481989", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043A\u0438\u0432\u0438-\u043C\u0430\u043D\u0433\u043E\u0441\u0442\u0438\u043D 0,45 ", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 110.00, "quantity" : 1.000, "sum" : 110.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" ] } } [16:33:24]POST & json_proto [16:33:24]process_json_proto [16:33:24]json parsed OK: [16:33:24]protocol is kg_v1.0 [16:33:24]action value=close_receipt [16:33:24]process_action close_receipt [16:33:24]cmd_close_receipt [16:33:24]MH_GetDate [16:33:24]Write to MH i2c: F0 00 00 B7 1C C2 [16:33:24]Write i2c OK [16:33:24]MH_I2C_Read... [16:33:24]Read from MH i2c: F0 [16:33:24]MH_I2C_Read... [16:33:24]Read from MH i2c: F0 09 00 [16:33:24]MH_I2C_Read... [16:33:24]Read from MH i2c: F0 09 00 B7 1C 00 5B C4 A7 66 A6 1F 7F 64 9F [16:33:24]GetLastDocTimeStamp 1722270727 [16:33:24]current date 1722270811 [16:33:24]FM_GetShiftState [16:33:24]SAM_PROTO_GetShiftState [16:33:24]wFMCommunicate request_size=4 [16:33:24]MH_SAM_APDU [16:33:24]CAPDU: 80 13 01 00 [16:33:24]Write to MH i2c: E2 08 00 B8 1C 80 13 01 00 00 00 00 00 51 [16:33:24]Write i2c OK [16:33:24]MH_I2C_Read... [16:33:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:24]Read from MH i2c: E2 [16:33:24]MH_I2C_Read... [16:33:24]Read from MH i2c: E2 0E 00 [16:33:24]MH_I2C_Read... [16:33:24]Read from MH i2c: E2 0E 00 B8 1C 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 D2 [16:33:24]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [16:33:24]wFMCommunicate OK [16:33:24]SAM_PROTO_GetShiftState done [16:33:24]FM_GetShiftState done [16:33:24]opened in 1722213509 [16:33:24]opened+sec_in_day 1722299909 [16:33:24]quantity*price = 9500 [16:33:24]sum+1 = 9501 [16:33:24]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521261 Напиток MAXI чай 1,2 лесные ягоды 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.77 Наличными: 205.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 59 29.07.2024 16:33 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27156 ФПД: 262404916635335 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T163331&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27156&fm=262404916635335&tin=02508201610067®Number=0000000000092663&sum=20500 0 [16:33:25]StoreToDocumentArchive [16:33:25]shift 434 fd 27156 [16:33:25]save to /storage/0434/doc_00027156 [16:33:25]save last doc name /storage/0434/doc_00027156 to /storage/kkm_last_doc_name [16:33:25]save OK [16:33:25]Clear old archive folders... [16:33:25]ProcessDocumentItem done err = 0, tmpTLVsize=433 [16:33:25]tlvbuf is B6EA28F0 [16:33:25]SAM_PROTO_ClearQueue [16:33:25]wFMCommunicate request_size=4 [16:33:25]MH_SAM_APDU [16:33:25]CAPDU: 80 09 00 00 [16:33:25]Write to MH i2c: E2 08 00 C5 1C 80 09 00 00 00 00 00 00 53 [16:33:25]Write i2c OK [16:33:25]MH_I2C_Read... [16:33:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:26]Read from MH i2c: E2 [16:33:26]MH_I2C_Read... [16:33:26]Read from MH i2c: E2 03 00 [16:33:26]MH_I2C_Read... [16:33:26]Read from MH i2c: E2 03 00 C5 1C 00 90 00 55 [16:33:26]RAPDU: 90 00 [16:33:26]wFMCommunicate OK [16:33:26]SAM_PROTO_ClearQueue done [16:33:26]KKMCreateOFDPacket [16:33:26]OFDProtocolAddRootSTLVToBuf [16:33:26]FM_MakeSignedData [16:33:26]FM_MakeSignedData [16:33:26]SAM_PROTO_SignData [16:33:26]wFMCommunicate request_size=4 [16:33:26]MH_SAM_APDU [16:33:26]CAPDU: 80 0D 01 02 [16:33:26]Write to MH i2c: E2 08 00 C6 1C 80 0D 01 02 00 00 00 00 5B [16:33:26]Write i2c OK [16:33:26]MH_I2C_Read... [16:33:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:26]Read from MH i2c: E2 [16:33:26]MH_I2C_Read... [16:33:26]Read from MH i2c: E2 03 00 [16:33:26]MH_I2C_Read... [16:33:26]Read from MH i2c: E2 03 00 C6 1C 00 90 00 56 [16:33:26]RAPDU: 90 00 [16:33:26]wFMCommunicate OK [16:33:26]wFMCommunicate request_size=255 [16:33:26]MH_SAM_APDU [16:33:26]CAPDU: 80 0D 02 02 FA 03 00 B1 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 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 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 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 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 F8 2A 00 00 00 00 13 04 06 [16:33:26]Write to MH i2c: E2 02 01 C7 1C 80 0D 02 02 FA 00 03 00 B1 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 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 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 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 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 F8 2A 00 00 00 00 13 04 06 00 00 97 [16:33:26]Write i2c OK [16:33:26]MH_I2C_Read... [16:33:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:26]Read from MH i2c: E2 [16:33:26]MH_I2C_Read... [16:33:26]Read from MH i2c: E2 03 00 [16:33:26]MH_I2C_Read... [16:33:26]Read from MH i2c: E2 03 00 C7 1C 00 90 00 57 [16:33:26]RAPDU: 90 00 [16:33:26]wFMCommunicate OK [16:33:26]wFMCommunicate request_size=192 [16:33:26]MH_SAM_APDU [16:33:26]CAPDU: 80 0D 02 02 BB 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 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 3B 00 00 00 F4 03 04 00 5B C4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 14 6A 00 00 35 04 06 00 EE A7 E7 D7 E6 C7 [16:33:26]Write to MH i2c: E2 C3 00 C8 1C 80 0D 02 02 BB 00 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 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 3B 00 00 00 F4 03 04 00 5B C4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 14 6A 00 00 35 04 06 00 EE A7 E7 D7 E6 C7 00 00 91 [16:33:26]Write i2c OK [16:33:26]MH_I2C_Read... [16:33:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:26]Read from MH i2c: E2 [16:33:26]MH_I2C_Read... [16:33:26]Read from MH i2c: E2 03 00 [16:33:26]MH_I2C_Read... [16:33:26]Read from MH i2c: E2 03 00 C8 1C 00 90 00 58 [16:33:26]RAPDU: 90 00 [16:33:26]wFMCommunicate OK [16:33:26]wFMCommunicate request_size=4 [16:33:26]MH_SAM_APDU [16:33:26]CAPDU: 80 0D 03 02 [16:33:26]Write to MH i2c: E2 08 00 C9 1C 80 0D 03 02 00 00 00 00 60 [16:33:26]Write i2c OK [16:33:26]MH_I2C_Read... [16:33:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:26]Read from MH i2c: E2 [16:33:26]MH_I2C_Read... [16:33:26]Read from MH i2c: E2 0B 00 [16:33:26]MH_I2C_Read... [16:33:26]Read from MH i2c: E2 0B 00 C9 1C 00 02 1D C7 F4 EE 1B 84 2E 90 00 F6 [16:33:26]RAPDU: 02 1D C7 F4 EE 1B 84 2E 90 00 [16:33:26]wFMCommunicate OK [16:33:26]SAM_PROTO_SignData done [16:33:26]FM_MakeSignedData done [16:33:26]CreateOFDProtocolMessage [16:33:26]wFMCommunicate request_size=4 [16:33:26]MH_SAM_APDU [16:33:26]CAPDU: 80 11 00 00 [16:33:26]Write to MH i2c: E2 08 00 CA 1C 80 11 00 00 00 00 00 00 60 [16:33:26]Write i2c OK [16:33:26]MH_I2C_Read... [16:33:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:26]Read from MH i2c: E2 [16:33:26]MH_I2C_Read... [16:33:26]Read from MH i2c: E2 17 00 [16:33:26]MH_I2C_Read... [16:33:26]Read from MH i2c: E2 17 00 CA 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 B9 [16:33:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [16:33:26]wFMCommunicate OK [16:33:26]CreateOFDProtocolMessage done [16:33:26]OFDSenderStorePacket 27156 [16:33:26]StoreOFDPacket docnum=27156 [16:33:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 C5 01 00 00 5E 25 BD 01 49 5A 5A 03 01 00 03 00 B1 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 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 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 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 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 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 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 3B 00 00 00 F4 03 04 00 5B C4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 14 6A 00 00 35 04 06 00 EE A7 E7 D7 E6 C7 02 1D C7 F4 EE 1B 84 2E [16:33:26]CheckFolder [16:33:26]dirname=/storage/ofd_packets [16:33:26]CheckFolder done [16:33:26]ProducePacketName [16:33:26]name=ofd_packets/00027156 [16:33:26]NVStorageSaveData ofd_packets/00027156 [16:33:26]File name is /storage/ofd_packets/00027156 [16:33:26]Write 483 bytes [16:33:26]NVStorageSaveData done [16:33:26]OFDSenderStorePacket done [16:33:26]KKMCreateOFDPacket done [16:33:26]NVStorageSaveData kkm_last_timestamp [16:33:26]File name is /storage/kkm_last_timestamp [16:33:26]Write 4 bytes [16:33:27]NVStorageSaveData done [16:33:27]ExternCall_PrintAddStr [16:33:27]wPrintStart [16:33:27]Write to MH i2c: 01 00 00 CB 1C E7 [16:33:27]OFD Sender: Processing packet 27156 [packets to send 9, broken 8] [16:33:27]ProducePacketName [16:33:27]name=ofd_packets/00027156 [16:33:27]OFD Sender: To server: pG, [16:33:27]CommunicateWithHost lk.salyk.kg:30040 [16:33:27]ConnectInit lk.salyk.kg [16:33:27]Write i2c OK [16:33:27]MH_I2C_Read... [16:33:27]Read from MH i2c: 01 [16:33:27]MH_I2C_Read... [16:33:27]Read from MH i2c: 01 07 00 [16:33:27]MH_I2C_Read... [16:33:27]Read from MH i2c: 01 07 00 CB 1C 00 00 00 00 00 FF 0F FC [16:33:27]RasterBufferAndPrint [16:33:27]line Счет N : (3)150554 [16:33:27]line ИНН: 02508201610067 [16:33:27]line Контрольно-Кассовый Чек [16:33:27]line ПРОДАЖА [16:33:27]line Товар: 4700000481989 [16:33:27]line Напиток энерг Nitro киви-мангостин 0,45 [16:33:27]line 1.000 * 95.00 [16:33:27]line = 95.00 [16:33:27]line НДС 12% НСП 1% [16:33:27]line > о реализуемом товаре [16:33:27]line Товар: 4870202521261 [16:33:27]line Напиток MAXI чай 1,2 лесные ягоды [16:33:27]line 1.000 * 110.00 [16:33:27]line = 110.00 [16:33:27]line НДС 12% НСП 1% [16:33:27]line > о реализуемом товаре [16:33:27]line ИТОГО: 205.00 [16:33:27]line НСП 1% : 1.81 [16:33:27]line НДС 12% : 21.77 [16:33:27]line Наличными: 205.00 [16:33:27]line Безнал.: 0.00 [16:33:27]line Место: АЗС № 134 "Партнер Нефть" [16:33:27]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:33:27]line СНО: Общий режим [16:33:27]line Чек 59 29.07.2024 16:33 [16:33:27]line Смена: 434 ФФД: 1.0 [16:33:27]line ЗНМ: 0300000043 [16:33:27]line РНМ: 0000000000092663 [16:33:27]line Версия ККМ: 001 [16:33:27]line ФМ: 0000000000874937 [16:33:27]line ФД: 27156 [16:33:27]line ФПД: 262404916635335 [16:33:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T163331&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27156&fm=262404916635335&tin=02508201610067®Number=0000000000092663&sum=20500 [16:33:27]line 0 [16:33:27]written 0, free lines is 4095 [16:33:27]Connected sock=10 [16:33:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 C5 01 00 00 5E 25 BD 01 49 5A 5A 03 01 00 03 00 B1 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 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 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 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 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 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 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 3B 00 00 00 F4 03 04 00 5B C4 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 14 6A 00 00 35 04 06 00 EE A7 E7 D7 E6 C7 02 1D C7 F4 EE 1B 84 2E [16:33:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 C2 64 47 00 27 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 14 6A 00 00 F4 03 04 00 AB 6A A7 66 B6 04 01 00 00 C7 7D EA 80 F3 6E 7E 81 [16:33:27]CommunicateWithHost err = 0 [16:33:27]CheckOFDResponse [16:33:27]1017 (14) - 77093643461234 [16:33:27]1041 (16) - 0000000000874937 [16:33:27]1040 (4) - 27156 [16:33:27]1012 (4) - 29.07.2024 10:10 [16:33:27]1206 (1) - 0 [16:33:27]OFD Sender: Remove packet 27156 [16:33:27]ProducePacketName [16:33:27]name=ofd_packets/00027156 [16:33:27]NVStorageDeleteData [16:33:27]Write to MH i2c: 01 00 00 FA 1C 16 [16:33:27]Write i2c OK [16:33:27]MH_I2C_Read... [16:33:27]Read from MH i2c: 01 [16:33:27]MH_I2C_Read... [16:33:27]Read from MH i2c: 01 07 00 [16:33:27]MH_I2C_Read... [16:33:27]Read from MH i2c: 01 07 00 FA 1C 00 00 00 00 00 7A 0C A3 [16:33:27]RasterBufferAndPrint [16:33:27]line [16:33:27]line [16:33:27]line [16:33:27]line [16:33:27]line [16:33:27]written 0, free lines is 3200 [16:33:27]MH_Cut [16:33:27]Write to MH i2c: D1 01 00 01 1D 01 F0 [16:33:27]Write i2c OK [16:33:27]MH_I2C_Read... [16:33:27]Read from MH i2c: D1 [16:33:27]MH_I2C_Read... [16:33:27]Read from MH i2c: D1 01 00 [16:33:27]MH_I2C_Read... [16:33:27]Read from MH i2c: D1 01 00 01 1D 00 EF [16:33:27]Write to MH i2c: 01 00 00 02 1D 1F [16:33:27]Write i2c OK [16:33:27]MH_I2C_Read... [16:33:27]OFD Sender: No OFD packet to send [16:33:28]*** Cut start [16:33:28]*** Partial cut [16:33:28]*** CUTSNS_PIN = 1 [16:33:28]*** CUTSNS_PIN = 0 [16:33:28]*** Brake cut motor [16:33:28]Read from MH i2c: 01 [16:33:28]MH_I2C_Read... [16:33:28]*** Stop cut motor [16:33:28]*** Cut end [16:33:28]Read from MH i2c: 01 07 00 [16:33:28]MH_I2C_Read... [16:33:28]Read from MH i2c: 01 07 00 02 1D 00 00 00 00 00 FF 0F 34 [16:33:28]process_action close_receipt done [16:33:28]requested_data is exist [16:33:28]produce_requested_data [16:33:28]requested_item fm.sn is exist - process it [16:33:28]wFMCommunicate request_size=4 [16:33:28]MH_SAM_APDU [16:33:28]CAPDU: 80 11 00 00 [16:33:28]Write to MH i2c: E2 08 00 03 1D 80 11 00 00 00 00 00 00 9A [16:33:28]Write i2c OK [16:33:28]MH_I2C_Read... [16:33:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:29]Read from MH i2c: E2 [16:33:29]MH_I2C_Read... [16:33:29]Read from MH i2c: E2 17 00 [16:33:29]MH_I2C_Read... [16:33:29]Read from MH i2c: E2 17 00 03 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 F3 [16:33:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [16:33:29]wFMCommunicate OK [16:33:29]requested_item fd.num is exist - process it [16:33:29]SAM_PROTO_GetFieldsCounters [16:33:29]wFMCommunicate request_size=4 [16:33:29]MH_SAM_APDU [16:33:29]CAPDU: 80 13 00 00 [16:33:29]Write to MH i2c: E2 08 00 04 1D 80 13 00 00 00 00 00 00 9D [16:33:29]Write i2c OK [16:33:29]MH_I2C_Read... [16:33:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:29]Read from MH i2c: E2 [16:33:29]MH_I2C_Read... [16:33:29]Read from MH i2c: E2 62 00 [16:33:29]MH_I2C_Read... [16:33:29]Read from MH i2c: E2 62 00 04 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 14 6A 00 00 0E 04 04 00 B2 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 A7 [16:33:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 14 6A 00 00 0E 04 04 00 B2 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 [16:33:29]wFMCommunicate OK [16:33:29]SAM_PROTO_GetFieldsCounters done [16:33:29]requested_item shift.num is exist - process it [16:33:29]requested_item shift.opened is exist - process it [16:33:29]req_shift_opened [16:33:29]FM_GetShiftState [16:33:29]SAM_PROTO_GetShiftState [16:33:29]wFMCommunicate request_size=4 [16:33:29]MH_SAM_APDU [16:33:29]CAPDU: 80 13 01 00 [16:33:29]Write to MH i2c: E2 08 00 05 1D 80 13 01 00 00 00 00 00 9F [16:33:29]Write i2c OK [16:33:29]MH_I2C_Read... [16:33:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:29]Read from MH i2c: E2 [16:33:29]MH_I2C_Read... [16:33:29]Read from MH i2c: E2 0E 00 [16:33:29]MH_I2C_Read... [16:33:29]Read from MH i2c: E2 0E 00 05 1D 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 20 [16:33:29]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [16:33:29]wFMCommunicate OK [16:33:29]SAM_PROTO_GetShiftState done [16:33:29]FM_GetShiftState done [16:33:29]req_shift_opened done [16:33:29]requested_item shift.open_date is exist - process it [16:33:29]req_shift_open_date [16:33:29]req_shift_open_date done [16:33:29]produce_requested_data done [16:33:29]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27156,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [16:33:29]process_action_free close_receipt [16:33:29]json_value_free [16:33:29]json_value_free done [16:33:29]process_json_proto returns [16:33:29]Send response to host [16:33:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27156,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [16:33:29]free response buf [16:33:29]execute_script done [16:33:29]execute_script returns [16:33:29]free content buf [16:33:29]Sock 8.Close socket [16:33:29]Sock 8.Thread stoped [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:12]OFD Sender: No OFD packet to send [16:36:17]OFD Sender: No OFD packet to send [16:36:22]OFD Sender: No OFD packet to send [16:36:27]OFD Sender: No OFD packet to send [16:36:32]OFD Sender: No OFD packet to send [16:36:37]OFD Sender: No OFD packet to send [16:36:42]OFD Sender: No OFD packet to send [16:36:47]OFD Sender: No OFD packet to send [16:36:52]OFD Sender: No OFD packet to send [16:36:57]OFD Sender: No OFD packet to send [16:37:02]OFD Sender: No OFD packet to send [16:37:07]OFD Sender: No OFD packet to send [16:37:12]OFD Sender: No OFD packet to send [16:37:17]accept exits with 9 [16:37:17]New connection [16:37:17]New thread 3066785124 created [16:37:17]Thread 3066928484 joined [16:37:17]Waiting for new connection... [16:37:17] Sock 9.Parse request [16:37:17]Sock 9.Check first char [16:37:17]Sock 9.First char is OK [16:37:17]request: POST /json_proto HTTP/1.0 [16:37:17]Method: POST [16:37:17]URL: /json_proto [16:37:17]Method is POST - this is cgi request [16:37:17]url: /json_proto [16:37:17]query_string will be loaded in cgi processing [16:37:17]execute_cgi json_proto POST (null) [16:37:17]execute_cgi path=json_proto method=POST [16:37:17]POST find Content-Length [16:37:17]Host: 172.17.45.8:8080 [16:37:17]Content-Length: 1465 [16:37:17]Content-Type: application/json [16:37:17] [16:37:17]POST finish read [16:37:17]Found Content-Length = 1465 [16:37:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150555", "tax_sys" : 0, "items" : [ { "code": "4700000481972", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u0433\u0440\u0435\u0439\u043F\u0444\u0440\u0443\u0442-\u043C\u0430\u0440\u0430\u043A\u0443\u0439\u044F 0", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 440.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:17]execute_script... [16:37: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)150555", "tax_sys" : 0, "items" : [ { "code": "4700000481972", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u0433\u0440\u0435\u0439\u043F\u0444\u0440\u0443\u0442-\u043C\u0430\u0440\u0430\u043A\u0443\u0439\u044F 0", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 440.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:37:17]POST & json_proto [16:37:17]process_json_proto [16:37:17]json parsed OK: [16:37:17]protocol is kg_v1.0 [16:37:17]action value=close_receipt [16:37:17]process_action close_receipt [16:37:17]cmd_close_receipt [16:37:17]MH_GetDate [16:37:17]Write to MH i2c: F0 00 00 06 1D 12 [16:37:17]Write i2c OK [16:37:17]MH_I2C_Read... [16:37:17]Read from MH i2c: F0 [16:37:17]MH_I2C_Read... [16:37:17]Read from MH i2c: F0 09 00 [16:37:17]MH_I2C_Read... [16:37:17]Read from MH i2c: F0 09 00 06 1D 00 43 C5 A7 66 A6 1F 7F 64 D8 [16:37:17]GetLastDocTimeStamp 1722270811 [16:37:17]current date 1722271043 [16:37:17]FM_GetShiftState [16:37:17]SAM_PROTO_GetShiftState [16:37:17]wFMCommunicate request_size=4 [16:37:17]MH_SAM_APDU [16:37:17]CAPDU: 80 13 01 00 [16:37:17]Write to MH i2c: E2 08 00 07 1D 80 13 01 00 00 00 00 00 A1 [16:37:17]Write i2c OK [16:37:17]MH_I2C_Read... [16:37:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:17]Read from MH i2c: E2 [16:37:17]MH_I2C_Read... [16:37:17]Read from MH i2c: E2 0E 00 [16:37:17]MH_I2C_Read... [16:37:17]Read from MH i2c: E2 0E 00 07 1D 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 22 [16:37:17]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [16:37:17]wFMCommunicate OK [16:37:17]SAM_PROTO_GetShiftState done [16:37:17]FM_GetShiftState done [16:37:17]opened in 1722213509 [16:37:17]opened+sec_in_day 1722299909 [16:37:17]quantity*price = 9500 [16:37:17]sum+1 = 9501 [16:37:17]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4600721021627 Пиво БАД 0,5л ст 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48744119 Сигареты Winston Xstyle Dual 1.000 * 145.00 = 145.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 440.00 НСП 1% : 3.89 НДС 12% : 46.73 Наличными: 440.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 60 29.07.2024 16:37 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27157 ФПД: 94368701475265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T163723&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27157&fm=94368701475265&tin=02508201610067®Number=0000000000092663&sum=44000 0 [16:37:18]StoreToDocumentArchive [16:37:18]shift 434 fd 27157 [16:37:18]save to /storage/0434/doc_00027157 [16:37:18]save last doc name /storage/0434/doc_00027157 to /storage/kkm_last_doc_name [16:37:18]save OK [16:37:18]Clear old archive folders... [16:37:18]ProcessDocumentItem done err = 0, tmpTLVsize=611 [16:37:18]tlvbuf is 001C8950 [16:37:18]SAM_PROTO_ClearQueue [16:37:18]wFMCommunicate request_size=4 [16:37:18]MH_SAM_APDU [16:37:18]CAPDU: 80 09 00 00 [16:37:18]Write to MH i2c: E2 08 00 14 1D 80 09 00 00 00 00 00 00 A3 [16:37:18]Write i2c OK [16:37:18]MH_I2C_Read... [16:37:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:37:18]Read from MH i2c: E2 [16:37:18]MH_I2C_Read... [16:37:18]Read from MH i2c: E2 03 00 [16:37:18]MH_I2C_Read... [16:37:18]Read from MH i2c: E2 03 00 14 1D 00 90 00 A5 [16:37:18]RAPDU: 90 00 [16:37:18]wFMCommunicate OK [16:37:18]SAM_PROTO_ClearQueue done [16:37:18]KKMCreateOFDPacket [16:37:18]OFDProtocolAddRootSTLVToBuf [16:37:18]FM_MakeSignedData [16:37:18]FM_MakeSignedData [16:37:18]SAM_PROTO_SignData [16:37:18]wFMCommunicate request_size=4 [16:37:18]MH_SAM_APDU [16:37:18]CAPDU: 80 0D 01 02 [16:37:18]Write to MH i2c: E2 08 00 15 1D 80 0D 01 02 00 00 00 00 AB [16:37:18]Write i2c OK [16:37:18]MH_I2C_Read... [16:37:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:37:18]Read from MH i2c: E2 [16:37:18]MH_I2C_Read... [16:37:18]Read from MH i2c: E2 03 00 [16:37:18]MH_I2C_Read... [16:37:18]Read from MH i2c: E2 03 00 15 1D 00 90 00 A6 [16:37:18]RAPDU: 90 00 [16:37:18]wFMCommunicate OK [16:37:18]wFMCommunicate request_size=255 [16:37:18]MH_SAM_APDU [16:37:18]CAPDU: 80 0D 02 02 FA 03 00 63 02 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 37 32 06 04 45 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 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 2D D0 BC D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 B9 D1 8F 20 30 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 [16:37:18]Write to MH i2c: E2 02 01 16 1D 80 0D 02 02 FA 00 03 00 63 02 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 37 32 06 04 45 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 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 2D D0 BC D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 B9 D1 8F 20 30 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 00 00 A0 [16:37:18]Write i2c OK [16:37:18]MH_I2C_Read... [16:37:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:19]Read from MH i2c: E2 [16:37:19]MH_I2C_Read... [16:37:19]Read from MH i2c: E2 03 00 [16:37:19]MH_I2C_Read... [16:37:19]Read from MH i2c: E2 03 00 16 1D 00 90 00 A7 [16:37:19]RAPDU: 90 00 [16:37:19]wFMCommunicate OK [16:37:19]wFMCommunicate request_size=255 [16:37:19]MH_SAM_APDU [16:37:19]CAPDU: 80 0D 02 02 FA 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 12 00 00 [16:37:19]Write to MH i2c: E2 02 01 17 1D 80 0D 02 02 FA 00 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 12 00 00 00 00 59 [16:37:19]Write i2c OK [16:37:19]MH_I2C_Read... [16:37:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:19]Read from MH i2c: E2 [16:37:19]MH_I2C_Read... [16:37:19]Read from MH i2c: E2 03 00 [16:37:19]MH_I2C_Read... [16:37:19]Read from MH i2c: E2 03 00 17 1D 00 90 00 A8 [16:37:19]RAPDU: 90 00 [16:37:19]wFMCommunicate OK [16:37:19]wFMCommunicate request_size=120 [16:37:19]MH_SAM_APDU [16:37:19]CAPDU: 80 0D 02 02 73 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 43 C5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 15 6A 00 00 35 04 06 00 55 D3 EC ED E9 C1 [16:37:19]Write to MH i2c: E2 7B 00 18 1D 80 0D 02 02 73 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 43 C5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 15 6A 00 00 35 04 06 00 55 D3 EC ED E9 C1 00 00 8F [16:37:19]Write i2c OK [16:37:19]MH_I2C_Read... [16:37:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:37:19]Read from MH i2c: E2 [16:37:19]MH_I2C_Read... [16:37:19]Read from MH i2c: E2 03 00 [16:37:19]MH_I2C_Read... [16:37:19]Read from MH i2c: E2 03 00 18 1D 00 90 00 A9 [16:37:19]RAPDU: 90 00 [16:37:19]wFMCommunicate OK [16:37:19]wFMCommunicate request_size=4 [16:37:19]MH_SAM_APDU [16:37:19]CAPDU: 80 0D 03 02 [16:37:19]Write to MH i2c: E2 08 00 19 1D 80 0D 03 02 00 00 00 00 B1 [16:37:19]Write i2c OK [16:37:19]MH_I2C_Read... [16:37:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:37:19]Read from MH i2c: E2 [16:37:19]MH_I2C_Read... [16:37:19]Read from MH i2c: E2 0B 00 [16:37:19]MH_I2C_Read... [16:37:19]Read from MH i2c: E2 0B 00 19 1D 00 FC 22 7B EF 1E 82 2F 03 90 00 0C [16:37:19]RAPDU: FC 22 7B EF 1E 82 2F 03 90 00 [16:37:19]wFMCommunicate OK [16:37:19]SAM_PROTO_SignData done [16:37:19]FM_MakeSignedData done [16:37:19]CreateOFDProtocolMessage [16:37:19]wFMCommunicate request_size=4 [16:37:19]MH_SAM_APDU [16:37:19]CAPDU: 80 11 00 00 [16:37:19]Write to MH i2c: E2 08 00 1A 1D 80 11 00 00 00 00 00 00 B1 [16:37:19]Write i2c OK [16:37:19]MH_I2C_Read... [16:37:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:19]Read from MH i2c: E2 [16:37:19]MH_I2C_Read... [16:37:19]Read from MH i2c: E2 17 00 [16:37:19]MH_I2C_Read... [16:37:19]Read from MH i2c: E2 17 00 1A 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 0A [16:37:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [16:37:19]wFMCommunicate OK [16:37:19]CreateOFDProtocolMessage done [16:37:19]OFDSenderStorePacket 27157 [16:37:19]StoreOFDPacket docnum=27157 [16:37:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 77 02 00 00 C9 3C 6F 02 33 17 5A 03 01 00 03 00 63 02 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 37 32 06 04 45 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 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 2D D0 BC D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 B9 D1 8F 20 30 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 43 C5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 15 6A 00 00 35 04 06 00 55 D3 EC ED E9 C1 FC 22 7B EF 1E 82 2F 03 [16:37:19]CheckFolder [16:37:19]dirname=/storage/ofd_packets [16:37:19]CheckFolder done [16:37:19]ProducePacketName [16:37:19]name=ofd_packets/00027157 [16:37:19]NVStorageSaveData ofd_packets/00027157 [16:37:19]File name is /storage/ofd_packets/00027157 [16:37:19]Write 661 bytes [16:37:19]NVStorageSaveData done [16:37:19]OFDSenderStorePacket done [16:37:19]KKMCreateOFDPacket done [16:37:19]NVStorageSaveData kkm_last_timestamp [16:37:19]File name is /storage/kkm_last_timestamp [16:37:19]Write 4 bytes [16:37:19]NVStorageSaveData done [16:37:19]ExternCall_PrintAddStr [16:37:19]wPrintStart [16:37:19]Write to MH i2c: 01 00 00 1B 1D 38 [16:37:19]Write i2c OK [16:37:19]MH_I2C_Read... [16:37:19]Read from MH i2c: 01 [16:37:19]MH_I2C_Read... [16:37:19]Read from MH i2c: 01 07 00 [16:37:19]MH_I2C_Read... [16:37:19]Read from MH i2c: 01 07 00 1B 1D 00 00 00 00 00 FF 0F 4D [16:37:19]RasterBufferAndPrint [16:37:19]line Счет N : (3)150555 [16:37:19]line ИНН: 02508201610067 [16:37:19]line Контрольно-Кассовый Чек [16:37:19]line ПРОДАЖА [16:37:19]line Товар: 4700000481972 [16:37:19]line Напиток энерг Nitro грейпфрут-маракуйя 0 [16:37:19]line 1.000 * 95.00 [16:37:19]line = 95.00 [16:37:19]line НДС 12% НСП 1% [16:37:19]line > о реализуемом товаре [16:37:19]line Товар: 4700000160358 [16:37:19]line Вода Легенда 1л [16:37:19]line 1.000 * 50.00 [16:37:19]line = 50.00 [16:37:19]line НДС 12% НСП 1% [16:37:19]line > о реализуемом товаре [16:37:19]line Товар: 4600721021627 [16:37:19]line Пиво БАД 0,5л ст [16:37:19]line 1.000 * 150.00 [16:37:19]line = 150.00 [16:37:19]line НДС 12% НСП 1% [16:37:19]line > о реализуемом товаре [16:37:19]line Товар: 48744119 [16:37:19]line Сигареты Winston Xstyle Dual [16:37:19]line 1.000 * 145.00 [16:37:19]line = 145.00 [16:37:19]line НДС 12% НСП 1% [16:37:19]line > о реализуемом товаре [16:37:19]line ИТОГО: 440.00 [16:37:19]line НСП 1% : 3.89 [16:37:19]line НДС 12% : 46.73 [16:37:19]line Наличными: 440.00 [16:37:19]line Безнал.: 0.00 [16:37:19]line Место: АЗС № 134 "Партнер Нефть" [16:37:19]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:37:19]line СНО: Общий режим [16:37:19]line Чек 60 29.07.2024 16:37 [16:37:19]line Смена: 434 ФФД: 1.0 [16:37:19]line ЗНМ: 0300000043 [16:37:19]line РНМ: 0000000000092663 [16:37:19]line Версия ККМ: 001 [16:37:19]line ФМ: 0000000000874937 [16:37:19]line ФД: 27157 [16:37:19]line ФПД: 94368701475265 [16:37:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T163723&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27157&fm=94368701475265&tin=02508201610067®Number=0000000000092663&sum=44000 [16:37:19]line 0 [16:37:19]OFD Sender: Processing packet 27157 [packets to send 9, broken 8] [16:37:19]ProducePacketName [16:37:19]name=ofd_packets/00027157 [16:37:19]OFD Sender: To server: pG, [16:37:19]CommunicateWithHost lk.salyk.kg:30040 [16:37:19]ConnectInit lk.salyk.kg [16:37:19]written 0, free lines is 4095 [16:37:20]Connected sock=10 [16:37:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 77 02 00 00 C9 3C 6F 02 33 17 5A 03 01 00 03 00 63 02 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 37 32 06 04 45 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 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 2D D0 BC D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 B9 D1 8F 20 30 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 E0 AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 12 00 00 00 00 07 04 06 00 E0 AB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 43 C5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 15 6A 00 00 35 04 06 00 55 D3 EC ED E9 C1 FC 22 7B EF 1E 82 2F 03 [16:37:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 AA BE 47 00 C0 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 15 6A 00 00 F4 03 04 00 94 6B A7 66 B6 04 01 00 00 9B 04 30 5A B2 A2 E9 8D [16:37:20]CommunicateWithHost err = 0 [16:37:20]CheckOFDResponse [16:37:20]1017 (14) - 77093643461234 [16:37:20]1041 (16) - 0000000000874937 [16:37:20]1040 (4) - 27157 [16:37:20]1012 (4) - 29.07.2024 10:14 [16:37:20]1206 (1) - 0 [16:37:20]OFD Sender: Remove packet 27157 [16:37:20]ProducePacketName [16:37:20]name=ofd_packets/00027157 [16:37:20]NVStorageDeleteData [16:37:20]Write to MH i2c: 01 00 00 55 1D 72 [16:37:20]Write i2c OK [16:37:20]MH_I2C_Read... [16:37:20]Read from MH i2c: 01 [16:37:20]MH_I2C_Read... [16:37:20]Read from MH i2c: 01 07 00 [16:37:20]MH_I2C_Read... [16:37:20]Read from MH i2c: 01 07 00 55 1D 00 00 00 00 00 DD 0B 61 [16:37:20]RasterBufferAndPrint [16:37:20]line [16:37:20]line [16:37:20]line [16:37:20]line [16:37:20]line [16:37:20]written 0, free lines is 3046 [16:37:20]MH_Cut [16:37:20]Write to MH i2c: D1 01 00 5C 1D 01 4B [16:37:20]Write i2c OK [16:37:20]MH_I2C_Read... [16:37:20]Read from MH i2c: D1 [16:37:20]MH_I2C_Read... [16:37:20]Read from MH i2c: D1 01 00 [16:37:20]MH_I2C_Read... [16:37:20]Read from MH i2c: D1 01 00 5C 1D 00 4A [16:37:20]Write to MH i2c: 01 00 00 5D 1D 7A [16:37:20]Write i2c OK [16:37:20]MH_I2C_Read... [16:37:20]OFD Sender: No OFD packet to send [16:37:21]*** Cut start [16:37:21]*** Partial cut [16:37:21]*** CUTSNS_PIN = 1 [16:37:21]*** CUTSNS_PIN = 0 [16:37:21]*** Brake cut motor [16:37:22]Read from MH i2c: 01 [16:37:22]MH_I2C_Read... [16:37:22]*** Stop cut motor [16:37:22]*** Cut end [16:37:22]Read from MH i2c: 01 07 00 [16:37:22]MH_I2C_Read... [16:37:22]Read from MH i2c: 01 07 00 5D 1D 00 00 00 00 00 FF 0F 8F [16:37:22]process_action close_receipt done [16:37:22]requested_data is exist [16:37:22]produce_requested_data [16:37:22]requested_item fm.sn is exist - process it [16:37:22]wFMCommunicate request_size=4 [16:37:22]MH_SAM_APDU [16:37:22]CAPDU: 80 11 00 00 [16:37:22]Write to MH i2c: E2 08 00 5E 1D 80 11 00 00 00 00 00 00 F5 [16:37:22]Write i2c OK [16:37:22]MH_I2C_Read... [16:37:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:37:22]Read from MH i2c: E2 [16:37:22]MH_I2C_Read... [16:37:22]Read from MH i2c: E2 17 00 [16:37:22]MH_I2C_Read... [16:37:22]Read from MH i2c: E2 17 00 5E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 4E [16:37:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [16:37:22]wFMCommunicate OK [16:37:22]requested_item fd.num is exist - process it [16:37:22]SAM_PROTO_GetFieldsCounters [16:37:22]wFMCommunicate request_size=4 [16:37:22]MH_SAM_APDU [16:37:22]CAPDU: 80 13 00 00 [16:37:22]Write to MH i2c: E2 08 00 5F 1D 80 13 00 00 00 00 00 00 F8 [16:37:22]Write i2c OK [16:37:22]MH_I2C_Read... [16:37:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:37:22]Read from MH i2c: E2 [16:37:22]MH_I2C_Read... [16:37:22]Read from MH i2c: E2 62 00 [16:37:22]MH_I2C_Read... [16:37:22]Read from MH i2c: E2 62 00 5F 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 15 6A 00 00 0E 04 04 00 B2 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 06 [16:37: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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 15 6A 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:37:22]wFMCommunicate OK [16:37:22]SAM_PROTO_GetFieldsCounters done [16:37:22]requested_item shift.num is exist - process it [16:37:22]requested_item shift.opened is exist - process it [16:37:22]req_shift_opened [16:37:22]FM_GetShiftState [16:37:22]SAM_PROTO_GetShiftState [16:37:22]wFMCommunicate request_size=4 [16:37:22]MH_SAM_APDU [16:37:22]CAPDU: 80 13 01 00 [16:37:22]Write to MH i2c: E2 08 00 60 1D 80 13 01 00 00 00 00 00 FA [16:37:22]Write i2c OK [16:37:22]MH_I2C_Read... [16:37:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:37:22]Read from MH i2c: E2 [16:37:22]MH_I2C_Read... [16:37:22]Read from MH i2c: E2 0E 00 [16:37:22]MH_I2C_Read... [16:37:22]Read from MH i2c: E2 0E 00 60 1D 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 7B [16:37:22]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [16:37:22]wFMCommunicate OK [16:37:22]SAM_PROTO_GetShiftState done [16:37:22]FM_GetShiftState done [16:37:22]req_shift_opened done [16:37:22]requested_item shift.open_date is exist - process it [16:37:22]req_shift_open_date [16:37:22]req_shift_open_date done [16:37:22]produce_requested_data done [16:37:22]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27157,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [16:37:22]process_action_free close_receipt [16:37:22]json_value_free [16:37:22]json_value_free done [16:37:22]process_json_proto returns [16:37:22]Send response to host [16:37:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27157,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [16:37:22]free response buf [16:37:22]execute_script done [16:37:22]execute_script returns [16:37:22]free content buf [16:37:22]Sock 9.Close socket [16:37:22]Sock 9.Thread stoped [16:37:25]OFD Sender: No OFD packet to send [16:37:30]OFD Sender: No OFD packet to send [16:37:35]OFD Sender: No OFD packet to send [16:37:40]OFD Sender: No OFD packet to send [16:37:45]OFD Sender: No OFD packet to send [16:37:50]OFD Sender: No OFD packet to send [16:37:55]OFD Sender: No OFD packet to send [16:38:00]OFD Sender: No OFD packet to send [16:38:05]OFD Sender: No OFD packet to send [16:38:10]OFD Sender: No OFD packet to send [16:38:15]OFD Sender: No OFD packet to send [16:38:20]OFD Sender: No OFD packet to send [16:38:25]OFD Sender: No OFD packet to send [16:38:30]OFD Sender: No OFD packet to send [16:38:35]OFD Sender: No OFD packet to send [16:38:40]OFD Sender: No OFD packet to send [16:38:45]OFD Sender: No OFD packet to send [16:38:50]OFD Sender: No OFD packet to send [16:38:55]OFD Sender: No OFD packet to send [16:39:00]OFD Sender: No OFD packet to send [16:39:05]OFD Sender: No OFD packet to send [16:39:10]OFD Sender: No OFD packet to send [16:39:15]OFD Sender: No OFD packet to send [16:39:20]OFD Sender: No OFD packet to send [16:39:25]OFD Sender: No OFD packet to send [16:39:30]OFD Sender: No OFD packet to send [16:39:35]OFD Sender: No OFD packet to send [16:39:40]OFD Sender: No OFD packet to send [16:39:45]OFD Sender: No OFD packet to send [16:39:50]OFD Sender: No OFD packet to send [16:39:55]OFD Sender: No OFD packet to send [16:40:00]OFD Sender: No OFD packet to send [16:40:05]OFD Sender: No OFD packet to send [16:40:10]OFD Sender: No OFD packet to send [16:40:15]OFD Sender: No OFD packet to send [16:40:20]OFD Sender: No OFD packet to send [16:40:25]OFD Sender: No OFD packet to send [16:40:30]OFD Sender: No OFD packet to send [16:40:35]OFD Sender: No OFD packet to send [16:40:40]OFD Sender: No OFD packet to send [16:40:45]OFD Sender: No OFD packet to send [16:40:50]OFD Sender: No OFD packet to send [16:40:55]OFD Sender: No OFD packet to send [16:41:00]OFD Sender: No OFD packet to send [16:41:05]OFD Sender: No OFD packet to send [16:41:10]OFD Sender: No OFD packet to send [16:41:15]OFD Sender: No OFD packet to send [16:41:20]OFD Sender: No OFD packet to send [16:41:25]OFD Sender: No OFD packet to send [16:41:30]OFD Sender: No OFD packet to send [16:41:35]OFD Sender: No OFD packet to send [16:41:40]OFD Sender: No OFD packet to send [16:41:45]OFD Sender: No OFD packet to send [16:41:50]OFD Sender: No OFD packet to send [16:41:55]OFD Sender: No OFD packet to send [16:42:00]OFD Sender: No OFD packet to send [16:42:05]OFD Sender: No OFD packet to send [16:42:10]OFD Sender: No OFD packet to send [16:42:15]OFD Sender: No OFD packet to send [16:42:20]OFD Sender: No OFD packet to send [16:42:25]OFD Sender: No OFD packet to send [16:42:30]OFD Sender: No OFD packet to send [16:42:35]OFD Sender: No OFD packet to send [16:42:40]OFD Sender: No OFD packet to send [16:42:45]OFD Sender: No OFD packet to send [16:42:51]OFD Sender: No OFD packet to send [16:42:56]OFD Sender: No OFD packet to send [16:43:01]OFD Sender: No OFD packet to send [16:43:06]OFD Sender: No OFD packet to send [16:43:11]OFD Sender: No OFD packet to send [16:43:16]OFD Sender: No OFD packet to send [16:43:21]OFD Sender: No OFD packet to send [16:43:26]OFD Sender: No OFD packet to send [16:43:31]OFD Sender: No OFD packet to send [16:43:36]OFD Sender: No OFD packet to send [16:43:41]OFD Sender: No OFD packet to send [16:43:46]OFD Sender: No OFD packet to send [16:43:51]OFD Sender: No OFD packet to send [16:43:56]OFD Sender: No OFD packet to send [16:44:01]OFD Sender: No OFD packet to send [16:44:06]OFD Sender: No OFD packet to send [16:44:11]OFD Sender: No OFD packet to send [16:44:16]OFD Sender: No OFD packet to send [16:44:21]OFD Sender: No OFD packet to send [16:44:26]OFD Sender: No OFD packet to send [16:44:31]OFD Sender: No OFD packet to send [16:44:36]OFD Sender: No OFD packet to send [16:44:41]OFD Sender: No OFD packet to send [16:44:46]OFD Sender: No OFD packet to send [16:44:51]OFD Sender: No OFD packet to send [16:44:56]OFD Sender: No OFD packet to send [16:45:01]OFD Sender: No OFD packet to send [16:45:06]OFD Sender: No OFD packet to send [16:45:11]OFD Sender: No OFD packet to send [16:45:16]OFD Sender: No OFD packet to send [16:45:21]OFD Sender: No OFD packet to send [16:45:26]OFD Sender: No OFD packet to send [16:45:31]OFD Sender: No OFD packet to send [16:45:36]OFD Sender: No OFD packet to send [16:45:41]OFD Sender: No OFD packet to send [16:45:46]OFD Sender: No OFD packet to send [16:45:51]OFD Sender: No OFD packet to send [16:45:56]OFD Sender: No OFD packet to send [16:46:01]OFD Sender: No OFD packet to send [16:46:06]OFD Sender: No OFD packet to send [16:46:11]OFD Sender: No OFD packet to send [16:46:16]OFD Sender: No OFD packet to send [16:46:21]OFD Sender: No OFD packet to send [16:46:26]OFD Sender: No OFD packet to send [16:46:31]OFD Sender: No OFD packet to send [16:46:36]OFD Sender: No OFD packet to send [16:46:41]OFD Sender: No OFD packet to send [16:46:46]OFD Sender: No OFD packet to send [16:46:51]OFD Sender: No OFD packet to send [16:46:56]OFD Sender: No OFD packet to send [16:47:01]OFD Sender: No OFD packet to send [16:47:06]OFD Sender: No OFD packet to send [16:47:11]OFD Sender: No OFD packet to send [16:47:16]OFD Sender: No OFD packet to send [16:47:21]OFD Sender: No OFD packet to send [16:47:26]OFD Sender: No OFD packet to send [16:47:31]OFD Sender: No OFD packet to send [16:47:36]OFD Sender: No OFD packet to send [16:47:37]accept exits with 8 [16:47:37]New connection [16:47:37]New thread 3066928484 created [16:47:37]Thread 3066785124 joined [16:47:37]Waiting for new connection... [16:47:37] Sock 8.Parse request [16:47:37]Sock 8.Check first char [16:47:37]Sock 8.First char is OK [16:47:37]request: POST /json_proto HTTP/1.0 [16:47:37]Method: POST [16:47:37]URL: /json_proto [16:47:37]Method is POST - this is cgi request [16:47:37]url: /json_proto [16:47:37]query_string will be loaded in cgi processing [16:47:37]execute_cgi json_proto POST (null) [16:47:37]execute_cgi path=json_proto method=POST [16:47:37]POST find Content-Length [16:47:37]Host: 172.17.45.8:8080 [16:47:37]Content-Length: 907 [16:47:37]Content-Type: application/json [16:47:37] [16:47:37]POST finish read [16:47:37]Found Content-Length = 907 [16:47:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150556", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46196613", "name": "\u0420/\u0436 Orbit XXL white c\u043E\u0447\u043D\u043E\u0435 \u044F\u0431\u043B\u043E\u043A\u043E 20,4\u0433", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 101.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:37]execute_script... [16:47: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)150556", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46196613", "name": "\u0420/\u0436 Orbit XXL white c\u043E\u0447\u043D\u043E\u0435 \u044F\u0431\u043B\u043E\u043A\u043E 20,4\u0433", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 101.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:37]POST & json_proto [16:47:37]process_json_proto [16:47:37]json parsed OK: [16:47:37]protocol is kg_v1.0 [16:47:37]action value=close_receipt [16:47:37]process_action close_receipt [16:47:37]cmd_close_receipt [16:47:37]MH_GetDate [16:47:37]Write to MH i2c: F0 00 00 61 1D 6D [16:47:37]Write i2c OK [16:47:37]MH_I2C_Read... [16:47:37]Read from MH i2c: F0 [16:47:37]MH_I2C_Read... [16:47:37]Read from MH i2c: F0 09 00 [16:47:37]MH_I2C_Read... [16:47:37]Read from MH i2c: F0 09 00 61 1D 00 B0 C7 A7 66 A6 1F 7F 64 A2 [16:47:37]GetLastDocTimeStamp 1722271043 [16:47:37]current date 1722271664 [16:47:37]FM_GetShiftState [16:47:37]SAM_PROTO_GetShiftState [16:47:37]wFMCommunicate request_size=4 [16:47:37]MH_SAM_APDU [16:47:37]CAPDU: 80 13 01 00 [16:47:37]Write to MH i2c: E2 08 00 62 1D 80 13 01 00 00 00 00 00 FC [16:47:37]Write i2c OK [16:47:37]MH_I2C_Read... [16:47:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:37]Read from MH i2c: E2 [16:47:37]MH_I2C_Read... [16:47:37]Read from MH i2c: E2 0E 00 [16:47:37]MH_I2C_Read... [16:47:37]Read from MH i2c: E2 0E 00 62 1D 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 7D [16:47:37]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [16:47:37]wFMCommunicate OK [16:47:37]SAM_PROTO_GetShiftState done [16:47:37]FM_GetShiftState done [16:47:37]opened in 1722213509 [16:47:37]opened+sec_in_day 1722299909 [16:47:37]quantity*price = 5000 [16:47:37]sum+1 = 5001 [16:47:37]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46196613 Р/ж Orbit XXL white cочное яблоко 20,4г 1.000 * 51.00 = 51.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 101.00 НСП 1% : 0.89 НДС 12% : 10.73 Наличными: 101.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 61 29.07.2024 16:47 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27158 ФПД: 29345563291838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T164744&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27158&fm=29345563291838&tin=02508201610067®Number=0000000000092663&sum=10100 0 [16:47:39]StoreToDocumentArchive [16:47:39]shift 434 fd 27158 [16:47:39]save to /storage/0434/doc_00027158 [16:47:39]save last doc name /storage/0434/doc_00027158 to /storage/kkm_last_doc_name [16:47:39]save OK [16:47:39]Clear old archive folders... [16:47:39]ProcessDocumentItem done err = 0, tmpTLVsize=389 [16:47:39]tlvbuf is 001A8850 [16:47:39]SAM_PROTO_ClearQueue [16:47:39]wFMCommunicate request_size=4 [16:47:39]MH_SAM_APDU [16:47:39]CAPDU: 80 09 00 00 [16:47:39]Write to MH i2c: E2 08 00 6F 1D 80 09 00 00 00 00 00 00 FE [16:47:39]Write i2c OK [16:47:39]MH_I2C_Read... [16:47:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:39]Read from MH i2c: E2 [16:47:39]MH_I2C_Read... [16:47:39]Read from MH i2c: E2 03 00 [16:47:39]MH_I2C_Read... [16:47:39]Read from MH i2c: E2 03 00 6F 1D 00 90 00 00 [16:47:39]RAPDU: 90 00 [16:47:39]wFMCommunicate OK [16:47:39]SAM_PROTO_ClearQueue done [16:47:39]KKMCreateOFDPacket [16:47:39]OFDProtocolAddRootSTLVToBuf [16:47:39]FM_MakeSignedData [16:47:39]FM_MakeSignedData [16:47:39]SAM_PROTO_SignData [16:47:39]wFMCommunicate request_size=4 [16:47:39]MH_SAM_APDU [16:47:39]CAPDU: 80 0D 01 02 [16:47:39]Write to MH i2c: E2 08 00 70 1D 80 0D 01 02 00 00 00 00 06 [16:47:39]Write i2c OK [16:47:39]MH_I2C_Read... [16:47:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:39]Read from MH i2c: E2 [16:47:39]MH_I2C_Read... [16:47:39]Read from MH i2c: E2 03 00 [16:47:39]MH_I2C_Read... [16:47:39]Read from MH i2c: E2 03 00 70 1D 00 90 00 01 [16:47:39]RAPDU: 90 00 [16:47:39]wFMCommunicate OK [16:47:39]wFMCommunicate request_size=255 [16:47:39]MH_SAM_APDU [16:47:39]CAPDU: 80 0D 02 02 FA 03 00 85 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 74 00 8A 04 08 00 34 36 31 39 36 36 31 33 06 04 35 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 63 D0 BE D1 87 D0 BD D0 BE D0 B5 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 [16:47:39]Write to MH i2c: E2 02 01 71 1D 80 0D 02 02 FA 00 03 00 85 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 74 00 8A 04 08 00 34 36 31 39 36 36 31 33 06 04 35 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 63 D0 BE D1 87 D0 BD D0 BE D0 B5 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 00 48 [16:47:39]Write i2c OK [16:47:39]MH_I2C_Read... [16:47:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:39]Read from MH i2c: E2 [16:47:39]MH_I2C_Read... [16:47:39]Read from MH i2c: E2 03 00 [16:47:39]MH_I2C_Read... [16:47:39]Read from MH i2c: E2 03 00 71 1D 00 90 00 02 [16:47:39]RAPDU: 90 00 [16:47:39]wFMCommunicate OK [16:47:39]wFMCommunicate request_size=148 [16:47:39]MH_SAM_APDU [16:47:39]CAPDU: 80 0D 02 02 8F 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 04 00 00 00 00 07 04 06 00 74 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 B0 C7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 16 6A 00 00 35 04 06 00 1A B0 8B E0 30 BE [16:47:39]Write to MH i2c: E2 97 00 72 1D 80 0D 02 02 8F 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 04 00 00 00 00 07 04 06 00 74 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 B0 C7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 16 6A 00 00 35 04 06 00 1A B0 8B E0 30 BE 00 00 9C [16:47:39]Write i2c OK [16:47:39]MH_I2C_Read... [16:47:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:39]Read from MH i2c: E2 [16:47:39]MH_I2C_Read... [16:47:39]Read from MH i2c: E2 03 00 [16:47:39]MH_I2C_Read... [16:47:39]Read from MH i2c: E2 03 00 72 1D 00 90 00 03 [16:47:39]RAPDU: 90 00 [16:47:39]wFMCommunicate OK [16:47:39]wFMCommunicate request_size=4 [16:47:39]MH_SAM_APDU [16:47:39]CAPDU: 80 0D 03 02 [16:47:39]Write to MH i2c: E2 08 00 73 1D 80 0D 03 02 00 00 00 00 0B [16:47:39]Write i2c OK [16:47:39]MH_I2C_Read... [16:47:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:39]Read from MH i2c: E2 [16:47:39]MH_I2C_Read... [16:47:39]Read from MH i2c: E2 0B 00 [16:47:39]MH_I2C_Read... [16:47:39]Read from MH i2c: E2 0B 00 73 1D 00 A2 94 28 2C D1 E0 99 9D 90 00 7D [16:47:39]RAPDU: A2 94 28 2C D1 E0 99 9D 90 00 [16:47:39]wFMCommunicate OK [16:47:39]SAM_PROTO_SignData done [16:47:39]FM_MakeSignedData done [16:47:39]CreateOFDProtocolMessage [16:47:39]wFMCommunicate request_size=4 [16:47:39]MH_SAM_APDU [16:47:39]CAPDU: 80 11 00 00 [16:47:39]Write to MH i2c: E2 08 00 74 1D 80 11 00 00 00 00 00 00 0B [16:47:39]Write i2c OK [16:47:39]MH_I2C_Read... [16:47:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:39]Read from MH i2c: E2 [16:47:39]MH_I2C_Read... [16:47:39]Read from MH i2c: E2 17 00 [16:47:39]MH_I2C_Read... [16:47:39]Read from MH i2c: E2 17 00 74 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 64 [16:47:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [16:47:39]wFMCommunicate OK [16:47:39]CreateOFDProtocolMessage done [16:47:39]OFDSenderStorePacket 27158 [16:47:39]StoreOFDPacket docnum=27158 [16:47:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 99 01 00 00 82 53 91 01 9A 9C 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 74 00 8A 04 08 00 34 36 31 39 36 36 31 33 06 04 35 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 63 D0 BE D1 87 D0 BD D0 BE D0 B5 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 04 00 00 00 00 07 04 06 00 74 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 B0 C7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 16 6A 00 00 35 04 06 00 1A B0 8B E0 30 BE A2 94 28 2C D1 E0 99 9D [16:47:39]CheckFolder [16:47:39]dirname=/storage/ofd_packets [16:47:39]CheckFolder done [16:47:39]ProducePacketName [16:47:39]name=ofd_packets/00027158 [16:47:39]NVStorageSaveData ofd_packets/00027158 [16:47:39]File name is /storage/ofd_packets/00027158 [16:47:39]Write 439 bytes [16:47:39]NVStorageSaveData done [16:47:39]OFDSenderStorePacket done [16:47:39]KKMCreateOFDPacket done [16:47:39]NVStorageSaveData kkm_last_timestamp [16:47:39]File name is /storage/kkm_last_timestamp [16:47:39]Write 4 bytes [16:47:39]NVStorageSaveData done [16:47:39]ExternCall_PrintAddStr [16:47:39]wPrintStart [16:47:39]Write to MH i2c: 01 00 00 75 1D 92 [16:47:39]Write i2c OK [16:47:39]MH_I2C_Read... [16:47:39]Read from MH i2c: 01 [16:47:39]MH_I2C_Read... [16:47:39]Read from MH i2c: 01 07 00 [16:47:39]MH_I2C_Read... [16:47:39]Read from MH i2c: 01 07 00 75 1D 00 00 00 00 00 FF 0F A7 [16:47:39]RasterBufferAndPrint [16:47:39]line Счет N : (3)150556 [16:47:39]line ИНН: 02508201610067 [16:47:39]line Контрольно-Кассовый Чек [16:47:39]line ПРОДАЖА [16:47:39]line Товар: 4700000160358 [16:47:39]line Вода Легенда 1л [16:47:39]line 1.000 * 50.00 [16:47:39]line = 50.00 [16:47:39]line НДС 12% НСП 1% [16:47:39]line > о реализуемом товаре [16:47:39]line Товар: 46196613 [16:47:39]line Р/ж Orbit XXL white cочное яблоко 20,4г [16:47:39]line 1.000 * 51.00 [16:47:39]line = 51.00 [16:47:39]line НДС 12% НСП 1% [16:47:39]line > о реализуемом товаре [16:47:39]line ИТОГО: 101.00 [16:47:39]line НСП 1% : 0.89 [16:47:39]line НДС 12% : 10.73 [16:47:39]line Наличными: 101.00 [16:47:39]line Безнал.: 0.00 [16:47:39]line Место: АЗС № 134 "Партнер Нефть" [16:47:39]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:47:39]line СНО: Общий режим [16:47:39]line Чек 61 29.07.2024 16:47 [16:47:39]line Смена: 434 ФФД: 1.0 [16:47:39]line ЗНМ: 0300000043 [16:47:39]line РНМ: 0000000000092663 [16:47:39]line Версия ККМ: 001 [16:47:39]line ФМ: 0000000000874937 [16:47:39]line ФД: 27158 [16:47:39]line ФПД: 29345563291838 [16:47:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T164744&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27158&fm=29345563291838&tin=02508201610067®Number=0000000000092663&sum=10100 [16:47:39]line 0 [16:47:39]OFD Sender: Processing packet 27158 [packets to send 9, broken 8] [16:47:39]ProducePacketName [16:47:39]name=ofd_packets/00027158 [16:47:39]OFD Sender: To server: pG, [16:47:39]CommunicateWithHost lk.salyk.kg:30040 [16:47:39]ConnectInit lk.salyk.kg [16:47:39]written 0, free lines is 4095 [16:47:40]Connected sock=10 [16:47:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 99 01 00 00 82 53 91 01 9A 9C 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 74 00 8A 04 08 00 34 36 31 39 36 36 31 33 06 04 35 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 63 D0 BE D1 87 D0 BD D0 BE D0 B5 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 04 00 00 00 00 07 04 06 00 74 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 B0 C7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 16 6A 00 00 35 04 06 00 1A B0 8B E0 30 BE A2 94 28 2C D1 E0 99 9D [16:47:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 3D 37 47 00 54 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 16 6A 00 00 F4 03 04 00 00 6E A7 66 B6 04 01 00 00 19 3D 32 83 33 9D E6 04 [16:47:40]CommunicateWithHost err = 0 [16:47:40]CheckOFDResponse [16:47:40]1017 (14) - 77093643461234 [16:47:40]1041 (16) - 0000000000874937 [16:47:40]1040 (4) - 27158 [16:47:40]1012 (4) - 29.07.2024 10:25 [16:47:40]1206 (1) - 0 [16:47:40]OFD Sender: Remove packet 27158 [16:47:40]ProducePacketName [16:47:40]name=ofd_packets/00027158 [16:47:40]NVStorageDeleteData [16:47:40]Write to MH i2c: 01 00 00 A3 1D C0 [16:47:40]Write i2c OK [16:47:40]MH_I2C_Read... [16:47:40]Read from MH i2c: 01 [16:47:40]MH_I2C_Read... [16:47:40]Read from MH i2c: 01 07 00 [16:47:40]MH_I2C_Read... [16:47:40]Read from MH i2c: 01 07 00 A3 1D 00 00 00 00 00 A1 0C 74 [16:47:40]RasterBufferAndPrint [16:47:40]line [16:47:40]line [16:47:40]line [16:47:40]line [16:47:40]line [16:47:40]written 0, free lines is 3239 [16:47:40]MH_Cut [16:47:40]Write to MH i2c: D1 01 00 AA 1D 01 99 [16:47:40]Write i2c OK [16:47:40]MH_I2C_Read... [16:47:40]Read from MH i2c: D1 [16:47:40]MH_I2C_Read... [16:47:40]Read from MH i2c: D1 01 00 [16:47:40]MH_I2C_Read... [16:47:40]Read from MH i2c: D1 01 00 AA 1D 00 98 [16:47:40]Write to MH i2c: 01 00 00 AB 1D C8 [16:47:40]Write i2c OK [16:47:40]MH_I2C_Read... [16:47:40]OFD Sender: No OFD packet to send [16:47:41]*** Cut start [16:47:41]*** Partial cut [16:47:41]*** CUTSNS_PIN = 1 [16:47:41]*** CUTSNS_PIN = 0 [16:47:41]*** Brake cut motor [16:47:41]Read from MH i2c: 01 [16:47:41]MH_I2C_Read... [16:47:41]*** Stop cut motor [16:47:41]*** Cut end [16:47:41]Read from MH i2c: 01 07 00 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: 01 07 00 AB 1D 00 00 00 00 00 FF 0F DD [16:47:41]process_action close_receipt done [16:47:41]requested_data is exist [16:47:41]produce_requested_data [16:47:41]requested_item fm.sn is exist - process it [16:47:41]wFMCommunicate request_size=4 [16:47:41]MH_SAM_APDU [16:47:41]CAPDU: 80 11 00 00 [16:47:41]Write to MH i2c: E2 08 00 AC 1D 80 11 00 00 00 00 00 00 43 [16:47:41]Write i2c OK [16:47:41]MH_I2C_Read... [16:47:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:41]Read from MH i2c: E2 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: E2 17 00 [16:47:41]MH_I2C_Read... [16:47:41]Read from MH i2c: E2 17 00 AC 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 9C [16:47:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [16:47:41]wFMCommunicate OK [16:47:41]requested_item fd.num is exist - process it [16:47:41]SAM_PROTO_GetFieldsCounters [16:47:41]wFMCommunicate request_size=4 [16:47:41]MH_SAM_APDU [16:47:41]CAPDU: 80 13 00 00 [16:47:41]Write to MH i2c: E2 08 00 AD 1D 80 13 00 00 00 00 00 00 46 [16:47:41]Write i2c OK [16:47:41]MH_I2C_Read... [16:47:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:42]Read from MH i2c: E2 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: E2 62 00 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: E2 62 00 AD 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 16 6A 00 00 0E 04 04 00 B2 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 58 [16:47:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 16 6A 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:47:42]wFMCommunicate OK [16:47:42]SAM_PROTO_GetFieldsCounters done [16:47:42]requested_item shift.num is exist - process it [16:47:42]requested_item shift.opened is exist - process it [16:47:42]req_shift_opened [16:47:42]FM_GetShiftState [16:47:42]SAM_PROTO_GetShiftState [16:47:42]wFMCommunicate request_size=4 [16:47:42]MH_SAM_APDU [16:47:42]CAPDU: 80 13 01 00 [16:47:42]Write to MH i2c: E2 08 00 AE 1D 80 13 01 00 00 00 00 00 48 [16:47:42]Write i2c OK [16:47:42]MH_I2C_Read... [16:47:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:42]Read from MH i2c: E2 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: E2 0E 00 [16:47:42]MH_I2C_Read... [16:47:42]Read from MH i2c: E2 0E 00 AE 1D 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 C9 [16:47:42]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [16:47:42]wFMCommunicate OK [16:47:42]SAM_PROTO_GetShiftState done [16:47:42]FM_GetShiftState done [16:47:42]req_shift_opened done [16:47:42]requested_item shift.open_date is exist - process it [16:47:42]req_shift_open_date [16:47:42]req_shift_open_date done [16:47:42]produce_requested_data done [16:47:42]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27158,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [16:47:42]process_action_free close_receipt [16:47:42]json_value_free [16:47:42]json_value_free done [16:47:42]process_json_proto returns [16:47:42]Send response to host [16:47:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27158,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [16:47:42]free response buf [16:47:42]execute_script done [16:47:42]execute_script returns [16:47:42]free content buf [16:47:42]Sock 8.Close socket [16:47:42]Sock 8.Thread stoped [16:47:45]OFD Sender: No OFD packet to send [16:47:50]OFD Sender: No OFD packet to send [16:47:55]OFD Sender: No OFD packet to send [16:48:00]OFD Sender: No OFD packet to send [16:48:05]OFD Sender: No OFD packet to send [16:48:10]OFD Sender: No OFD packet to send [16:48:15]OFD Sender: No OFD packet to send [16:48:18]accept exits with 9 [16:48:18]New connection [16:48:18]New thread 3066785124 created [16:48:18]Thread 3066928484 joined [16:48:18]Waiting for new connection... [16:48:18] Sock 9.Parse request [16:48:18]Sock 9.Check first char [16:48:18]Sock 9.First char is OK [16:48:18]request: POST /json_proto HTTP/1.0 [16:48:18]Method: POST [16:48:18]URL: /json_proto [16:48:18]Method is POST - this is cgi request [16:48:18]url: /json_proto [16:48:18]query_string will be loaded in cgi processing [16:48:18]execute_cgi json_proto POST (null) [16:48:18]execute_cgi path=json_proto method=POST [16:48:18]POST find Content-Length [16:48:18]Host: 172.17.45.8:8080 [16:48:18]Content-Length: 1049 [16:48:18]Content-Type: application/json [16:48:18] [16:48:18]POST finish read [16:48:18]Found Content-Length = 1049 [16:48:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150557", "tax_sys" : 0, "items" : [ { "code": "4870002329463", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041F\u0438\u0430\u043B\u0430 Ice Tea \u043F\u0435\u0440\u0441,\u0434\u044B\u043D\u044F,\u0433\u0443\u0430\u0440 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.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" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:18]execute_script... [16:48:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150557", "tax_sys" : 0, "items" : [ { "code": "4870002329463", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041F\u0438\u0430\u043B\u0430 Ice Tea \u043F\u0435\u0440\u0441,\u0434\u044B\u043D\u044F,\u0433\u0443\u0430\u0440 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.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" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:18]POST & json_proto [16:48:18]process_json_proto [16:48:18]json parsed OK: [16:48:18]protocol is kg_v1.0 [16:48:18]action value=close_receipt [16:48:18]process_action close_receipt [16:48:18]cmd_close_receipt [16:48:18]MH_GetDate [16:48:18]Write to MH i2c: F0 00 00 AF 1D BB [16:48:18]Write i2c OK [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: F0 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: F0 09 00 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: F0 09 00 AF 1D 00 D9 C7 A7 66 A6 1F 7F 64 19 [16:48:18]GetLastDocTimeStamp 1722271664 [16:48:18]current date 1722271705 [16:48:18]FM_GetShiftState [16:48:18]SAM_PROTO_GetShiftState [16:48:18]wFMCommunicate request_size=4 [16:48:18]MH_SAM_APDU [16:48:18]CAPDU: 80 13 01 00 [16:48:18]Write to MH i2c: E2 08 00 B0 1D 80 13 01 00 00 00 00 00 4A [16:48:18]Write i2c OK [16:48:18]MH_I2C_Read... [16:48:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:18]Read from MH i2c: E2 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: E2 0E 00 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: E2 0E 00 B0 1D 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 CB [16:48:18]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [16:48:18]wFMCommunicate OK [16:48:18]SAM_PROTO_GetShiftState done [16:48:18]FM_GetShiftState done [16:48:18]opened in 1722213509 [16:48:18]opened+sec_in_day 1722299909 [16:48:18]quantity*price = 10500 [16:48:18]sum+1 = 10501 [16:48:18]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112003956 Шок батончик ALBENI SUPER Альбени Супер 2.000 * 75.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 255.00 НСП 1% : 2.26 НДС 12% : 27.08 Наличными: 255.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 62 29.07.2024 16:48 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27159 ФПД: 229746605297219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T164825&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27159&fm=229746605297219&tin=02508201610067®Number=0000000000092663&sum=25500 0 [16:48:19]StoreToDocumentArchive [16:48:19]shift 434 fd 27159 [16:48:19]save to /storage/0434/doc_00027159 [16:48:19]save last doc name /storage/0434/doc_00027159 to /storage/kkm_last_doc_name [16:48:19]save OK [16:48:19]Clear old archive folders... [16:48:19]ProcessDocumentItem done err = 0, tmpTLVsize=440 [16:48:19]tlvbuf is B6DA2630 [16:48:19]SAM_PROTO_ClearQueue [16:48:19]wFMCommunicate request_size=4 [16:48:19]MH_SAM_APDU [16:48:19]CAPDU: 80 09 00 00 [16:48:19]Write to MH i2c: E2 08 00 BD 1D 80 09 00 00 00 00 00 00 4C [16:48:19]Write i2c OK [16:48:19]MH_I2C_Read... [16:48:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:19]Read from MH i2c: E2 [16:48:19]MH_I2C_Read... [16:48:19]Read from MH i2c: E2 03 00 [16:48:19]MH_I2C_Read... [16:48:19]Read from MH i2c: E2 03 00 BD 1D 00 90 00 4E [16:48:19]RAPDU: 90 00 [16:48:19]wFMCommunicate OK [16:48:19]SAM_PROTO_ClearQueue done [16:48:19]KKMCreateOFDPacket [16:48:19]OFDProtocolAddRootSTLVToBuf [16:48:19]FM_MakeSignedData [16:48:19]FM_MakeSignedData [16:48:19]SAM_PROTO_SignData [16:48:19]wFMCommunicate request_size=4 [16:48:19]MH_SAM_APDU [16:48:19]CAPDU: 80 0D 01 02 [16:48:19]Write to MH i2c: E2 08 00 BE 1D 80 0D 01 02 00 00 00 00 54 [16:48:19]Write i2c OK [16:48:19]MH_I2C_Read... [16:48:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:19]Read from MH i2c: E2 [16:48:19]MH_I2C_Read... [16:48:19]Read from MH i2c: E2 03 00 [16:48:19]MH_I2C_Read... [16:48:19]Read from MH i2c: E2 03 00 BE 1D 00 90 00 4F [16:48:19]RAPDU: 90 00 [16:48:19]wFMCommunicate OK [16:48:19]wFMCommunicate request_size=255 [16:48:19]MH_SAM_APDU [16:48:19]CAPDU: 80 0D 02 02 FA 03 00 B8 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 36 33 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9F D0 B8 D0 B0 D0 BB D0 B0 20 49 63 65 20 54 65 61 20 D0 BF D0 B5 D1 80 D1 81 2C D0 B4 D1 8B D0 BD D1 8F 2C D0 B3 D1 83 D0 B0 D1 80 20 31 D0 BB 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 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 D0 07 00 00 00 00 00 37 04 06 00 4C 1D [16:48:19]Write to MH i2c: E2 02 01 BF 1D 80 0D 02 02 FA 00 03 00 B8 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 36 33 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9F D0 B8 D0 B0 D0 BB D0 B0 20 49 63 65 20 54 65 61 20 D0 BF D0 B5 D1 80 D1 81 2C D0 B4 D1 8B D0 BD D1 8F 2C D0 B3 D1 83 D0 B0 D1 80 20 31 D0 BB 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 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 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 43 [16:48:19]Write i2c OK [16:48:19]MH_I2C_Read... [16:48:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:20]Read from MH i2c: E2 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: E2 03 00 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: E2 03 00 BF 1D 00 90 00 50 [16:48:20]RAPDU: 90 00 [16:48:20]wFMCommunicate OK [16:48:20]wFMCommunicate request_size=199 [16:48:20]MH_SAM_APDU [16:48:20]CAPDU: 80 0D 02 02 C2 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 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 9C 63 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 D9 C7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 17 6A 00 00 35 04 06 00 D0 F4 0C CC 0E 43 [16:48:20]Write to MH i2c: E2 CA 00 C0 1D 80 0D 02 02 C2 00 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 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 9C 63 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 D9 C7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 17 6A 00 00 35 04 06 00 D0 F4 0C CC 0E 43 00 00 51 [16:48:20]Write i2c OK [16:48:20]MH_I2C_Read... [16:48:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:20]Read from MH i2c: E2 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: E2 03 00 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: E2 03 00 C0 1D 00 90 00 51 [16:48:20]RAPDU: 90 00 [16:48:20]wFMCommunicate OK [16:48:20]wFMCommunicate request_size=4 [16:48:20]MH_SAM_APDU [16:48:20]CAPDU: 80 0D 03 02 [16:48:20]Write to MH i2c: E2 08 00 C1 1D 80 0D 03 02 00 00 00 00 59 [16:48:20]Write i2c OK [16:48:20]MH_I2C_Read... [16:48:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:20]Read from MH i2c: E2 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: E2 0B 00 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: E2 0B 00 C1 1D 00 7D 1C 50 39 8F 20 4E 51 90 00 CA [16:48:20]RAPDU: 7D 1C 50 39 8F 20 4E 51 90 00 [16:48:20]wFMCommunicate OK [16:48:20]SAM_PROTO_SignData done [16:48:20]FM_MakeSignedData done [16:48:20]CreateOFDProtocolMessage [16:48:20]wFMCommunicate request_size=4 [16:48:20]MH_SAM_APDU [16:48:20]CAPDU: 80 11 00 00 [16:48:20]Write to MH i2c: E2 08 00 C2 1D 80 11 00 00 00 00 00 00 59 [16:48:20]Write i2c OK [16:48:20]MH_I2C_Read... [16:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:20]Read from MH i2c: E2 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: E2 17 00 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: E2 17 00 C2 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 B2 [16:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [16:48:20]wFMCommunicate OK [16:48:20]CreateOFDProtocolMessage done [16:48:20]OFDSenderStorePacket 27159 [16:48:20]StoreOFDPacket docnum=27159 [16:48:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 CC 01 00 00 97 79 C4 01 99 E0 5A 03 01 00 03 00 B8 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 36 33 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9F D0 B8 D0 B0 D0 BB D0 B0 20 49 63 65 20 54 65 61 20 D0 BF D0 B5 D1 80 D1 81 2C D0 B4 D1 8B D0 BD D1 8F 2C D0 B3 D1 83 D0 B0 D1 80 20 31 D0 BB 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 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 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 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 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 9C 63 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 D9 C7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 17 6A 00 00 35 04 06 00 D0 F4 0C CC 0E 43 7D 1C 50 39 8F 20 4E 51 [16:48:20]CheckFolder [16:48:20]dirname=/storage/ofd_packets [16:48:20]CheckFolder done [16:48:20]ProducePacketName [16:48:20]name=ofd_packets/00027159 [16:48:20]NVStorageSaveData ofd_packets/00027159 [16:48:20]File name is /storage/ofd_packets/00027159 [16:48:20]Write 490 bytes [16:48:20]NVStorageSaveData done [16:48:20]OFDSenderStorePacket done [16:48:20]KKMCreateOFDPacket done [16:48:20]NVStorageSaveData kkm_last_timestamp [16:48:20]File name is /storage/kkm_last_timestamp [16:48:20]Write 4 bytes [16:48:20]NVStorageSaveData done [16:48:20]ExternCall_PrintAddStr [16:48:20]wPrintStart [16:48:20]Write to MH i2c: 01 00 00 C3 1D E0 [16:48:20]OFD Sender: Processing packet 27159 [packets to send 9, broken 8] [16:48:20]ProducePacketName [16:48:20]name=ofd_packets/00027159 [16:48:20]OFD Sender: To server: pG, [16:48:20]CommunicateWithHost lk.salyk.kg:30040 [16:48:20]ConnectInit lk.salyk.kg [16:48:20]Write i2c OK [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: 01 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: 01 07 00 [16:48:20]MH_I2C_Read... [16:48:20]Read from MH i2c: 01 07 00 C3 1D 00 00 00 00 00 FF 0F F5 [16:48:20]RasterBufferAndPrint [16:48:20]line Счет N : (3)150557 [16:48:20]line ИНН: 02508201610067 [16:48:20]line Контрольно-Кассовый Чек [16:48:20]line ПРОДАЖА [16:48:20]line Товар: 4870002329463 [16:48:20]line Напиток Пиала Ice Tea перс,дыня,гуар 1л [16:48:20]line 1.000 * 105.00 [16:48:20]line = 105.00 [16:48:20]line НДС 12% НСП 1% [16:48:20]line > о реализуемом товаре [16:48:20]line Товар: 4870112003956 [16:48:20]line Шок батончик ALBENI SUPER Альбени Супер [16:48:20]line 2.000 * 75.00 [16:48:20]line = 150.00 [16:48:20]line НДС 12% НСП 1% [16:48:20]line > о реализуемом товаре [16:48:20]line ИТОГО: 255.00 [16:48:20]line НСП 1% : 2.26 [16:48:20]line НДС 12% : 27.08 [16:48:20]line Наличными: 255.00 [16:48:20]line Безнал.: 0.00 [16:48:20]line Место: АЗС № 134 "Партнер Нефть" [16:48:20]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:48:20]line СНО: Общий режим [16:48:20]line Чек 62 29.07.2024 16:48 [16:48:20]line Смена: 434 ФФД: 1.0 [16:48:20]line ЗНМ: 0300000043 [16:48:20]line РНМ: 0000000000092663 [16:48:20]line Версия ККМ: 001 [16:48:20]line ФМ: 0000000000874937 [16:48:20]line ФД: 27159 [16:48:20]line ФПД: 229746605297219 [16:48:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T164825&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27159&fm=229746605297219&tin=02508201610067®Number=0000000000092663&sum=25500 [16:48:20]line 0 [16:48:20]written 0, free lines is 4095 [16:48:21]Connected sock=11 [16:48:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 CC 01 00 00 97 79 C4 01 99 E0 5A 03 01 00 03 00 B8 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 36 33 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9F D0 B8 D0 B0 D0 BB D0 B0 20 49 63 65 20 54 65 61 20 D0 BF D0 B5 D1 80 D1 81 2C D0 B4 D1 8B D0 BD D1 8F 2C D0 B3 D1 83 D0 B0 D1 80 20 31 D0 BB 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 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 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 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 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 9C 63 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 D9 C7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 17 6A 00 00 35 04 06 00 D0 F4 0C CC 0E 43 7D 1C 50 39 8F 20 4E 51 [16:48:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 C3 A0 47 00 98 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 34 39 33 37 10 04 04 00 17 6A 00 00 F4 03 04 00 29 6E A7 66 B6 04 01 00 00 28 13 0E 48 38 28 09 E7 [16:48:21]CommunicateWithHost err = 0 [16:48:21]CheckOFDResponse [16:48:21]1017 (14) - 77093643461234 [16:48:21]1041 (16) - 0000000000874937 [16:48:21]1040 (4) - 27159 [16:48:21]1012 (4) - 29.07.2024 10:25 [16:48:21]1206 (1) - 0 [16:48:21]OFD Sender: Remove packet 27159 [16:48:21]ProducePacketName [16:48:21]name=ofd_packets/00027159 [16:48:21]NVStorageDeleteData [16:48:21]Write to MH i2c: 01 00 00 F2 1D 0F [16:48:21]Write i2c OK [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: 01 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: 01 07 00 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: 01 07 00 F2 1D 00 00 00 00 00 8A 0C AC [16:48:21]RasterBufferAndPrint [16:48:21]line [16:48:21]line [16:48:21]line [16:48:21]line [16:48:21]line [16:48:21]written 0, free lines is 3216 [16:48:21]MH_Cut [16:48:21]Write to MH i2c: D1 01 00 F9 1D 01 E8 [16:48:21]Write i2c OK [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: D1 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: D1 01 00 [16:48:21]MH_I2C_Read... [16:48:21]Read from MH i2c: D1 01 00 F9 1D 00 E7 [16:48:21]Write to MH i2c: 01 00 00 FA 1D 17 [16:48:21]Write i2c OK [16:48:21]MH_I2C_Read... [16:48:21]OFD Sender: No OFD packet to send [16:48:22]*** Cut start [16:48:22]*** Partial cut [16:48:22]*** CUTSNS_PIN = 1 [16:48:22]*** CUTSNS_PIN = 0 [16:48:22]*** Brake cut motor [16:48:22]Read from MH i2c: 01 [16:48:22]MH_I2C_Read... [16:48:22]*** Stop cut motor [16:48:22]*** Cut end [16:48:22]Read from MH i2c: 01 07 00 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: 01 07 00 FA 1D 00 00 00 00 00 FF 0F 2C [16:48:22]process_action close_receipt done [16:48:22]requested_data is exist [16:48:22]produce_requested_data [16:48:22]requested_item fm.sn is exist - process it [16:48:22]wFMCommunicate request_size=4 [16:48:22]MH_SAM_APDU [16:48:22]CAPDU: 80 11 00 00 [16:48:22]Write to MH i2c: E2 08 00 FB 1D 80 11 00 00 00 00 00 00 92 [16:48:22]Write i2c OK [16:48:22]MH_I2C_Read... [16:48:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:22]Read from MH i2c: E2 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E2 17 00 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E2 17 00 FB 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 EB [16:48:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [16:48:22]wFMCommunicate OK [16:48:22]requested_item fd.num is exist - process it [16:48:22]SAM_PROTO_GetFieldsCounters [16:48:22]wFMCommunicate request_size=4 [16:48:22]MH_SAM_APDU [16:48:22]CAPDU: 80 13 00 00 [16:48:22]Write to MH i2c: E2 08 00 FC 1D 80 13 00 00 00 00 00 00 95 [16:48:22]Write i2c OK [16:48:22]MH_I2C_Read... [16:48:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:22]Read from MH i2c: E2 [16:48:22]MH_I2C_Read... [16:48:22]Read from MH i2c: E2 62 00 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: E2 62 00 FC 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 17 6A 00 00 0E 04 04 00 B2 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 AB [16:48:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 17 6A 00 00 0E 04 04 00 B2 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 [16:48:23]wFMCommunicate OK [16:48:23]SAM_PROTO_GetFieldsCounters done [16:48:23]requested_item shift.num is exist - process it [16:48:23]requested_item shift.opened is exist - process it [16:48:23]req_shift_opened [16:48:23]FM_GetShiftState [16:48:23]SAM_PROTO_GetShiftState [16:48:23]wFMCommunicate request_size=4 [16:48:23]MH_SAM_APDU [16:48:23]CAPDU: 80 13 01 00 [16:48:23]Write to MH i2c: E2 08 00 FD 1D 80 13 01 00 00 00 00 00 97 [16:48:23]Write i2c OK [16:48:23]MH_I2C_Read... [16:48:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:23]Read from MH i2c: E2 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: E2 0E 00 [16:48:23]MH_I2C_Read... [16:48:23]Read from MH i2c: E2 0E 00 FD 1D 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 18 [16:48:23]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [16:48:23]wFMCommunicate OK [16:48:23]SAM_PROTO_GetShiftState done [16:48:23]FM_GetShiftState done [16:48:23]req_shift_opened done [16:48:23]requested_item shift.open_date is exist - process it [16:48:23]req_shift_open_date [16:48:23]req_shift_open_date done [16:48:23]produce_requested_data done [16:48:23]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27159,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [16:48:23]process_action_free close_receipt [16:48:23]json_value_free [16:48:23]json_value_free done [16:48:23]process_json_proto returns [16:48:23]Send response to host [16:48:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27159,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [16:48:23]free response buf [16:48:23]execute_script done [16:48:23]execute_script returns [16:48:23]free content buf [16:48:23]Sock 9.Close socket [16:48:23]Sock 9.Thread stoped [16:48:25]accept exits with 8 [16:48:25]New connection [16:48:25]New thread 3066928484 created [16:48:25]Thread 3066785124 joined [16:48:25]Waiting for new connection... [16:48:25] Sock 8.Parse request [16:48:25]Sock 8.Check first char [16:48:25]Sock 8.First char is OK [16:48:25]request: POST /json_proto HTTP/1.0 [16:48:25]Method: POST [16:48:25]URL: /json_proto [16:48:25]Method is POST - this is cgi request [16:48:25]url: /json_proto [16:48:25]query_string will be loaded in cgi processing [16:48:25]execute_cgi json_proto POST (null) [16:48:25]execute_cgi path=json_proto method=POST [16:48:25]POST find Content-Length [16:48:25]Host: 172.17.45.8:8080 [16:48:25]Content-Length: 654 [16:48:25]Content-Type: application/json [16:48:25] [16:48:25]POST finish read [16:48:25]Found Content-Length = 654 [16:48:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150558", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\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" ] } } [16:48:25]execute_script... [16:48:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150558", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\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" ] } } [16:48:25]POST & json_proto [16:48:25]process_json_proto [16:48:25]json parsed OK: [16:48:25]protocol is kg_v1.0 [16:48:25]action value=close_receipt [16:48:25]process_action close_receipt [16:48:25]cmd_close_receipt [16:48:25]MH_GetDate [16:48:25]Write to MH i2c: F0 00 00 FE 1D 0A [16:48:25]Write i2c OK [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: F0 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: F0 09 00 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: F0 09 00 FE 1D 00 E0 C7 A7 66 A6 1F 7F 64 6F [16:48:25]GetLastDocTimeStamp 1722271705 [16:48:25]current date 1722271712 [16:48:25]FM_GetShiftState [16:48:25]SAM_PROTO_GetShiftState [16:48:25]wFMCommunicate request_size=4 [16:48:25]MH_SAM_APDU [16:48:25]CAPDU: 80 13 01 00 [16:48:25]Write to MH i2c: E2 08 00 FF 1D 80 13 01 00 00 00 00 00 99 [16:48:25]Write i2c OK [16:48:25]MH_I2C_Read... [16:48:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:25]Read from MH i2c: E2 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: E2 0E 00 [16:48:25]MH_I2C_Read... [16:48:25]Read from MH i2c: E2 0E 00 FF 1D 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 1A [16:48:25]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [16:48:25]wFMCommunicate OK [16:48:25]SAM_PROTO_GetShiftState done [16:48:25]FM_GetShiftState done [16:48:25]opened in 1722213509 [16:48:25]opened+sec_in_day 1722299909 [16:48:25]quantity*price = 9500 [16:48:25]sum+1 = 9501 [16:48:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 63 29.07.2024 16:48 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27160 ФПД: 24086655013192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T164832&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27160&fm=24086655013192&tin=02508201610067®Number=0000000000092663&sum=9500 0 [16:48:26]StoreToDocumentArchive [16:48:26]shift 434 fd 27160 [16:48:26]save to /storage/0434/doc_00027160 [16:48:26]save last doc name /storage/0434/doc_00027160 to /storage/kkm_last_doc_name [16:48:26]save OK [16:48:26]Clear old archive folders... [16:48:26]ProcessDocumentItem done err = 0, tmpTLVsize=293 [16:48:26]tlvbuf is B6F52230 [16:48:26]SAM_PROTO_ClearQueue [16:48:26]wFMCommunicate request_size=4 [16:48:26]MH_SAM_APDU [16:48:26]CAPDU: 80 09 00 00 [16:48:26]Write to MH i2c: E2 08 00 0C 1E 80 09 00 00 00 00 00 00 9C [16:48:26]Write i2c OK [16:48:26]MH_I2C_Read... [16:48:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:26]Read from MH i2c: E2 [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: E2 03 00 [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: E2 03 00 0C 1E 00 90 00 9E [16:48:26]RAPDU: 90 00 [16:48:26]wFMCommunicate OK [16:48:26]SAM_PROTO_ClearQueue done [16:48:26]KKMCreateOFDPacket [16:48:26]OFDProtocolAddRootSTLVToBuf [16:48:26]FM_MakeSignedData [16:48:26]FM_MakeSignedData [16:48:26]SAM_PROTO_SignData [16:48:26]wFMCommunicate request_size=4 [16:48:26]MH_SAM_APDU [16:48:26]CAPDU: 80 0D 01 02 [16:48:26]Write to MH i2c: E2 08 00 0D 1E 80 0D 01 02 00 00 00 00 A4 [16:48:26]Write i2c OK [16:48:26]MH_I2C_Read... [16:48:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:26]Read from MH i2c: E2 [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: E2 03 00 [16:48:26]MH_I2C_Read... [16:48:26]Read from MH i2c: E2 03 00 0D 1E 00 90 00 9F [16:48:26]RAPDU: 90 00 [16:48:26]wFMCommunicate OK [16:48:26]wFMCommunicate request_size=255 [16:48:26]MH_SAM_APDU [16:48:26]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 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 3F 00 00 00 F4 03 04 00 E0 C7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [16:48:26]Write to MH i2c: E2 02 01 0E 1E 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 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 3F 00 00 00 F4 03 04 00 E0 C7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 EA [16:48:26]OFD Sender: No OFD packet to send [16:48:26]Write i2c OK [16:48:26]MH_I2C_Read... [16:48:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:27]Read from MH i2c: E2 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 03 00 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 03 00 0E 1E 00 90 00 A0 [16:48:27]RAPDU: 90 00 [16:48:27]wFMCommunicate OK [16:48:27]wFMCommunicate request_size=52 [16:48:27]MH_SAM_APDU [16:48:27]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 18 6A 00 00 35 04 06 00 15 E8 1C 84 11 48 [16:48:27]Write to MH i2c: E2 37 00 0F 1E 80 0D 02 02 2F 00 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 18 6A 00 00 35 04 06 00 15 E8 1C 84 11 48 00 00 E9 [16:48:27]Write i2c OK [16:48:27]MH_I2C_Read... [16:48:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:27]Read from MH i2c: E2 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 03 00 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 03 00 0F 1E 00 90 00 A1 [16:48:27]RAPDU: 90 00 [16:48:27]wFMCommunicate OK [16:48:27]wFMCommunicate request_size=4 [16:48:27]MH_SAM_APDU [16:48:27]CAPDU: 80 0D 03 02 [16:48:27]Write to MH i2c: E2 08 00 10 1E 80 0D 03 02 00 00 00 00 A9 [16:48:27]Write i2c OK [16:48:27]MH_I2C_Read... [16:48:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:27]Read from MH i2c: E2 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 0B 00 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 0B 00 10 1E 00 D0 32 94 D8 FB B0 12 30 90 00 05 [16:48:27]RAPDU: D0 32 94 D8 FB B0 12 30 90 00 [16:48:27]wFMCommunicate OK [16:48:27]SAM_PROTO_SignData done [16:48:27]FM_MakeSignedData done [16:48:27]CreateOFDProtocolMessage [16:48:27]wFMCommunicate request_size=4 [16:48:27]MH_SAM_APDU [16:48:27]CAPDU: 80 11 00 00 [16:48:27]Write to MH i2c: E2 08 00 11 1E 80 11 00 00 00 00 00 00 A9 [16:48:27]Write i2c OK [16:48:27]MH_I2C_Read... [16:48:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:27]Read from MH i2c: E2 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 17 00 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: E2 17 00 11 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 02 [16:48:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [16:48:27]wFMCommunicate OK [16:48:27]CreateOFDProtocolMessage done [16:48:27]OFDSenderStorePacket 27160 [16:48:27]StoreOFDPacket docnum=27160 [16:48:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 39 01 00 00 C1 DA 31 01 48 6E 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 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 3F 00 00 00 F4 03 04 00 E0 C7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 18 6A 00 00 35 04 06 00 15 E8 1C 84 11 48 D0 32 94 D8 FB B0 12 30 [16:48:27]CheckFolder [16:48:27]dirname=/storage/ofd_packets [16:48:27]CheckFolder done [16:48:27]ProducePacketName [16:48:27]name=ofd_packets/00027160 [16:48:27]NVStorageSaveData ofd_packets/00027160 [16:48:27]File name is /storage/ofd_packets/00027160 [16:48:27]Write 343 bytes [16:48:27]NVStorageSaveData done [16:48:27]OFDSenderStorePacket done [16:48:27]KKMCreateOFDPacket done [16:48:27]NVStorageSaveData kkm_last_timestamp [16:48:27]File name is /storage/kkm_last_timestamp [16:48:27]Write 4 bytes [16:48:27]NVStorageSaveData done [16:48:27]ExternCall_PrintAddStr [16:48:27]wPrintStart [16:48:27]Write to MH i2c: 01 00 00 12 1E 30 [16:48:27]Write i2c OK [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: 01 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: 01 07 00 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: 01 07 00 12 1E 00 00 00 00 00 FF 0F 45 [16:48:27]RasterBufferAndPrint [16:48:27]line Счет N : (3)150558 [16:48:27]line ИНН: 02508201610067 [16:48:27]line Контрольно-Кассовый Чек [16:48:27]line ПРОДАЖА [16:48:27]line Товар: 4700000480050 [16:48:27]line Напиток Nitro Energy эн green ж/б 0,45л [16:48:27]line 1.000 * 95.00 [16:48:27]line = 95.00 [16:48:27]line НДС 12% НСП 1% [16:48:27]line > о реализуемом товаре [16:48:27]line ИТОГО: 95.00 [16:48:27]line НСП 1% : 0.84 [16:48:27]line НДС 12% : 10.09 [16:48:27]line Наличными: 95.00 [16:48:27]line Безнал.: 0.00 [16:48:27]line Место: АЗС № 134 "Партнер Нефть" [16:48:27]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:48:27]line СНО: Общий режим [16:48:27]line Чек 63 29.07.2024 16:48 [16:48:27]line Смена: 434 ФФД: 1.0 [16:48:27]line ЗНМ: 0300000043 [16:48:27]line РНМ: 0000000000092663 [16:48:27]line Версия ККМ: 001 [16:48:27]line ФМ: 0000000000874937 [16:48:27]line ФД: 27160 [16:48:27]line ФПД: 24086655013192 [16:48:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T164832&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27160&fm=24086655013192&tin=02508201610067®Number=0000000000092663&sum=9500 [16:48:27]line 0 [16:48:27]OFD Sender: Processing packet 27160 [packets to send 9, broken 8] [16:48:27]ProducePacketName [16:48:27]name=ofd_packets/00027160 [16:48:27]OFD Sender: To server: pG, [16:48:27]CommunicateWithHost lk.salyk.kg:30040 [16:48:27]ConnectInit lk.salyk.kg [16:48:27]written 0, free lines is 4095 [16:48:27]Connected sock=10 [16:48:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 39 01 00 00 C1 DA 31 01 48 6E 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 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 3F 00 00 00 F4 03 04 00 E0 C7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 18 6A 00 00 35 04 06 00 15 E8 1C 84 11 48 D0 32 94 D8 FB B0 12 30 [16:48:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 7F 68 47 00 9A C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 18 6A 00 00 F4 03 04 00 30 6E A7 66 B6 04 01 00 00 E1 C4 02 8C 15 BA 19 7D [16:48:27]CommunicateWithHost err = 0 [16:48:27]CheckOFDResponse [16:48:27]1017 (14) - 77093643461234 [16:48:27]1041 (16) - 0000000000874937 [16:48:27]1040 (4) - 27160 [16:48:27]1012 (4) - 29.07.2024 10:25 [16:48:27]1206 (1) - 0 [16:48:27]OFD Sender: Remove packet 27160 [16:48:27]ProducePacketName [16:48:27]name=ofd_packets/00027160 [16:48:27]NVStorageDeleteData [16:48:27]Write to MH i2c: 01 00 00 3A 1E 58 [16:48:27]Write i2c OK [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: 01 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: 01 07 00 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: 01 07 00 3A 1E 00 00 00 00 00 ED 0C 58 [16:48:27]RasterBufferAndPrint [16:48:27]line [16:48:27]line [16:48:27]line [16:48:27]line [16:48:27]line [16:48:27]written 0, free lines is 3322 [16:48:27]MH_Cut [16:48:27]Write to MH i2c: D1 01 00 41 1E 01 31 [16:48:27]Write i2c OK [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: D1 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: D1 01 00 [16:48:27]MH_I2C_Read... [16:48:27]Read from MH i2c: D1 01 00 41 1E 00 30 [16:48:27]Write to MH i2c: 01 00 00 42 1E 60 [16:48:27]Write i2c OK [16:48:27]MH_I2C_Read... [16:48:28]OFD Sender: No OFD packet to send [16:48:28]*** Cut start [16:48:28]*** Partial cut [16:48:28]*** CUTSNS_PIN = 1 [16:48:28]*** CUTSNS_PIN = 0 [16:48:28]*** Brake cut motor [16:48:29]Read from MH i2c: 01 [16:48:29]MH_I2C_Read... [16:48:29]*** Stop cut motor [16:48:29]*** Cut end [16:48:29]Read from MH i2c: 01 07 00 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: 01 07 00 42 1E 00 00 00 00 00 FF 0F 75 [16:48:29]process_action close_receipt done [16:48:29]requested_data is exist [16:48:29]produce_requested_data [16:48:29]requested_item fm.sn is exist - process it [16:48:29]wFMCommunicate request_size=4 [16:48:29]MH_SAM_APDU [16:48:29]CAPDU: 80 11 00 00 [16:48:29]Write to MH i2c: E2 08 00 43 1E 80 11 00 00 00 00 00 00 DB [16:48:29]Write i2c OK [16:48:29]MH_I2C_Read... [16:48:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:29]Read from MH i2c: E2 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 17 00 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 17 00 43 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 34 [16:48:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [16:48:29]wFMCommunicate OK [16:48:29]requested_item fd.num is exist - process it [16:48:29]SAM_PROTO_GetFieldsCounters [16:48:29]wFMCommunicate request_size=4 [16:48:29]MH_SAM_APDU [16:48:29]CAPDU: 80 13 00 00 [16:48:29]Write to MH i2c: E2 08 00 44 1E 80 13 00 00 00 00 00 00 DE [16:48:29]Write i2c OK [16:48:29]MH_I2C_Read... [16:48:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:29]Read from MH i2c: E2 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 62 00 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 62 00 44 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 18 6A 00 00 0E 04 04 00 B2 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 F8 [16:48:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 18 6A 00 00 0E 04 04 00 B2 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 [16:48:29]wFMCommunicate OK [16:48:29]SAM_PROTO_GetFieldsCounters done [16:48:29]requested_item shift.num is exist - process it [16:48:29]requested_item shift.opened is exist - process it [16:48:29]req_shift_opened [16:48:29]FM_GetShiftState [16:48:29]SAM_PROTO_GetShiftState [16:48:29]wFMCommunicate request_size=4 [16:48:29]MH_SAM_APDU [16:48:29]CAPDU: 80 13 01 00 [16:48:29]Write to MH i2c: E2 08 00 45 1E 80 13 01 00 00 00 00 00 E0 [16:48:29]Write i2c OK [16:48:29]MH_I2C_Read... [16:48:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:29]Read from MH i2c: E2 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 0E 00 [16:48:29]MH_I2C_Read... [16:48:29]Read from MH i2c: E2 0E 00 45 1E 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 61 [16:48:29]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [16:48:29]wFMCommunicate OK [16:48:29]SAM_PROTO_GetShiftState done [16:48:29]FM_GetShiftState done [16:48:29]req_shift_opened done [16:48:29]requested_item shift.open_date is exist - process it [16:48:29]req_shift_open_date [16:48:29]req_shift_open_date done [16:48:29]produce_requested_data done [16:48:29]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27160,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [16:48:29]process_action_free close_receipt [16:48:29]json_value_free [16:48:29]json_value_free done [16:48:29]process_json_proto returns [16:48:29]Send response to host [16:48:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27160,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [16:48:29]free response buf [16:48:29]execute_script done [16:48:29]execute_script returns [16:48:29]free content buf [16:48:29]Sock 8.Close socket [16:48:29]Sock 8.Thread stoped [16:48:33]OFD Sender: No OFD packet to send [16:48:38]OFD Sender: No OFD packet to send [16:48:43]OFD Sender: No OFD packet to send [16:48:45]accept exits with 9 [16:48:45]New connection [16:48:45]New thread 3066785124 created [16:48:45]Thread 3066928484 joined [16:48:45]Waiting for new connection... [16:48:45] Sock 9.Parse request [16:48:45]Sock 9.Check first char [16:48:45]Sock 9.First char is OK [16:48:45]request: POST /json_proto HTTP/1.0 [16:48:45]Method: POST [16:48:45]URL: /json_proto [16:48:45]Method is POST - this is cgi request [16:48:45]url: /json_proto [16:48:45]query_string will be loaded in cgi processing [16:48:45]execute_cgi json_proto POST (null) [16:48:45]execute_cgi path=json_proto method=POST [16:48:45]POST find Content-Length [16:48:45]Host: 172.17.45.8:8080 [16:48:45]Content-Length: 985 [16:48:45]Content-Type: application/json [16:48:45] [16:48:45]POST finish read [16:48:45]Found Content-Length = 985 [16:48:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150559", "tax_sys" : 0, "items" : [ { "code": "4870002328398", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010476", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \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" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:45]execute_script... [16:48: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)150559", "tax_sys" : 0, "items" : [ { "code": "4870002328398", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010476", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \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" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:45]POST & json_proto [16:48:45]process_json_proto [16:48:45]json parsed OK: [16:48:45]protocol is kg_v1.0 [16:48:45]action value=close_receipt [16:48:45]process_action close_receipt [16:48:45]cmd_close_receipt [16:48:45]MH_GetDate [16:48:45]Write to MH i2c: F0 00 00 46 1E 53 [16:48:45]Write i2c OK [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: F0 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: F0 09 00 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: F0 09 00 46 1E 00 F4 C7 A7 66 A6 1F 7F 64 CC [16:48:45]GetLastDocTimeStamp 1722271712 [16:48:45]current date 1722271732 [16:48:45]FM_GetShiftState [16:48:45]SAM_PROTO_GetShiftState [16:48:45]wFMCommunicate request_size=4 [16:48:45]MH_SAM_APDU [16:48:45]CAPDU: 80 13 01 00 [16:48:45]Write to MH i2c: E2 08 00 47 1E 80 13 01 00 00 00 00 00 E2 [16:48:45]Write i2c OK [16:48:45]MH_I2C_Read... [16:48:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:45]Read from MH i2c: E2 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: E2 0E 00 [16:48:45]MH_I2C_Read... [16:48:45]Read from MH i2c: E2 0E 00 47 1E 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 63 [16:48:45]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [16:48:45]wFMCommunicate OK [16:48:45]SAM_PROTO_GetShiftState done [16:48:45]FM_GetShiftState done [16:48:45]opened in 1722213509 [16:48:45]opened+sec_in_day 1722299909 [16:48:45]quantity*price = 10000 [16:48:45]sum+1 = 10001 [16:48:45]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003010476 Напиток Let`s Go! с/с яблоко ПЭТ 1л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.12 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 64 29.07.2024 16:48 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27161 ФПД: 113414702392585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T164852&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27161&fm=113414702392585&tin=02508201610067®Number=0000000000092663&sum=18000 0 [16:48:46]StoreToDocumentArchive [16:48:46]shift 434 fd 27161 [16:48:46]save to /storage/0434/doc_00027161 [16:48:46]save last doc name /storage/0434/doc_00027161 to /storage/kkm_last_doc_name [16:48:46]save OK [16:48:46]Clear old archive folders... [16:48:46]ProcessDocumentItem done err = 0, tmpTLVsize=417 [16:48:46]tlvbuf is B6EBB760 [16:48:46]SAM_PROTO_ClearQueue [16:48:46]wFMCommunicate request_size=4 [16:48:46]MH_SAM_APDU [16:48:46]CAPDU: 80 09 00 00 [16:48:46]Write to MH i2c: E2 08 00 54 1E 80 09 00 00 00 00 00 00 E4 [16:48:46]Write i2c OK [16:48:46]MH_I2C_Read... [16:48:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:46]Read from MH i2c: E2 [16:48:46]MH_I2C_Read... [16:48:46]Read from MH i2c: E2 03 00 [16:48:46]MH_I2C_Read... [16:48:46]Read from MH i2c: E2 03 00 54 1E 00 90 00 E6 [16:48:46]RAPDU: 90 00 [16:48:46]wFMCommunicate OK [16:48:46]SAM_PROTO_ClearQueue done [16:48:46]KKMCreateOFDPacket [16:48:46]OFDProtocolAddRootSTLVToBuf [16:48:46]FM_MakeSignedData [16:48:46]FM_MakeSignedData [16:48:46]SAM_PROTO_SignData [16:48:46]wFMCommunicate request_size=4 [16:48:46]MH_SAM_APDU [16:48:46]CAPDU: 80 0D 01 02 [16:48:46]Write to MH i2c: E2 08 00 55 1E 80 0D 01 02 00 00 00 00 EC [16:48:46]Write i2c OK [16:48:46]MH_I2C_Read... [16:48:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:46]Read from MH i2c: E2 [16:48:46]MH_I2C_Read... [16:48:46]Read from MH i2c: E2 03 00 [16:48:46]MH_I2C_Read... [16:48:46]Read from MH i2c: E2 03 00 55 1E 00 90 00 E7 [16:48:46]RAPDU: 90 00 [16:48:46]wFMCommunicate OK [16:48:46]wFMCommunicate request_size=255 [16:48:46]MH_SAM_APDU [16:48:46]CAPDU: 80 0D 02 02 FA 03 00 A1 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 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 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 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 [16:48:46]Write to MH i2c: E2 02 01 56 1E 80 0D 02 02 FA 00 03 00 A1 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 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 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 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 00 00 6F [16:48:46]Write i2c OK [16:48:46]MH_I2C_Read... [16:48:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:47]Read from MH i2c: E2 [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: E2 03 00 [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: E2 03 00 56 1E 00 90 00 E8 [16:48:47]RAPDU: 90 00 [16:48:47]wFMCommunicate OK [16:48:47]wFMCommunicate request_size=176 [16:48:47]MH_SAM_APDU [16:48:47]CAPDU: 80 0D 02 02 AB 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 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 40 00 00 00 F4 03 04 00 F4 C7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 19 6A 00 00 35 04 06 00 67 26 6B 0C 65 09 [16:48:47]Write to MH i2c: E2 B3 00 57 1E 80 0D 02 02 AB 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 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 40 00 00 00 F4 03 04 00 F4 C7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 19 6A 00 00 35 04 06 00 67 26 6B 0C 65 09 00 00 4B [16:48:47]Write i2c OK [16:48:47]MH_I2C_Read... [16:48:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:47]Read from MH i2c: E2 [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: E2 03 00 [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: E2 03 00 57 1E 00 90 00 E9 [16:48:47]RAPDU: 90 00 [16:48:47]wFMCommunicate OK [16:48:47]wFMCommunicate request_size=4 [16:48:47]MH_SAM_APDU [16:48:47]CAPDU: 80 0D 03 02 [16:48:47]Write to MH i2c: E2 08 00 58 1E 80 0D 03 02 00 00 00 00 F1 [16:48:47]Write i2c OK [16:48:47]MH_I2C_Read... [16:48:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:47]Read from MH i2c: E2 [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: E2 0B 00 [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: E2 0B 00 58 1E 00 5D D4 7B 9C 8C E5 C3 6A 90 00 D8 [16:48:47]RAPDU: 5D D4 7B 9C 8C E5 C3 6A 90 00 [16:48:47]wFMCommunicate OK [16:48:47]SAM_PROTO_SignData done [16:48:47]FM_MakeSignedData done [16:48:47]CreateOFDProtocolMessage [16:48:47]wFMCommunicate request_size=4 [16:48:47]MH_SAM_APDU [16:48:47]CAPDU: 80 11 00 00 [16:48:47]Write to MH i2c: E2 08 00 59 1E 80 11 00 00 00 00 00 00 F1 [16:48:47]Write i2c OK [16:48:47]MH_I2C_Read... [16:48:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:47]Read from MH i2c: E2 [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: E2 17 00 [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: E2 17 00 59 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 4A [16:48:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [16:48:47]wFMCommunicate OK [16:48:47]CreateOFDProtocolMessage done [16:48:47]OFDSenderStorePacket 27161 [16:48:47]StoreOFDPacket docnum=27161 [16:48:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 B5 01 00 00 47 3B AD 01 D2 9C 5A 03 01 00 03 00 A1 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 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 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 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 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 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 40 00 00 00 F4 03 04 00 F4 C7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 19 6A 00 00 35 04 06 00 67 26 6B 0C 65 09 5D D4 7B 9C 8C E5 C3 6A [16:48:47]CheckFolder [16:48:47]dirname=/storage/ofd_packets [16:48:47]CheckFolder done [16:48:47]ProducePacketName [16:48:47]name=ofd_packets/00027161 [16:48:47]NVStorageSaveData ofd_packets/00027161 [16:48:47]File name is /storage/ofd_packets/00027161 [16:48:47]Write 467 bytes [16:48:47]NVStorageSaveData done [16:48:47]OFDSenderStorePacket done [16:48:47]KKMCreateOFDPacket done [16:48:47]NVStorageSaveData kkm_last_timestamp [16:48:47]File name is /storage/kkm_last_timestamp [16:48:47]Write 4 bytes [16:48:47]NVStorageSaveData done [16:48:47]ExternCall_PrintAddStr [16:48:47]wPrintStart [16:48:47]Write to MH i2c: 01 00 00 5A 1E 78 [16:48:47]Write i2c OK [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: 01 [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: 01 07 00 [16:48:47]MH_I2C_Read... [16:48:47]Read from MH i2c: 01 07 00 5A 1E 00 00 00 00 00 FF 0F 8D [16:48:47]RasterBufferAndPrint [16:48:47]line Счет N : (3)150559 [16:48:47]line ИНН: 02508201610067 [16:48:47]line Контрольно-Кассовый Чек [16:48:47]line ПРОДАЖА [16:48:47]line Товар: 4870002328398 [16:48:47]line Вода ASU пит н.газ мята ПЭТ 1л [16:48:47]line 1.000 * 100.00 [16:48:47]line = 100.00 [16:48:47]line НДС 12% НСП 1% [16:48:47]line > о реализуемом товаре [16:48:47]line Товар: 4700003010476 [16:48:47]line Напиток Let`s Go! с/с яблоко ПЭТ 1л [16:48:47]line 1.000 * 80.00 [16:48:47]line = 80.00 [16:48:47]line НДС 12% НСП 1% [16:48:47]line > о реализуемом товаре [16:48:47]line ИТОГО: 180.00 [16:48:47]line НСП 1% : 1.59 [16:48:47]line НДС 12% : 19.12 [16:48:47]line Наличными: 180.00 [16:48:47]line Безнал.: 0.00 [16:48:47]line Место: АЗС № 134 "Партнер Нефть" [16:48:47]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:48:47]line СНО: Общий режим [16:48:47]line Чек 64 29.07.2024 16:48 [16:48:47]line Смена: 434 ФФД: 1.0 [16:48:47]line ЗНМ: 0300000043 [16:48:47]line РНМ: 0000000000092663 [16:48:47]line Версия ККМ: 001 [16:48:47]line ФМ: 0000000000874937 [16:48:47]line ФД: 27161 [16:48:47]line ФПД: 113414702392585 [16:48:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T164852&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27161&fm=113414702392585&tin=02508201610067®Number=0000000000092663&sum=18000 [16:48:47]line 0 [16:48:47]OFD Sender: Processing packet 27161 [packets to send 9, broken 8] [16:48:47]ProducePacketName [16:48:47]name=ofd_packets/00027161 [16:48:47]OFD Sender: To server: pG, [16:48:47]CommunicateWithHost lk.salyk.kg:30040 [16:48:47]ConnectInit lk.salyk.kg [16:48:47]written 0, free lines is 4095 [16:48:47]Connected sock=10 [16:48:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 B5 01 00 00 47 3B AD 01 D2 9C 5A 03 01 00 03 00 A1 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 37 36 06 04 36 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 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 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 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 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 40 00 00 00 F4 03 04 00 F4 C7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 19 6A 00 00 35 04 06 00 67 26 6B 0C 65 09 5D D4 7B 9C 8C E5 C3 6A [16:48:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 48 7D 47 00 F4 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 19 6A 00 00 F4 03 04 00 44 6E A7 66 B6 04 01 00 00 56 74 14 F9 D0 A6 37 EE [16:48:48]CommunicateWithHost err = 0 [16:48:48]CheckOFDResponse [16:48:48]1017 (14) - 77093643461234 [16:48:48]1041 (16) - 0000000000874937 [16:48:48]1040 (4) - 27161 [16:48:48]1012 (4) - 29.07.2024 10:26 [16:48:48]1206 (1) - 0 [16:48:48]OFD Sender: Remove packet 27161 [16:48:48]ProducePacketName [16:48:48]name=ofd_packets/00027161 [16:48:48]NVStorageDeleteData [16:48:48]Write to MH i2c: 01 00 00 89 1E A7 [16:48:48]Write i2c OK [16:48:48]MH_I2C_Read... [16:48:48]Read from MH i2c: 01 [16:48:48]MH_I2C_Read... [16:48:48]Read from MH i2c: 01 07 00 [16:48:48]MH_I2C_Read... [16:48:48]Read from MH i2c: 01 07 00 89 1E 00 00 00 00 00 83 0C 3D [16:48:48]RasterBufferAndPrint [16:48:48]line [16:48:48]line [16:48:48]line [16:48:48]line [16:48:48]line [16:48:48]written 0, free lines is 3212 [16:48:48]MH_Cut [16:48:48]Write to MH i2c: D1 01 00 90 1E 01 80 [16:48:48]Write i2c OK [16:48:48]MH_I2C_Read... [16:48:48]Read from MH i2c: D1 [16:48:48]MH_I2C_Read... [16:48:48]Read from MH i2c: D1 01 00 [16:48:48]MH_I2C_Read... [16:48:48]Read from MH i2c: D1 01 00 90 1E 00 7F [16:48:48]Write to MH i2c: 01 00 00 91 1E AF [16:48:48]Write i2c OK [16:48:48]MH_I2C_Read... [16:48:48]OFD Sender: No OFD packet to send [16:48:49]*** Cut start [16:48:49]*** Partial cut [16:48:49]*** CUTSNS_PIN = 1 [16:48:49]*** CUTSNS_PIN = 0 [16:48:49]*** Brake cut motor [16:48:49]Read from MH i2c: 01 [16:48:49]MH_I2C_Read... [16:48:49]*** Stop cut motor [16:48:49]*** Cut end [16:48:49]Read from MH i2c: 01 07 00 [16:48:49]MH_I2C_Read... [16:48:49]Read from MH i2c: 01 07 00 91 1E 00 00 00 00 00 FF 0F C4 [16:48:49]process_action close_receipt done [16:48:49]requested_data is exist [16:48:49]produce_requested_data [16:48:49]requested_item fm.sn is exist - process it [16:48:49]wFMCommunicate request_size=4 [16:48:49]MH_SAM_APDU [16:48:49]CAPDU: 80 11 00 00 [16:48:49]Write to MH i2c: E2 08 00 92 1E 80 11 00 00 00 00 00 00 2A [16:48:49]Write i2c OK [16:48:49]MH_I2C_Read... [16:48:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:49]Read from MH i2c: E2 [16:48:49]MH_I2C_Read... [16:48:49]Read from MH i2c: E2 17 00 [16:48:49]MH_I2C_Read... [16:48:49]Read from MH i2c: E2 17 00 92 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 83 [16:48:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [16:48:49]wFMCommunicate OK [16:48:49]requested_item fd.num is exist - process it [16:48:49]SAM_PROTO_GetFieldsCounters [16:48:49]wFMCommunicate request_size=4 [16:48:49]MH_SAM_APDU [16:48:49]CAPDU: 80 13 00 00 [16:48:49]Write to MH i2c: E2 08 00 93 1E 80 13 00 00 00 00 00 00 2D [16:48:49]Write i2c OK [16:48:49]MH_I2C_Read... [16:48:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:50]Read from MH i2c: E2 [16:48:50]MH_I2C_Read... [16:48:50]Read from MH i2c: E2 62 00 [16:48:50]MH_I2C_Read... [16:48:50]Read from MH i2c: E2 62 00 93 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 19 6A 00 00 0E 04 04 00 B2 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 4B [16:48: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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 19 6A 00 00 0E 04 04 00 B2 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 [16:48:50]wFMCommunicate OK [16:48:50]SAM_PROTO_GetFieldsCounters done [16:48:50]requested_item shift.num is exist - process it [16:48:50]requested_item shift.opened is exist - process it [16:48:50]req_shift_opened [16:48:50]FM_GetShiftState [16:48:50]SAM_PROTO_GetShiftState [16:48:50]wFMCommunicate request_size=4 [16:48:50]MH_SAM_APDU [16:48:50]CAPDU: 80 13 01 00 [16:48:50]Write to MH i2c: E2 08 00 94 1E 80 13 01 00 00 00 00 00 2F [16:48:50]Write i2c OK [16:48:50]MH_I2C_Read... [16:48:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:50]Read from MH i2c: E2 [16:48:50]MH_I2C_Read... [16:48:50]Read from MH i2c: E2 0E 00 [16:48:50]MH_I2C_Read... [16:48:50]Read from MH i2c: E2 0E 00 94 1E 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 B0 [16:48:50]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [16:48:50]wFMCommunicate OK [16:48:50]SAM_PROTO_GetShiftState done [16:48:50]FM_GetShiftState done [16:48:50]req_shift_opened done [16:48:50]requested_item shift.open_date is exist - process it [16:48:50]req_shift_open_date [16:48:50]req_shift_open_date done [16:48:50]produce_requested_data done [16:48:50]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27161,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [16:48:50]process_action_free close_receipt [16:48:50]json_value_free [16:48:50]json_value_free done [16:48:50]process_json_proto returns [16:48:50]Send response to host [16:48:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27161,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [16:48:50]free response buf [16:48:50]execute_script done [16:48:50]execute_script returns [16:48:50]free content buf [16:48:50]Sock 9.Close socket [16:48:50]Sock 9.Thread stoped [16:48:53]OFD Sender: No OFD packet to send [16:48:58]OFD Sender: No OFD packet to send [16:49:03]OFD Sender: No OFD packet to send [16:49:08]OFD Sender: No OFD packet to send [16:49:13]OFD Sender: No OFD packet to send [16:49:18]OFD Sender: No OFD packet to send [16:49:23]OFD Sender: No OFD packet to send [16:49:28]OFD Sender: No OFD packet to send [16:49:33]OFD Sender: No OFD packet to send [16:49:38]OFD Sender: No OFD packet to send [16:49:41]accept exits with 8 [16:49:41]New connection [16:49:41]New thread 3066928484 created [16:49:41]Thread 3066785124 joined [16:49:41]Waiting for new connection... [16:49:41] Sock 8.Parse request [16:49:41]Sock 8.Check first char [16:49:41]Sock 8.First char is OK [16:49:41]request: POST /json_proto HTTP/1.0 [16:49:41]Method: POST [16:49:41]URL: /json_proto [16:49:41]Method is POST - this is cgi request [16:49:41]url: /json_proto [16:49:41]query_string will be loaded in cgi processing [16:49:41]execute_cgi json_proto POST (null) [16:49:41]execute_cgi path=json_proto method=POST [16:49:41]POST find Content-Length [16:49:41]Host: 172.17.45.8:8080 [16:49:41]Content-Length: 916 [16:49:41]Content-Type: application/json [16:49:41] [16:49:41]POST finish read [16:49:41]Found Content-Length = 916 [16:49:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150560", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.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 }]} ], "payments": [ { "type": 0, "sum" : 157.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:41]execute_script... [16:49: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)150560", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.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 }]} ], "payments": [ { "type": 0, "sum" : 157.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:41]POST & json_proto [16:49:41]process_json_proto [16:49:41]json parsed OK: [16:49:41]protocol is kg_v1.0 [16:49:41]action value=close_receipt [16:49:41]process_action close_receipt [16:49:41]cmd_close_receipt [16:49:41]MH_GetDate [16:49:41]Write to MH i2c: F0 00 00 95 1E A2 [16:49:41]Write i2c OK [16:49:41]MH_I2C_Read... [16:49:41]Read from MH i2c: F0 [16:49:41]MH_I2C_Read... [16:49:41]Read from MH i2c: F0 09 00 [16:49:41]MH_I2C_Read... [16:49:41]Read from MH i2c: F0 09 00 95 1E 00 2C C8 A7 66 A6 1F 7F 64 54 [16:49:41]GetLastDocTimeStamp 1722271732 [16:49:41]current date 1722271788 [16:49:41]FM_GetShiftState [16:49:41]SAM_PROTO_GetShiftState [16:49:41]wFMCommunicate request_size=4 [16:49:41]MH_SAM_APDU [16:49:41]CAPDU: 80 13 01 00 [16:49:41]Write to MH i2c: E2 08 00 96 1E 80 13 01 00 00 00 00 00 31 [16:49:41]Write i2c OK [16:49:41]MH_I2C_Read... [16:49:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:41]Read from MH i2c: E2 [16:49:41]MH_I2C_Read... [16:49:41]Read from MH i2c: E2 0E 00 [16:49:41]MH_I2C_Read... [16:49:41]Read from MH i2c: E2 0E 00 96 1E 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 B2 [16:49:41]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [16:49:41]wFMCommunicate OK [16:49:41]SAM_PROTO_GetShiftState done [16:49:41]FM_GetShiftState done [16:49:41]opened in 1722213509 [16:49:41]opened+sec_in_day 1722299909 [16:49:41]quantity*price = 10700 [16:49:41]sum+1 = 10701 [16:49:41]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160181 Вода Байтик 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 157.00 НСП 1% : 1.39 НДС 12% : 16.67 Наличными: 157.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 65 29.07.2024 16:49 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27162 ФПД: 66646099489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T164948&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27162&fm=66646099489&tin=02508201610067®Number=0000000000092663&sum=15700 0 [16:49:42]StoreToDocumentArchive [16:49:42]shift 434 fd 27162 [16:49:42]save to /storage/0434/doc_00027162 [16:49:42]save last doc name /storage/0434/doc_00027162 to /storage/kkm_last_doc_name [16:49:42]save OK [16:49:42]Clear old archive folders... [16:49:42]ProcessDocumentItem done err = 0, tmpTLVsize=384 [16:49:42]tlvbuf is 00205060 [16:49:42]SAM_PROTO_ClearQueue [16:49:42]wFMCommunicate request_size=4 [16:49:42]MH_SAM_APDU [16:49:42]CAPDU: 80 09 00 00 [16:49:42]Write to MH i2c: E2 08 00 A3 1E 80 09 00 00 00 00 00 00 33 [16:49:42]Write i2c OK [16:49:42]MH_I2C_Read... [16:49:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:49:42]Read from MH i2c: E2 [16:49:42]MH_I2C_Read... [16:49:42]Read from MH i2c: E2 03 00 [16:49:42]MH_I2C_Read... [16:49:42]Read from MH i2c: E2 03 00 A3 1E 00 90 00 35 [16:49:42]RAPDU: 90 00 [16:49:42]wFMCommunicate OK [16:49:42]SAM_PROTO_ClearQueue done [16:49:42]KKMCreateOFDPacket [16:49:42]OFDProtocolAddRootSTLVToBuf [16:49:42]FM_MakeSignedData [16:49:42]FM_MakeSignedData [16:49:42]SAM_PROTO_SignData [16:49:42]wFMCommunicate request_size=4 [16:49:42]MH_SAM_APDU [16:49:42]CAPDU: 80 0D 01 02 [16:49:42]Write to MH i2c: E2 08 00 A4 1E 80 0D 01 02 00 00 00 00 3B [16:49:42]Write i2c OK [16:49:42]MH_I2C_Read... [16:49:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:49:42]Read from MH i2c: E2 [16:49:42]MH_I2C_Read... [16:49:42]Read from MH i2c: E2 03 00 [16:49:42]MH_I2C_Read... [16:49:42]Read from MH i2c: E2 03 00 A4 1E 00 90 00 36 [16:49:42]RAPDU: 90 00 [16:49:42]wFMCommunicate OK [16:49:42]wFMCommunicate request_size=255 [16:49:42]MH_SAM_APDU [16:49:42]CAPDU: 80 0D 02 02 FA 03 00 80 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 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 FC 03 06 00 54 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 [16:49:43]Write to MH i2c: E2 02 01 A5 1E 80 0D 02 02 FA 00 03 00 80 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 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 FC 03 06 00 54 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 56 [16:49:43]Write i2c OK [16:49:43]MH_I2C_Read... [16:49:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:43]Read from MH i2c: E2 [16:49:43]MH_I2C_Read... [16:49:43]Read from MH i2c: E2 03 00 [16:49:43]MH_I2C_Read... [16:49:43]Read from MH i2c: E2 03 00 A5 1E 00 90 00 37 [16:49:43]RAPDU: 90 00 [16:49:43]wFMCommunicate OK [16:49:43]wFMCommunicate request_size=143 [16:49:43]MH_SAM_APDU [16:49:43]CAPDU: 80 0D 02 02 8A 8B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 06 00 00 00 00 07 04 06 00 54 3D 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 2C C8 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 1A 6A 00 00 35 04 06 00 00 0F 84 6A C6 21 [16:49:43]Write to MH i2c: E2 92 00 A6 1E 80 0D 02 02 8A 00 8B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 06 00 00 00 00 07 04 06 00 54 3D 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 2C C8 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 1A 6A 00 00 35 04 06 00 00 0F 84 6A C6 21 00 00 88 [16:49:43]Write i2c OK [16:49:43]MH_I2C_Read... [16:49:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:43]Read from MH i2c: E2 [16:49:43]MH_I2C_Read... [16:49:43]Read from MH i2c: E2 03 00 [16:49:43]MH_I2C_Read... [16:49:43]Read from MH i2c: E2 03 00 A6 1E 00 90 00 38 [16:49:43]RAPDU: 90 00 [16:49:43]wFMCommunicate OK [16:49:43]wFMCommunicate request_size=4 [16:49:43]MH_SAM_APDU [16:49:43]CAPDU: 80 0D 03 02 [16:49:43]Write to MH i2c: E2 08 00 A7 1E 80 0D 03 02 00 00 00 00 40 [16:49:43]Write i2c OK [16:49:43]MH_I2C_Read... [16:49:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:43]Read from MH i2c: E2 [16:49:43]MH_I2C_Read... [16:49:43]Read from MH i2c: E2 0B 00 [16:49:43]MH_I2C_Read... [16:49:43]Read from MH i2c: E2 0B 00 A7 1E 00 C0 F1 57 2B 1F E9 13 53 90 00 E2 [16:49:43]RAPDU: C0 F1 57 2B 1F E9 13 53 90 00 [16:49:43]wFMCommunicate OK [16:49:43]SAM_PROTO_SignData done [16:49:43]FM_MakeSignedData done [16:49:43]CreateOFDProtocolMessage [16:49:43]wFMCommunicate request_size=4 [16:49:43]MH_SAM_APDU [16:49:43]CAPDU: 80 11 00 00 [16:49:43]Write to MH i2c: E2 08 00 A8 1E 80 11 00 00 00 00 00 00 40 [16:49:43]Write i2c OK [16:49:43]MH_I2C_Read... [16:49:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:43]Read from MH i2c: E2 [16:49:43]MH_I2C_Read... [16:49:43]Read from MH i2c: E2 17 00 [16:49:43]MH_I2C_Read... [16:49:43]Read from MH i2c: E2 17 00 A8 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 99 [16:49:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [16:49:43]wFMCommunicate OK [16:49:43]CreateOFDProtocolMessage done [16:49:43]OFDSenderStorePacket 27162 [16:49:43]StoreOFDPacket docnum=27162 [16:49:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 94 01 00 00 D2 25 8C 01 36 BB 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 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 FC 03 06 00 54 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 06 00 00 00 00 07 04 06 00 54 3D 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 2C C8 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 1A 6A 00 00 35 04 06 00 00 0F 84 6A C6 21 C0 F1 57 2B 1F E9 13 53 [16:49:43]CheckFolder [16:49:43]dirname=/storage/ofd_packets [16:49:43]CheckFolder done [16:49:43]ProducePacketName [16:49:43]name=ofd_packets/00027162 [16:49:43]NVStorageSaveData ofd_packets/00027162 [16:49:43]File name is /storage/ofd_packets/00027162 [16:49:43]Write 434 bytes [16:49:43]NVStorageSaveData done [16:49:43]OFDSenderStorePacket done [16:49:43]KKMCreateOFDPacket done [16:49:43]NVStorageSaveData kkm_last_timestamp [16:49:43]File name is /storage/kkm_last_timestamp [16:49:43]Write 4 bytes [16:49:43]NVStorageSaveData done [16:49:43]OFD Sender: Processing packet 27162 [packets to send 9, broken 8] [16:49:43]ProducePacketName [16:49:43]name=ofd_packets/00027162 [16:49:43]OFD Sender: To server: pG, [16:49:43]CommunicateWithHost lk.salyk.kg:30040 [16:49:43]ConnectInit lk.salyk.kg [16:49:43]ExternCall_PrintAddStr [16:49:43]wPrintStart [16:49:43]Write to MH i2c: 01 00 00 A9 1E C7 [16:49:43]Write i2c OK [16:49:43]MH_I2C_Read... [16:49:43]Read from MH i2c: 01 [16:49:43]MH_I2C_Read... [16:49:43]Read from MH i2c: 01 07 00 [16:49:43]MH_I2C_Read... [16:49:43]Read from MH i2c: 01 07 00 A9 1E 00 00 00 00 00 FF 0F DC [16:49:43]RasterBufferAndPrint [16:49:43]line Счет N : (3)150560 [16:49:43]line ИНН: 02508201610067 [16:49:43]line Контрольно-Кассовый Чек [16:49:43]line ПРОДАЖА [16:49:43]line Товар: 5449000189332 [16:49:43]line Холодный чай Fuse персик 1л [16:49:43]line 1.000 * 107.00 [16:49:43]line = 107.00 [16:49:43]line НДС 12% НСП 1% [16:49:43]line > о реализуемом товаре [16:49:43]line Товар: 4700000160181 [16:49:43]line Вода Байтик 1л [16:49:43]line 1.000 * 50.00 [16:49:43]line = 50.00 [16:49:43]line НДС 12% НСП 1% [16:49:43]line > о реализуемом товаре [16:49:43]line ИТОГО: 157.00 [16:49:43]line НСП 1% : 1.39 [16:49:43]line НДС 12% : 16.67 [16:49:43]line Наличными: 157.00 [16:49:43]line Безнал.: 0.00 [16:49:43]line Место: АЗС № 134 "Партнер Нефть" [16:49:43]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:49:43]line СНО: Общий режим [16:49:43]line Чек 65 29.07.2024 16:49 [16:49:43]line Смена: 434 ФФД: 1.0 [16:49:43]line ЗНМ: 0300000043 [16:49:43]line РНМ: 0000000000092663 [16:49:43]line Версия ККМ: 001 [16:49:43]line ФМ: 0000000000874937 [16:49:43]line ФД: 27162 [16:49:43]line ФПД: 66646099489 [16:49:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T164948&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27162&fm=66646099489&tin=02508201610067®Number=0000000000092663&sum=15700 [16:49:43]line 0 [16:49:43]written 0, free lines is 4095 [16:49:43]Connected sock=11 [16:49:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 94 01 00 00 D2 25 8C 01 36 BB 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 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 FC 03 06 00 54 3D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 06 00 00 00 00 07 04 06 00 54 3D 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 2C C8 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 1A 6A 00 00 35 04 06 00 00 0F 84 6A C6 21 C0 F1 57 2B 1F E9 13 53 [16:49:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 EB F9 47 00 9C 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 1A 6A 00 00 F4 03 04 00 7C 6E A7 66 B6 04 01 00 00 E6 5D 03 71 BE BF 69 9B [16:49:43]CommunicateWithHost err = 0 [16:49:43]CheckOFDResponse [16:49:43]1017 (14) - 77093643461234 [16:49:43]1041 (16) - 0000000000874937 [16:49:43]1040 (4) - 27162 [16:49:43]1012 (4) - 29.07.2024 10:27 [16:49:43]1206 (1) - 0 [16:49:43]OFD Sender: Remove packet 27162 [16:49:43]ProducePacketName [16:49:43]name=ofd_packets/00027162 [16:49:43]NVStorageDeleteData [16:49:44]Write to MH i2c: 01 00 00 D6 1E F4 [16:49:44]Write i2c OK [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: 01 [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: 01 07 00 [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: 01 07 00 D6 1E 00 00 00 00 00 B2 0C B9 [16:49:44]RasterBufferAndPrint [16:49:44]line [16:49:44]line [16:49:44]line [16:49:44]line [16:49:44]line [16:49:44]written 0, free lines is 3257 [16:49:44]MH_Cut [16:49:44]Write to MH i2c: D1 01 00 DD 1E 01 CD [16:49:44]Write i2c OK [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: D1 [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: D1 01 00 [16:49:44]MH_I2C_Read... [16:49:44]Read from MH i2c: D1 01 00 DD 1E 00 CC [16:49:44]Write to MH i2c: 01 00 00 DE 1E FC [16:49:44]Write i2c OK [16:49:44]MH_I2C_Read... [16:49:44]OFD Sender: No OFD packet to send [16:49:44]*** Cut start [16:49:44]*** Partial cut [16:49:44]*** CUTSNS_PIN = 1 [16:49:44]*** CUTSNS_PIN = 0 [16:49:45]*** Brake cut motor [16:49:45]Read from MH i2c: 01 [16:49:45]MH_I2C_Read... [16:49:45]*** Stop cut motor [16:49:45]*** Cut end [16:49:45]Read from MH i2c: 01 07 00 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: 01 07 00 DE 1E 00 00 00 00 00 FF 0F 11 [16:49:45]process_action close_receipt done [16:49:45]requested_data is exist [16:49:45]produce_requested_data [16:49:45]requested_item fm.sn is exist - process it [16:49:45]wFMCommunicate request_size=4 [16:49:45]MH_SAM_APDU [16:49:45]CAPDU: 80 11 00 00 [16:49:45]Write to MH i2c: E2 08 00 DF 1E 80 11 00 00 00 00 00 00 77 [16:49:45]Write i2c OK [16:49:45]MH_I2C_Read... [16:49:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:45]Read from MH i2c: E2 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: E2 17 00 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: E2 17 00 DF 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 D0 [16:49:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [16:49:45]wFMCommunicate OK [16:49:45]requested_item fd.num is exist - process it [16:49:45]SAM_PROTO_GetFieldsCounters [16:49:45]wFMCommunicate request_size=4 [16:49:45]MH_SAM_APDU [16:49:45]CAPDU: 80 13 00 00 [16:49:45]Write to MH i2c: E2 08 00 E0 1E 80 13 00 00 00 00 00 00 7A [16:49:45]Write i2c OK [16:49:45]MH_I2C_Read... [16:49:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:45]Read from MH i2c: E2 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: E2 62 00 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: E2 62 00 E0 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 1A 6A 00 00 0E 04 04 00 B2 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 9C [16:49:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 1A 6A 00 00 0E 04 04 00 B2 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 [16:49:45]wFMCommunicate OK [16:49:45]SAM_PROTO_GetFieldsCounters done [16:49:45]requested_item shift.num is exist - process it [16:49:45]requested_item shift.opened is exist - process it [16:49:45]req_shift_opened [16:49:45]FM_GetShiftState [16:49:45]SAM_PROTO_GetShiftState [16:49:45]wFMCommunicate request_size=4 [16:49:45]MH_SAM_APDU [16:49:45]CAPDU: 80 13 01 00 [16:49:45]Write to MH i2c: E2 08 00 E1 1E 80 13 01 00 00 00 00 00 7C [16:49:45]Write i2c OK [16:49:45]MH_I2C_Read... [16:49:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:45]Read from MH i2c: E2 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: E2 0E 00 [16:49:45]MH_I2C_Read... [16:49:45]Read from MH i2c: E2 0E 00 E1 1E 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 FD [16:49:45]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [16:49:45]wFMCommunicate OK [16:49:45]SAM_PROTO_GetShiftState done [16:49:45]FM_GetShiftState done [16:49:45]req_shift_opened done [16:49:45]requested_item shift.open_date is exist - process it [16:49:45]req_shift_open_date [16:49:45]req_shift_open_date done [16:49:45]produce_requested_data done [16:49:45]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27162,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [16:49:45]process_action_free close_receipt [16:49:45]json_value_free [16:49:45]json_value_free done [16:49:45]process_json_proto returns [16:49:45]Send response to host [16:49:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27162,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [16:49:45]free response buf [16:49:45]execute_script done [16:49:45]execute_script returns [16:49:45]free content buf [16:49:45]Sock 8.Close socket [16:49:45]Sock 8.Thread stoped [16:49:49]OFD Sender: No OFD packet to send [16:49:54]OFD Sender: No OFD packet to send [16:49:59]OFD Sender: No OFD packet to send [16:50:04]OFD Sender: No OFD packet to send [16:50:09]OFD Sender: No OFD packet to send [16:50:14]OFD Sender: No OFD packet to send [16:50:19]OFD Sender: No OFD packet to send [16:50:24]OFD Sender: No OFD packet to send [16:50:29]OFD Sender: No OFD packet to send [16:50:34]OFD Sender: No OFD packet to send [16:50:39]OFD Sender: No OFD packet to send [16:50:44]OFD Sender: No OFD packet to send [16:50:49]OFD Sender: No OFD packet to send [16:50:54]OFD Sender: No OFD packet to send [16:50:59]OFD Sender: No OFD packet to send [16:51:04]OFD Sender: No OFD packet to send [16:51:09]OFD Sender: No OFD packet to send [16:51:14]OFD Sender: No OFD packet to send [16:51:19]OFD Sender: No OFD packet to send [16:51:24]OFD Sender: No OFD packet to send [16:51:29]OFD Sender: No OFD packet to send [16:51:34]OFD Sender: No OFD packet to send [16:51:39]OFD Sender: No OFD packet to send [16:51:44]OFD Sender: No OFD packet to send [16:51:49]OFD Sender: No OFD packet to send [16:51:54]OFD Sender: No OFD packet to send [16:51:59]OFD Sender: No OFD packet to send [16:52:04]OFD Sender: No OFD packet to send [16:52:09]OFD Sender: No OFD packet to send [16:52:14]OFD Sender: No OFD packet to send [16:52:19]OFD Sender: No OFD packet to send [16:52:24]OFD Sender: No OFD packet to send [16:52:29]OFD Sender: No OFD packet to send [16:52:34]OFD Sender: No OFD packet to send [16:52:39]OFD Sender: No OFD packet to send [16:52:44]OFD Sender: No OFD packet to send [16:52:49]OFD Sender: No OFD packet to send [16:52:54]OFD Sender: No OFD packet to send [16:52:59]OFD Sender: No OFD packet to send [16:53:04]OFD Sender: No OFD packet to send [16:53:09]OFD Sender: No OFD packet to send [16:53:14]OFD Sender: No OFD packet to send [16:53:19]OFD Sender: No OFD packet to send [16:53:24]OFD Sender: No OFD packet to send [16:53:29]OFD Sender: No OFD packet to send [16:53:34]OFD Sender: No OFD packet to send [16:53:39]OFD Sender: No OFD packet to send [16:53:44]OFD Sender: No OFD packet to send [16:53:49]OFD Sender: No OFD packet to send [16:53:54]OFD Sender: No OFD packet to send [16:53:59]OFD Sender: No OFD packet to send [16:54:04]OFD Sender: No OFD packet to send [16:54:09]OFD Sender: No OFD packet to send [16:54:14]OFD Sender: No OFD packet to send [16:54:19]OFD Sender: No OFD packet to send [16:54:24]OFD Sender: No OFD packet to send [16:54:29]OFD Sender: No OFD packet to send [16:54:34]OFD Sender: No OFD packet to send [16:54:39]OFD Sender: No OFD packet to send [16:54:44]OFD Sender: No OFD packet to send [16:54:49]OFD Sender: No OFD packet to send [16:54:54]OFD Sender: No OFD packet to send [16:54:59]OFD Sender: No OFD packet to send [16:55:04]OFD Sender: No OFD packet to send [16:55:09]OFD Sender: No OFD packet to send [16:55:11]accept exits with 9 [16:55:11]New connection [16:55:11]New thread 3066785124 created [16:55:11]Thread 3066928484 joined [16:55:11]Waiting for new connection... [16:55:11] Sock 9.Parse request [16:55:11]Sock 9.Check first char [16:55:11]Sock 9.First char is OK [16:55:11]request: POST /json_proto HTTP/1.0 [16:55:11]Method: POST [16:55:11]URL: /json_proto [16:55:11]Method is POST - this is cgi request [16:55:11]url: /json_proto [16:55:11]query_string will be loaded in cgi processing [16:55:11]execute_cgi json_proto POST (null) [16:55:11]execute_cgi path=json_proto method=POST [16:55:11]POST find Content-Length [16:55:11]Host: 172.17.45.8:8080 [16:55:11]Content-Length: 669 [16:55:11]Content-Type: application/json [16:55:11] [16:55:11]POST finish read [16:55:11]Found Content-Length = 669 [16:55:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150561", "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" ] } } [16:55:11]execute_script... [16:55: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)150561", "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" ] } } [16:55:11]POST & json_proto [16:55:11]process_json_proto [16:55:11]json parsed OK: [16:55:11]protocol is kg_v1.0 [16:55:11]action value=close_receipt [16:55:11]process_action close_receipt [16:55:11]cmd_close_receipt [16:55:11]MH_GetDate [16:55:11]Write to MH i2c: F0 00 00 E2 1E EF [16:55:11]Write i2c OK [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: F0 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: F0 09 00 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: F0 09 00 E2 1E 00 76 C9 A7 66 A6 1F 7F 64 EC [16:55:11]GetLastDocTimeStamp 1722271788 [16:55:11]current date 1722272118 [16:55:11]FM_GetShiftState [16:55:11]SAM_PROTO_GetShiftState [16:55:11]wFMCommunicate request_size=4 [16:55:11]MH_SAM_APDU [16:55:11]CAPDU: 80 13 01 00 [16:55:11]Write to MH i2c: E2 08 00 E3 1E 80 13 01 00 00 00 00 00 7E [16:55:11]Write i2c OK [16:55:11]MH_I2C_Read... [16:55:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:11]Read from MH i2c: E2 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: E2 0E 00 [16:55:11]MH_I2C_Read... [16:55:11]Read from MH i2c: E2 0E 00 E3 1E 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 FF [16:55:11]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [16:55:11]wFMCommunicate OK [16:55:11]SAM_PROTO_GetShiftState done [16:55:11]FM_GetShiftState done [16:55:11]opened in 1722213509 [16:55:11]opened+sec_in_day 1722299909 [16:55:11]quantity*price = 6500 [16:55:11]sum+1 = 6501 [16:55:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 66 29.07.2024 16:55 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27163 ФПД: 174593632072020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165518&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27163&fm=174593632072020&tin=02508201610067®Number=0000000000092663&sum=6500 0 [16:55:12]StoreToDocumentArchive [16:55:12]shift 434 fd 27163 [16:55:12]save to /storage/0434/doc_00027163 [16:55:12]save last doc name /storage/0434/doc_00027163 to /storage/kkm_last_doc_name [16:55:12]save OK [16:55:12]Clear old archive folders... [16:55:12]ProcessDocumentItem done err = 0, tmpTLVsize=284 [16:55:12]tlvbuf is 001A3E50 [16:55:12]SAM_PROTO_ClearQueue [16:55:12]wFMCommunicate request_size=4 [16:55:12]MH_SAM_APDU [16:55:12]CAPDU: 80 09 00 00 [16:55:12]Write to MH i2c: E2 08 00 F0 1E 80 09 00 00 00 00 00 00 80 [16:55:12]Write i2c OK [16:55:12]MH_I2C_Read... [16:55:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:12]Read from MH i2c: E2 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 03 00 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 03 00 F0 1E 00 90 00 82 [16:55:12]RAPDU: 90 00 [16:55:12]wFMCommunicate OK [16:55:12]SAM_PROTO_ClearQueue done [16:55:12]KKMCreateOFDPacket [16:55:12]OFDProtocolAddRootSTLVToBuf [16:55:12]FM_MakeSignedData [16:55:12]FM_MakeSignedData [16:55:12]SAM_PROTO_SignData [16:55:12]wFMCommunicate request_size=4 [16:55:12]MH_SAM_APDU [16:55:12]CAPDU: 80 0D 01 02 [16:55:12]Write to MH i2c: E2 08 00 F1 1E 80 0D 01 02 00 00 00 00 88 [16:55:12]Write i2c OK [16:55:12]MH_I2C_Read... [16:55:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:12]Read from MH i2c: E2 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 03 00 [16:55:12]MH_I2C_Read... [16:55:12]Read from MH i2c: E2 03 00 F1 1E 00 90 00 83 [16:55:12]RAPDU: 90 00 [16:55:12]wFMCommunicate OK [16:55:12]wFMCommunicate request_size=255 [16:55:12]MH_SAM_APDU [16:55: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 42 00 00 00 F4 03 04 00 76 C9 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 [16:55:12]Write to MH i2c: E2 02 01 F2 1E 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 42 00 00 00 F4 03 04 00 76 C9 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 00 00 56 [16:55:12]Write i2c OK [16:55:12]MH_I2C_Read... [16:55:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:13]Read from MH i2c: E2 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 03 00 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 03 00 F2 1E 00 90 00 84 [16:55:13]RAPDU: 90 00 [16:55:13]wFMCommunicate OK [16:55:13]wFMCommunicate request_size=43 [16:55:13]MH_SAM_APDU [16:55:13]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 1B 6A 00 00 35 04 06 00 9E CA BF 6B 71 54 [16:55:13]Write to MH i2c: E2 2E 00 F3 1E 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 1B 6A 00 00 35 04 06 00 9E CA BF 6B 71 54 00 00 55 [16:55:13]Write i2c OK [16:55:13]MH_I2C_Read... [16:55:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:13]Read from MH i2c: E2 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 03 00 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 03 00 F3 1E 00 90 00 85 [16:55:13]RAPDU: 90 00 [16:55:13]wFMCommunicate OK [16:55:13]wFMCommunicate request_size=4 [16:55:13]MH_SAM_APDU [16:55:13]CAPDU: 80 0D 03 02 [16:55:13]Write to MH i2c: E2 08 00 F4 1E 80 0D 03 02 00 00 00 00 8D [16:55:13]Write i2c OK [16:55:13]MH_I2C_Read... [16:55:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:13]Read from MH i2c: E2 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 0B 00 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 0B 00 F4 1E 00 BD 42 4B F6 2D C3 ED 31 90 00 DC [16:55:13]RAPDU: BD 42 4B F6 2D C3 ED 31 90 00 [16:55:13]wFMCommunicate OK [16:55:13]SAM_PROTO_SignData done [16:55:13]FM_MakeSignedData done [16:55:13]CreateOFDProtocolMessage [16:55:13]wFMCommunicate request_size=4 [16:55:13]MH_SAM_APDU [16:55:13]CAPDU: 80 11 00 00 [16:55:13]Write to MH i2c: E2 08 00 F5 1E 80 11 00 00 00 00 00 00 8D [16:55:13]Write i2c OK [16:55:13]MH_I2C_Read... [16:55:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:13]Read from MH i2c: E2 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 17 00 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: E2 17 00 F5 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 E6 [16:55:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [16:55:13]wFMCommunicate OK [16:55:13]CreateOFDProtocolMessage done [16:55:13]OFDSenderStorePacket 27163 [16:55:13]StoreOFDPacket docnum=27163 [16:55:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 30 01 00 00 85 F7 28 01 0C 6E 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 42 00 00 00 F4 03 04 00 76 C9 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 1B 6A 00 00 35 04 06 00 9E CA BF 6B 71 54 BD 42 4B F6 2D C3 ED 31 [16:55:13]CheckFolder [16:55:13]dirname=/storage/ofd_packets [16:55:13]CheckFolder done [16:55:13]ProducePacketName [16:55:13]name=ofd_packets/00027163 [16:55:13]NVStorageSaveData ofd_packets/00027163 [16:55:13]File name is /storage/ofd_packets/00027163 [16:55:13]Write 334 bytes [16:55:13]NVStorageSaveData done [16:55:13]OFDSenderStorePacket done [16:55:13]KKMCreateOFDPacket done [16:55:13]NVStorageSaveData kkm_last_timestamp [16:55:13]File name is /storage/kkm_last_timestamp [16:55:13]Write 4 bytes [16:55:13]NVStorageSaveData done [16:55:13]ExternCall_PrintAddStr [16:55:13]wPrintStart [16:55:13]Write to MH i2c: 01 00 00 F6 1E 14 [16:55:13]Write i2c OK [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: 01 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: 01 07 00 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: 01 07 00 F6 1E 00 00 00 00 00 FF 0F 29 [16:55:13]RasterBufferAndPrint [16:55:13]line Счет N : (3)150561 [16:55:13]line ИНН: 02508201610067 [16:55:13]line Контрольно-Кассовый Чек [16:55:13]line ПРОДАЖА [16:55:13]line Товар: 4700040114137 [16:55:13]line Султан чай 1л. зел лимон [16:55:13]line 1.000 * 65.00 [16:55:13]line = 65.00 [16:55:13]line НДС 12% НСП 1% [16:55:13]line > о реализуемом товаре [16:55:13]line ИТОГО: 65.00 [16:55:13]line НСП 1% : 0.57 [16:55:13]line НДС 12% : 6.90 [16:55:13]line Наличными: 65.00 [16:55:13]line Безнал.: 0.00 [16:55:13]line Место: АЗС № 134 "Партнер Нефть" [16:55:13]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:55:13]line СНО: Общий режим [16:55:13]line Чек 66 29.07.2024 16:55 [16:55:13]line Смена: 434 ФФД: 1.0 [16:55:13]line ЗНМ: 0300000043 [16:55:13]line РНМ: 0000000000092663 [16:55:13]line Версия ККМ: 001 [16:55:13]line ФМ: 0000000000874937 [16:55:13]line ФД: 27163 [16:55:13]line ФПД: 174593632072020 [16:55:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165518&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27163&fm=174593632072020&tin=02508201610067®Number=0000000000092663&sum=6500 [16:55:13]line 0 [16:55:13]OFD Sender: Processing packet 27163 [packets to send 9, broken 8] [16:55:13]ProducePacketName [16:55:13]name=ofd_packets/00027163 [16:55:13]OFD Sender: To server: pG, [16:55:13]CommunicateWithHost lk.salyk.kg:30040 [16:55:13]ConnectInit lk.salyk.kg [16:55:13]written 0, free lines is 4095 [16:55:13]Connected sock=10 [16:55:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 30 01 00 00 85 F7 28 01 0C 6E 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 42 00 00 00 F4 03 04 00 76 C9 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 1B 6A 00 00 35 04 06 00 9E CA BF 6B 71 54 BD 42 4B F6 2D C3 ED 31 [16:55:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 A1 32 47 00 07 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 1B 6A 00 00 F4 03 04 00 C6 6F A7 66 B6 04 01 00 00 FF 0F 01 89 80 05 42 C9 [16:55:13]CommunicateWithHost err = 0 [16:55:13]CheckOFDResponse [16:55:13]1017 (14) - 77093643461234 [16:55:13]1041 (16) - 0000000000874937 [16:55:13]1040 (4) - 27163 [16:55:13]1012 (4) - 29.07.2024 10:32 [16:55:13]1206 (1) - 0 [16:55:13]OFD Sender: Remove packet 27163 [16:55:13]ProducePacketName [16:55:13]name=ofd_packets/00027163 [16:55:13]NVStorageDeleteData [16:55:13]Write to MH i2c: 01 00 00 1D 1F 3C [16:55:13]Write i2c OK [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: 01 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: 01 07 00 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: 01 07 00 1D 1F 00 00 00 00 00 01 0D 51 [16:55:13]RasterBufferAndPrint [16:55:13]line [16:55:13]line [16:55:13]line [16:55:13]line [16:55:13]line [16:55:13]written 0, free lines is 3336 [16:55:13]MH_Cut [16:55:13]Write to MH i2c: D1 01 00 24 1F 01 15 [16:55:13]Write i2c OK [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: D1 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: D1 01 00 [16:55:13]MH_I2C_Read... [16:55:13]Read from MH i2c: D1 01 00 24 1F 00 14 [16:55:13]Write to MH i2c: 01 00 00 25 1F 44 [16:55:13]Write i2c OK [16:55:13]MH_I2C_Read... [16:55:14]OFD Sender: No OFD packet to send [16:55:14]*** Cut start [16:55:14]*** Partial cut [16:55:14]*** CUTSNS_PIN = 1 [16:55:14]*** CUTSNS_PIN = 0 [16:55:14]*** Brake cut motor [16:55:15]Read from MH i2c: 01 [16:55:15]MH_I2C_Read... [16:55:15]*** Stop cut motor [16:55:15]*** Cut end [16:55:15]Read from MH i2c: 01 07 00 [16:55:15]MH_I2C_Read... [16:55:15]Read from MH i2c: 01 07 00 25 1F 00 00 00 00 00 FF 0F 59 [16:55:15]process_action close_receipt done [16:55:15]requested_data is exist [16:55:15]produce_requested_data [16:55:15]requested_item fm.sn is exist - process it [16:55:15]wFMCommunicate request_size=4 [16:55:15]MH_SAM_APDU [16:55:15]CAPDU: 80 11 00 00 [16:55:15]Write to MH i2c: E2 08 00 26 1F 80 11 00 00 00 00 00 00 BF [16:55:15]Write i2c OK [16:55:15]MH_I2C_Read... [16:55:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:15]Read from MH i2c: E2 [16:55:15]MH_I2C_Read... [16:55:15]Read from MH i2c: E2 17 00 [16:55:15]MH_I2C_Read... [16:55:15]Read from MH i2c: E2 17 00 26 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 18 [16:55:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [16:55:15]wFMCommunicate OK [16:55:15]requested_item fd.num is exist - process it [16:55:15]SAM_PROTO_GetFieldsCounters [16:55:15]wFMCommunicate request_size=4 [16:55:15]MH_SAM_APDU [16:55:15]CAPDU: 80 13 00 00 [16:55:15]Write to MH i2c: E2 08 00 27 1F 80 13 00 00 00 00 00 00 C2 [16:55:15]Write i2c OK [16:55:15]MH_I2C_Read... [16:55:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:15]Read from MH i2c: E2 [16:55:15]MH_I2C_Read... [16:55:15]Read from MH i2c: E2 62 00 [16:55:15]MH_I2C_Read... [16:55:15]Read from MH i2c: E2 62 00 27 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 1B 6A 00 00 0E 04 04 00 B2 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 E8 [16:55:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 1B 6A 00 00 0E 04 04 00 B2 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 [16:55:15]wFMCommunicate OK [16:55:15]SAM_PROTO_GetFieldsCounters done [16:55:15]requested_item shift.num is exist - process it [16:55:15]requested_item shift.opened is exist - process it [16:55:15]req_shift_opened [16:55:15]FM_GetShiftState [16:55:15]SAM_PROTO_GetShiftState [16:55:15]wFMCommunicate request_size=4 [16:55:15]MH_SAM_APDU [16:55:15]CAPDU: 80 13 01 00 [16:55:15]Write to MH i2c: E2 08 00 28 1F 80 13 01 00 00 00 00 00 C4 [16:55:15]Write i2c OK [16:55:15]MH_I2C_Read... [16:55:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:15]Read from MH i2c: E2 [16:55:15]MH_I2C_Read... [16:55:15]Read from MH i2c: E2 0E 00 [16:55:15]MH_I2C_Read... [16:55:15]Read from MH i2c: E2 0E 00 28 1F 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 45 [16:55:15]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [16:55:15]wFMCommunicate OK [16:55:15]SAM_PROTO_GetShiftState done [16:55:15]FM_GetShiftState done [16:55:15]req_shift_opened done [16:55:15]requested_item shift.open_date is exist - process it [16:55:15]req_shift_open_date [16:55:15]req_shift_open_date done [16:55:15]produce_requested_data done [16:55:15]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27163,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [16:55:15]process_action_free close_receipt [16:55:15]json_value_free [16:55:15]json_value_free done [16:55:15]process_json_proto returns [16:55:15]Send response to host [16:55:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27163,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [16:55:15]free response buf [16:55:15]execute_script done [16:55:15]execute_script returns [16:55:15]free content buf [16:55:15]Sock 9.Close socket [16:55:15]Sock 9.Thread stoped [16:55:19]OFD Sender: No OFD packet to send [16:55:24]OFD Sender: No OFD packet to send [16:55:29]OFD Sender: No OFD packet to send [16:55:34]OFD Sender: No OFD packet to send [16:55:39]OFD Sender: No OFD packet to send [16:55:44]OFD Sender: No OFD packet to send [16:55:49]OFD Sender: No OFD packet to send [16:55:54]OFD Sender: No OFD packet to send [16:55:59]OFD Sender: No OFD packet to send [16:56:04]OFD Sender: No OFD packet to send [16:56:09]OFD Sender: No OFD packet to send [16:56:14]OFD Sender: No OFD packet to send [16:56:18]accept exits with 8 [16:56:18]New connection [16:56:18]New thread 3066928484 created [16:56:18]Thread 3066785124 joined [16:56:18]Waiting for new connection... [16:56:18] Sock 8.Parse request [16:56:18]Sock 8.Check first char [16:56:18]Sock 8.First char is OK [16:56:18]request: POST /json_proto HTTP/1.0 [16:56:18]Method: POST [16:56:18]URL: /json_proto [16:56:18]Method is POST - this is cgi request [16:56:18]url: /json_proto [16:56:18]query_string will be loaded in cgi processing [16:56:18]execute_cgi json_proto POST (null) [16:56:18]execute_cgi path=json_proto method=POST [16:56:18]POST find Content-Length [16:56:18]Host: 172.17.45.8:8080 [16:56:18]Content-Length: 619 [16:56:18]Content-Type: application/json [16:56:18] [16:56:18]POST finish read [16:56:18]Found Content-Length = 619 [16:56:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150562", "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" ] } } [16:56:18]execute_script... [16:56: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)150562", "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" ] } } [16:56:18]POST & json_proto [16:56:18]process_json_proto [16:56:18]json parsed OK: [16:56:18]protocol is kg_v1.0 [16:56:18]action value=close_receipt [16:56:18]process_action close_receipt [16:56:18]cmd_close_receipt [16:56:18]MH_GetDate [16:56:18]Write to MH i2c: F0 00 00 29 1F 37 [16:56:18]Write i2c OK [16:56:18]MH_I2C_Read... [16:56:18]Read from MH i2c: F0 [16:56:18]MH_I2C_Read... [16:56:18]Read from MH i2c: F0 09 00 [16:56:18]MH_I2C_Read... [16:56:18]Read from MH i2c: F0 09 00 29 1F 00 B9 C9 A7 66 A6 1F 7F 64 77 [16:56:18]GetLastDocTimeStamp 1722272118 [16:56:18]current date 1722272185 [16:56:18]FM_GetShiftState [16:56:18]SAM_PROTO_GetShiftState [16:56:18]wFMCommunicate request_size=4 [16:56:18]MH_SAM_APDU [16:56:18]CAPDU: 80 13 01 00 [16:56:18]Write to MH i2c: E2 08 00 2A 1F 80 13 01 00 00 00 00 00 C6 [16:56:18]Write i2c OK [16:56:18]MH_I2C_Read... [16:56:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:18]Read from MH i2c: E2 [16:56:18]MH_I2C_Read... [16:56:18]Read from MH i2c: E2 0E 00 [16:56:18]MH_I2C_Read... [16:56:18]Read from MH i2c: E2 0E 00 2A 1F 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 47 [16:56:18]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [16:56:18]wFMCommunicate OK [16:56:18]SAM_PROTO_GetShiftState done [16:56:18]FM_GetShiftState done [16:56:18]opened in 1722213509 [16:56:18]opened+sec_in_day 1722299909 [16:56:18]quantity*price = 14000 [16:56:18]sum+1 = 14001 [16:56:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 67 29.07.2024 16:56 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27164 ФПД: 520455912276 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165625&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27164&fm=520455912276&tin=02508201610067®Number=0000000000092663&sum=14000 0 [16:56:19]StoreToDocumentArchive [16:56:19]shift 434 fd 27164 [16:56:19]save to /storage/0434/doc_00027164 [16:56:19]save last doc name /storage/0434/doc_00027164 to /storage/kkm_last_doc_name [16:56:19]save OK [16:56:19]Clear old archive folders... [16:56:19]ProcessDocumentItem done err = 0, tmpTLVsize=271 [16:56:19]tlvbuf is 001E7FD0 [16:56:19]SAM_PROTO_ClearQueue [16:56:19]wFMCommunicate request_size=4 [16:56:19]MH_SAM_APDU [16:56:19]CAPDU: 80 09 00 00 [16:56:19]Write to MH i2c: E2 08 00 37 1F 80 09 00 00 00 00 00 00 C8 [16:56:19]Write i2c OK [16:56:19]MH_I2C_Read... [16:56:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:19]Read from MH i2c: E2 [16:56:19]MH_I2C_Read... [16:56:19]Read from MH i2c: E2 03 00 [16:56:19]MH_I2C_Read... [16:56:19]Read from MH i2c: E2 03 00 37 1F 00 90 00 CA [16:56:19]RAPDU: 90 00 [16:56:19]wFMCommunicate OK [16:56:19]SAM_PROTO_ClearQueue done [16:56:19]KKMCreateOFDPacket [16:56:19]OFDProtocolAddRootSTLVToBuf [16:56:19]FM_MakeSignedData [16:56:19]FM_MakeSignedData [16:56:19]SAM_PROTO_SignData [16:56:19]wFMCommunicate request_size=4 [16:56:19]MH_SAM_APDU [16:56:19]CAPDU: 80 0D 01 02 [16:56:19]Write to MH i2c: E2 08 00 38 1F 80 0D 01 02 00 00 00 00 D0 [16:56:19]Write i2c OK [16:56:19]MH_I2C_Read... [16:56:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:19]Read from MH i2c: E2 [16:56:19]MH_I2C_Read... [16:56:19]Read from MH i2c: E2 03 00 [16:56:19]MH_I2C_Read... [16:56:19]Read from MH i2c: E2 03 00 38 1F 00 90 00 CB [16:56:19]RAPDU: 90 00 [16:56:19]wFMCommunicate OK [16:56:19]wFMCommunicate request_size=255 [16:56:19]MH_SAM_APDU [16:56:19]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 43 00 00 00 F4 03 04 00 B9 C9 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 [16:56:19]Write to MH i2c: E2 02 01 39 1F 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 43 00 00 00 F4 03 04 00 B9 C9 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 DA [16:56:19]Write i2c OK [16:56:19]MH_I2C_Read... [16:56:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:20]Read from MH i2c: E2 [16:56:20]MH_I2C_Read... [16:56:20]Read from MH i2c: E2 03 00 [16:56:20]MH_I2C_Read... [16:56:20]Read from MH i2c: E2 03 00 39 1F 00 90 00 CC [16:56:20]RAPDU: 90 00 [16:56:20]wFMCommunicate OK [16:56:20]wFMCommunicate request_size=30 [16:56:20]MH_SAM_APDU [16:56:20]CAPDU: 80 0D 02 02 19 30 38 37 34 39 33 37 10 04 04 00 1C 6A 00 00 35 04 06 00 00 79 2D 96 FB 54 [16:56:20]Write to MH i2c: E2 21 00 3A 1F 80 0D 02 02 19 00 30 38 37 34 39 33 37 10 04 04 00 1C 6A 00 00 35 04 06 00 00 79 2D 96 FB 54 00 00 E3 [16:56:20]Write i2c OK [16:56:20]MH_I2C_Read... [16:56:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:20]Read from MH i2c: E2 [16:56:20]MH_I2C_Read... [16:56:20]Read from MH i2c: E2 03 00 [16:56:20]MH_I2C_Read... [16:56:20]Read from MH i2c: E2 03 00 3A 1F 00 90 00 CD [16:56:20]RAPDU: 90 00 [16:56:20]wFMCommunicate OK [16:56:20]wFMCommunicate request_size=4 [16:56:20]MH_SAM_APDU [16:56:20]CAPDU: 80 0D 03 02 [16:56:20]Write to MH i2c: E2 08 00 3B 1F 80 0D 03 02 00 00 00 00 D5 [16:56:20]Write i2c OK [16:56:20]MH_I2C_Read... [16:56:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:20]Read from MH i2c: E2 [16:56:20]MH_I2C_Read... [16:56:20]Read from MH i2c: E2 0B 00 [16:56:20]MH_I2C_Read... [16:56:20]Read from MH i2c: E2 0B 00 3B 1F 00 1A CE A9 19 85 F3 BD A7 90 00 5C [16:56:20]RAPDU: 1A CE A9 19 85 F3 BD A7 90 00 [16:56:20]wFMCommunicate OK [16:56:20]SAM_PROTO_SignData done [16:56:20]FM_MakeSignedData done [16:56:20]CreateOFDProtocolMessage [16:56:20]wFMCommunicate request_size=4 [16:56:20]MH_SAM_APDU [16:56:20]CAPDU: 80 11 00 00 [16:56:20]Write to MH i2c: E2 08 00 3C 1F 80 11 00 00 00 00 00 00 D5 [16:56:20]Write i2c OK [16:56:20]MH_I2C_Read... [16:56:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:20]Read from MH i2c: E2 [16:56:20]MH_I2C_Read... [16:56:20]Read from MH i2c: E2 17 00 [16:56:20]MH_I2C_Read... [16:56:20]Read from MH i2c: E2 17 00 3C 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 2E [16:56:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [16:56:20]wFMCommunicate OK [16:56:20]CreateOFDProtocolMessage done [16:56:20]OFDSenderStorePacket 27164 [16:56:20]StoreOFDPacket docnum=27164 [16:56:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 23 01 00 00 F1 69 1B 01 EA 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 43 00 00 00 F4 03 04 00 B9 C9 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 1C 6A 00 00 35 04 06 00 00 79 2D 96 FB 54 1A CE A9 19 85 F3 BD A7 [16:56:20]CheckFolder [16:56:20]dirname=/storage/ofd_packets [16:56:20]CheckFolder done [16:56:20]ProducePacketName [16:56:20]name=ofd_packets/00027164 [16:56:20]NVStorageSaveData ofd_packets/00027164 [16:56:20]File name is /storage/ofd_packets/00027164 [16:56:20]Write 321 bytes [16:56:20]NVStorageSaveData done [16:56:20]OFDSenderStorePacket done [16:56:20]KKMCreateOFDPacket done [16:56:20]NVStorageSaveData kkm_last_timestamp [16:56:20]File name is /storage/kkm_last_timestamp [16:56:20]Write 4 bytes [16:56:20]NVStorageSaveData done [16:56:20]OFD Sender: Processing packet 27164 [packets to send 9, broken 8] [16:56:20]ProducePacketName [16:56:20]name=ofd_packets/00027164 [16:56:20]OFD Sender: To server: pG, [16:56:20]CommunicateWithHost lk.salyk.kg:30040 [16:56:20]ConnectInit lk.salyk.kg [16:56:20]ExternCall_PrintAddStr [16:56:20]wPrintStart [16:56:20]Write to MH i2c: 01 00 00 3D 1F 5C [16:56:20]Write i2c OK [16:56:20]MH_I2C_Read... [16:56:20]Read from MH i2c: 01 [16:56:20]MH_I2C_Read... [16:56:20]Read from MH i2c: 01 07 00 [16:56:20]MH_I2C_Read... [16:56:20]Read from MH i2c: 01 07 00 3D 1F 00 00 00 00 00 FF 0F 71 [16:56:20]RasterBufferAndPrint [16:56:20]line Счет N : (3)150562 [16:56:20]line ИНН: 02508201610067 [16:56:20]line Контрольно-Кассовый Чек [16:56:20]line ПРОДАЖА [16:56:20]line Товар: 47802995 [16:56:20]line Сигареты Winston XS Silver [16:56:20]line 1.000 * 140.00 [16:56:20]line = 140.00 [16:56:20]line НДС 12% НСП 1% [16:56:20]line > о реализуемом товаре [16:56:20]line ИТОГО: 140.00 [16:56:20]line НСП 1% : 1.24 [16:56:20]line НДС 12% : 14.87 [16:56:20]line Наличными: 140.00 [16:56:20]line Безнал.: 0.00 [16:56:20]line Место: АЗС № 134 "Партнер Нефть" [16:56:20]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [16:56:20]line СНО: Общий режим [16:56:20]line Чек 67 29.07.2024 16:56 [16:56:20]line Смена: 434 ФФД: 1.0 [16:56:20]line ЗНМ: 0300000043 [16:56:20]line РНМ: 0000000000092663 [16:56:20]line Версия ККМ: 001 [16:56:20]line ФМ: 0000000000874937 [16:56:20]line ФД: 27164 [16:56:20]line ФПД: 520455912276 [16:56:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T165625&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27164&fm=520455912276&tin=02508201610067®Number=0000000000092663&sum=14000 [16:56:20]line 0 [16:56:20]Connected sock=11 [16:56:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 23 01 00 00 F1 69 1B 01 EA 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 43 00 00 00 F4 03 04 00 B9 C9 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 1C 6A 00 00 35 04 06 00 00 79 2D 96 FB 54 1A CE A9 19 85 F3 BD A7 [16:56:20]written 0, free lines is 4095 [16:56:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 06 0F 47 00 ED 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 34 39 33 37 10 04 04 00 1C 6A 00 00 F4 03 04 00 09 70 A7 66 B6 04 01 00 00 84 41 3A 1B FA 82 93 A8 [16:56:20]CommunicateWithHost err = 0 [16:56:20]CheckOFDResponse [16:56:20]1017 (14) - 77093643461234 [16:56:20]1041 (16) - 0000000000874937 [16:56:20]1040 (4) - 27164 [16:56:20]1012 (4) - 29.07.2024 10:33 [16:56:20]1206 (1) - 0 [16:56:20]OFD Sender: Remove packet 27164 [16:56:20]ProducePacketName [16:56:20]name=ofd_packets/00027164 [16:56:20]NVStorageDeleteData [16:56:21]Write to MH i2c: 01 00 00 64 1F 83 [16:56:21]Write i2c OK [16:56:21]MH_I2C_Read... [16:56:21]Read from MH i2c: 01 [16:56:21]MH_I2C_Read... [16:56:21]Read from MH i2c: 01 07 00 [16:56:21]MH_I2C_Read... [16:56:21]Read from MH i2c: 01 07 00 64 1F 00 00 00 00 00 FA 0C 90 [16:56:21]RasterBufferAndPrint [16:56:21]line [16:56:21]line [16:56:21]line [16:56:21]line [16:56:21]line [16:56:21]written 0, free lines is 3329 [16:56:21]MH_Cut [16:56:21]Write to MH i2c: D1 01 00 6B 1F 01 5C [16:56:21]Write i2c OK [16:56:21]MH_I2C_Read... [16:56:21]Read from MH i2c: D1 [16:56:21]MH_I2C_Read... [16:56:21]Read from MH i2c: D1 01 00 [16:56:21]MH_I2C_Read... [16:56:21]Read from MH i2c: D1 01 00 6B 1F 00 5B [16:56:21]Write to MH i2c: 01 00 00 6C 1F 8B [16:56:21]Write i2c OK [16:56:21]MH_I2C_Read... [16:56:21]OFD Sender: No OFD packet to send [16:56:21]*** Cut start [16:56:21]*** Partial cut [16:56:21]*** CUTSNS_PIN = 1 [16:56:21]*** CUTSNS_PIN = 0 [16:56:21]*** Brake cut motor [16:56:22]Read from MH i2c: 01 [16:56:22]MH_I2C_Read... [16:56:22]*** Stop cut motor [16:56:22]*** Cut end [16:56:22]Read from MH i2c: 01 07 00 [16:56:22]MH_I2C_Read... [16:56:22]Read from MH i2c: 01 07 00 6C 1F 00 00 00 00 00 FF 0F A0 [16:56:22]process_action close_receipt done [16:56:22]requested_data is exist [16:56:22]produce_requested_data [16:56:22]requested_item fm.sn is exist - process it [16:56:22]wFMCommunicate request_size=4 [16:56:22]MH_SAM_APDU [16:56:22]CAPDU: 80 11 00 00 [16:56:22]Write to MH i2c: E2 08 00 6D 1F 80 11 00 00 00 00 00 00 06 [16:56:22]Write i2c OK [16:56:22]MH_I2C_Read... [16:56:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:22]Read from MH i2c: E2 [16:56:22]MH_I2C_Read... [16:56:22]Read from MH i2c: E2 17 00 [16:56:22]MH_I2C_Read... [16:56:22]Read from MH i2c: E2 17 00 6D 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 5F [16:56:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [16:56:22]wFMCommunicate OK [16:56:22]requested_item fd.num is exist - process it [16:56:22]SAM_PROTO_GetFieldsCounters [16:56:22]wFMCommunicate request_size=4 [16:56:22]MH_SAM_APDU [16:56:22]CAPDU: 80 13 00 00 [16:56:22]Write to MH i2c: E2 08 00 6E 1F 80 13 00 00 00 00 00 00 09 [16:56:22]Write i2c OK [16:56:22]MH_I2C_Read... [16:56:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:22]Read from MH i2c: E2 [16:56:22]MH_I2C_Read... [16:56:22]Read from MH i2c: E2 62 00 [16:56:22]MH_I2C_Read... [16:56:22]Read from MH i2c: E2 62 00 6E 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 1C 6A 00 00 0E 04 04 00 B2 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 33 [16: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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 1C 6A 00 00 0E 04 04 00 B2 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 [16:56:22]wFMCommunicate OK [16:56:22]SAM_PROTO_GetFieldsCounters done [16:56:22]requested_item shift.num is exist - process it [16:56:22]requested_item shift.opened is exist - process it [16:56:22]req_shift_opened [16:56:22]FM_GetShiftState [16:56:22]SAM_PROTO_GetShiftState [16:56:22]wFMCommunicate request_size=4 [16:56:22]MH_SAM_APDU [16:56:22]CAPDU: 80 13 01 00 [16:56:22]Write to MH i2c: E2 08 00 6F 1F 80 13 01 00 00 00 00 00 0B [16:56:22]Write i2c OK [16:56:22]MH_I2C_Read... [16:56:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:22]Read from MH i2c: E2 [16:56:22]MH_I2C_Read... [16:56:22]Read from MH i2c: E2 0E 00 [16:56:22]MH_I2C_Read... [16:56:22]Read from MH i2c: E2 0E 00 6F 1F 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 8C [16:56:22]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [16:56:22]wFMCommunicate OK [16:56:22]SAM_PROTO_GetShiftState done [16:56:22]FM_GetShiftState done [16:56:22]req_shift_opened done [16:56:22]requested_item shift.open_date is exist - process it [16:56:22]req_shift_open_date [16:56:22]req_shift_open_date done [16:56:22]produce_requested_data done [16:56:22]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27164,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [16:56:22]process_action_free close_receipt [16:56:22]json_value_free [16:56:22]json_value_free done [16:56:22]process_json_proto returns [16:56:22]Send response to host [16:56:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27164,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [16:56:22]free response buf [16:56:22]execute_script done [16:56:22]execute_script returns [16:56:22]free content buf [16:56:22]Sock 8.Close socket [16:56:22]Sock 8.Thread stoped [16:56:26]OFD Sender: No OFD packet to send [16:56:31]OFD Sender: No OFD packet to send [16:56:36]OFD Sender: No OFD packet to send [16:56:41]OFD Sender: No OFD packet to send [16:56:46]OFD Sender: No OFD packet to send [16:56:51]OFD Sender: No OFD packet to send [16:56:56]OFD Sender: No OFD packet to send [16:57:01]OFD Sender: No OFD packet to send [16:57:06]OFD Sender: No OFD packet to send [16:57:11]OFD Sender: No OFD packet to send [16:57:16]OFD Sender: No OFD packet to send [16:57:21]OFD Sender: No OFD packet to send [16:57:26]OFD Sender: No OFD packet to send [16:57:31]OFD Sender: No OFD packet to send [16:57:36]OFD Sender: No OFD packet to send [16:57:41]OFD Sender: No OFD packet to send [16:57:46]OFD Sender: No OFD packet to send [16:57:51]OFD Sender: No OFD packet to send [16:57:56]OFD Sender: No OFD packet to send [16:58:01]OFD Sender: No OFD packet to send [16:58:06]OFD Sender: No OFD packet to send [16:58:11]OFD Sender: No OFD packet to send [16:58:16]OFD Sender: No OFD packet to send [16:58:21]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:06]OFD Sender: No OFD packet to send [16:59:11]OFD Sender: No OFD packet to send [16:59:16]OFD Sender: No OFD packet to send [16:59:21]OFD Sender: No OFD packet to send [16:59:26]OFD Sender: No OFD packet to send [16:59:31]OFD Sender: No OFD packet to send [16:59:36]OFD Sender: No OFD packet to send [16:59:41]OFD Sender: No OFD packet to send [16:59:46]OFD Sender: No OFD packet to send [16:59:51]OFD Sender: No OFD packet to send [16:59:56]OFD Sender: No OFD packet to send [17:00:01]OFD Sender: No OFD packet to send [17:00:06]OFD Sender: No OFD packet to send [17:00:11]OFD Sender: No OFD packet to send [17:00:16]OFD Sender: No OFD packet to send [17:00:21]OFD Sender: No OFD packet to send [17:00:26]OFD Sender: No OFD packet to send [17:00:31]OFD Sender: No OFD packet to send [17:00:36]OFD Sender: No OFD packet to send [17:00:41]OFD Sender: No OFD packet to send [17:00:46]OFD Sender: No OFD packet to send [17:00:51]OFD Sender: No OFD packet to send [17:00:56]OFD Sender: No OFD packet to send [17:01:01]OFD Sender: No OFD packet to send [17:01:06]OFD Sender: No OFD packet to send [17:01:11]OFD Sender: No OFD packet to send [17:01:16]OFD Sender: No OFD packet to send [17:01:21]OFD Sender: No OFD packet to send [17:01:26]OFD Sender: No OFD packet to send [17:01:31]OFD Sender: No OFD packet to send [17:01:36]OFD Sender: No OFD packet to send [17:01:41]OFD Sender: No OFD packet to send [17:01:46]OFD Sender: No OFD packet to send [17:01:51]OFD Sender: No OFD packet to send [17:01:56]OFD Sender: No OFD packet to send [17:02:01]OFD Sender: No OFD packet to send [17:02:06]OFD Sender: No OFD packet to send [17:02:11]OFD Sender: No OFD packet to send [17:02:16]OFD Sender: No OFD packet to send [17:02:21]OFD Sender: No OFD packet to send [17:02:26]OFD Sender: No OFD packet to send [17:02:31]OFD Sender: No OFD packet to send [17:02:36]OFD Sender: No OFD packet to send [17:02:41]OFD Sender: No OFD packet to send [17:02:46]OFD Sender: No OFD packet to send [17:02:51]OFD Sender: No OFD packet to send [17:02:56]OFD Sender: No OFD packet to send [17:03:01]accept exits with 9 [17:03:01]New connection [17:03:01]New thread 3066785124 created [17:03:01]Thread 3066928484 joined [17:03:01]Waiting for new connection... [17:03:01] Sock 9.Parse request [17:03:01]Sock 9.Check first char [17:03:01]Sock 9.First char is OK [17:03:01]request: POST /json_proto HTTP/1.0 [17:03:01]Method: POST [17:03:01]URL: /json_proto [17:03:01]Method is POST - this is cgi request [17:03:01]url: /json_proto [17:03:01]query_string will be loaded in cgi processing [17:03:01]execute_cgi json_proto POST (null) [17:03:01]execute_cgi path=json_proto method=POST [17:03:01]POST find Content-Length [17:03:01]Host: 172.17.45.8:8080 [17:03:01]Content-Length: 626 [17:03:01]Content-Type: application/json [17:03:01] [17:03:01]POST finish read [17:03:01]Found Content-Length = 626 [17:03:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150563", "tax_sys" : 0, "items" : [ { "code": "4700000160198", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 0,5\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" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:01]execute_script... [17:03:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150563", "tax_sys" : 0, "items" : [ { "code": "4700000160198", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 0,5\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" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:03:01]POST & json_proto [17:03:01]process_json_proto [17:03:01]json parsed OK: [17:03:01]protocol is kg_v1.0 [17:03:01]action value=close_receipt [17:03:01]process_action close_receipt [17:03:01]cmd_close_receipt [17:03:01]MH_GetDate [17:03:01]Write to MH i2c: F0 00 00 70 1F 7E [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: F0 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: F0 09 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: F0 09 00 70 1F 00 4C CB A7 66 A6 1F 7F 64 53 [17:03:01]GetLastDocTimeStamp 1722272185 [17:03:01]current date 1722272588 [17:03:01]FM_GetShiftState [17:03:01]SAM_PROTO_GetShiftState [17:03:01]wFMCommunicate request_size=4 [17:03:01]MH_SAM_APDU [17:03:01]CAPDU: 80 13 01 00 [17:03:01]Write to MH i2c: E2 08 00 71 1F 80 13 01 00 00 00 00 00 0D [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:01]Read from MH i2c: E2 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 0E 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 0E 00 71 1F 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 8E [17:03:01]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [17:03:01]wFMCommunicate OK [17:03:01]SAM_PROTO_GetShiftState done [17:03:01]FM_GetShiftState done [17:03:01]opened in 1722213509 [17:03:01]opened+sec_in_day 1722299909 [17:03:01]quantity*price = 4000 [17:03:01]sum+1 = 4001 [17:03:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 68 29.07.2024 17:03 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27165 ФПД: 17574863971709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T170308&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27165&fm=17574863971709&tin=02508201610067®Number=0000000000092663&sum=4000 0 [17:03:02]StoreToDocumentArchive [17:03:02]shift 434 fd 27165 [17:03:02]save to /storage/0434/doc_00027165 [17:03:02]save last doc name /storage/0434/doc_00027165 to /storage/kkm_last_doc_name [17:03:02]save OK [17:03:02]Clear old archive folders... [17:03:02]ProcessDocumentItem done err = 0, tmpTLVsize=269 [17:03:02]tlvbuf is 001E7DD0 [17:03:02]SAM_PROTO_ClearQueue [17:03:02]wFMCommunicate request_size=4 [17:03:02]MH_SAM_APDU [17:03:02]CAPDU: 80 09 00 00 [17:03:02]Write to MH i2c: E2 08 00 7E 1F 80 09 00 00 00 00 00 00 0F [17:03:02]Write i2c OK [17:03:02]MH_I2C_Read... [17:03:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:02]Read from MH i2c: E2 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: E2 03 00 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: E2 03 00 7E 1F 00 90 00 11 [17:03:02]RAPDU: 90 00 [17:03:02]wFMCommunicate OK [17:03:02]SAM_PROTO_ClearQueue done [17:03:02]KKMCreateOFDPacket [17:03:02]OFDProtocolAddRootSTLVToBuf [17:03:02]FM_MakeSignedData [17:03:02]FM_MakeSignedData [17:03:02]SAM_PROTO_SignData [17:03:02]wFMCommunicate request_size=4 [17:03:02]MH_SAM_APDU [17:03:02]CAPDU: 80 0D 01 02 [17:03:02]Write to MH i2c: E2 08 00 7F 1F 80 0D 01 02 00 00 00 00 17 [17:03:02]Write i2c OK [17:03:02]MH_I2C_Read... [17:03:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:02]Read from MH i2c: E2 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: E2 03 00 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: E2 03 00 7F 1F 00 90 00 12 [17:03:02]RAPDU: 90 00 [17:03:02]wFMCommunicate OK [17:03:02]wFMCommunicate request_size=255 [17:03:02]MH_SAM_APDU [17:03:02]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 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 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 44 00 00 00 F4 03 04 00 4C CB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [17:03:02]Write to MH i2c: E2 02 01 80 1F 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 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 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 44 00 00 00 F4 03 04 00 4C CB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 CE [17:03:02]Write i2c OK [17:03:02]MH_I2C_Read... [17:03:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:03]Read from MH i2c: E2 [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: E2 03 00 [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: E2 03 00 80 1F 00 90 00 13 [17:03:03]RAPDU: 90 00 [17:03:03]wFMCommunicate OK [17:03:03]wFMCommunicate request_size=28 [17:03:03]MH_SAM_APDU [17:03:03]CAPDU: 80 0D 02 02 17 37 34 39 33 37 10 04 04 00 1D 6A 00 00 35 04 06 00 0F FB F7 86 25 7D [17:03:03]Write to MH i2c: E2 1F 00 81 1F 80 0D 02 02 17 00 37 34 39 33 37 10 04 04 00 1D 6A 00 00 35 04 06 00 0F FB F7 86 25 7D 00 00 5D [17:03:03]Write i2c OK [17:03:03]MH_I2C_Read... [17:03:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:03]Read from MH i2c: E2 [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: E2 03 00 [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: E2 03 00 81 1F 00 90 00 14 [17:03:03]RAPDU: 90 00 [17:03:03]wFMCommunicate OK [17:03:03]wFMCommunicate request_size=4 [17:03:03]MH_SAM_APDU [17:03:03]CAPDU: 80 0D 03 02 [17:03:03]Write to MH i2c: E2 08 00 82 1F 80 0D 03 02 00 00 00 00 1C [17:03:03]Write i2c OK [17:03:03]MH_I2C_Read... [17:03:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:03]Read from MH i2c: E2 [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: E2 0B 00 [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: E2 0B 00 82 1F 00 15 B3 2E 1E 06 B5 BD BA 90 00 63 [17:03:03]RAPDU: 15 B3 2E 1E 06 B5 BD BA 90 00 [17:03:03]wFMCommunicate OK [17:03:03]SAM_PROTO_SignData done [17:03:03]FM_MakeSignedData done [17:03:03]CreateOFDProtocolMessage [17:03:03]wFMCommunicate request_size=4 [17:03:03]MH_SAM_APDU [17:03:03]CAPDU: 80 11 00 00 [17:03:03]Write to MH i2c: E2 08 00 83 1F 80 11 00 00 00 00 00 00 1C [17:03:03]Write i2c OK [17:03:03]MH_I2C_Read... [17:03:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:03]Read from MH i2c: E2 [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: E2 17 00 [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: E2 17 00 83 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 75 [17:03:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [17:03:03]wFMCommunicate OK [17:03:03]CreateOFDProtocolMessage done [17:03:03]OFDSenderStorePacket 27165 [17:03:03]StoreOFDPacket docnum=27165 [17:03:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 21 01 00 00 1C 7A 19 01 EE 69 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 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 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 44 00 00 00 F4 03 04 00 4C CB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 1D 6A 00 00 35 04 06 00 0F FB F7 86 25 7D 15 B3 2E 1E 06 B5 BD BA [17:03:03]CheckFolder [17:03:03]dirname=/storage/ofd_packets [17:03:03]CheckFolder done [17:03:03]ProducePacketName [17:03:03]name=ofd_packets/00027165 [17:03:03]NVStorageSaveData ofd_packets/00027165 [17:03:03]File name is /storage/ofd_packets/00027165 [17:03:03]Write 319 bytes [17:03:03]NVStorageSaveData done [17:03:03]OFDSenderStorePacket done [17:03:03]KKMCreateOFDPacket done [17:03:03]NVStorageSaveData kkm_last_timestamp [17:03:03]File name is /storage/kkm_last_timestamp [17:03:03]Write 4 bytes [17:03:03]NVStorageSaveData done [17:03:03]ExternCall_PrintAddStr [17:03:03]wPrintStart [17:03:03]Write to MH i2c: 01 00 00 84 1F A3 [17:03:03]Write i2c OK [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: 01 [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: 01 07 00 [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: 01 07 00 84 1F 00 00 00 00 00 FF 0F B8 [17:03:03]RasterBufferAndPrint [17:03:03]line Счет N : (3)150563 [17:03:03]line ИНН: 02508201610067 [17:03:03]line Контрольно-Кассовый Чек [17:03:03]line ПРОДАЖА [17:03:03]line Товар: 4700000160198 [17:03:03]line Вода Байтик 0,5л [17:03:03]line 1.000 * 40.00 [17:03:03]line = 40.00 [17:03:03]line НДС 12% НСП 1% [17:03:03]line > о реализуемом товаре [17:03:03]line ИТОГО: 40.00 [17:03:03]line НСП 1% : 0.35 [17:03:03]line НДС 12% : 4.25 [17:03:03]line Наличными: 40.00 [17:03:03]line Безнал.: 0.00 [17:03:03]line Место: АЗС № 134 "Партнер Нефть" [17:03:03]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:03:03]line СНО: Общий режим [17:03:03]line Чек 68 29.07.2024 17:03 [17:03:03]line Смена: 434 ФФД: 1.0 [17:03:03]line ЗНМ: 0300000043 [17:03:03]line РНМ: 0000000000092663 [17:03:03]line Версия ККМ: 001 [17:03:03]line ФМ: 0000000000874937 [17:03:03]line ФД: 27165 [17:03:03]line ФПД: 17574863971709 [17:03:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T170308&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27165&fm=17574863971709&tin=02508201610067®Number=0000000000092663&sum=4000 [17:03:03]line 0 [17:03:03]written 0, free lines is 4095 [17:03:03]OFD Sender: Processing packet 27165 [packets to send 9, broken 8] [17:03:03]ProducePacketName [17:03:03]name=ofd_packets/00027165 [17:03:03]OFD Sender: To server: pG, [17:03:03]CommunicateWithHost lk.salyk.kg:30040 [17:03:03]ConnectInit lk.salyk.kg [17:03:03]Connected sock=10 [17:03:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 21 01 00 00 1C 7A 19 01 EE 69 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 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 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 44 00 00 00 F4 03 04 00 4C CB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 1D 6A 00 00 35 04 06 00 0F FB F7 86 25 7D 15 B3 2E 1E 06 B5 BD BA [17:03:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 09 09 47 00 76 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 34 39 33 37 10 04 04 00 1D 6A 00 00 F4 03 04 00 9B 71 A7 66 B6 04 01 00 00 61 D1 EE 0F 72 E8 CF 83 [17:03:03]CommunicateWithHost err = 0 [17:03:03]CheckOFDResponse [17:03:03]1017 (14) - 77093643461234 [17:03:03]1041 (16) - 0000000000874937 [17:03:03]1040 (4) - 27165 [17:03:03]1012 (4) - 29.07.2024 10:40 [17:03:03]1206 (1) - 0 [17:03:03]OFD Sender: Remove packet 27165 [17:03:03]ProducePacketName [17:03:03]name=ofd_packets/00027165 [17:03:03]NVStorageDeleteData [17:03:03]Write to MH i2c: 01 00 00 AB 1F CA [17:03:03]Write i2c OK [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: 01 [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: 01 07 00 [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: 01 07 00 AB 1F 00 00 00 00 00 01 0D DF [17:03:03]RasterBufferAndPrint [17:03:03]line [17:03:03]line [17:03:03]line [17:03:03]line [17:03:03]line [17:03:03]written 0, free lines is 3336 [17:03:03]MH_Cut [17:03:03]Write to MH i2c: D1 01 00 B2 1F 01 A3 [17:03:03]Write i2c OK [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: D1 [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: D1 01 00 [17:03:03]MH_I2C_Read... [17:03:03]Read from MH i2c: D1 01 00 B2 1F 00 A2 [17:03:03]Write to MH i2c: 01 00 00 B3 1F D2 [17:03:03]Write i2c OK [17:03:03]MH_I2C_Read... [17:03:04]OFD Sender: No OFD packet to send [17:03:04]*** Cut start [17:03:04]*** Partial cut [17:03:04]*** CUTSNS_PIN = 1 [17:03:04]*** CUTSNS_PIN = 0 [17:03:04]*** Brake cut motor [17:03:04]Read from MH i2c: 01 [17:03:04]MH_I2C_Read... [17:03:04]*** Stop cut motor [17:03:04]*** Cut end [17:03:04]Read from MH i2c: 01 07 00 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: 01 07 00 B3 1F 00 00 00 00 00 FF 0F E7 [17:03:04]process_action close_receipt done [17:03:04]requested_data is exist [17:03:04]produce_requested_data [17:03:04]requested_item fm.sn is exist - process it [17:03:04]wFMCommunicate request_size=4 [17:03:04]MH_SAM_APDU [17:03:04]CAPDU: 80 11 00 00 [17:03:04]Write to MH i2c: E2 08 00 B4 1F 80 11 00 00 00 00 00 00 4D [17:03:04]Write i2c OK [17:03:04]MH_I2C_Read... [17:03:05]Read from MH i2c: E2 [17:03:05]MH_I2C_Read... [17:03:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:05]Read from MH i2c: E2 17 00 [17:03:05]MH_I2C_Read... [17:03:05]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 34 39 33 37 90 00 A6 [17:03:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [17:03:05]wFMCommunicate OK [17:03:05]requested_item fd.num is exist - process it [17:03:05]SAM_PROTO_GetFieldsCounters [17:03:05]wFMCommunicate request_size=4 [17:03:05]MH_SAM_APDU [17:03:05]CAPDU: 80 13 00 00 [17:03:05]Write to MH i2c: E2 08 00 B5 1F 80 13 00 00 00 00 00 00 50 [17:03:05]Write i2c OK [17:03:05]MH_I2C_Read... [17:03:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:05]Read from MH i2c: E2 [17:03:05]MH_I2C_Read... [17:03:05]Read from MH i2c: E2 62 00 [17:03:05]MH_I2C_Read... [17:03:05]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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 1D 6A 00 00 0E 04 04 00 B2 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 7E [17:03:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 1D 6A 00 00 0E 04 04 00 B2 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 [17:03:05]wFMCommunicate OK [17:03:05]SAM_PROTO_GetFieldsCounters done [17:03:05]requested_item shift.num is exist - process it [17:03:05]requested_item shift.opened is exist - process it [17:03:05]req_shift_opened [17:03:05]FM_GetShiftState [17:03:05]SAM_PROTO_GetShiftState [17:03:05]wFMCommunicate request_size=4 [17:03:05]MH_SAM_APDU [17:03:05]CAPDU: 80 13 01 00 [17:03:05]Write to MH i2c: E2 08 00 B6 1F 80 13 01 00 00 00 00 00 52 [17:03:05]Write i2c OK [17:03:05]MH_I2C_Read... [17:03:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:05]Read from MH i2c: E2 [17:03:05]MH_I2C_Read... [17:03:05]Read from MH i2c: E2 0E 00 [17:03:05]MH_I2C_Read... [17:03:05]Read from MH i2c: E2 0E 00 B6 1F 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 D3 [17:03:05]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [17:03:05]wFMCommunicate OK [17:03:05]SAM_PROTO_GetShiftState done [17:03:05]FM_GetShiftState done [17:03:05]req_shift_opened done [17:03:05]requested_item shift.open_date is exist - process it [17:03:05]req_shift_open_date [17:03:05]req_shift_open_date done [17:03:05]produce_requested_data done [17:03:05]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27165,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [17:03:05]process_action_free close_receipt [17:03:05]json_value_free [17:03:05]json_value_free done [17:03:05]process_json_proto returns [17:03:05]Send response to host [17:03:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27165,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [17:03:05]free response buf [17:03:05]execute_script done [17:03:05]execute_script returns [17:03:05]free content buf [17:03:05]Sock 9.Close socket [17:03:05]Sock 9.Thread stoped [17:03:09]OFD Sender: No OFD packet to send [17:03:14]OFD Sender: No OFD packet to send [17:03:19]OFD Sender: No OFD packet to send [17:03:24]OFD Sender: No OFD packet to send [17:03:29]OFD Sender: No OFD packet to send [17:03:34]OFD Sender: No OFD packet to send [17:03:39]OFD Sender: No OFD packet to send [17:03:44]OFD Sender: No OFD packet to send [17:03:49]OFD Sender: No OFD packet to send [17:03:54]OFD Sender: No OFD packet to send [17:03:59]OFD Sender: No OFD packet to send [17:04:04]OFD Sender: No OFD packet to send [17:04:09]OFD Sender: No OFD packet to send [17:04:14]OFD Sender: No OFD packet to send [17:04:19]OFD Sender: No OFD packet to send [17:04:24]OFD Sender: No OFD packet to send [17:04:29]OFD Sender: No OFD packet to send [17:04:34]OFD Sender: No OFD packet to send [17:04:36]accept exits with 8 [17:04:36]New connection [17:04:36]New thread 3066928484 created [17:04:36]Thread 3066785124 joined [17:04:36]Waiting for new connection... [17:04:36] Sock 8.Parse request [17:04:36]Sock 8.Check first char [17:04:36]Sock 8.First char is OK [17:04:36]request: POST /json_proto HTTP/1.0 [17:04:36]Method: POST [17:04:36]URL: /json_proto [17:04:36]Method is POST - this is cgi request [17:04:36]url: /json_proto [17:04:36]query_string will be loaded in cgi processing [17:04:36]execute_cgi json_proto POST (null) [17:04:36]execute_cgi path=json_proto method=POST [17:04:36]POST find Content-Length [17:04:36]Host: 172.17.45.8:8080 [17:04:36]Content-Length: 633 [17:04:36]Content-Type: application/json [17:04:36] [17:04:36]POST finish read [17:04:36]Found Content-Length = 633 [17:04:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150564", "tax_sys" : 0, "items" : [ { "code": "48746649", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Super Slims Winter F", "price" : 138.00, "quantity" : 2.000, "sum" : 276.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 276.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:36]execute_script... [17:04: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)150564", "tax_sys" : 0, "items" : [ { "code": "48746649", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Super Slims Winter F", "price" : 138.00, "quantity" : 2.000, "sum" : 276.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 276.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:36]POST & json_proto [17:04:36]process_json_proto [17:04:36]json parsed OK: [17:04:36]protocol is kg_v1.0 [17:04:36]action value=close_receipt [17:04:36]process_action close_receipt [17:04:36]cmd_close_receipt [17:04:36]MH_GetDate [17:04:36]Write to MH i2c: F0 00 00 B7 1F C5 [17:04:36]Write i2c OK [17:04:36]MH_I2C_Read... [17:04:36]Read from MH i2c: F0 [17:04:36]MH_I2C_Read... [17:04:36]Read from MH i2c: F0 09 00 [17:04:36]MH_I2C_Read... [17:04:36]Read from MH i2c: F0 09 00 B7 1F 00 AA CB A7 66 A6 1F 7F 64 F8 [17:04:36]GetLastDocTimeStamp 1722272588 [17:04:36]current date 1722272682 [17:04:36]FM_GetShiftState [17:04:36]SAM_PROTO_GetShiftState [17:04:36]wFMCommunicate request_size=4 [17:04:36]MH_SAM_APDU [17:04:36]CAPDU: 80 13 01 00 [17:04:36]Write to MH i2c: E2 08 00 B8 1F 80 13 01 00 00 00 00 00 54 [17:04:36]Write i2c OK [17:04:36]MH_I2C_Read... [17:04:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:36]Read from MH i2c: E2 [17:04:36]MH_I2C_Read... [17:04:36]Read from MH i2c: E2 0E 00 [17:04:36]MH_I2C_Read... [17:04:36]Read from MH i2c: E2 0E 00 B8 1F 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 D5 [17:04:36]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [17:04:36]wFMCommunicate OK [17:04:36]SAM_PROTO_GetShiftState done [17:04:36]FM_GetShiftState done [17:04:36]opened in 1722213509 [17:04:36]opened+sec_in_day 1722299909 [17:04:36]quantity*price = 27600 [17:04:36]sum+1 = 27601 [17:04:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 276.00 НСП 1% : 2.44 НДС 12% : 29.31 Наличными: 276.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 69 29.07.2024 17:04 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27166 ФПД: 198929985694337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T170443&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27166&fm=198929985694337&tin=02508201610067®Number=0000000000092663&sum=27600 0 [17:04:37]StoreToDocumentArchive [17:04:37]shift 434 fd 27166 [17:04:37]save to /storage/0434/doc_00027166 [17:04:37]save last doc name /storage/0434/doc_00027166 to /storage/kkm_last_doc_name [17:04:37]save OK [17:04:37]Clear old archive folders... [17:04:37]ProcessDocumentItem done err = 0, tmpTLVsize=285 [17:04:37]tlvbuf is 001EEF40 [17:04:37]SAM_PROTO_ClearQueue [17:04:37]wFMCommunicate request_size=4 [17:04:37]MH_SAM_APDU [17:04:37]CAPDU: 80 09 00 00 [17:04:37]Write to MH i2c: E2 08 00 C5 1F 80 09 00 00 00 00 00 00 56 [17:04:37]Write i2c OK [17:04:37]MH_I2C_Read... [17:04:37]Read from MH i2c: E2 [17:04:37]MH_I2C_Read... [17:04:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:04:37]Read from MH i2c: E2 03 00 [17:04:37]MH_I2C_Read... [17:04:37]Read from MH i2c: E2 03 00 C5 1F 00 90 00 58 [17:04:37]RAPDU: 90 00 [17:04:37]wFMCommunicate OK [17:04:37]SAM_PROTO_ClearQueue done [17:04:37]KKMCreateOFDPacket [17:04:37]OFDProtocolAddRootSTLVToBuf [17:04:37]FM_MakeSignedData [17:04:37]FM_MakeSignedData [17:04:37]SAM_PROTO_SignData [17:04:37]wFMCommunicate request_size=4 [17:04:37]MH_SAM_APDU [17:04:37]CAPDU: 80 0D 01 02 [17:04:37]Write to MH i2c: E2 08 00 C6 1F 80 0D 01 02 00 00 00 00 5E [17:04:37]Write i2c OK [17:04:37]MH_I2C_Read... [17:04:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:04:37]Read from MH i2c: E2 [17:04:37]MH_I2C_Read... [17:04:37]Read from MH i2c: E2 03 00 [17:04:37]MH_I2C_Read... [17:04:37]Read from MH i2c: E2 03 00 C6 1F 00 90 00 59 [17:04:37]RAPDU: 90 00 [17:04:37]wFMCommunicate OK [17:04:37]wFMCommunicate request_size=255 [17:04:37]MH_SAM_APDU [17:04:37]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 36 34 39 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 75 70 65 72 20 53 6C 69 6D 73 20 57 69 6E 74 65 72 20 46 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 D0 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 D0 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 45 00 00 00 F4 03 04 00 AB CB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 [17:04:37]Write to MH i2c: E2 02 01 C7 1F 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 36 34 39 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 75 70 65 72 20 53 6C 69 6D 73 20 57 69 6E 74 65 72 20 46 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 D0 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 D0 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 45 00 00 00 F4 03 04 00 AB CB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 00 00 D9 [17:04:37]Write i2c OK [17:04:37]MH_I2C_Read... [17:04:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:37]Read from MH i2c: E2 [17:04:37]MH_I2C_Read... [17:04:37]Read from MH i2c: E2 03 00 [17:04:37]MH_I2C_Read... [17:04:37]Read from MH i2c: E2 03 00 C7 1F 00 90 00 5A [17:04:37]RAPDU: 90 00 [17:04:37]wFMCommunicate OK [17:04:37]wFMCommunicate request_size=44 [17:04:37]MH_SAM_APDU [17:04:37]CAPDU: 80 0D 02 02 27 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 1E 6A 00 00 35 04 06 00 B4 EC FF 21 EA 81 [17:04:37]Write to MH i2c: E2 2F 00 C8 1F 80 0D 02 02 27 00 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 1E 6A 00 00 35 04 06 00 B4 EC FF 21 EA 81 00 00 37 [17:04:37]Write i2c OK [17:04:37]MH_I2C_Read... [17:04:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:38]Read from MH i2c: E2 [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: E2 03 00 [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: E2 03 00 C8 1F 00 90 00 5B [17:04:38]RAPDU: 90 00 [17:04:38]wFMCommunicate OK [17:04:38]wFMCommunicate request_size=4 [17:04:38]MH_SAM_APDU [17:04:38]CAPDU: 80 0D 03 02 [17:04:38]Write to MH i2c: E2 08 00 C9 1F 80 0D 03 02 00 00 00 00 63 [17:04:38]Write i2c OK [17:04:38]MH_I2C_Read... [17:04:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:04:38]Read from MH i2c: E2 [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: E2 0B 00 [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: E2 0B 00 C9 1F 00 9F EE 48 00 9F 88 24 10 90 00 94 [17:04:38]RAPDU: 9F EE 48 00 9F 88 24 10 90 00 [17:04:38]wFMCommunicate OK [17:04:38]SAM_PROTO_SignData done [17:04:38]FM_MakeSignedData done [17:04:38]CreateOFDProtocolMessage [17:04:38]wFMCommunicate request_size=4 [17:04:38]MH_SAM_APDU [17:04:38]CAPDU: 80 11 00 00 [17:04:38]Write to MH i2c: E2 08 00 CA 1F 80 11 00 00 00 00 00 00 63 [17:04:38]Write i2c OK [17:04:38]MH_I2C_Read... [17:04:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:38]Read from MH i2c: E2 [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: E2 17 00 [17:04:38]MH_I2C_Read... [17:04:38]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 34 39 33 37 90 00 BC [17:04:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [17:04:38]wFMCommunicate OK [17:04:38]CreateOFDProtocolMessage done [17:04:38]OFDSenderStorePacket 27166 [17:04:38]StoreOFDPacket docnum=27166 [17:04:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 31 01 00 00 2A 18 29 01 FB AA 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 36 34 39 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 75 70 65 72 20 53 6C 69 6D 73 20 57 69 6E 74 65 72 20 46 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 D0 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 D0 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 45 00 00 00 F4 03 04 00 AB CB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 1E 6A 00 00 35 04 06 00 B4 EC FF 21 EA 81 9F EE 48 00 9F 88 24 10 [17:04:38]CheckFolder [17:04:38]dirname=/storage/ofd_packets [17:04:38]CheckFolder done [17:04:38]ProducePacketName [17:04:38]name=ofd_packets/00027166 [17:04:38]NVStorageSaveData ofd_packets/00027166 [17:04:38]File name is /storage/ofd_packets/00027166 [17:04:38]Write 335 bytes [17:04:38]NVStorageSaveData done [17:04:38]OFDSenderStorePacket done [17:04:38]KKMCreateOFDPacket done [17:04:38]NVStorageSaveData kkm_last_timestamp [17:04:38]File name is /storage/kkm_last_timestamp [17:04:38]Write 4 bytes [17:04:38]NVStorageSaveData done [17:04:38]ExternCall_PrintAddStr [17:04:38]wPrintStart [17:04:38]Write to MH i2c: 01 00 00 CB 1F EA [17:04:38]Write i2c OK [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: 01 [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: 01 07 00 [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: 01 07 00 CB 1F 00 00 00 00 00 FF 0F FF [17:04:38]RasterBufferAndPrint [17:04:38]line Счет N : (3)150564 [17:04:38]line ИНН: 02508201610067 [17:04:38]line Контрольно-Кассовый Чек [17:04:38]line ПРОДАЖА [17:04:38]line Товар: 48746649 [17:04:38]line Сигареты Parliament Super Slims Winter F [17:04:38]line 2.000 * 138.00 [17:04:38]line = 276.00 [17:04:38]line НДС 12% НСП 1% [17:04:38]line > о реализуемом товаре [17:04:38]line ИТОГО: 276.00 [17:04:38]line НСП 1% : 2.44 [17:04:38]line НДС 12% : 29.31 [17:04:38]line Наличными: 276.00 [17:04:38]line Безнал.: 0.00 [17:04:38]line Место: АЗС № 134 "Партнер Нефть" [17:04:38]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:04:38]line СНО: Общий режим [17:04:38]line Чек 69 29.07.2024 17:04 [17:04:38]line Смена: 434 ФФД: 1.0 [17:04:38]line ЗНМ: 0300000043 [17:04:38]line РНМ: 0000000000092663 [17:04:38]line Версия ККМ: 001 [17:04:38]line ФМ: 0000000000874937 [17:04:38]line ФД: 27166 [17:04:38]line ФПД: 198929985694337 [17:04:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T170443&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27166&fm=198929985694337&tin=02508201610067®Number=0000000000092663&sum=27600 [17:04:38]line 0 [17:04:38]OFD Sender: Processing packet 27166 [packets to send 9, broken 8] [17:04:38]ProducePacketName [17:04:38]name=ofd_packets/00027166 [17:04:38]OFD Sender: To server: pG, [17:04:38]CommunicateWithHost lk.salyk.kg:30040 [17:04:38]ConnectInit lk.salyk.kg [17:04:38]written 0, free lines is 4095 [17:04:38]Connected sock=10 [17:04:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 31 01 00 00 2A 18 29 01 FB AA 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 36 36 34 39 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 75 70 65 72 20 53 6C 69 6D 73 20 57 69 6E 74 65 72 20 46 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 D0 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 D0 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 45 00 00 00 F4 03 04 00 AB CB A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 1E 6A 00 00 35 04 06 00 B4 EC FF 21 EA 81 9F EE 48 00 9F 88 24 10 [17:04:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 73 FB 47 00 D8 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 34 39 33 37 10 04 04 00 1E 6A 00 00 F4 03 04 00 FB 71 A7 66 B6 04 01 00 00 4D 4E BC 6C 39 3A BA 6C [17:04:38]CommunicateWithHost err = 0 [17:04:38]CheckOFDResponse [17:04:38]1017 (14) - 77093643461234 [17:04:38]1041 (16) - 0000000000874937 [17:04:38]1040 (4) - 27166 [17:04:38]1012 (4) - 29.07.2024 10:42 [17:04:38]1206 (1) - 0 [17:04:38]OFD Sender: Remove packet 27166 [17:04:38]ProducePacketName [17:04:38]name=ofd_packets/00027166 [17:04:38]NVStorageDeleteData [17:04:38]Write to MH i2c: 01 00 00 F3 1F 12 [17:04:38]Write i2c OK [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: 01 [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: 01 07 00 [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: 01 07 00 F3 1F 00 00 00 00 00 E9 0C 0E [17:04:38]RasterBufferAndPrint [17:04:38]line [17:04:38]line [17:04:38]line [17:04:38]line [17:04:38]line [17:04:38]written 0, free lines is 3310 [17:04:38]MH_Cut [17:04:38]Write to MH i2c: D1 01 00 FA 1F 01 EB [17:04:38]Write i2c OK [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: D1 [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: D1 01 00 [17:04:38]MH_I2C_Read... [17:04:38]Read from MH i2c: D1 01 00 FA 1F 00 EA [17:04:38]Write to MH i2c: 01 00 00 FB 1F 1A [17:04:38]Write i2c OK [17:04:38]MH_I2C_Read... [17:04:39]OFD Sender: No OFD packet to send [17:04:39]*** Cut start [17:04:39]*** Partial cut [17:04:39]*** CUTSNS_PIN = 1 [17:04:39]*** CUTSNS_PIN = 0 [17:04:39]*** Brake cut motor [17:04:40]Read from MH i2c: 01 [17:04:40]MH_I2C_Read... [17:04:40]*** Stop cut motor [17:04:40]*** Cut end [17:04:40]Read from MH i2c: 01 07 00 [17:04:40]MH_I2C_Read... [17:04:40]Read from MH i2c: 01 07 00 FB 1F 00 00 00 00 00 FF 0F 2F [17:04:40]process_action close_receipt done [17:04:40]requested_data is exist [17:04:40]produce_requested_data [17:04:40]requested_item fm.sn is exist - process it [17:04:40]wFMCommunicate request_size=4 [17:04:40]MH_SAM_APDU [17:04:40]CAPDU: 80 11 00 00 [17:04:40]Write to MH i2c: E2 08 00 FC 1F 80 11 00 00 00 00 00 00 95 [17:04:40]Write i2c OK [17:04:40]MH_I2C_Read... [17:04:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:40]Read from MH i2c: E2 [17:04:40]MH_I2C_Read... [17:04:40]Read from MH i2c: E2 17 00 [17:04:40]MH_I2C_Read... [17:04:40]Read from MH i2c: E2 17 00 FC 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 EE [17:04:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [17:04:40]wFMCommunicate OK [17:04:40]requested_item fd.num is exist - process it [17:04:40]SAM_PROTO_GetFieldsCounters [17:04:40]wFMCommunicate request_size=4 [17:04:40]MH_SAM_APDU [17:04:40]CAPDU: 80 13 00 00 [17:04:40]Write to MH i2c: E2 08 00 FD 1F 80 13 00 00 00 00 00 00 98 [17:04:40]Write i2c OK [17:04:40]MH_I2C_Read... [17:04:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:04:40]Read from MH i2c: E2 [17:04:40]MH_I2C_Read... [17:04:40]Read from MH i2c: E2 62 00 [17:04:40]MH_I2C_Read... [17:04:40]Read from MH i2c: E2 62 00 FD 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 1E 6A 00 00 0E 04 04 00 B2 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 CA [17:04: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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 1E 6A 00 00 0E 04 04 00 B2 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 [17:04:40]wFMCommunicate OK [17:04:40]SAM_PROTO_GetFieldsCounters done [17:04:40]requested_item shift.num is exist - process it [17:04:40]requested_item shift.opened is exist - process it [17:04:40]req_shift_opened [17:04:40]FM_GetShiftState [17:04:40]SAM_PROTO_GetShiftState [17:04:40]wFMCommunicate request_size=4 [17:04:40]MH_SAM_APDU [17:04:40]CAPDU: 80 13 01 00 [17:04:40]Write to MH i2c: E2 08 00 FE 1F 80 13 01 00 00 00 00 00 9A [17:04:40]Write i2c OK [17:04:40]MH_I2C_Read... [17:04:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:40]Read from MH i2c: E2 [17:04:40]MH_I2C_Read... [17:04:40]Read from MH i2c: E2 0E 00 [17:04:40]MH_I2C_Read... [17:04:40]Read from MH i2c: E2 0E 00 FE 1F 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 1B [17:04:40]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [17:04:40]wFMCommunicate OK [17:04:40]SAM_PROTO_GetShiftState done [17:04:40]FM_GetShiftState done [17:04:40]req_shift_opened done [17:04:40]requested_item shift.open_date is exist - process it [17:04:40]req_shift_open_date [17:04:40]req_shift_open_date done [17:04:40]produce_requested_data done [17:04:40]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27166,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [17:04:40]process_action_free close_receipt [17:04:40]json_value_free [17:04:40]json_value_free done [17:04:40]process_json_proto returns [17:04:40]Send response to host [17:04:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27166,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [17:04:40]free response buf [17:04:40]execute_script done [17:04:40]execute_script returns [17:04:40]free content buf [17:04:40]Sock 8.Close socket [17:04:40]Sock 8.Thread stoped [17:04:44]OFD Sender: No OFD packet to send [17:04:49]OFD Sender: No OFD packet to send [17:04:54]OFD Sender: No OFD packet to send [17:04:59]OFD Sender: No OFD packet to send [17:05:04]OFD Sender: No OFD packet to send [17:05:09]OFD Sender: No OFD packet to send [17:05:14]OFD Sender: No OFD packet to send [17:05:19]OFD Sender: No OFD packet to send [17:05:24]OFD Sender: No OFD packet to send [17:05:29]OFD Sender: No OFD packet to send [17:05:34]OFD Sender: No OFD packet to send [17:05:39]OFD Sender: No OFD packet to send [17:05:44]OFD Sender: No OFD packet to send [17:05:49]OFD Sender: No OFD packet to send [17:05:54]OFD Sender: No OFD packet to send [17:05:59]OFD Sender: No OFD packet to send [17:06:04]OFD Sender: No OFD packet to send [17:06:09]OFD Sender: No OFD packet to send [17:06:14]OFD Sender: No OFD packet to send [17:06:19]OFD Sender: No OFD packet to send [17:06:24]OFD Sender: No OFD packet to send [17:06:29]OFD Sender: No OFD packet to send [17:06:30]accept exits with 9 [17:06:30]New connection [17:06:30]New thread 3066785124 created [17:06:30]Thread 3066928484 joined [17:06:30]Waiting for new connection... [17:06:30] Sock 9.Parse request [17:06:30]Sock 9.Check first char [17:06:30]Sock 9.First char is OK [17:06:30]request: POST /json_proto HTTP/1.0 [17:06:30]Method: POST [17:06:30]URL: /json_proto [17:06:30]Method is POST - this is cgi request [17:06:30]url: /json_proto [17:06:30]query_string will be loaded in cgi processing [17:06:30]execute_cgi json_proto POST (null) [17:06:30]execute_cgi path=json_proto method=POST [17:06:30]POST find Content-Length [17:06:30]Host: 172.17.45.8:8080 [17:06:30]Content-Length: 623 [17:06:30]Content-Type: application/json [17:06:30] [17:06:30]POST finish read [17:06:30]Found Content-Length = 623 [17:06:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150565", "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" ] } } [17:06:30]execute_script... [17:06: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)150565", "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" ] } } [17:06:30]POST & json_proto [17:06:30]process_json_proto [17:06:30]json parsed OK: [17:06:30]protocol is kg_v1.0 [17:06:30]action value=close_receipt [17:06:30]process_action close_receipt [17:06:30]cmd_close_receipt [17:06:30]MH_GetDate [17:06:30]Write to MH i2c: F0 00 00 FF 1F 0D [17:06:30]Write i2c OK [17:06:30]MH_I2C_Read... [17:06:30]Read from MH i2c: F0 [17:06:30]MH_I2C_Read... [17:06:30]Read from MH i2c: F0 09 00 [17:06:30]MH_I2C_Read... [17:06:30]Read from MH i2c: F0 09 00 FF 1F 00 1D CC A7 66 A6 1F 7F 64 B4 [17:06:30]GetLastDocTimeStamp 1722272683 [17:06:30]current date 1722272797 [17:06:30]FM_GetShiftState [17:06:30]SAM_PROTO_GetShiftState [17:06:30]wFMCommunicate request_size=4 [17:06:30]MH_SAM_APDU [17:06:30]CAPDU: 80 13 01 00 [17:06:30]Write to MH i2c: E2 08 00 00 20 80 13 01 00 00 00 00 00 9D [17:06:30]Write i2c OK [17:06:30]MH_I2C_Read... [17:06:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:30]Read from MH i2c: E2 [17:06:30]MH_I2C_Read... [17:06:30]Read from MH i2c: E2 0E 00 [17:06:30]MH_I2C_Read... [17:06:30]Read from MH i2c: E2 0E 00 00 20 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 1E [17:06:30]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [17:06:30]wFMCommunicate OK [17:06:30]SAM_PROTO_GetShiftState done [17:06:30]FM_GetShiftState done [17:06:30]opened in 1722213509 [17:06:30]opened+sec_in_day 1722299909 [17:06:30]quantity*price = 14000 [17:06:30]sum+1 = 14001 [17:06:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 70 29.07.2024 17:06 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27167 ФПД: 87358870359675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T170637&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27167&fm=87358870359675&tin=02508201610067®Number=0000000000092663&sum=14000 0 [17:06:31]StoreToDocumentArchive [17:06:31]shift 434 fd 27167 [17:06:31]save to /storage/0434/doc_00027167 [17:06:31]save last doc name /storage/0434/doc_00027167 to /storage/kkm_last_doc_name [17:06:31]save OK [17:06:31]Clear old archive folders... [17:06:31]ProcessDocumentItem done err = 0, tmpTLVsize=275 [17:06:31]tlvbuf is 00247780 [17:06:31]SAM_PROTO_ClearQueue [17:06:31]wFMCommunicate request_size=4 [17:06:31]MH_SAM_APDU [17:06:31]CAPDU: 80 09 00 00 [17:06:31]Write to MH i2c: E2 08 00 0D 20 80 09 00 00 00 00 00 00 9F [17:06:31]Write i2c OK [17:06:31]MH_I2C_Read... [17:06:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:31]Read from MH i2c: E2 [17:06:31]MH_I2C_Read... [17:06:31]Read from MH i2c: E2 03 00 [17:06:31]MH_I2C_Read... [17:06:31]Read from MH i2c: E2 03 00 0D 20 00 90 00 A1 [17:06:31]RAPDU: 90 00 [17:06:31]wFMCommunicate OK [17:06:31]SAM_PROTO_ClearQueue done [17:06:31]KKMCreateOFDPacket [17:06:31]OFDProtocolAddRootSTLVToBuf [17:06:31]FM_MakeSignedData [17:06:31]FM_MakeSignedData [17:06:31]SAM_PROTO_SignData [17:06:31]wFMCommunicate request_size=4 [17:06:31]MH_SAM_APDU [17:06:31]CAPDU: 80 0D 01 02 [17:06:31]Write to MH i2c: E2 08 00 0E 20 80 0D 01 02 00 00 00 00 A7 [17:06:31]Write i2c OK [17:06:31]MH_I2C_Read... [17:06:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:31]Read from MH i2c: E2 [17:06:31]MH_I2C_Read... [17:06:31]Read from MH i2c: E2 03 00 [17:06:31]MH_I2C_Read... [17:06:31]Read from MH i2c: E2 03 00 0E 20 00 90 00 A2 [17:06:31]RAPDU: 90 00 [17:06:31]wFMCommunicate OK [17:06:31]wFMCommunicate request_size=255 [17:06:31]MH_SAM_APDU [17:06:31]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 46 00 00 00 F4 03 04 00 1D CC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 [17:06:31]Write to MH i2c: E2 02 01 0F 20 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 46 00 00 00 F4 03 04 00 1D CC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 00 00 27 [17:06:31]Write i2c OK [17:06:31]MH_I2C_Read... [17:06:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:32]Read from MH i2c: E2 [17:06:32]MH_I2C_Read... [17:06:32]Read from MH i2c: E2 03 00 [17:06:32]MH_I2C_Read... [17:06:32]Read from MH i2c: E2 03 00 0F 20 00 90 00 A3 [17:06:32]RAPDU: 90 00 [17:06:32]wFMCommunicate OK [17:06:32]wFMCommunicate request_size=34 [17:06:32]MH_SAM_APDU [17:06:32]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 1F 6A 00 00 35 04 06 00 4F 73 D2 6F 8E 7B [17:06:32]Write to MH i2c: E2 25 00 10 20 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 1F 6A 00 00 35 04 06 00 4F 73 D2 6F 8E 7B 00 00 06 [17:06:32]Write i2c OK [17:06:32]MH_I2C_Read... [17:06:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:32]Read from MH i2c: E2 [17:06:32]MH_I2C_Read... [17:06:32]Read from MH i2c: E2 03 00 [17:06:32]MH_I2C_Read... [17:06:32]Read from MH i2c: E2 03 00 10 20 00 90 00 A4 [17:06:32]RAPDU: 90 00 [17:06:32]wFMCommunicate OK [17:06:32]wFMCommunicate request_size=4 [17:06:32]MH_SAM_APDU [17:06:32]CAPDU: 80 0D 03 02 [17:06:32]Write to MH i2c: E2 08 00 11 20 80 0D 03 02 00 00 00 00 AC [17:06:32]Write i2c OK [17:06:32]MH_I2C_Read... [17:06:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:32]Read from MH i2c: E2 [17:06:32]MH_I2C_Read... [17:06:32]Read from MH i2c: E2 0B 00 [17:06:32]MH_I2C_Read... [17:06:32]Read from MH i2c: E2 0B 00 11 20 00 7D 1D 1C FD A1 37 C1 E8 90 00 E1 [17:06:32]RAPDU: 7D 1D 1C FD A1 37 C1 E8 90 00 [17:06:32]wFMCommunicate OK [17:06:32]SAM_PROTO_SignData done [17:06:32]FM_MakeSignedData done [17:06:32]CreateOFDProtocolMessage [17:06:32]wFMCommunicate request_size=4 [17:06:32]MH_SAM_APDU [17:06:32]CAPDU: 80 11 00 00 [17:06:32]Write to MH i2c: E2 08 00 12 20 80 11 00 00 00 00 00 00 AC [17:06:32]Write i2c OK [17:06:32]MH_I2C_Read... [17:06:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:32]Read from MH i2c: E2 [17:06:32]MH_I2C_Read... [17:06:32]Read from MH i2c: E2 17 00 [17:06:32]MH_I2C_Read... [17:06:32]Read from MH i2c: E2 17 00 12 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 05 [17:06:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [17:06:32]wFMCommunicate OK [17:06:32]CreateOFDProtocolMessage done [17:06:32]OFDSenderStorePacket 27167 [17:06:32]StoreOFDPacket docnum=27167 [17:06:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 27 01 00 00 8F 9E 1F 01 E6 8B 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 46 00 00 00 F4 03 04 00 1D CC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 1F 6A 00 00 35 04 06 00 4F 73 D2 6F 8E 7B 7D 1D 1C FD A1 37 C1 E8 [17:06:32]CheckFolder [17:06:32]dirname=/storage/ofd_packets [17:06:32]CheckFolder done [17:06:32]ProducePacketName [17:06:32]name=ofd_packets/00027167 [17:06:32]NVStorageSaveData ofd_packets/00027167 [17:06:32]File name is /storage/ofd_packets/00027167 [17:06:32]Write 325 bytes [17:06:32]NVStorageSaveData done [17:06:32]OFDSenderStorePacket done [17:06:32]KKMCreateOFDPacket done [17:06:32]NVStorageSaveData kkm_last_timestamp [17:06:32]File name is /storage/kkm_last_timestamp [17:06:32]Write 4 bytes [17:06:32]NVStorageSaveData done [17:06:32]ExternCall_PrintAddStr [17:06:32]wPrintStart [17:06:32]Write to MH i2c: 01 00 00 13 20 33 [17:06:32]Write i2c OK [17:06:32]MH_I2C_Read... [17:06:32]Read from MH i2c: 01 [17:06:32]MH_I2C_Read... [17:06:32]Read from MH i2c: 01 07 00 [17:06:32]MH_I2C_Read... [17:06:32]Read from MH i2c: 01 07 00 13 20 00 00 00 00 00 FF 0F 48 [17:06:32]RasterBufferAndPrint [17:06:32]line Счет N : (3)150565 [17:06:32]line ИНН: 02508201610067 [17:06:32]line Контрольно-Кассовый Чек [17:06:32]line ПРОДАЖА [17:06:32]line Товар: 48743587 [17:06:32]line Сигареты Winston XStyle Silver [17:06:32]line 1.000 * 140.00 [17:06:32]line = 140.00 [17:06:32]line НДС 12% НСП 1% [17:06:32]line > о реализуемом товаре [17:06:32]line ИТОГО: 140.00 [17:06:32]line НСП 1% : 1.24 [17:06:32]line НДС 12% : 14.87 [17:06:32]line Наличными: 140.00 [17:06:32]line Безнал.: 0.00 [17:06:32]line Место: АЗС № 134 "Партнер Нефть" [17:06:32]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:06:32]line СНО: Общий режим [17:06:32]line Чек 70 29.07.2024 17:06 [17:06:32]line Смена: 434 ФФД: 1.0 [17:06:32]line ЗНМ: 0300000043 [17:06:32]line РНМ: 0000000000092663 [17:06:32]line Версия ККМ: 001 [17:06:32]line ФМ: 0000000000874937 [17:06:32]line ФД: 27167 [17:06:32]line ФПД: 87358870359675 [17:06:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T170637&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27167&fm=87358870359675&tin=02508201610067®Number=0000000000092663&sum=14000 [17:06:32]OFD Sender: Processing packet 27167 [packets to send 9, broken 8] [17:06:32]ProducePacketName [17:06:32]name=ofd_packets/00027167 [17:06:32]OFD Sender: To server: pG, [17:06:32]CommunicateWithHost lk.salyk.kg:30040 [17:06:32]ConnectInit lk.salyk.kg [17:06:32]line 0 [17:06:32]written 0, free lines is 4095 [17:06:32]Connected sock=10 [17:06:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 27 01 00 00 8F 9E 1F 01 E6 8B 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 46 00 00 00 F4 03 04 00 1D CC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 1F 6A 00 00 35 04 06 00 4F 73 D2 6F 8E 7B 7D 1D 1C FD A1 37 C1 E8 [17:06:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 09 BB 47 00 DB 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 1F 6A 00 00 F4 03 04 00 6D 72 A7 66 B6 04 01 00 00 A9 31 FC 29 FC BB EA 13 [17:06:32]CommunicateWithHost err = 0 [17:06:32]CheckOFDResponse [17:06:32]1017 (14) - 77093643461234 [17:06:32]1041 (16) - 0000000000874937 [17:06:32]1040 (4) - 27167 [17:06:32]1012 (4) - 29.07.2024 10:43 [17:06:32]1206 (1) - 0 [17:06:32]OFD Sender: Remove packet 27167 [17:06:32]ProducePacketName [17:06:32]name=ofd_packets/00027167 [17:06:32]NVStorageDeleteData [17:06:33]Write to MH i2c: 01 00 00 3B 20 5B [17:06:33]Write i2c OK [17:06:33]MH_I2C_Read... [17:06:33]Read from MH i2c: 01 [17:06:33]MH_I2C_Read... [17:06:33]Read from MH i2c: 01 07 00 [17:06:33]MH_I2C_Read... [17:06:33]Read from MH i2c: 01 07 00 3B 20 00 00 00 00 00 E5 0C 53 [17:06:33]RasterBufferAndPrint [17:06:33]line [17:06:33]line [17:06:33]line [17:06:33]line [17:06:33]line [17:06:33]written 0, free lines is 3306 [17:06:33]MH_Cut [17:06:33]Write to MH i2c: D1 01 00 42 20 01 34 [17:06:33]Write i2c OK [17:06:33]MH_I2C_Read... [17:06:33]Read from MH i2c: D1 [17:06:33]MH_I2C_Read... [17:06:33]Read from MH i2c: D1 01 00 [17:06:33]MH_I2C_Read... [17:06:33]Read from MH i2c: D1 01 00 42 20 00 33 [17:06:33]Write to MH i2c: 01 00 00 43 20 63 [17:06:33]Write i2c OK [17:06:33]MH_I2C_Read... [17:06:33]OFD Sender: No OFD packet to send [17:06:33]*** Cut start [17:06:33]*** Partial cut [17:06:33]*** CUTSNS_PIN = 1 [17:06:33]*** CUTSNS_PIN = 0 [17:06:34]*** Brake cut motor [17:06:34]Read from MH i2c: 01 [17:06:34]MH_I2C_Read... [17:06:34]*** Stop cut motor [17:06:34]*** Cut end [17:06:34]Read from MH i2c: 01 07 00 [17:06:34]MH_I2C_Read... [17:06:34]Read from MH i2c: 01 07 00 43 20 00 00 00 00 00 FF 0F 78 [17:06:34]process_action close_receipt done [17:06:34]requested_data is exist [17:06:34]produce_requested_data [17:06:34]requested_item fm.sn is exist - process it [17:06:34]wFMCommunicate request_size=4 [17:06:34]MH_SAM_APDU [17:06:34]CAPDU: 80 11 00 00 [17:06:34]Write to MH i2c: E2 08 00 44 20 80 11 00 00 00 00 00 00 DE [17:06:34]Write i2c OK [17:06:34]MH_I2C_Read... [17:06:34]Read from MH i2c: E2 [17:06:34]MH_I2C_Read... [17:06:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:34]Read from MH i2c: E2 17 00 [17:06:34]MH_I2C_Read... [17:06:34]Read from MH i2c: E2 17 00 44 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 37 [17:06:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [17:06:34]wFMCommunicate OK [17:06:34]requested_item fd.num is exist - process it [17:06:34]SAM_PROTO_GetFieldsCounters [17:06:34]wFMCommunicate request_size=4 [17:06:34]MH_SAM_APDU [17:06:34]CAPDU: 80 13 00 00 [17:06:34]Write to MH i2c: E2 08 00 45 20 80 13 00 00 00 00 00 00 E1 [17:06:34]Write i2c OK [17:06:34]MH_I2C_Read... [17:06:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:34]Read from MH i2c: E2 [17:06:34]MH_I2C_Read... [17:06:34]Read from MH i2c: E2 62 00 [17:06:34]MH_I2C_Read... [17:06:34]Read from MH i2c: E2 62 00 45 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 1F 6A 00 00 0E 04 04 00 B2 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 17 [17:06:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 1F 6A 00 00 0E 04 04 00 B2 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 [17:06:34]wFMCommunicate OK [17:06:34]SAM_PROTO_GetFieldsCounters done [17:06:34]requested_item shift.num is exist - process it [17:06:34]requested_item shift.opened is exist - process it [17:06:34]req_shift_opened [17:06:34]FM_GetShiftState [17:06:34]SAM_PROTO_GetShiftState [17:06:34]wFMCommunicate request_size=4 [17:06:34]MH_SAM_APDU [17:06:34]CAPDU: 80 13 01 00 [17:06:34]Write to MH i2c: E2 08 00 46 20 80 13 01 00 00 00 00 00 E3 [17:06:34]Write i2c OK [17:06:34]MH_I2C_Read... [17:06:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:34]Read from MH i2c: E2 [17:06:34]MH_I2C_Read... [17:06:34]Read from MH i2c: E2 0E 00 [17:06:34]MH_I2C_Read... [17:06:34]Read from MH i2c: E2 0E 00 46 20 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 64 [17:06:34]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [17:06:34]wFMCommunicate OK [17:06:34]SAM_PROTO_GetShiftState done [17:06:34]FM_GetShiftState done [17:06:34]req_shift_opened done [17:06:34]requested_item shift.open_date is exist - process it [17:06:34]req_shift_open_date [17:06:34]req_shift_open_date done [17:06:34]produce_requested_data done [17:06:34]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27167,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [17:06:34]process_action_free close_receipt [17:06:34]json_value_free [17:06:34]json_value_free done [17:06:34]process_json_proto returns [17:06:34]Send response to host [17:06:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27167,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [17:06:34]free response buf [17:06:34]execute_script done [17:06:34]execute_script returns [17:06:34]free content buf [17:06:34]Sock 9.Close socket [17:06:34]Sock 9.Thread stoped [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:08]OFD Sender: No OFD packet to send [17:07:13]OFD Sender: No OFD packet to send [17:07:18]OFD Sender: No OFD packet to send [17:07: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:08]OFD Sender: No OFD packet to send [17:14:13]OFD Sender: No OFD packet to send [17:14:18]OFD Sender: No OFD packet to send [17:14:23]OFD Sender: No OFD packet to send [17:14:28]OFD Sender: No OFD packet to send [17:14:33]OFD Sender: No OFD packet to send [17:14:38]OFD Sender: No OFD packet to send [17:14:43]OFD Sender: No OFD packet to send [17:14:48]OFD Sender: No OFD packet to send [17:14:53]OFD Sender: No OFD packet to send [17:14:58]OFD Sender: No OFD packet to send [17:15:03]OFD Sender: No OFD packet to send [17:15:08]OFD Sender: No OFD packet to send [17:15:13]OFD Sender: No OFD packet to send [17:15:18]OFD Sender: No OFD packet to send [17:15:23]OFD Sender: No OFD packet to send [17:15:28]OFD Sender: No OFD packet to send [17:15:33]OFD Sender: No OFD packet to send [17:15:38]OFD Sender: No OFD packet to send [17:15:43]OFD Sender: No OFD packet to send [17:15:48]OFD Sender: No OFD packet to send [17:15:53]OFD Sender: No OFD packet to send [17:15:58]OFD Sender: No OFD packet to send [17:16:03]OFD Sender: No OFD packet to send [17:16:08]OFD Sender: No OFD packet to send [17:16:13]OFD Sender: No OFD packet to send [17:16:18]OFD Sender: No OFD packet to send [17:16:23]OFD Sender: No OFD packet to send [17:16:28]OFD Sender: No OFD packet to send [17:16:33]OFD Sender: No OFD packet to send [17:16:38]OFD Sender: No OFD packet to send [17:16:43]OFD Sender: No OFD packet to send [17:16:48]OFD Sender: No OFD packet to send [17:16:53]OFD Sender: No OFD packet to send [17:16:58]OFD Sender: No OFD packet to send [17:17:03]OFD Sender: No OFD packet to send [17:17:08]OFD Sender: No OFD packet to send [17:17:13]OFD Sender: No OFD packet to send [17:17:18]OFD Sender: No OFD packet to send [17:17:23]OFD Sender: No OFD packet to send [17:17:28]OFD Sender: No OFD packet to send [17:17:33]OFD Sender: No OFD packet to send [17:17:38]OFD Sender: No OFD packet to send [17:17:43]OFD Sender: No OFD packet to send [17:17:48]OFD Sender: No OFD packet to send [17:17:53]OFD Sender: No OFD packet to send [17:17:58]OFD Sender: No OFD packet to send [17:18:03]OFD Sender: No OFD packet to send [17:18:08]OFD Sender: No OFD packet to send [17:18:13]OFD Sender: No OFD packet to send [17:18:18]OFD Sender: No OFD packet to send [17:18:23]OFD Sender: No OFD packet to send [17:18:28]OFD Sender: No OFD packet to send [17:18:33]OFD Sender: No OFD packet to send [17:18:38]OFD Sender: No OFD packet to send [17:18:43]OFD Sender: No OFD packet to send [17:18:48]OFD Sender: No OFD packet to send [17:18:53]OFD Sender: No OFD packet to send [17:18:58]OFD Sender: No OFD packet to send [17:19:03]OFD Sender: No OFD packet to send [17:19:08]OFD Sender: No OFD packet to send [17:19:13]OFD Sender: No OFD packet to send [17:19:18]OFD Sender: No OFD packet to send [17:19:23]OFD Sender: No OFD packet to send [17:19:28]OFD Sender: No OFD packet to send [17:19:33]OFD Sender: No OFD packet to send [17:19:38]OFD Sender: No OFD packet to send [17:19:44]OFD Sender: No OFD packet to send [17:19:49]OFD Sender: No OFD packet to send [17:19:54]OFD Sender: No OFD packet to send [17:19:59]OFD Sender: No OFD packet to send [17:20:04]OFD Sender: No OFD packet to send [17:20:09]OFD Sender: No OFD packet to send [17:20:14]OFD Sender: No OFD packet to send [17:20:19]OFD Sender: No OFD packet to send [17:20:24]OFD Sender: No OFD packet to send [17:20:29]OFD Sender: No OFD packet to send [17:20:34]OFD Sender: No OFD packet to send [17:20:39]OFD Sender: No OFD packet to send [17:20:44]OFD Sender: No OFD packet to send [17:20:49]OFD Sender: No OFD packet to send [17:20:54]OFD Sender: No OFD packet to send [17:20:59]OFD Sender: No OFD packet to send [17:21:04]OFD Sender: No OFD packet to send [17:21:09]OFD Sender: No OFD packet to send [17:21:14]OFD Sender: No OFD packet to send [17:21:19]OFD Sender: No OFD packet to send [17:21:24]OFD Sender: No OFD packet to send [17:21:29]OFD Sender: No OFD packet to send [17:21:34]OFD Sender: No OFD packet to send [17:21:39]OFD Sender: No OFD packet to send [17:21:44]OFD Sender: No OFD packet to send [17:21:49]OFD Sender: No OFD packet to send [17:21:54]OFD Sender: No OFD packet to send [17:21:59]OFD Sender: No OFD packet to send [17:22:04]OFD Sender: No OFD packet to send [17:22:09]OFD Sender: No OFD packet to send [17:22:14]OFD Sender: No OFD packet to send [17:22:19]OFD Sender: No OFD packet to send [17:22:24]OFD Sender: No OFD packet to send [17:22:29]OFD Sender: No OFD packet to send [17:22:34]OFD Sender: No OFD packet to send [17:22:39]OFD Sender: No OFD packet to send [17:22:44]OFD Sender: No OFD packet to send [17:22:49]OFD Sender: No OFD packet to send [17:22:54]OFD Sender: No OFD packet to send [17:22:59]OFD Sender: No OFD packet to send [17:23:04]OFD Sender: No OFD packet to send [17:23:09]OFD Sender: No OFD packet to send [17:23:14]OFD Sender: No OFD packet to send [17:23:19]OFD Sender: No OFD packet to send [17:23:24]OFD Sender: No OFD packet to send [17:23:29]OFD Sender: No OFD packet to send [17:23:34]OFD Sender: No OFD packet to send [17:23:39]OFD Sender: No OFD packet to send [17:23:44]OFD Sender: No OFD packet to send [17:23:49]OFD Sender: No OFD packet to send [17:23:54]OFD Sender: No OFD packet to send [17:23:59]OFD Sender: No OFD packet to send [17:24:04]OFD Sender: No OFD packet to send [17:24:09]OFD Sender: No OFD packet to send [17:24:14]OFD Sender: No OFD packet to send [17:24:19]OFD Sender: No OFD packet to send [17:24:24]OFD Sender: No OFD packet to send [17:24:29]OFD Sender: No OFD packet to send [17:24:34]OFD Sender: No OFD packet to send [17:24:39]OFD Sender: No OFD packet to send [17:24:44]OFD Sender: No OFD packet to send [17:24:49]OFD Sender: No OFD packet to send [17:24:54]OFD Sender: No OFD packet to send [17:24:59]OFD Sender: No OFD packet to send [17:25:04]OFD Sender: No OFD packet to send [17:25:09]OFD Sender: No OFD packet to send [17:25:14]OFD Sender: No OFD packet to send [17:25:19]OFD Sender: No OFD packet to send [17:25:24]OFD Sender: No OFD packet to send [17:25:29]OFD Sender: No OFD packet to send [17:25:34]OFD Sender: No OFD packet to send [17:25:39]OFD Sender: No OFD packet to send [17:25:44]OFD Sender: No OFD packet to send [17:25:49]OFD Sender: No OFD packet to send [17:25:54]OFD Sender: No OFD packet to send [17:25:59]OFD Sender: No OFD packet to send [17:26:04]OFD Sender: No OFD packet to send [17:26:09]OFD Sender: No OFD packet to send [17:26:14]OFD Sender: No OFD packet to send [17:26:19]OFD Sender: No OFD packet to send [17:26:24]OFD Sender: No OFD packet to send [17:26:29]OFD Sender: No OFD packet to send [17:26:34]OFD Sender: No OFD packet to send [17:26:39]OFD Sender: No OFD packet to send [17:26:44]OFD Sender: No OFD packet to send [17:26:49]OFD Sender: No OFD packet to send [17:26:54]OFD Sender: No OFD packet to send [17:26:59]OFD Sender: No OFD packet to send [17:27:04]OFD Sender: No OFD packet to send [17:27:09]OFD Sender: No OFD packet to send [17:27:14]OFD Sender: No OFD packet to send [17:27:19]OFD Sender: No OFD packet to send [17:27:24]OFD Sender: No OFD packet to send [17:27:29]OFD Sender: No OFD packet to send [17:27:34]OFD Sender: No OFD packet to send [17:27:39]OFD Sender: No OFD packet to send [17:27:44]OFD Sender: No OFD packet to send [17:27:49]OFD Sender: No OFD packet to send [17:27:54]OFD Sender: No OFD packet to send [17:27:59]OFD Sender: No OFD packet to send [17:28:04]OFD Sender: No OFD packet to send [17:28:09]OFD Sender: No OFD packet to send [17:28:14]OFD Sender: No OFD packet to send [17:28:19]OFD Sender: No OFD packet to send [17:28:24]OFD Sender: No OFD packet to send [17:28:29]OFD Sender: No OFD packet to send [17:28:34]OFD Sender: No OFD packet to send [17:28:39]OFD Sender: No OFD packet to send [17:28:44]OFD Sender: No OFD packet to send [17:28:49]OFD Sender: No OFD packet to send [17:28:54]OFD Sender: No OFD packet to send [17:28:59]OFD Sender: No OFD packet to send [17:29:04]OFD Sender: No OFD packet to send [17:29:09]OFD Sender: No OFD packet to send [17:29:14]OFD Sender: No OFD packet to send [17:29:19]OFD Sender: No OFD packet to send [17:29:24]OFD Sender: No OFD packet to send [17:29:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:44]OFD Sender: No OFD packet to send [17:29:49]OFD Sender: No OFD packet to send [17:29:54]OFD Sender: No OFD packet to send [17:29:59]OFD Sender: No OFD packet to send [17:30:04]OFD Sender: No OFD packet to send [17:30:09]OFD Sender: No OFD packet to send [17:30:14]OFD Sender: No OFD packet to send [17:30:19]OFD Sender: No OFD packet to send [17:30:24]OFD Sender: No OFD packet to send [17:30:29]OFD Sender: No OFD packet to send [17:30:34]OFD Sender: No OFD packet to send [17:30:39]OFD Sender: No OFD packet to send [17:30:44]OFD Sender: No OFD packet to send [17:30:49]OFD Sender: No OFD packet to send [17:30:54]OFD Sender: No OFD packet to send [17:30:59]OFD Sender: No OFD packet to send [17:31:04]OFD Sender: No OFD packet to send [17:31:09]OFD Sender: No OFD packet to send [17:31:14]OFD Sender: No OFD packet to send [17:31:19]OFD Sender: No OFD packet to send [17:31:24]OFD Sender: No OFD packet to send [17:31:29]OFD Sender: No OFD packet to send [17:31:34]OFD Sender: No OFD packet to send [17:31:39]OFD Sender: No OFD packet to send [17:31:44]OFD Sender: No OFD packet to send [17:31:49]OFD Sender: No OFD packet to send [17:31:54]OFD Sender: No OFD packet to send [17:31:59]OFD Sender: No OFD packet to send [17:32:04]OFD Sender: No OFD packet to send [17:32:09]OFD Sender: No OFD packet to send [17:32:14]OFD Sender: No OFD packet to send [17:32:19]OFD Sender: No OFD packet to send [17:32:24]OFD Sender: No OFD packet to send [17:32:29]OFD Sender: No OFD packet to send [17:32:34]OFD Sender: No OFD packet to send [17:32:39]OFD Sender: No OFD packet to send [17:32:44]OFD Sender: No OFD packet to send [17:32:49]OFD Sender: No OFD packet to send [17:32:54]OFD Sender: No OFD packet to send [17:32:59]OFD Sender: No OFD packet to send [17:33:04]OFD Sender: No OFD packet to send [17:33:09]OFD Sender: No OFD packet to send [17:33:14]OFD Sender: No OFD packet to send [17:33:19]OFD Sender: No OFD packet to send [17:33:24]OFD Sender: No OFD packet to send [17:33:29]OFD Sender: No OFD packet to send [17:33:34]OFD Sender: No OFD packet to send [17:33:39]OFD Sender: No OFD packet to send [17:33:44]OFD Sender: No OFD packet to send [17:33:49]OFD Sender: No OFD packet to send [17:33:54]OFD Sender: No OFD packet to send [17:33:59]OFD Sender: No OFD packet to send [17:34:04]OFD Sender: No OFD packet to send [17:34:09]OFD Sender: No OFD packet to send [17:34:14]OFD Sender: No OFD packet to send [17:34:19]OFD Sender: No OFD packet to send [17:34:24]OFD Sender: No OFD packet to send [17:34:29]OFD Sender: No OFD packet to send [17:34:34]OFD Sender: No OFD packet to send [17:34:39]OFD Sender: No OFD packet to send [17:34:44]OFD Sender: No OFD packet to send [17:34:49]OFD Sender: No OFD packet to send [17:34:54]OFD Sender: No OFD packet to send [17:34:59]OFD Sender: No OFD packet to send [17:35:04]OFD Sender: No OFD packet to send [17:35:09]OFD Sender: No OFD packet to send [17:35:14]OFD Sender: No OFD packet to send [17:35:19]OFD Sender: No OFD packet to send [17:35:24]OFD Sender: No OFD packet to send [17:35:29]OFD Sender: No OFD packet to send [17:35:34]OFD Sender: No OFD packet to send [17:35:39]OFD Sender: No OFD packet to send [17:35:44]OFD Sender: No OFD packet to send [17:35:49]OFD Sender: No OFD packet to send [17:35:54]OFD Sender: No OFD packet to send [17:35:59]OFD Sender: No OFD packet to send [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:24]OFD Sender: No OFD packet to send [17:36:29]OFD Sender: No OFD packet to send [17:36:34]OFD Sender: No OFD packet to send [17:36:39]OFD Sender: No OFD packet to send [17:36:44]OFD Sender: No OFD packet to send [17:36:49]OFD Sender: No OFD packet to send [17:36:54]OFD Sender: No OFD packet to send [17:36:59]OFD Sender: No OFD packet to send [17:37:04]OFD Sender: No OFD packet to send [17:37:09]OFD Sender: No OFD packet to send [17:37:14]OFD Sender: No OFD packet to send [17:37:19]OFD Sender: No OFD packet to send [17:37:24]OFD Sender: No OFD packet to send [17:37:29]OFD Sender: No OFD packet to send [17:37:34]OFD Sender: No OFD packet to send [17:37:39]OFD Sender: No OFD packet to send [17:37:44]OFD Sender: No OFD packet to send [17:37:49]OFD Sender: No OFD packet to send [17:37:54]OFD Sender: No OFD packet to send [17:37:59]OFD Sender: No OFD packet to send [17:38:04]OFD Sender: No OFD packet to send [17:38:09]OFD Sender: No OFD packet to send [17:38:14]OFD Sender: No OFD packet to send [17:38:19]OFD Sender: No OFD packet to send [17:38:24]OFD Sender: No OFD packet to send [17:38:29]OFD Sender: No OFD packet to send [17:38:34]OFD Sender: No OFD packet to send [17:38:39]OFD Sender: No OFD packet to send [17:38:44]OFD Sender: No OFD packet to send [17:38:49]OFD Sender: No OFD packet to send [17:38:54]OFD Sender: No OFD packet to send [17:38:59]OFD Sender: No OFD packet to send [17:39:04]OFD Sender: No OFD packet to send [17:39:09]OFD Sender: No OFD packet to send [17:39:14]OFD Sender: No OFD packet to send [17:39:19]OFD Sender: No OFD packet to send [17:39:24]OFD Sender: No OFD packet to send [17:39:29]OFD Sender: No OFD packet to send [17:39:34]OFD Sender: No OFD packet to send [17:39:39]OFD Sender: No OFD packet to send [17:39:44]OFD Sender: No OFD packet to send [17:39:49]OFD Sender: No OFD packet to send [17:39:54]OFD Sender: No OFD packet to send [17:39:59]OFD Sender: No OFD packet to send [17:40:04]OFD Sender: No OFD packet to send [17:40:09]OFD Sender: No OFD packet to send [17:40:14]OFD Sender: No OFD packet to send [17:40:19]OFD Sender: No OFD packet to send [17:40:24]OFD Sender: No OFD packet to send [17:40:29]OFD Sender: No OFD packet to send [17:40:34]OFD Sender: No OFD packet to send [17:40:39]OFD Sender: No OFD packet to send [17:40:44]OFD Sender: No OFD packet to send [17:40:49]OFD Sender: No OFD packet to send [17:40:54]OFD Sender: No OFD packet to send [17:41:00]OFD Sender: No OFD packet to send [17:41:05]OFD Sender: No OFD packet to send [17:41:10]OFD Sender: No OFD packet to send [17:41:15]OFD Sender: No OFD packet to send [17:41:20]OFD Sender: No OFD packet to send [17:41:25]OFD Sender: No OFD packet to send [17:41:30]OFD Sender: No OFD packet to send [17:41:35]OFD Sender: No OFD packet to send [17:41:40]OFD Sender: No OFD packet to send [17:41:45]OFD Sender: No OFD packet to send [17:41:50]OFD Sender: No OFD packet to send [17:41:55]OFD Sender: No OFD packet to send [17:42:00]OFD Sender: No OFD packet to send [17:42:05]OFD Sender: No OFD packet to send [17:42:10]OFD Sender: No OFD packet to send [17:42:15]OFD Sender: No OFD packet to send [17:42:20]OFD Sender: No OFD packet to send [17:42:25]OFD Sender: No OFD packet to send [17:42:30]OFD Sender: No OFD packet to send [17:42:35]OFD Sender: No OFD packet to send [17:42:40]OFD Sender: No OFD packet to send [17:42:45]OFD Sender: No OFD packet to send [17:42:50]OFD Sender: No OFD packet to send [17:42:55]OFD Sender: No OFD packet to send [17:43:00]OFD Sender: No OFD packet to send [17:43:05]OFD Sender: No OFD packet to send [17:43:10]OFD Sender: No OFD packet to send [17:43:15]OFD Sender: No OFD packet to send [17:43:20]OFD Sender: No OFD packet to send [17:43:25]OFD Sender: No OFD packet to send [17:43:30]OFD Sender: No OFD packet to send [17:43:35]OFD Sender: No OFD packet to send [17:43:40]OFD Sender: No OFD packet to send [17:43:45]OFD Sender: No OFD packet to send [17:43:50]OFD Sender: No OFD packet to send [17:43:55]OFD Sender: No OFD packet to send [17:44:00]OFD Sender: No OFD packet to send [17:44:05]OFD Sender: No OFD packet to send [17:44:10]OFD Sender: No OFD packet to send [17:44:15]OFD Sender: No OFD packet to send [17:44:20]OFD Sender: No OFD packet to send [17:44:25]OFD Sender: No OFD packet to send [17:44:30]OFD Sender: No OFD packet to send [17:44:35]OFD Sender: No OFD packet to send [17:44:40]OFD Sender: No OFD packet to send [17:44:45]OFD Sender: No OFD packet to send [17:44:50]OFD Sender: No OFD packet to send [17:44:55]OFD Sender: No OFD packet to send [17:45:00]OFD Sender: No OFD packet to send [17:45:05]OFD Sender: No OFD packet to send [17:45:10]OFD Sender: No OFD packet to send [17:45:15]OFD Sender: No OFD packet to send [17:45:20]OFD Sender: No OFD packet to send [17:45:25]OFD Sender: No OFD packet to send [17:45:30]OFD Sender: No OFD packet to send [17:45:35]OFD Sender: No OFD packet to send [17:45:40]OFD Sender: No OFD packet to send [17:45:45]OFD Sender: No OFD packet to send [17:45:50]OFD Sender: No OFD packet to send [17:45:55]OFD Sender: No OFD packet to send [17:46:00]OFD Sender: No OFD packet to send [17:46:05]OFD Sender: No OFD packet to send [17:46:10]OFD Sender: No OFD packet to send [17:46:15]OFD Sender: No OFD packet to send [17:46:20]OFD Sender: No OFD packet to send [17:46:25]OFD Sender: No OFD packet to send [17:46:30]OFD Sender: No OFD packet to send [17:46:35]OFD Sender: No OFD packet to send [17:46:40]OFD Sender: No OFD packet to send [17:46:45]OFD Sender: No OFD packet to send [17:46:50]OFD Sender: No OFD packet to send [17:46:55]OFD Sender: No OFD packet to send [17:47:00]OFD Sender: No OFD packet to send [17:47:05]OFD Sender: No OFD packet to send [17:47:10]OFD Sender: No OFD packet to send [17:47:15]OFD Sender: No OFD packet to send [17:47:20]OFD Sender: No OFD packet to send [17:47:25]OFD Sender: No OFD packet to send [17:47:30]OFD Sender: No OFD packet to send [17:47:35]OFD Sender: No OFD packet to send [17:47:40]OFD Sender: No OFD packet to send [17:47:45]OFD Sender: No OFD packet to send [17:47:50]OFD Sender: No OFD packet to send [17:47:55]OFD Sender: No OFD packet to send [17:48:00]OFD Sender: No OFD packet to send [17:48:05]OFD Sender: No OFD packet to send [17:48:10]OFD Sender: No OFD packet to send [17:48:15]OFD Sender: No OFD packet to send [17:48:20]OFD Sender: No OFD packet to send [17:48:25]OFD Sender: No OFD packet to send [17:48:30]OFD Sender: No OFD packet to send [17:48:35]OFD Sender: No OFD packet to send [17:48:40]OFD Sender: No OFD packet to send [17:48:45]OFD Sender: No OFD packet to send [17:48:50]OFD Sender: No OFD packet to send [17:48:55]OFD Sender: No OFD packet to send [17:49:00]OFD Sender: No OFD packet to send [17:49:05]OFD Sender: No OFD packet to send [17:49:10]OFD Sender: No OFD packet to send [17:49:15]OFD Sender: No OFD packet to send [17:49:20]OFD Sender: No OFD packet to send [17:49:25]OFD Sender: No OFD packet to send [17:49:30]OFD Sender: No OFD packet to send [17:49:35]OFD Sender: No OFD packet to send [17:49:40]OFD Sender: No OFD packet to send [17:49:45]OFD Sender: No OFD packet to send [17:49:50]OFD Sender: No OFD packet to send [17:49:55]OFD Sender: No OFD packet to send [17:50:00]OFD Sender: No OFD packet to send [17:50:05]OFD Sender: No OFD packet to send [17:50:10]OFD Sender: No OFD packet to send [17:50:15]OFD Sender: No OFD packet to send [17:50:20]OFD Sender: No OFD packet to send [17:50:22]accept exits with 8 [17:50:22]New connection [17:50:22]New thread 3066928484 created [17:50:22]Thread 3066785124 joined [17:50:22]Waiting for new connection... [17:50:22] Sock 8.Parse request [17:50:22]Sock 8.Check first char [17:50:22]Sock 8.First char is OK [17:50:22]request: POST /json_proto HTTP/1.0 [17:50:22]Method: POST [17:50:22]URL: /json_proto [17:50:22]Method is POST - this is cgi request [17:50:22]url: /json_proto [17:50:22]query_string will be loaded in cgi processing [17:50:22]execute_cgi json_proto POST (null) [17:50:22]execute_cgi path=json_proto method=POST [17:50:22]POST find Content-Length [17:50:22]Host: 172.17.45.8:8080 [17:50:22]Content-Length: 614 [17:50:22]Content-Type: application/json [17:50:22] [17:50:22]POST finish read [17:50:22]Found Content-Length = 614 [17:50:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150566", "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" ] } } [17:50:22]execute_script... [17:50:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150566", "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" ] } } [17:50:22]POST & json_proto [17:50:22]process_json_proto [17:50:22]json parsed OK: [17:50:22]protocol is kg_v1.0 [17:50:22]action value=close_receipt [17:50:22]process_action close_receipt [17:50:22]cmd_close_receipt [17:50:22]MH_GetDate [17:50:22]Write to MH i2c: F0 00 00 47 20 56 [17:50:22]Write i2c OK [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: F0 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: F0 09 00 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: F0 09 00 47 20 00 65 D6 A7 66 A6 1F 7F 64 4F [17:50:22]GetLastDocTimeStamp 1722272797 [17:50:22]current date 1722275429 [17:50:22]FM_GetShiftState [17:50:22]SAM_PROTO_GetShiftState [17:50:22]wFMCommunicate request_size=4 [17:50:22]MH_SAM_APDU [17:50:22]CAPDU: 80 13 01 00 [17:50:22]Write to MH i2c: E2 08 00 48 20 80 13 01 00 00 00 00 00 E5 [17:50:22]Write i2c OK [17:50:22]MH_I2C_Read... [17:50:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:22]Read from MH i2c: E2 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: E2 0E 00 [17:50:22]MH_I2C_Read... [17:50:22]Read from MH i2c: E2 0E 00 48 20 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 66 [17:50:22]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [17:50:22]wFMCommunicate OK [17:50:22]SAM_PROTO_GetShiftState done [17:50:22]FM_GetShiftState done [17:50:22]opened in 1722213509 [17:50:22]opened+sec_in_day 1722299909 [17:50:22]quantity*price = 21000 [17:50:22]sum+1 = 21001 [17:50:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 71 29.07.2024 17:50 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27168 ФПД: 244804260835053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175029&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27168&fm=244804260835053&tin=02508201610067®Number=0000000000092663&sum=21000 0 [17:50:23]StoreToDocumentArchive [17:50:23]shift 434 fd 27168 [17:50:23]save to /storage/0434/doc_00027168 [17:50:23]save last doc name /storage/0434/doc_00027168 to /storage/kkm_last_doc_name [17:50:23]save OK [17:50:23]Clear old archive folders... [17:50:23]ProcessDocumentItem done err = 0, tmpTLVsize=266 [17:50:23]tlvbuf is B6F4F580 [17:50:23]SAM_PROTO_ClearQueue [17:50:23]wFMCommunicate request_size=4 [17:50:23]MH_SAM_APDU [17:50:23]CAPDU: 80 09 00 00 [17:50:23]Write to MH i2c: E2 08 00 55 20 80 09 00 00 00 00 00 00 E7 [17:50:23]Write i2c OK [17:50:23]MH_I2C_Read... [17:50:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:23]Read from MH i2c: E2 [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: E2 03 00 [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: E2 03 00 55 20 00 90 00 E9 [17:50:23]RAPDU: 90 00 [17:50:23]wFMCommunicate OK [17:50:23]SAM_PROTO_ClearQueue done [17:50:23]KKMCreateOFDPacket [17:50:23]OFDProtocolAddRootSTLVToBuf [17:50:23]FM_MakeSignedData [17:50:23]FM_MakeSignedData [17:50:23]SAM_PROTO_SignData [17:50:23]wFMCommunicate request_size=4 [17:50:23]MH_SAM_APDU [17:50:23]CAPDU: 80 0D 01 02 [17:50:23]Write to MH i2c: E2 08 00 56 20 80 0D 01 02 00 00 00 00 EF [17:50:23]Write i2c OK [17:50:23]MH_I2C_Read... [17:50:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:23]Read from MH i2c: E2 [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: E2 03 00 [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: E2 03 00 56 20 00 90 00 EA [17:50:23]RAPDU: 90 00 [17:50:23]wFMCommunicate OK [17:50:23]wFMCommunicate request_size=255 [17:50:23]MH_SAM_APDU [17:50:23]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 47 00 00 00 F4 03 04 00 65 D6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 [17:50:23]Write to MH i2c: E2 02 01 57 20 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 47 00 00 00 F4 03 04 00 65 D6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 00 00 17 [17:50:23]Write i2c OK [17:50:23]MH_I2C_Read... [17:50:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:23]Read from MH i2c: E2 [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: E2 03 00 [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: E2 03 00 57 20 00 90 00 EB [17:50:23]RAPDU: 90 00 [17:50:23]wFMCommunicate OK [17:50:23]wFMCommunicate request_size=25 [17:50:23]MH_SAM_APDU [17:50:23]CAPDU: 80 0D 02 02 14 33 37 10 04 04 00 20 6A 00 00 35 04 06 00 DE A5 EF 01 AE ED [17:50:23]Write to MH i2c: E2 1C 00 58 20 80 0D 02 02 14 00 33 37 10 04 04 00 20 6A 00 00 35 04 06 00 DE A5 EF 01 AE ED 00 00 73 [17:50:23]Write i2c OK [17:50:23]MH_I2C_Read... [17:50:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:23]Read from MH i2c: E2 [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: E2 03 00 [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: E2 03 00 58 20 00 90 00 EC [17:50:23]RAPDU: 90 00 [17:50:23]wFMCommunicate OK [17:50:23]wFMCommunicate request_size=4 [17:50:23]MH_SAM_APDU [17:50:23]CAPDU: 80 0D 03 02 [17:50:23]Write to MH i2c: E2 08 00 59 20 80 0D 03 02 00 00 00 00 F4 [17:50:23]Write i2c OK [17:50:23]MH_I2C_Read... [17:50:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:23]Read from MH i2c: E2 [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: E2 0B 00 [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: E2 0B 00 59 20 00 55 82 9B A9 C5 51 B8 A5 90 00 83 [17:50:23]RAPDU: 55 82 9B A9 C5 51 B8 A5 90 00 [17:50:23]wFMCommunicate OK [17:50:23]SAM_PROTO_SignData done [17:50:23]FM_MakeSignedData done [17:50:23]CreateOFDProtocolMessage [17:50:23]wFMCommunicate request_size=4 [17:50:23]MH_SAM_APDU [17:50:23]CAPDU: 80 11 00 00 [17:50:23]Write to MH i2c: E2 08 00 5A 20 80 11 00 00 00 00 00 00 F4 [17:50:23]Write i2c OK [17:50:23]MH_I2C_Read... [17:50:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:23]Read from MH i2c: E2 [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: E2 17 00 [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: E2 17 00 5A 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 4D [17:50:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [17:50:23]wFMCommunicate OK [17:50:23]CreateOFDProtocolMessage done [17:50:23]OFDSenderStorePacket 27168 [17:50:23]StoreOFDPacket docnum=27168 [17:50:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 1E 01 00 00 CD 2C 16 01 17 3F 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 47 00 00 00 F4 03 04 00 65 D6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 20 6A 00 00 35 04 06 00 DE A5 EF 01 AE ED 55 82 9B A9 C5 51 B8 A5 [17:50:23]CheckFolder [17:50:23]dirname=/storage/ofd_packets [17:50:23]CheckFolder done [17:50:23]ProducePacketName [17:50:23]name=ofd_packets/00027168 [17:50:23]NVStorageSaveData ofd_packets/00027168 [17:50:23]File name is /storage/ofd_packets/00027168 [17:50:23]Write 316 bytes [17:50:23]NVStorageSaveData done [17:50:23]OFDSenderStorePacket done [17:50:23]KKMCreateOFDPacket done [17:50:23]NVStorageSaveData kkm_last_timestamp [17:50:23]File name is /storage/kkm_last_timestamp [17:50:23]Write 4 bytes [17:50:23]NVStorageSaveData done [17:50:23]ExternCall_PrintAddStr [17:50:23]wPrintStart [17:50:23]Write to MH i2c: 01 00 00 5B 20 7B [17:50:23]Write i2c OK [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: 01 [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: 01 07 00 [17:50:23]MH_I2C_Read... [17:50:23]Read from MH i2c: 01 07 00 5B 20 00 00 00 00 00 FF 0F 90 [17:50:23]RasterBufferAndPrint [17:50:23]line Счет N : (3)150566 [17:50:23]line ИНН: 02508201610067 [17:50:23]line Контрольно-Кассовый Чек [17:50:23]line ПРОДАЖА [17:50:23]line Товар: 4870001570095 [17:50:23]line Напиток Pepsi 2л [17:50:23]line 1.000 * 210.00 [17:50:23]line = 210.00 [17:50:23]line НДС 12% НСП 1% [17:50:23]line > о реализуемом товаре [17:50:23]line ИТОГО: 210.00 [17:50:23]line НСП 1% : 1.86 [17:50:23]line НДС 12% : 22.30 [17:50:23]line Наличными: 210.00 [17:50:23]line Безнал.: 0.00 [17:50:23]line Место: АЗС № 134 "Партнер Нефть" [17:50:23]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:50:23]line СНО: Общий режим [17:50:23]line Чек 71 29.07.2024 17:50 [17:50:23]line Смена: 434 ФФД: 1.0 [17:50:23]line ЗНМ: 0300000043 [17:50:23]line РНМ: 0000000000092663 [17:50:23]line Версия ККМ: 001 [17:50:23]line ФМ: 0000000000874937 [17:50:23]line ФД: 27168 [17:50:23]line ФПД: 244804260835053 [17:50:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175029&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27168&fm=244804260835053&tin=02508201610067®Number=0000000000092663&sum=21000 [17:50:24]line 0 [17:50:24]OFD Sender: Processing packet 27168 [packets to send 9, broken 8] [17:50:24]ProducePacketName [17:50:24]name=ofd_packets/00027168 [17:50:24]OFD Sender: To server: pG, [17:50:24]CommunicateWithHost lk.salyk.kg:30040 [17:50:24]ConnectInit lk.salyk.kg [17:50:24]written 0, free lines is 4095 [17:50:24]Connected sock=10 [17:50:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 1E 01 00 00 CD 2C 16 01 17 3F 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 47 00 00 00 F4 03 04 00 65 D6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 20 6A 00 00 35 04 06 00 DE A5 EF 01 AE ED 55 82 9B A9 C5 51 B8 A5 [17:50:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 18 E7 47 00 E0 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 34 39 33 37 10 04 04 00 20 6A 00 00 F4 03 04 00 B5 7C A7 66 B6 04 01 00 00 30 DC 81 57 80 81 2A D7 [17:50:24]CommunicateWithHost err = 0 [17:50:24]CheckOFDResponse [17:50:24]1017 (14) - 77093643461234 [17:50:24]1041 (16) - 0000000000874937 [17:50:24]1040 (4) - 27168 [17:50:24]1012 (4) - 29.07.2024 11:27 [17:50:24]1206 (1) - 0 [17:50:24]OFD Sender: Remove packet 27168 [17:50:24]ProducePacketName [17:50:24]name=ofd_packets/00027168 [17:50:24]NVStorageDeleteData [17:50:24]Write to MH i2c: 01 00 00 82 20 A2 [17:50:24]Write i2c OK [17:50:24]MH_I2C_Read... [17:50:24]Read from MH i2c: 01 [17:50:24]MH_I2C_Read... [17:50:24]Read from MH i2c: 01 07 00 [17:50:24]MH_I2C_Read... [17:50:24]Read from MH i2c: 01 07 00 82 20 00 00 00 00 00 F5 0C AA [17:50:24]RasterBufferAndPrint [17:50:24]line [17:50:24]line [17:50:24]line [17:50:24]line [17:50:24]line [17:50:24]written 0, free lines is 3326 [17:50:24]MH_Cut [17:50:24]Write to MH i2c: D1 01 00 89 20 01 7B [17:50:24]Write i2c OK [17:50:24]MH_I2C_Read... [17:50:24]Read from MH i2c: D1 [17:50:24]MH_I2C_Read... [17:50:24]Read from MH i2c: D1 01 00 [17:50:24]MH_I2C_Read... [17:50:24]Read from MH i2c: D1 01 00 89 20 00 7A [17:50:24]Write to MH i2c: 01 00 00 8A 20 AA [17:50:24]Write i2c OK [17:50:24]MH_I2C_Read... [17:50:25]OFD Sender: No OFD packet to send [17:50:25]*** Cut start [17:50:25]*** Partial cut [17:50:25]*** CUTSNS_PIN = 1 [17:50:25]*** CUTSNS_PIN = 0 [17:50:25]*** Brake cut motor [17:50:26]Read from MH i2c: 01 [17:50:26]MH_I2C_Read... [17:50:26]*** Stop cut motor [17:50:26]*** Cut end [17:50:26]Read from MH i2c: 01 07 00 [17:50:26]MH_I2C_Read... [17:50:26]Read from MH i2c: 01 07 00 8A 20 00 00 00 00 00 FF 0F BF [17:50:26]process_action close_receipt done [17:50:26]requested_data is exist [17:50:26]produce_requested_data [17:50:26]requested_item fm.sn is exist - process it [17:50:26]wFMCommunicate request_size=4 [17:50:26]MH_SAM_APDU [17:50:26]CAPDU: 80 11 00 00 [17:50:26]Write to MH i2c: E2 08 00 8B 20 80 11 00 00 00 00 00 00 25 [17:50:26]Write i2c OK [17:50:26]MH_I2C_Read... [17:50:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:26]Read from MH i2c: E2 [17:50:26]MH_I2C_Read... [17:50:26]Read from MH i2c: E2 17 00 [17:50:26]MH_I2C_Read... [17:50:26]Read from MH i2c: E2 17 00 8B 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 7E [17:50:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [17:50:26]wFMCommunicate OK [17:50:26]requested_item fd.num is exist - process it [17:50:26]SAM_PROTO_GetFieldsCounters [17:50:26]wFMCommunicate request_size=4 [17:50:26]MH_SAM_APDU [17:50:26]CAPDU: 80 13 00 00 [17:50:26]Write to MH i2c: E2 08 00 8C 20 80 13 00 00 00 00 00 00 28 [17:50:26]Write i2c OK [17:50:26]MH_I2C_Read... [17:50:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:26]Read from MH i2c: E2 [17:50:26]MH_I2C_Read... [17:50:26]Read from MH i2c: E2 62 00 [17:50:26]MH_I2C_Read... [17:50:26]Read from MH i2c: E2 62 00 8C 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 20 6A 00 00 0E 04 04 00 B2 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 62 [17:50:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 20 6A 00 00 0E 04 04 00 B2 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 [17:50:26]wFMCommunicate OK [17:50:26]SAM_PROTO_GetFieldsCounters done [17:50:26]requested_item shift.num is exist - process it [17:50:26]requested_item shift.opened is exist - process it [17:50:26]req_shift_opened [17:50:26]FM_GetShiftState [17:50:26]SAM_PROTO_GetShiftState [17:50:26]wFMCommunicate request_size=4 [17:50:26]MH_SAM_APDU [17:50:26]CAPDU: 80 13 01 00 [17:50:26]Write to MH i2c: E2 08 00 8D 20 80 13 01 00 00 00 00 00 2A [17:50:26]Write i2c OK [17:50:26]MH_I2C_Read... [17:50:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:26]Read from MH i2c: E2 [17:50:26]MH_I2C_Read... [17:50:26]Read from MH i2c: E2 0E 00 [17:50:26]MH_I2C_Read... [17:50:26]Read from MH i2c: E2 0E 00 8D 20 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 AB [17:50:26]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [17:50:26]wFMCommunicate OK [17:50:26]SAM_PROTO_GetShiftState done [17:50:26]FM_GetShiftState done [17:50:26]req_shift_opened done [17:50:26]requested_item shift.open_date is exist - process it [17:50:26]req_shift_open_date [17:50:26]req_shift_open_date done [17:50:26]produce_requested_data done [17:50:26]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27168,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [17:50:26]process_action_free close_receipt [17:50:26]json_value_free [17:50:26]json_value_free done [17:50:26]process_json_proto returns [17:50:26]Send response to host [17:50:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27168,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [17:50:26]free response buf [17:50:26]execute_script done [17:50:26]execute_script returns [17:50:26]free content buf [17:50:26]Sock 8.Close socket [17:50:26]Sock 8.Thread stoped [17:50:30]OFD Sender: No OFD packet to send [17:50:35]OFD Sender: No OFD packet to send [17:50:40]OFD Sender: No OFD packet to send [17:50:45]OFD Sender: No OFD packet to send [17:50:50]OFD Sender: No OFD packet to send [17:50:55]OFD Sender: No OFD packet to send [17:51:00]OFD Sender: No OFD packet to send [17:51:05]OFD Sender: No OFD packet to send [17:51:10]OFD Sender: No OFD packet to send [17:51:15]OFD Sender: No OFD packet to send [17:51:20]OFD Sender: No OFD packet to send [17:51:25]OFD Sender: No OFD packet to send [17:51:30]OFD Sender: No OFD packet to send [17:51:35]OFD Sender: No OFD packet to send [17:51:40]OFD Sender: No OFD packet to send [17:51:45]OFD Sender: No OFD packet to send [17:51:50]OFD Sender: No OFD packet to send [17:51:55]OFD Sender: No OFD packet to send [17:52:00]OFD Sender: No OFD packet to send [17:52:05]OFD Sender: No OFD packet to send [17:52:10]OFD Sender: No OFD packet to send [17:52:15]OFD Sender: No OFD packet to send [17:52:20]OFD Sender: No OFD packet to send [17:52:25]OFD Sender: No OFD packet to send [17:52:30]OFD Sender: No OFD packet to send [17:52:35]OFD Sender: No OFD packet to send [17:52:40]OFD Sender: No OFD packet to send [17:52:45]OFD Sender: No OFD packet to send [17:52:50]OFD Sender: No OFD packet to send [17:52:55]OFD Sender: No OFD packet to send [17:53:00]OFD Sender: No OFD packet to send [17:53:05]OFD Sender: No OFD packet to send [17:53:10]OFD Sender: No OFD packet to send [17:53:15]OFD Sender: No OFD packet to send [17:53:20]OFD Sender: No OFD packet to send [17:53:25]OFD Sender: No OFD packet to send [17:53:30]OFD Sender: No OFD packet to send [17:53:35]OFD Sender: No OFD packet to send [17:53:40]OFD Sender: No OFD packet to send [17:53:45]OFD Sender: No OFD packet to send [17:53:49]accept exits with 9 [17:53:49]New connection [17:53:49]New thread 3066785124 created [17:53:49]Thread 3066928484 joined [17:53:49]Waiting for new connection... [17:53:49] Sock 9.Parse request [17:53:49]Sock 9.Check first char [17:53:49]Sock 9.First char is OK [17:53:49]request: POST /json_proto HTTP/1.0 [17:53:49]Method: POST [17:53:49]URL: /json_proto [17:53:49]Method is POST - this is cgi request [17:53:49]url: /json_proto [17:53:49]query_string will be loaded in cgi processing [17:53:49]execute_cgi json_proto POST (null) [17:53:49]execute_cgi path=json_proto method=POST [17:53:49]POST find Content-Length [17:53:49]Host: 172.17.45.8:8080 [17:53:49]Content-Length: 783 [17:53:49]Content-Type: application/json [17:53:49] [17:53:49]POST finish read [17:53:49]Found Content-Length = 783 [17:53:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150567", "tax_sys" : 0, "items" : [ { "code": "4860114390277", "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 \u0421\u0430\u043F\u0435", "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" ] } } [17:53:49]execute_script... [17:53: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)150567", "tax_sys" : 0, "items" : [ { "code": "4860114390277", "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 \u0421\u0430\u043F\u0435", "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" ] } } [17:53:49]POST & json_proto [17:53:49]process_json_proto [17:53:49]json parsed OK: [17:53:49]protocol is kg_v1.0 [17:53:49]action value=close_receipt [17:53:49]process_action close_receipt [17:53:49]cmd_close_receipt [17:53:49]MH_GetDate [17:53:49]Write to MH i2c: F0 00 00 8E 20 9D [17:53:49]Write i2c OK [17:53:49]MH_I2C_Read... [17:53:49]Read from MH i2c: F0 [17:53:49]MH_I2C_Read... [17:53:49]Read from MH i2c: F0 09 00 [17:53:49]MH_I2C_Read... [17:53:49]Read from MH i2c: F0 09 00 8E 20 00 34 D7 A7 66 A6 1F 7F 64 66 [17:53:49]GetLastDocTimeStamp 1722275429 [17:53:49]current date 1722275636 [17:53:49]FM_GetShiftState [17:53:49]SAM_PROTO_GetShiftState [17:53:49]wFMCommunicate request_size=4 [17:53:49]MH_SAM_APDU [17:53:49]CAPDU: 80 13 01 00 [17:53:49]Write to MH i2c: E2 08 00 8F 20 80 13 01 00 00 00 00 00 2C [17:53:49]Write i2c OK [17:53:49]MH_I2C_Read... [17:53:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:49]Read from MH i2c: E2 [17:53:49]MH_I2C_Read... [17:53:49]Read from MH i2c: E2 0E 00 [17:53:49]MH_I2C_Read... [17:53:49]Read from MH i2c: E2 0E 00 8F 20 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 AD [17:53:49]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [17:53:49]wFMCommunicate OK [17:53:49]SAM_PROTO_GetShiftState done [17:53:49]FM_GetShiftState done [17:53:49]opened in 1722213509 [17:53:49]opened+sec_in_day 1722299909 [17:53:49]quantity*price = 15500 [17:53:49]sum+1 = 15501 [17:53:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 72 29.07.2024 17:53 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27169 ФПД: 235222292658565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175356&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27169&fm=235222292658565&tin=02508201610067®Number=0000000000092663&sum=15500 0 [17:53:50]StoreToDocumentArchive [17:53:50]shift 434 fd 27169 [17:53:50]save to /storage/0434/doc_00027169 [17:53:50]save last doc name /storage/0434/doc_00027169 to /storage/kkm_last_doc_name [17:53:50]save OK [17:53:50]Clear old archive folders... [17:53:50]ProcessDocumentItem done err = 0, tmpTLVsize=319 [17:53:50]tlvbuf is 00200A50 [17:53:50]SAM_PROTO_ClearQueue [17:53:50]wFMCommunicate request_size=4 [17:53:50]MH_SAM_APDU [17:53:50]CAPDU: 80 09 00 00 [17:53:50]Write to MH i2c: E2 08 00 9C 20 80 09 00 00 00 00 00 00 2E [17:53:50]Write i2c OK [17:53:50]MH_I2C_Read... [17:53:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:50]Read from MH i2c: E2 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: E2 03 00 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: E2 03 00 9C 20 00 90 00 30 [17:53:50]RAPDU: 90 00 [17:53:50]wFMCommunicate OK [17:53:50]SAM_PROTO_ClearQueue done [17:53:50]KKMCreateOFDPacket [17:53:50]OFDProtocolAddRootSTLVToBuf [17:53:50]FM_MakeSignedData [17:53:50]FM_MakeSignedData [17:53:50]SAM_PROTO_SignData [17:53:50]wFMCommunicate request_size=4 [17:53:50]MH_SAM_APDU [17:53:50]CAPDU: 80 0D 01 02 [17:53:50]Write to MH i2c: E2 08 00 9D 20 80 0D 01 02 00 00 00 00 36 [17:53:50]Write i2c OK [17:53:50]MH_I2C_Read... [17:53:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:50]Read from MH i2c: E2 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: E2 03 00 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: E2 03 00 9D 20 00 90 00 31 [17:53:50]RAPDU: 90 00 [17:53:50]wFMCommunicate OK [17:53:50]wFMCommunicate request_size=255 [17:53:50]MH_SAM_APDU [17:53:50]CAPDU: 80 0D 02 02 FA 03 00 3F 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 32 37 37 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 A1 D0 B0 D0 BF D0 B5 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 48 00 00 00 F4 03 04 00 34 D7 [17:53:50]Write to MH i2c: E2 02 01 9E 20 80 0D 02 02 FA 00 03 00 3F 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 32 37 37 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 A1 D0 B0 D0 BF D0 B5 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 48 00 00 00 F4 03 04 00 34 D7 00 00 D4 [17:53:50]Write i2c OK [17:53:50]MH_I2C_Read... [17:53:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:50]Read from MH i2c: E2 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: E2 03 00 [17:53:50]MH_I2C_Read... [17:53:50]Read from MH i2c: E2 03 00 9E 20 00 90 00 32 [17:53:50]RAPDU: 90 00 [17:53:50]wFMCommunicate OK [17:53:50]wFMCommunicate request_size=78 [17:53:50]MH_SAM_APDU [17:53:50]CAPDU: 80 0D 02 02 49 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 21 6A 00 00 35 04 06 00 D5 EE F5 32 79 85 [17:53:50]Write to MH i2c: E2 51 00 9F 20 80 0D 02 02 49 00 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 21 6A 00 00 35 04 06 00 D5 EE F5 32 79 85 00 00 B0 [17:53:50]Write i2c OK [17:53:50]MH_I2C_Read... [17:53:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:51]Read from MH i2c: E2 [17:53:51]MH_I2C_Read... [17:53:51]Read from MH i2c: E2 03 00 [17:53:51]MH_I2C_Read... [17:53:51]Read from MH i2c: E2 03 00 9F 20 00 90 00 33 [17:53:51]RAPDU: 90 00 [17:53:51]wFMCommunicate OK [17:53:51]wFMCommunicate request_size=4 [17:53:51]MH_SAM_APDU [17:53:51]CAPDU: 80 0D 03 02 [17:53:51]Write to MH i2c: E2 08 00 A0 20 80 0D 03 02 00 00 00 00 3B [17:53:51]Write i2c OK [17:53:51]MH_I2C_Read... [17:53:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:51]Read from MH i2c: E2 [17:53:51]MH_I2C_Read... [17:53:51]Read from MH i2c: E2 0B 00 [17:53:51]MH_I2C_Read... [17:53:51]Read from MH i2c: E2 0B 00 A0 20 00 A4 D0 58 83 49 84 88 80 90 00 60 [17:53:51]RAPDU: A4 D0 58 83 49 84 88 80 90 00 [17:53:51]wFMCommunicate OK [17:53:51]SAM_PROTO_SignData done [17:53:51]FM_MakeSignedData done [17:53:51]CreateOFDProtocolMessage [17:53:51]wFMCommunicate request_size=4 [17:53:51]MH_SAM_APDU [17:53:51]CAPDU: 80 11 00 00 [17:53:51]Write to MH i2c: E2 08 00 A1 20 80 11 00 00 00 00 00 00 3B [17:53:51]Write i2c OK [17:53:51]MH_I2C_Read... [17:53:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:51]Read from MH i2c: E2 [17:53:51]MH_I2C_Read... [17:53:51]Read from MH i2c: E2 17 00 [17:53:51]MH_I2C_Read... [17:53:51]Read from MH i2c: E2 17 00 A1 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 94 [17:53:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [17:53:51]wFMCommunicate OK [17:53:51]CreateOFDProtocolMessage done [17:53:51]OFDSenderStorePacket 27169 [17:53:51]StoreOFDPacket docnum=27169 [17:53:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 53 01 00 00 5E 5E 4B 01 DB BD 5A 03 01 00 03 00 3F 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 32 37 37 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 A1 D0 B0 D0 BF D0 B5 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 48 00 00 00 F4 03 04 00 34 D7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 21 6A 00 00 35 04 06 00 D5 EE F5 32 79 85 A4 D0 58 83 49 84 88 80 [17:53:51]CheckFolder [17:53:51]dirname=/storage/ofd_packets [17:53:51]CheckFolder done [17:53:51]ProducePacketName [17:53:51]name=ofd_packets/00027169 [17:53:51]NVStorageSaveData ofd_packets/00027169 [17:53:51]File name is /storage/ofd_packets/00027169 [17:53:51]Write 369 bytes [17:53:51]NVStorageSaveData done [17:53:51]OFDSenderStorePacket done [17:53:51]KKMCreateOFDPacket done [17:53:51]NVStorageSaveData kkm_last_timestamp [17:53:51]File name is /storage/kkm_last_timestamp [17:53:51]Write 4 bytes [17:53:51]NVStorageSaveData done [17:53:51]ExternCall_PrintAddStr [17:53:51]wPrintStart [17:53:51]Write to MH i2c: 01 00 00 A2 20 C2 [17:53:51]Write i2c OK [17:53:51]MH_I2C_Read... [17:53:51]Read from MH i2c: 01 [17:53:51]MH_I2C_Read... [17:53:51]Read from MH i2c: 01 07 00 [17:53:51]MH_I2C_Read... [17:53:51]Read from MH i2c: 01 07 00 A2 20 00 00 00 00 00 FF 0F D7 [17:53:51]RasterBufferAndPrint [17:53:51]line Счет N : (3)150567 [17:53:51]line ИНН: 02508201610067 [17:53:51]line Контрольно-Кассовый Чек [17:53:51]line ПРОДАЖА [17:53:51]line Товар: 4860114390277 [17:53:51]line Напиток безалкогольный газированный Сапе [17:53:51]line 1.000 * 155.00 [17:53:51]line = 155.00 [17:53:51]line НДС 12% НСП 1% [17:53:51]line > о реализуемом товаре [17:53:51]line ИТОГО: 155.00 [17:53:51]line НСП 1% : 1.37 [17:53:51]line НДС 12% : 16.46 [17:53:51]line Наличными: 155.00 [17:53:51]line Безнал.: 0.00 [17:53:51]line Место: АЗС № 134 "Партнер Нефть" [17:53:51]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:53:51]line СНО: Общий режим [17:53:51]line Чек 72 29.07.2024 17:53 [17:53:51]line Смена: 434 ФФД: 1.0 [17:53:51]line ЗНМ: 0300000043 [17:53:51]line РНМ: 0000000000092663 [17:53:51]line Версия ККМ: 001 [17:53:51]line ФМ: 0000000000874937 [17:53:51]line ФД: 27169 [17:53:51]line ФПД: 235222292658565 [17:53:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175356&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27169&fm=235222292658565&tin=02508201610067®Number=0000000000092663&sum=15500 [17:53:51]line 0 [17:53:51]OFD Sender: Processing packet 27169 [packets to send 9, broken 8] [17:53:51]ProducePacketName [17:53:51]name=ofd_packets/00027169 [17:53:51]OFD Sender: To server: pG, [17:53:51]CommunicateWithHost lk.salyk.kg:30040 [17:53:51]ConnectInit lk.salyk.kg [17:53:51]written 0, free lines is 4095 [17:53:51]Connected sock=10 [17:53:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 53 01 00 00 5E 5E 4B 01 DB BD 5A 03 01 00 03 00 3F 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 32 37 37 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 A1 D0 B0 D0 BF D0 B5 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 48 00 00 00 F4 03 04 00 34 D7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 21 6A 00 00 35 04 06 00 D5 EE F5 32 79 85 A4 D0 58 83 49 84 88 80 [17:53:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 5C BD 47 00 59 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 21 6A 00 00 F4 03 04 00 84 7D A7 66 B6 04 01 00 00 37 65 C4 7E 5F 0F 92 18 [17:53:51]CommunicateWithHost err = 0 [17:53:51]CheckOFDResponse [17:53:51]1017 (14) - 77093643461234 [17:53:51]1041 (16) - 0000000000874937 [17:53:51]1040 (4) - 27169 [17:53:51]1012 (4) - 29.07.2024 11:31 [17:53:51]1206 (1) - 0 [17:53:51]OFD Sender: Remove packet 27169 [17:53:51]ProducePacketName [17:53:51]name=ofd_packets/00027169 [17:53:51]NVStorageDeleteData [17:53:51]Write to MH i2c: 01 00 00 CA 20 EA [17:53:51]Write i2c OK [17:53:51]MH_I2C_Read... [17:53:51]Read from MH i2c: 01 [17:53:51]MH_I2C_Read... [17:53:51]Read from MH i2c: 01 07 00 [17:53:51]MH_I2C_Read... [17:53:51]Read from MH i2c: 01 07 00 CA 20 00 00 00 00 00 E9 0C E6 [17:53:51]RasterBufferAndPrint [17:53:51]line [17:53:51]line [17:53:51]line [17:53:51]line [17:53:51]line [17:53:51]written 0, free lines is 3308 [17:53:51]MH_Cut [17:53:51]Write to MH i2c: D1 01 00 D1 20 01 C3 [17:53:51]Write i2c OK [17:53:51]MH_I2C_Read... [17:53:51]Read from MH i2c: D1 [17:53:51]MH_I2C_Read... [17:53:51]Read from MH i2c: D1 01 00 [17:53:51]MH_I2C_Read... [17:53:51]Read from MH i2c: D1 01 00 D1 20 00 C2 [17:53:51]Write to MH i2c: 01 00 00 D2 20 F2 [17:53:51]Write i2c OK [17:53:51]MH_I2C_Read... [17:53:52]OFD Sender: No OFD packet to send [17:53:52]*** Cut start [17:53:52]*** Partial cut [17:53:52]*** CUTSNS_PIN = 1 [17:53:52]*** CUTSNS_PIN = 0 [17:53:52]*** Brake cut motor [17:53:53]Read from MH i2c: 01 [17:53:53]MH_I2C_Read... [17:53:53]*** Stop cut motor [17:53:53]*** Cut end [17:53:53]Read from MH i2c: 01 07 00 [17:53:53]MH_I2C_Read... [17:53:53]Read from MH i2c: 01 07 00 D2 20 00 00 00 00 00 FF 0F 07 [17:53:53]process_action close_receipt done [17:53:53]requested_data is exist [17:53:53]produce_requested_data [17:53:53]requested_item fm.sn is exist - process it [17:53:53]wFMCommunicate request_size=4 [17:53:53]MH_SAM_APDU [17:53:53]CAPDU: 80 11 00 00 [17:53:53]Write to MH i2c: E2 08 00 D3 20 80 11 00 00 00 00 00 00 6D [17:53:53]Write i2c OK [17:53:53]MH_I2C_Read... [17:53:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:53]Read from MH i2c: E2 [17:53:53]MH_I2C_Read... [17:53:53]Read from MH i2c: E2 17 00 [17:53:53]MH_I2C_Read... [17:53:53]Read from MH i2c: E2 17 00 D3 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 C6 [17:53:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [17:53:53]wFMCommunicate OK [17:53:53]requested_item fd.num is exist - process it [17:53:53]SAM_PROTO_GetFieldsCounters [17:53:53]wFMCommunicate request_size=4 [17:53:53]MH_SAM_APDU [17:53:53]CAPDU: 80 13 00 00 [17:53:53]Write to MH i2c: E2 08 00 D4 20 80 13 00 00 00 00 00 00 70 [17:53:53]Write i2c OK [17:53:53]MH_I2C_Read... [17:53:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:53]Read from MH i2c: E2 [17:53:53]MH_I2C_Read... [17:53:53]Read from MH i2c: E2 62 00 [17:53:53]MH_I2C_Read... [17:53:53]Read from MH i2c: E2 62 00 D4 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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 21 6A 00 00 0E 04 04 00 B2 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 AE [17:53:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 21 6A 00 00 0E 04 04 00 B2 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 [17:53:53]wFMCommunicate OK [17:53:53]SAM_PROTO_GetFieldsCounters done [17:53:53]requested_item shift.num is exist - process it [17:53:53]requested_item shift.opened is exist - process it [17:53:53]req_shift_opened [17:53:53]FM_GetShiftState [17:53:53]SAM_PROTO_GetShiftState [17:53:53]wFMCommunicate request_size=4 [17:53:53]MH_SAM_APDU [17:53:53]CAPDU: 80 13 01 00 [17:53:53]Write to MH i2c: E2 08 00 D5 20 80 13 01 00 00 00 00 00 72 [17:53:53]Write i2c OK [17:53:53]MH_I2C_Read... [17:53:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:53]Read from MH i2c: E2 [17:53:53]MH_I2C_Read... [17:53:53]Read from MH i2c: E2 0E 00 [17:53:53]MH_I2C_Read... [17:53:53]Read from MH i2c: E2 0E 00 D5 20 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 F3 [17:53:53]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [17:53:53]wFMCommunicate OK [17:53:53]SAM_PROTO_GetShiftState done [17:53:53]FM_GetShiftState done [17:53:53]req_shift_opened done [17:53:53]requested_item shift.open_date is exist - process it [17:53:53]req_shift_open_date [17:53:53]req_shift_open_date done [17:53:53]produce_requested_data done [17:53:53]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27169,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [17:53:53]process_action_free close_receipt [17:53:53]json_value_free [17:53:53]json_value_free done [17:53:53]process_json_proto returns [17:53:53]Send response to host [17:53:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27169,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [17:53:53]free response buf [17:53:53]execute_script done [17:53:53]execute_script returns [17:53:53]free content buf [17:53:53]Sock 9.Close socket [17:53:53]Sock 9.Thread stoped [17:53:57]OFD Sender: No OFD packet to send [17:54:02]OFD Sender: No OFD packet to send [17:54:07]OFD Sender: No OFD packet to send [17:54:12]OFD Sender: No OFD packet to send [17:54:17]OFD Sender: No OFD packet to send [17:54:22]OFD Sender: No OFD packet to send [17:54:27]OFD Sender: No OFD packet to send [17:54:32]OFD Sender: No OFD packet to send [17:54:37]OFD Sender: No OFD packet to send [17:54:42]OFD Sender: No OFD packet to send [17:54:47]OFD Sender: No OFD packet to send [17:54:52]OFD Sender: No OFD packet to send [17:54:52]accept exits with 8 [17:54:52]New connection [17:54:52]New thread 3066928484 created [17:54:52]Thread 3066785124 joined [17:54:52]Waiting for new connection... [17:54:52] Sock 8.Parse request [17:54:52]Sock 8.Check first char [17:54:52]Sock 8.First char is OK [17:54:52]request: POST /json_proto HTTP/1.0 [17:54:52]Method: POST [17:54:52]URL: /json_proto [17:54:52]Method is POST - this is cgi request [17:54:52]url: /json_proto [17:54:52]query_string will be loaded in cgi processing [17:54:52]execute_cgi json_proto POST (null) [17:54:52]execute_cgi path=json_proto method=POST [17:54:52]POST find Content-Length [17:54:52]Host: 172.17.45.8:8080 [17:54:52]Content-Length: 598 [17:54:52]Content-Type: application/json [17:54:52] [17:54:52]POST finish read [17:54:52]Found Content-Length = 598 [17:54:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150568", "tax_sys" : 0, "items" : [ { "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 510.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:52]execute_script... [17:54: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)150568", "tax_sys" : 0, "items" : [ { "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 510.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:52]POST & json_proto [17:54:52]process_json_proto [17:54:52]json parsed OK: [17:54:52]protocol is kg_v1.0 [17:54:52]action value=close_receipt [17:54:52]process_action close_receipt [17:54:52]cmd_close_receipt [17:54:52]MH_GetDate [17:54:52]Write to MH i2c: F0 00 00 D6 20 E5 [17:54:52]Write i2c OK [17:54:52]MH_I2C_Read... [17:54:52]Read from MH i2c: F0 [17:54:52]MH_I2C_Read... [17:54:52]Read from MH i2c: F0 09 00 [17:54:52]MH_I2C_Read... [17:54:52]Read from MH i2c: F0 09 00 D6 20 00 73 D7 A7 66 A6 1F 7F 64 ED [17:54:52]GetLastDocTimeStamp 1722275636 [17:54:52]current date 1722275699 [17:54:52]FM_GetShiftState [17:54:52]SAM_PROTO_GetShiftState [17:54:52]wFMCommunicate request_size=4 [17:54:52]MH_SAM_APDU [17:54:52]CAPDU: 80 13 01 00 [17:54:52]Write to MH i2c: E2 08 00 D7 20 80 13 01 00 00 00 00 00 74 [17:54:52]Write i2c OK [17:54:52]MH_I2C_Read... [17:54:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:52]Read from MH i2c: E2 [17:54:52]MH_I2C_Read... [17:54:52]Read from MH i2c: E2 0E 00 [17:54:52]MH_I2C_Read... [17:54:52]Read from MH i2c: E2 0E 00 D7 20 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 F5 [17:54:52]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [17:54:52]wFMCommunicate OK [17:54:52]SAM_PROTO_GetShiftState done [17:54:52]FM_GetShiftState done [17:54:52]opened in 1722213509 [17:54:52]opened+sec_in_day 1722299909 [17:54:52]quantity*price = 51000 [17:54:52]sum+1 = 51001 [17:54:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 510.00 НСП 1% : 4.51 НДС 12% : 54.16 Наличными: 510.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 73 29.07.2024 17:54 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27170 ФПД: 16796903275108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175459&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27170&fm=16796903275108&tin=02508201610067®Number=0000000000092663&sum=51000 0 [17:54:53]StoreToDocumentArchive [17:54:53]shift 434 fd 27170 [17:54:53]save to /storage/0434/doc_00027170 [17:54:53]save last doc name /storage/0434/doc_00027170 to /storage/kkm_last_doc_name [17:54:53]save OK [17:54:53]Clear old archive folders... [17:54:53]ProcessDocumentItem done err = 0, tmpTLVsize=262 [17:54:53]tlvbuf is 002008F0 [17:54:53]SAM_PROTO_ClearQueue [17:54:53]wFMCommunicate request_size=4 [17:54:53]MH_SAM_APDU [17:54:53]CAPDU: 80 09 00 00 [17:54:53]Write to MH i2c: E2 08 00 E4 20 80 09 00 00 00 00 00 00 76 [17:54:53]Write i2c OK [17:54:53]MH_I2C_Read... [17:54:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:53]Read from MH i2c: E2 [17:54:53]MH_I2C_Read... [17:54:53]Read from MH i2c: E2 03 00 [17:54:53]MH_I2C_Read... [17:54:53]Read from MH i2c: E2 03 00 E4 20 00 90 00 78 [17:54:53]RAPDU: 90 00 [17:54:53]wFMCommunicate OK [17:54:53]SAM_PROTO_ClearQueue done [17:54:53]KKMCreateOFDPacket [17:54:53]OFDProtocolAddRootSTLVToBuf [17:54:53]FM_MakeSignedData [17:54:53]FM_MakeSignedData [17:54:53]SAM_PROTO_SignData [17:54:53]wFMCommunicate request_size=4 [17:54:53]MH_SAM_APDU [17:54:53]CAPDU: 80 0D 01 02 [17:54:53]Write to MH i2c: E2 08 00 E5 20 80 0D 01 02 00 00 00 00 7E [17:54:53]Write i2c OK [17:54:53]MH_I2C_Read... [17:54:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:53]Read from MH i2c: E2 [17:54:53]MH_I2C_Read... [17:54:53]Read from MH i2c: E2 03 00 [17:54:53]MH_I2C_Read... [17:54:53]Read from MH i2c: E2 03 00 E5 20 00 90 00 79 [17:54:53]RAPDU: 90 00 [17:54:53]wFMCommunicate OK [17:54:53]wFMCommunicate request_size=255 [17:54:53]MH_SAM_APDU [17:54:53]CAPDU: 80 0D 02 02 FA 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 38 C7 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 73 D7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 [17:54:53]Write to MH i2c: E2 02 01 E6 20 80 0D 02 02 FA 00 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 38 C7 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 73 D7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 00 00 16 [17:54:53]Write i2c OK [17:54:53]MH_I2C_Read... [17:54:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:53]Read from MH i2c: E2 [17:54:53]MH_I2C_Read... [17:54:53]Read from MH i2c: E2 03 00 [17:54:53]MH_I2C_Read... [17:54:53]Read from MH i2c: E2 03 00 E6 20 00 90 00 7A [17:54:53]RAPDU: 90 00 [17:54:53]wFMCommunicate OK [17:54:53]wFMCommunicate request_size=21 [17:54:53]MH_SAM_APDU [17:54:53]CAPDU: 80 0D 02 02 10 04 00 22 6A 00 00 35 04 06 00 0F 46 D5 73 FA 64 [17:54:53]Write to MH i2c: E2 18 00 E7 20 80 0D 02 02 10 00 04 00 22 6A 00 00 35 04 06 00 0F 46 D5 73 FA 64 00 00 6B [17:54:53]Write i2c OK [17:54:53]MH_I2C_Read... [17:54:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:53]Read from MH i2c: E2 [17:54:53]MH_I2C_Read... [17:54:53]Read from MH i2c: E2 03 00 [17:54:53]MH_I2C_Read... [17:54:53]Read from MH i2c: E2 03 00 E7 20 00 90 00 7B [17:54:53]RAPDU: 90 00 [17:54:53]wFMCommunicate OK [17:54:53]wFMCommunicate request_size=4 [17:54:53]MH_SAM_APDU [17:54:53]CAPDU: 80 0D 03 02 [17:54:53]Write to MH i2c: E2 08 00 E8 20 80 0D 03 02 00 00 00 00 83 [17:54:53]Write i2c OK [17:54:53]MH_I2C_Read... [17:54:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:53]Read from MH i2c: E2 [17:54:53]MH_I2C_Read... [17:54:53]Read from MH i2c: E2 0B 00 [17:54:53]MH_I2C_Read... [17:54:53]Read from MH i2c: E2 0B 00 E8 20 00 CA 91 5E CE 11 78 FE 47 90 00 D9 [17:54:53]RAPDU: CA 91 5E CE 11 78 FE 47 90 00 [17:54:53]wFMCommunicate OK [17:54:53]SAM_PROTO_SignData done [17:54:53]FM_MakeSignedData done [17:54:53]CreateOFDProtocolMessage [17:54:53]wFMCommunicate request_size=4 [17:54:53]MH_SAM_APDU [17:54:53]CAPDU: 80 11 00 00 [17:54:53]Write to MH i2c: E2 08 00 E9 20 80 11 00 00 00 00 00 00 83 [17:54:53]Write i2c OK [17:54:53]MH_I2C_Read... [17:54:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:54]Read from MH i2c: E2 [17:54:54]MH_I2C_Read... [17:54:54]Read from MH i2c: E2 17 00 [17:54:54]MH_I2C_Read... [17:54:54]Read from MH i2c: E2 17 00 E9 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 DC [17:54:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [17:54:54]wFMCommunicate OK [17:54:54]CreateOFDProtocolMessage done [17:54:54]OFDSenderStorePacket 27170 [17:54:54]StoreOFDPacket docnum=27170 [17:54:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 1A 01 00 00 11 F4 12 01 4E FF 5A 03 01 00 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 38 C7 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 73 D7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 22 6A 00 00 35 04 06 00 0F 46 D5 73 FA 64 CA 91 5E CE 11 78 FE 47 [17:54:54]CheckFolder [17:54:54]dirname=/storage/ofd_packets [17:54:54]CheckFolder done [17:54:54]ProducePacketName [17:54:54]name=ofd_packets/00027170 [17:54:54]NVStorageSaveData ofd_packets/00027170 [17:54:54]File name is /storage/ofd_packets/00027170 [17:54:54]Write 312 bytes [17:54:54]NVStorageSaveData done [17:54:54]OFDSenderStorePacket done [17:54:54]KKMCreateOFDPacket done [17:54:54]NVStorageSaveData kkm_last_timestamp [17:54:54]File name is /storage/kkm_last_timestamp [17:54:54]Write 4 bytes [17:54:54]NVStorageSaveData done [17:54:54]ExternCall_PrintAddStr [17:54:54]wPrintStart [17:54:54]Write to MH i2c: 01 00 00 EA 20 0A [17:54:54]Write i2c OK [17:54:54]MH_I2C_Read... [17:54:54]Read from MH i2c: 01 [17:54:54]MH_I2C_Read... [17:54:54]Read from MH i2c: 01 07 00 [17:54:54]MH_I2C_Read... [17:54:54]Read from MH i2c: 01 07 00 EA 20 00 00 00 00 00 FF 0F 1F [17:54:54]RasterBufferAndPrint [17:54:54]line Счет N : (3)150568 [17:54:54]line ИНН: 02508201610067 [17:54:54]line Контрольно-Кассовый Чек [17:54:54]line ПРОДАЖА [17:54:54]line Товар: 4700002083327 [17:54:54]line Водка Level 0,5 [17:54:54]line 1.000 * 510.00 [17:54:54]line = 510.00 [17:54:54]line НДС 12% НСП 1% [17:54:54]line > о реализуемом товаре [17:54:54]line ИТОГО: 510.00 [17:54:54]line НСП 1% : 4.51 [17:54:54]line НДС 12% : 54.16 [17:54:54]line Наличными: 510.00 [17:54:54]line Безнал.: 0.00 [17:54:54]line Место: АЗС № 134 "Партнер Нефть" [17:54:54]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [17:54:54]line СНО: Общий режим [17:54:54]line Чек 73 29.07.2024 17:54 [17:54:54]line Смена: 434 ФФД: 1.0 [17:54:54]line ЗНМ: 0300000043 [17:54:54]line РНМ: 0000000000092663 [17:54:54]line Версия ККМ: 001 [17:54:54]line ФМ: 0000000000874937 [17:54:54]line ФД: 27170 [17:54:54]line ФПД: 16796903275108 [17:54:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T175459&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27170&fm=16796903275108&tin=02508201610067®Number=0000000000092663&sum=51000 [17:54:54]OFD Sender: Processing packet 27170 [packets to send 9, broken 8] [17:54:54]ProducePacketName [17:54:54]name=ofd_packets/00027170 [17:54:54]OFD Sender: To server: pG, [17:54:54]CommunicateWithHost lk.salyk.kg:30040 [17:54:54]ConnectInit lk.salyk.kg [17:54:54]line 0 [17:54:54]written 0, free lines is 4095 [17:54:54]Connected sock=10 [17:54:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 1A 01 00 00 11 F4 12 01 4E FF 5A 03 01 00 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 38 C7 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 73 D7 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 22 6A 00 00 35 04 06 00 0F 46 D5 73 FA 64 CA 91 5E CE 11 78 FE 47 [17:54:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 75 AE 47 00 7E 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 22 6A 00 00 F4 03 04 00 C3 7D A7 66 B6 04 01 00 00 59 92 EA 89 9C 35 F2 46 [17:54:54]CommunicateWithHost err = 0 [17:54:54]CheckOFDResponse [17:54:54]1017 (14) - 77093643461234 [17:54:54]1041 (16) - 0000000000874937 [17:54:54]1040 (4) - 27170 [17:54:54]1012 (4) - 29.07.2024 11:32 [17:54:54]1206 (1) - 0 [17:54:54]OFD Sender: Remove packet 27170 [17:54:54]ProducePacketName [17:54:54]name=ofd_packets/00027170 [17:54:54]NVStorageDeleteData [17:54:54]Write to MH i2c: 01 00 00 11 21 32 [17:54:54]Write i2c OK [17:54:54]MH_I2C_Read... [17:54:54]Read from MH i2c: 01 [17:54:54]MH_I2C_Read... [17:54:54]Read from MH i2c: 01 07 00 [17:54:54]MH_I2C_Read... [17:54:54]Read from MH i2c: 01 07 00 11 21 00 00 00 00 00 13 0D 59 [17:54:54]RasterBufferAndPrint [17:54:54]line [17:54:54]line [17:54:54]line [17:54:54]line [17:54:54]line [17:54:54]written 0, free lines is 3354 [17:54:54]MH_Cut [17:54:54]Write to MH i2c: D1 01 00 18 21 01 0B [17:54:54]Write i2c OK [17:54:54]MH_I2C_Read... [17:54:54]Read from MH i2c: D1 [17:54:54]MH_I2C_Read... [17:54:54]Read from MH i2c: D1 01 00 [17:54:54]MH_I2C_Read... [17:54:54]Read from MH i2c: D1 01 00 18 21 00 0A [17:54:54]Write to MH i2c: 01 00 00 19 21 3A [17:54:54]Write i2c OK [17:54:54]MH_I2C_Read... [17:54:55]OFD Sender: No OFD packet to send [17:54:55]*** Cut start [17:54:55]*** Partial cut [17:54:55]*** CUTSNS_PIN = 1 [17:54:55]*** CUTSNS_PIN = 0 [17:54:55]*** Brake cut motor [17:54:56]Read from MH i2c: 01 [17:54:56]MH_I2C_Read... [17:54:56]*** Stop cut motor [17:54:56]*** Cut end [17:54:56]Read from MH i2c: 01 07 00 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: 01 07 00 19 21 00 00 00 00 00 FF 0F 4F [17:54:56]process_action close_receipt done [17:54:56]requested_data is exist [17:54:56]produce_requested_data [17:54:56]requested_item fm.sn is exist - process it [17:54:56]wFMCommunicate request_size=4 [17:54:56]MH_SAM_APDU [17:54:56]CAPDU: 80 11 00 00 [17:54:56]Write to MH i2c: E2 08 00 1A 21 80 11 00 00 00 00 00 00 B5 [17:54:56]Write i2c OK [17:54:56]MH_I2C_Read... [17:54:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:56]Read from MH i2c: E2 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 17 00 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 17 00 1A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 0E [17:54:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [17:54:56]wFMCommunicate OK [17:54:56]requested_item fd.num is exist - process it [17:54:56]SAM_PROTO_GetFieldsCounters [17:54:56]wFMCommunicate request_size=4 [17:54:56]MH_SAM_APDU [17:54:56]CAPDU: 80 13 00 00 [17:54:56]Write to MH i2c: E2 08 00 1B 21 80 13 00 00 00 00 00 00 B8 [17:54:56]Write i2c OK [17:54:56]MH_I2C_Read... [17:54:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:56]Read from MH i2c: E2 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 62 00 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 62 00 1B 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 22 6A 00 00 0E 04 04 00 B2 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 FA [17:54:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 22 6A 00 00 0E 04 04 00 B2 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 [17:54:56]wFMCommunicate OK [17:54:56]SAM_PROTO_GetFieldsCounters done [17:54:56]requested_item shift.num is exist - process it [17:54:56]requested_item shift.opened is exist - process it [17:54:56]req_shift_opened [17:54:56]FM_GetShiftState [17:54:56]SAM_PROTO_GetShiftState [17:54:56]wFMCommunicate request_size=4 [17:54:56]MH_SAM_APDU [17:54:56]CAPDU: 80 13 01 00 [17:54:56]Write to MH i2c: E2 08 00 1C 21 80 13 01 00 00 00 00 00 BA [17:54:56]Write i2c OK [17:54:56]MH_I2C_Read... [17:54:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:56]Read from MH i2c: E2 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 0E 00 [17:54:56]MH_I2C_Read... [17:54:56]Read from MH i2c: E2 0E 00 1C 21 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 3B [17:54:56]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [17:54:56]wFMCommunicate OK [17:54:56]SAM_PROTO_GetShiftState done [17:54:56]FM_GetShiftState done [17:54:56]req_shift_opened done [17:54:56]requested_item shift.open_date is exist - process it [17:54:56]req_shift_open_date [17:54:56]req_shift_open_date done [17:54:56]produce_requested_data done [17:54:56]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27170,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [17:54:56]process_action_free close_receipt [17:54:56]json_value_free [17:54:56]json_value_free done [17:54:56]process_json_proto returns [17:54:56]Send response to host [17:54:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27170,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [17:54:56]free response buf [17:54:56]execute_script done [17:54:56]execute_script returns [17:54:56]free content buf [17:54:56]Sock 8.Close socket [17:54:56]Sock 8.Thread stoped [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:45]OFD Sender: No OFD packet to send [17:55:50]OFD Sender: No OFD packet to send [17:55:55]OFD Sender: No OFD packet to send [17:56:00]OFD Sender: No OFD packet to send [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:44]accept exits with 9 [18:01:44]New connection [18:01:44]New thread 3066785124 created [18:01:44]Thread 3066928484 joined [18:01:44]Waiting for new connection... [18:01:44] Sock 9.Parse request [18:01:44]Sock 9.Check first char [18:01:44]Sock 9.First char is OK [18:01:44]request: POST /json_proto HTTP/1.0 [18:01:44]Method: POST [18:01:44]URL: /json_proto [18:01:44]Method is POST - this is cgi request [18:01:44]url: /json_proto [18:01:44]query_string will be loaded in cgi processing [18:01:44]execute_cgi json_proto POST (null) [18:01:44]execute_cgi path=json_proto method=POST [18:01:44]POST find Content-Length [18:01:44]Host: 172.17.45.8:8080 [18:01:44]Content-Length: 630 [18:01:44]Content-Type: application/json [18:01:44] [18:01:44]POST finish read [18:01:44]Found Content-Length = 630 [18:01:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150569", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:44]execute_script... [18:01: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)150569", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:44]POST & json_proto [18:01:44]process_json_proto [18:01:44]json parsed OK: [18:01:44]protocol is kg_v1.0 [18:01:44]action value=close_receipt [18:01:44]process_action close_receipt [18:01:44]cmd_close_receipt [18:01:44]MH_GetDate [18:01:44]Write to MH i2c: F0 00 00 1D 21 2D [18:01:44]Write i2c OK [18:01:44]MH_I2C_Read... [18:01:44]Read from MH i2c: F0 [18:01:44]MH_I2C_Read... [18:01:44]Read from MH i2c: F0 09 00 [18:01:44]MH_I2C_Read... [18:01:44]Read from MH i2c: F0 09 00 1D 21 00 0F D9 A7 66 A6 1F 7F 64 D3 [18:01:44]GetLastDocTimeStamp 1722275699 [18:01:44]current date 1722276111 [18:01:44]FM_GetShiftState [18:01:44]SAM_PROTO_GetShiftState [18:01:44]wFMCommunicate request_size=4 [18:01:44]MH_SAM_APDU [18:01:44]CAPDU: 80 13 01 00 [18:01:44]Write to MH i2c: E2 08 00 1E 21 80 13 01 00 00 00 00 00 BC [18:01:44]Write i2c OK [18:01:44]MH_I2C_Read... [18:01:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:44]Read from MH i2c: E2 [18:01:44]MH_I2C_Read... [18:01:44]Read from MH i2c: E2 0E 00 [18:01:44]MH_I2C_Read... [18:01:44]Read from MH i2c: E2 0E 00 1E 21 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 3D [18:01:44]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [18:01:44]wFMCommunicate OK [18:01:44]SAM_PROTO_GetShiftState done [18:01:44]FM_GetShiftState done [18:01:44]opened in 1722213509 [18:01:44]opened+sec_in_day 1722299909 [18:01:44]quantity*price = 10000 [18:01:44]sum+1 = 10001 [18:01:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 74 29.07.2024 18:01 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27171 ФПД: 207697441868456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T180151&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27171&fm=207697441868456&tin=02508201610067®Number=0000000000092663&sum=10000 0 [18:01:45]StoreToDocumentArchive [18:01:45]shift 434 fd 27171 [18:01:45]save to /storage/0434/doc_00027171 [18:01:45]save last doc name /storage/0434/doc_00027171 to /storage/kkm_last_doc_name [18:01:45]save OK [18:01:45]Clear old archive folders... [18:01:45]ProcessDocumentItem done err = 0, tmpTLVsize=270 [18:01:45]tlvbuf is 001ACA00 [18:01:45]SAM_PROTO_ClearQueue [18:01:45]wFMCommunicate request_size=4 [18:01:45]MH_SAM_APDU [18:01:45]CAPDU: 80 09 00 00 [18:01:45]Write to MH i2c: E2 08 00 2B 21 80 09 00 00 00 00 00 00 BE [18:01:45]Write i2c OK [18:01:45]MH_I2C_Read... [18:01:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:45]Read from MH i2c: E2 [18:01:45]MH_I2C_Read... [18:01:45]Read from MH i2c: E2 03 00 [18:01:45]MH_I2C_Read... [18:01:45]Read from MH i2c: E2 03 00 2B 21 00 90 00 C0 [18:01:45]RAPDU: 90 00 [18:01:45]wFMCommunicate OK [18:01:45]SAM_PROTO_ClearQueue done [18:01:45]KKMCreateOFDPacket [18:01:45]OFDProtocolAddRootSTLVToBuf [18:01:45]FM_MakeSignedData [18:01:45]FM_MakeSignedData [18:01:45]SAM_PROTO_SignData [18:01:45]wFMCommunicate request_size=4 [18:01:45]MH_SAM_APDU [18:01:45]CAPDU: 80 0D 01 02 [18:01:45]Write to MH i2c: E2 08 00 2C 21 80 0D 01 02 00 00 00 00 C6 [18:01:45]Write i2c OK [18:01:45]MH_I2C_Read... [18:01:45]OFD Sender: No OFD packet to send [18:01:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:45]Read from MH i2c: E2 [18:01:45]MH_I2C_Read... [18:01:45]Read from MH i2c: E2 03 00 [18:01:45]MH_I2C_Read... [18:01:45]Read from MH i2c: E2 03 00 2C 21 00 90 00 C1 [18:01:45]RAPDU: 90 00 [18:01:45]wFMCommunicate OK [18:01:45]wFMCommunicate request_size=255 [18:01:45]MH_SAM_APDU [18:01:45]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 0F D9 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [18:01:45]Write to MH i2c: E2 02 01 2D 21 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 0F D9 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 F5 [18:01:45]Write i2c OK [18:01:45]MH_I2C_Read... [18:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:45]Read from MH i2c: E2 [18:01:45]MH_I2C_Read... [18:01:45]Read from MH i2c: E2 03 00 [18:01:45]MH_I2C_Read... [18:01:45]Read from MH i2c: E2 03 00 2D 21 00 90 00 C2 [18:01:45]RAPDU: 90 00 [18:01:45]wFMCommunicate OK [18:01:45]wFMCommunicate request_size=29 [18:01:45]MH_SAM_APDU [18:01:45]CAPDU: 80 0D 02 02 18 38 37 34 39 33 37 10 04 04 00 23 6A 00 00 35 04 06 00 BC E6 54 3E 4A A8 [18:01:45]Write to MH i2c: E2 20 00 2E 21 80 0D 02 02 18 00 38 37 34 39 33 37 10 04 04 00 23 6A 00 00 35 04 06 00 BC E6 54 3E 4A A8 00 00 49 [18:01:45]Write i2c OK [18:01:45]MH_I2C_Read... [18:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:45]Read from MH i2c: E2 [18:01:45]MH_I2C_Read... [18:01:45]Read from MH i2c: E2 03 00 [18:01:45]MH_I2C_Read... [18:01:45]Read from MH i2c: E2 03 00 2E 21 00 90 00 C3 [18:01:45]RAPDU: 90 00 [18:01:45]wFMCommunicate OK [18:01:45]wFMCommunicate request_size=4 [18:01:45]MH_SAM_APDU [18:01:45]CAPDU: 80 0D 03 02 [18:01:45]Write to MH i2c: E2 08 00 2F 21 80 0D 03 02 00 00 00 00 CB [18:01:45]Write i2c OK [18:01:45]MH_I2C_Read... [18:01:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:45]Read from MH i2c: E2 [18:01:45]MH_I2C_Read... [18:01:45]Read from MH i2c: E2 0B 00 [18:01:45]MH_I2C_Read... [18:01:45]Read from MH i2c: E2 0B 00 2F 21 00 ED 22 C6 A3 4B C3 71 75 90 00 38 [18:01:45]RAPDU: ED 22 C6 A3 4B C3 71 75 90 00 [18:01:45]wFMCommunicate OK [18:01:45]SAM_PROTO_SignData done [18:01:45]FM_MakeSignedData done [18:01:45]CreateOFDProtocolMessage [18:01:45]wFMCommunicate request_size=4 [18:01:45]MH_SAM_APDU [18:01:45]CAPDU: 80 11 00 00 [18:01:45]Write to MH i2c: E2 08 00 30 21 80 11 00 00 00 00 00 00 CB [18:01:45]Write i2c OK [18:01:45]MH_I2C_Read... [18:01:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:46]Read from MH i2c: E2 [18:01:46]MH_I2C_Read... [18:01:46]Read from MH i2c: E2 17 00 [18:01:46]MH_I2C_Read... [18:01:46]Read from MH i2c: E2 17 00 30 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 24 [18:01:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [18:01:46]wFMCommunicate OK [18:01:46]CreateOFDProtocolMessage done [18:01:46]OFDSenderStorePacket 27171 [18:01:46]StoreOFDPacket docnum=27171 [18:01:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 22 01 00 00 81 9C 1A 01 98 17 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 0F D9 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 23 6A 00 00 35 04 06 00 BC E6 54 3E 4A A8 ED 22 C6 A3 4B C3 71 75 [18:01:46]CheckFolder [18:01:46]dirname=/storage/ofd_packets [18:01:46]CheckFolder done [18:01:46]ProducePacketName [18:01:46]name=ofd_packets/00027171 [18:01:46]NVStorageSaveData ofd_packets/00027171 [18:01:46]File name is /storage/ofd_packets/00027171 [18:01:46]Write 320 bytes [18:01:46]NVStorageSaveData done [18:01:46]OFDSenderStorePacket done [18:01:46]KKMCreateOFDPacket done [18:01:46]NVStorageSaveData kkm_last_timestamp [18:01:46]File name is /storage/kkm_last_timestamp [18:01:46]Write 4 bytes [18:01:46]NVStorageSaveData done [18:01:46]ExternCall_PrintAddStr [18:01:46]wPrintStart [18:01:46]Write to MH i2c: 01 00 00 31 21 52 [18:01:46]Write i2c OK [18:01:46]MH_I2C_Read... [18:01:46]Read from MH i2c: 01 [18:01:46]MH_I2C_Read... [18:01:46]Read from MH i2c: 01 07 00 [18:01:46]MH_I2C_Read... [18:01:46]Read from MH i2c: 01 07 00 31 21 00 00 00 00 00 FF 0F 67 [18:01:46]RasterBufferAndPrint [18:01:46]line Счет N : (3)150569 [18:01:46]line ИНН: 02508201610067 [18:01:46]line Контрольно-Кассовый Чек [18:01:46]line ПРОДАЖА [18:01:46]line Товар: 4700000480814 [18:01:46]line Пиво Живое 0,5 ст [18:01:46]line 1.000 * 100.00 [18:01:46]line = 100.00 [18:01:46]line НДС 12% НСП 1% [18:01:46]line > о реализуемом товаре [18:01:46]line ИТОГО: 100.00 [18:01:46]line НСП 1% : 0.88 [18:01:46]line НДС 12% : 10.62 [18:01:46]line Наличными: 100.00 [18:01:46]line Безнал.: 0.00 [18:01:46]line Место: АЗС № 134 "Партнер Нефть" [18:01:46]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:01:46]line СНО: Общий режим [18:01:46]line Чек 74 29.07.2024 18:01 [18:01:46]line Смена: 434 ФФД: 1.0 [18:01:46]line ЗНМ: 0300000043 [18:01:46]line РНМ: 0000000000092663 [18:01:46]line Версия ККМ: 001 [18:01:46]line ФМ: 0000000000874937 [18:01:46]line ФД: 27171 [18:01:46]line ФПД: 207697441868456 [18:01:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T180151&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27171&fm=207697441868456&tin=02508201610067®Number=0000000000092663&sum=10000 [18:01:46]line 0 [18:01:46]written 0, free lines is 4095 [18:01:46]OFD Sender: Processing packet 27171 [packets to send 9, broken 8] [18:01:46]ProducePacketName [18:01:46]name=ofd_packets/00027171 [18:01:46]OFD Sender: To server: pG, [18:01:46]CommunicateWithHost lk.salyk.kg:30040 [18:01:46]ConnectInit lk.salyk.kg [18:01:46]Write to MH i2c: 01 00 00 58 21 79 [18:01:46]Write i2c OK [18:01:46]MH_I2C_Read... [18:01:46]Read from MH i2c: 01 [18:01:46]MH_I2C_Read... [18:01:46]Read from MH i2c: 01 07 00 [18:01:46]MH_I2C_Read... [18:01:46]Read from MH i2c: 01 07 00 58 21 00 00 00 00 00 04 0D 91 [18:01:46]RasterBufferAndPrint [18:01:46]line [18:01:46]line [18:01:46]line [18:01:46]line [18:01:46]line [18:01:46]written 0, free lines is 3336 [18:01:46]MH_Cut [18:01:46]Write to MH i2c: D1 01 00 5F 21 01 52 [18:01:46]Write i2c OK [18:01:46]MH_I2C_Read... [18:01:46]Read from MH i2c: D1 [18:01:46]MH_I2C_Read... [18:01:46]Read from MH i2c: D1 01 00 [18:01:46]MH_I2C_Read... [18:01:46]Read from MH i2c: D1 01 00 5F 21 00 51 [18:01:46]Write to MH i2c: 01 00 00 60 21 81 [18:01:46]Write i2c OK [18:01:46]MH_I2C_Read... [18:01:46]Connected sock=10 [18:01:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 22 01 00 00 81 9C 1A 01 98 17 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 0F D9 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 23 6A 00 00 35 04 06 00 BC E6 54 3E 4A A8 ED 22 C6 A3 4B C3 71 75 [18:01:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 AE B6 47 00 1B BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 23 6A 00 00 F4 03 04 00 5F 7F A7 66 B6 04 01 00 00 7E DE A4 3A 74 A0 38 7B [18:01:46]CommunicateWithHost err = 0 [18:01:46]CheckOFDResponse [18:01:46]1017 (14) - 77093643461234 [18:01:46]1041 (16) - 0000000000874937 [18:01:46]1040 (4) - 27171 [18:01:46]1012 (4) - 29.07.2024 11:39 [18:01:46]1206 (1) - 0 [18:01:46]OFD Sender: Remove packet 27171 [18:01:46]ProducePacketName [18:01:46]name=ofd_packets/00027171 [18:01:46]NVStorageDeleteData [18:01:47]*** Cut start [18:01:47]*** Partial cut [18:01:47]*** CUTSNS_PIN = 1 [18:01:47]OFD Sender: No OFD packet to send [18:01:47]*** CUTSNS_PIN = 0 [18:01:47]*** Brake cut motor [18:01:47]Read from MH i2c: 01 [18:01:47]MH_I2C_Read... [18:01:47]*** Stop cut motor [18:01:47]*** Cut end [18:01:47]Read from MH i2c: 01 07 00 [18:01:47]MH_I2C_Read... [18:01:47]Read from MH i2c: 01 07 00 60 21 00 00 00 00 00 FF 0F 96 [18:01:47]process_action close_receipt done [18:01:47]requested_data is exist [18:01:47]produce_requested_data [18:01:47]requested_item fm.sn is exist - process it [18:01:47]wFMCommunicate request_size=4 [18:01:47]MH_SAM_APDU [18:01:47]CAPDU: 80 11 00 00 [18:01:47]Write to MH i2c: E2 08 00 61 21 80 11 00 00 00 00 00 00 FC [18:01:47]Write i2c OK [18:01:47]MH_I2C_Read... [18:01:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:47]Read from MH i2c: E2 [18:01:47]MH_I2C_Read... [18:01:47]Read from MH i2c: E2 17 00 [18:01:47]MH_I2C_Read... [18:01:47]Read from MH i2c: E2 17 00 61 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 55 [18:01:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [18:01:47]wFMCommunicate OK [18:01:47]requested_item fd.num is exist - process it [18:01:47]SAM_PROTO_GetFieldsCounters [18:01:47]wFMCommunicate request_size=4 [18:01:47]MH_SAM_APDU [18:01:47]CAPDU: 80 13 00 00 [18:01:47]Write to MH i2c: E2 08 00 62 21 80 13 00 00 00 00 00 00 FF [18:01:47]Write i2c OK [18:01:47]MH_I2C_Read... [18:01:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:48]Read from MH i2c: E2 [18:01:48]MH_I2C_Read... [18:01:48]Read from MH i2c: E2 62 00 [18:01:48]MH_I2C_Read... [18:01:48]Read from MH i2c: E2 62 00 62 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 23 6A 00 00 0E 04 04 00 B2 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 45 [18:01:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 23 6A 00 00 0E 04 04 00 B2 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 [18:01:48]wFMCommunicate OK [18:01:48]SAM_PROTO_GetFieldsCounters done [18:01:48]requested_item shift.num is exist - process it [18:01:48]requested_item shift.opened is exist - process it [18:01:48]req_shift_opened [18:01:48]FM_GetShiftState [18:01:48]SAM_PROTO_GetShiftState [18:01:48]wFMCommunicate request_size=4 [18:01:48]MH_SAM_APDU [18:01:48]CAPDU: 80 13 01 00 [18:01:48]Write to MH i2c: E2 08 00 63 21 80 13 01 00 00 00 00 00 01 [18:01:48]Write i2c OK [18:01:48]MH_I2C_Read... [18:01:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:48]Read from MH i2c: E2 [18:01:48]MH_I2C_Read... [18:01:48]Read from MH i2c: E2 0E 00 [18:01:48]MH_I2C_Read... [18:01:48]Read from MH i2c: E2 0E 00 63 21 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 82 [18:01:48]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [18:01:48]wFMCommunicate OK [18:01:48]SAM_PROTO_GetShiftState done [18:01:48]FM_GetShiftState done [18:01:48]req_shift_opened done [18:01:48]requested_item shift.open_date is exist - process it [18:01:48]req_shift_open_date [18:01:48]req_shift_open_date done [18:01:48]produce_requested_data done [18:01:48]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27171,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [18:01:48]process_action_free close_receipt [18:01:48]json_value_free [18:01:48]json_value_free done [18:01:48]process_json_proto returns [18:01:48]Send response to host [18:01:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27171,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [18:01:48]free response buf [18:01:48]execute_script done [18:01:48]execute_script returns [18:01:48]free content buf [18:01:48]Sock 9.Close socket [18:01:48]Sock 9.Thread stoped [18:01:52]OFD Sender: No OFD packet to send [18:01:57]OFD Sender: No OFD packet to send [18:02:02]OFD Sender: No OFD packet to send [18:02:07]OFD Sender: No OFD packet to send [18:02:12]OFD Sender: No OFD packet to send [18:02:17]OFD Sender: No OFD packet to send [18:02:22]OFD Sender: No OFD packet to send [18:02:27]OFD Sender: No OFD packet to send [18:02:32]OFD Sender: No OFD packet to send [18:02:37]OFD Sender: No OFD packet to send [18:02:42]OFD Sender: No OFD packet to send [18:02:47]OFD Sender: No OFD packet to send [18:02:52]OFD Sender: No OFD packet to send [18:02:57]OFD Sender: No OFD packet to send [18:03:02]OFD Sender: No OFD packet to send [18:03:07]OFD Sender: No OFD packet to send [18:03:12]OFD Sender: No OFD packet to send [18:03:17]OFD Sender: No OFD packet to send [18:03:22]OFD Sender: No OFD packet to send [18:03:27]OFD Sender: No OFD packet to send [18:03:32]OFD Sender: No OFD packet to send [18:03:37]OFD Sender: No OFD packet to send [18:03:42]OFD Sender: No OFD packet to send [18:03:47]OFD Sender: No OFD packet to send [18:03:52]OFD Sender: No OFD packet to send [18:03:57]OFD Sender: No OFD packet to send [18:04:02]OFD Sender: No OFD packet to send [18:04:07]OFD Sender: No OFD packet to send [18:04:12]OFD Sender: No OFD packet to send [18:04:17]OFD Sender: No OFD packet to send [18:04:22]OFD Sender: No OFD packet to send [18:04:27]OFD Sender: No OFD packet to send [18:04:32]OFD Sender: No OFD packet to send [18:04:37]OFD Sender: No OFD packet to send [18:04:42]OFD Sender: No OFD packet to send [18:04:47]OFD Sender: No OFD packet to send [18:04:52]OFD Sender: No OFD packet to send [18:04:57]OFD Sender: No OFD packet to send [18:05:02]OFD Sender: No OFD packet to send [18:05:07]OFD Sender: No OFD packet to send [18:05:12]OFD Sender: No OFD packet to send [18:05:17]OFD Sender: No OFD packet to send [18:05:22]OFD Sender: No OFD packet to send [18:05:27]OFD Sender: No OFD packet to send [18:05:32]OFD Sender: No OFD packet to send [18:05:37]OFD Sender: No OFD packet to send [18:05:42]OFD Sender: No OFD packet to send [18:05:47]OFD Sender: No OFD packet to send [18:05:52]OFD Sender: No OFD packet to send [18:05:57]OFD Sender: No OFD packet to send [18:06:02]OFD Sender: No OFD packet to send [18:06:07]OFD Sender: No OFD packet to send [18:06:12]OFD Sender: No OFD packet to send [18:06:17]OFD Sender: No OFD packet to send [18:06:22]OFD Sender: No OFD packet to send [18:06:27]OFD Sender: No OFD packet to send [18:06:32]OFD Sender: No OFD packet to send [18:06:37]OFD Sender: No OFD packet to send [18:06:42]OFD Sender: No OFD packet to send [18:06:47]OFD Sender: No OFD packet to send [18:06:52]OFD Sender: No OFD packet to send [18:06:57]OFD Sender: No OFD packet to send [18:07:02]OFD Sender: No OFD packet to send [18:07:07]OFD Sender: No OFD packet to send [18:07:12]OFD Sender: No OFD packet to send [18:07:17]OFD Sender: No OFD packet to send [18:07:22]OFD Sender: No OFD packet to send [18:07:27]OFD Sender: No OFD packet to send [18:07:32]OFD Sender: No OFD packet to send [18:07:37]OFD Sender: No OFD packet to send [18:07:42]OFD Sender: No OFD packet to send [18:07:47]OFD Sender: No OFD packet to send [18:07:52]OFD Sender: No OFD packet to send [18:07:57]OFD Sender: No OFD packet to send [18:08:02]OFD Sender: No OFD packet to send [18:08:07]OFD Sender: No OFD packet to send [18:08:12]OFD Sender: No OFD packet to send [18:08:17]OFD Sender: No OFD packet to send [18:08:22]OFD Sender: No OFD packet to send [18:08:27]OFD Sender: No OFD packet to send [18:08:32]OFD Sender: No OFD packet to send [18:08:37]OFD Sender: No OFD packet to send [18:08:42]OFD Sender: No OFD packet to send [18:08:47]OFD Sender: No OFD packet to send [18:08:52]OFD Sender: No OFD packet to send [18:08:57]OFD Sender: No OFD packet to send [18:09:02]OFD Sender: No OFD packet to send [18:09:07]OFD Sender: No OFD packet to send [18:09:12]OFD Sender: No OFD packet to send [18:09:17]OFD Sender: No OFD packet to send [18:09:22]OFD Sender: No OFD packet to send [18:09:27]OFD Sender: No OFD packet to send [18:09:32]OFD Sender: No OFD packet to send [18:09:37]OFD Sender: No OFD packet to send [18:09:42]OFD Sender: No OFD packet to send [18:09:47]OFD Sender: No OFD packet to send [18:09:52]OFD Sender: No OFD packet to send [18:09:57]OFD Sender: No OFD packet to send [18:10:02]OFD Sender: No OFD packet to send [18:10:07]OFD Sender: No OFD packet to send [18:10:12]OFD Sender: No OFD packet to send [18:10:17]OFD Sender: No OFD packet to send [18:10:22]OFD Sender: No OFD packet to send [18:10:27]OFD Sender: No OFD packet to send [18:10:32]OFD Sender: No OFD packet to send [18:10:37]OFD Sender: No OFD packet to send [18:10:42]OFD Sender: No OFD packet to send [18:10:47]OFD Sender: No OFD packet to send [18:10:52]OFD Sender: No OFD packet to send [18:10:57]OFD Sender: No OFD packet to send [18:11:02]OFD Sender: No OFD packet to send [18:11:07]OFD Sender: No OFD packet to send [18:11:12]OFD Sender: No OFD packet to send [18:11:17]OFD Sender: No OFD packet to send [18:11:22]OFD Sender: No OFD packet to send [18:11:27]OFD Sender: No OFD packet to send [18:11:32]OFD Sender: No OFD packet to send [18:11:37]OFD Sender: No OFD packet to send [18:11:42]OFD Sender: No OFD packet to send [18:11:47]OFD Sender: No OFD packet to send [18:11:52]OFD Sender: No OFD packet to send [18:11:57]OFD Sender: No OFD packet to send [18:12:02]OFD Sender: No OFD packet to send [18:12:07]OFD Sender: No OFD packet to send [18:12:12]OFD Sender: No OFD packet to send [18:12:17]OFD Sender: No OFD packet to send [18:12:22]OFD Sender: No OFD packet to send [18:12:27]OFD Sender: No OFD packet to send [18:12:32]OFD Sender: No OFD packet to send [18:12:37]OFD Sender: No OFD packet to send [18:12:42]OFD Sender: No OFD packet to send [18:12:47]OFD Sender: No OFD packet to send [18:12:52]OFD Sender: No OFD packet to send [18:12:57]OFD Sender: No OFD packet to send [18:13:02]OFD Sender: No OFD packet to send [18:13:07]OFD Sender: No OFD packet to send [18:13:12]OFD Sender: No OFD packet to send [18:13:17]OFD Sender: No OFD packet to send [18:13:22]OFD Sender: No OFD packet to send [18:13:27]OFD Sender: No OFD packet to send [18:13:32]OFD Sender: No OFD packet to send [18:13:37]OFD Sender: No OFD packet to send [18:13:42]OFD Sender: No OFD packet to send [18:13:47]OFD Sender: No OFD packet to send [18:13:52]OFD Sender: No OFD packet to send [18:13:57]OFD Sender: No OFD packet to send [18:14:02]OFD Sender: No OFD packet to send [18:14:07]OFD Sender: No OFD packet to send [18:14:12]OFD Sender: No OFD packet to send [18:14:17]OFD Sender: No OFD packet to send [18:14:22]OFD Sender: No OFD packet to send [18:14:27]OFD Sender: No OFD packet to send [18:14:32]OFD Sender: No OFD packet to send [18:14:37]OFD Sender: No OFD packet to send [18:14:42]OFD Sender: No OFD packet to send [18:14:47]OFD Sender: No OFD packet to send [18:14:52]OFD Sender: No OFD packet to send [18:14:57]OFD Sender: No OFD packet to send [18:15:02]OFD Sender: No OFD packet to send [18:15:07]OFD Sender: No OFD packet to send [18:15:12]OFD Sender: No OFD packet to send [18:15:17]OFD Sender: No OFD packet to send [18:15:22]OFD Sender: No OFD packet to send [18:15:27]OFD Sender: No OFD packet to send [18:15:32]OFD Sender: No OFD packet to send [18:15:37]OFD Sender: No OFD packet to send [18:15:42]OFD Sender: No OFD packet to send [18:15:47]OFD Sender: No OFD packet to send [18:15:52]OFD Sender: No OFD packet to send [18:15:57]OFD Sender: No OFD packet to send [18:16:02]OFD Sender: No OFD packet to send [18:16:07]OFD Sender: No OFD packet to send [18:16:12]OFD Sender: No OFD packet to send [18:16:17]OFD Sender: No OFD packet to send [18:16:22]OFD Sender: No OFD packet to send [18:16:27]OFD Sender: No OFD packet to send [18:16:32]OFD Sender: No OFD packet to send [18:16:37]OFD Sender: No OFD packet to send [18:16:42]OFD Sender: No OFD packet to send [18:16:47]OFD Sender: No OFD packet to send [18:16:52]OFD Sender: No OFD packet to send [18:16:57]OFD Sender: No OFD packet to send [18:17:02]OFD Sender: No OFD packet to send [18:17:07]OFD Sender: No OFD packet to send [18:17:12]OFD Sender: No OFD packet to send [18:17:17]OFD Sender: No OFD packet to send [18:17:22]OFD Sender: No OFD packet to send [18:17:27]OFD Sender: No OFD packet to send [18:17:32]OFD Sender: No OFD packet to send [18:17:37]OFD Sender: No OFD packet to send [18:17:42]OFD Sender: No OFD packet to send [18:17:47]OFD Sender: No OFD packet to send [18:17:52]OFD Sender: No OFD packet to send [18:17:57]OFD Sender: No OFD packet to send [18:18:02]OFD Sender: No OFD packet to send [18:18:07]OFD Sender: No OFD packet to send [18:18:12]OFD Sender: No OFD packet to send [18:18:17]OFD Sender: No OFD packet to send [18:18:22]OFD Sender: No OFD packet to send [18:18:27]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:48]accept exits with 8 [18:25:48]New connection [18:25:48]New thread 3066928484 created [18:25:48]Thread 3066785124 joined [18:25:48]Waiting for new connection... [18:25:48] Sock 8.Parse request [18:25:48]Sock 8.Check first char [18:25:48]Sock 8.First char is OK [18:25:48]request: POST /json_proto HTTP/1.0 [18:25:48]Method: POST [18:25:48]URL: /json_proto [18:25:48]Method is POST - this is cgi request [18:25:48]url: /json_proto [18:25:48]query_string will be loaded in cgi processing [18:25:48]execute_cgi json_proto POST (null) [18:25:48]execute_cgi path=json_proto method=POST [18:25:48]POST find Content-Length [18:25:48]Host: 172.17.45.8:8080 [18:25:48]Content-Length: 892 [18:25:48]Content-Type: application/json [18:25:48] [18:25:48]POST finish read [18:25:48]Found Content-Length = 892 [18:25:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150570", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\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" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:48]execute_script... [18:25: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)150570", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\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" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:48]POST & json_proto [18:25:48]process_json_proto [18:25:48]json parsed OK: [18:25:48]protocol is kg_v1.0 [18:25:48]action value=close_receipt [18:25:48]process_action close_receipt [18:25:48]cmd_close_receipt [18:25:48]MH_GetDate [18:25:48]Write to MH i2c: F0 00 00 64 21 74 [18:25:48]Write i2c OK [18:25:48]MH_I2C_Read... [18:25:48]Read from MH i2c: F0 [18:25:48]MH_I2C_Read... [18:25:48]Read from MH i2c: F0 09 00 [18:25:48]MH_I2C_Read... [18:25:48]Read from MH i2c: F0 09 00 64 21 00 B3 DE A7 66 A6 1F 7F 64 C3 [18:25:48]GetLastDocTimeStamp 1722276111 [18:25:48]current date 1722277555 [18:25:48]FM_GetShiftState [18:25:48]SAM_PROTO_GetShiftState [18:25:48]wFMCommunicate request_size=4 [18:25:48]MH_SAM_APDU [18:25:48]CAPDU: 80 13 01 00 [18:25:48]Write to MH i2c: E2 08 00 65 21 80 13 01 00 00 00 00 00 03 [18:25:48]Write i2c OK [18:25:48]MH_I2C_Read... [18:25:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:48]Read from MH i2c: E2 [18:25:48]MH_I2C_Read... [18:25:48]Read from MH i2c: E2 0E 00 [18:25:48]MH_I2C_Read... [18:25:48]Read from MH i2c: E2 0E 00 65 21 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 84 [18:25:48]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [18:25:48]wFMCommunicate OK [18:25:48]SAM_PROTO_GetShiftState done [18:25:48]FM_GetShiftState done [18:25:48]opened in 1722213509 [18:25:48]opened+sec_in_day 1722299909 [18:25:48]quantity*price = 5000 [18:25:48]sum+1 = 5001 [18:25:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 75 29.07.2024 18:25 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27172 ФПД: 111643500626964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T182555&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27172&fm=111643500626964&tin=02508201610067®Number=0000000000092663&sum=10000 0 [18:25:49]StoreToDocumentArchive [18:25:49]shift 434 fd 27172 [18:25:49]save to /storage/0434/doc_00027172 [18:25:49]save last doc name /storage/0434/doc_00027172 to /storage/kkm_last_doc_name [18:25:49]save OK [18:25:49]Clear old archive folders... [18:25:49]ProcessDocumentItem done err = 0, tmpTLVsize=374 [18:25:49]tlvbuf is 001AC750 [18:25:49]SAM_PROTO_ClearQueue [18:25:49]wFMCommunicate request_size=4 [18:25:49]MH_SAM_APDU [18:25:49]CAPDU: 80 09 00 00 [18:25:49]Write to MH i2c: E2 08 00 72 21 80 09 00 00 00 00 00 00 05 [18:25:49]Write i2c OK [18:25:49]MH_I2C_Read... [18:25:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:49]Read from MH i2c: E2 [18:25:49]MH_I2C_Read... [18:25:49]Read from MH i2c: E2 03 00 [18:25:49]MH_I2C_Read... [18:25:49]Read from MH i2c: E2 03 00 72 21 00 90 00 07 [18:25:49]RAPDU: 90 00 [18:25:49]wFMCommunicate OK [18:25:49]SAM_PROTO_ClearQueue done [18:25:49]KKMCreateOFDPacket [18:25:49]OFDProtocolAddRootSTLVToBuf [18:25:49]FM_MakeSignedData [18:25:49]FM_MakeSignedData [18:25:49]SAM_PROTO_SignData [18:25:49]wFMCommunicate request_size=4 [18:25:49]MH_SAM_APDU [18:25:49]CAPDU: 80 0D 01 02 [18:25:49]Write to MH i2c: E2 08 00 73 21 80 0D 01 02 00 00 00 00 0D [18:25:49]Write i2c OK [18:25:49]MH_I2C_Read... [18:25:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:49]Read from MH i2c: E2 [18:25:49]MH_I2C_Read... [18:25:49]Read from MH i2c: E2 03 00 [18:25:49]MH_I2C_Read... [18:25:49]Read from MH i2c: E2 03 00 73 21 00 90 00 08 [18:25:49]RAPDU: 90 00 [18:25:49]wFMCommunicate OK [18:25:49]wFMCommunicate request_size=255 [18:25:49]MH_SAM_APDU [18:25:49]CAPDU: 80 0D 02 02 FA 03 00 76 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 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 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 [18:25:49]Write to MH i2c: E2 02 01 74 21 80 0D 02 02 FA 00 03 00 76 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 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 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 00 00 D4 [18:25:49]Write i2c OK [18:25:49]MH_I2C_Read... [18:25:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:50]Read from MH i2c: E2 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: E2 03 00 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: E2 03 00 74 21 00 90 00 09 [18:25:50]RAPDU: 90 00 [18:25:50]wFMCommunicate OK [18:25:50]wFMCommunicate request_size=133 [18:25:50]MH_SAM_APDU [18:25:50]CAPDU: 80 0D 02 02 80 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 B3 DE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 24 6A 00 00 35 04 06 00 65 8A 07 32 44 14 [18:25:50]Write to MH i2c: E2 88 00 75 21 80 0D 02 02 80 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 B3 DE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 24 6A 00 00 35 04 06 00 65 8A 07 32 44 14 00 00 4F [18:25:50]Write i2c OK [18:25:50]MH_I2C_Read... [18:25:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:50]Read from MH i2c: E2 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: E2 03 00 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: E2 03 00 75 21 00 90 00 0A [18:25:50]RAPDU: 90 00 [18:25:50]wFMCommunicate OK [18:25:50]wFMCommunicate request_size=4 [18:25:50]MH_SAM_APDU [18:25:50]CAPDU: 80 0D 03 02 [18:25:50]Write to MH i2c: E2 08 00 76 21 80 0D 03 02 00 00 00 00 12 [18:25:50]Write i2c OK [18:25:50]MH_I2C_Read... [18:25:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:50]Read from MH i2c: E2 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: E2 0B 00 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: E2 0B 00 76 21 00 AF 37 41 3F AE 04 1C CE 90 00 15 [18:25:50]RAPDU: AF 37 41 3F AE 04 1C CE 90 00 [18:25:50]wFMCommunicate OK [18:25:50]SAM_PROTO_SignData done [18:25:50]FM_MakeSignedData done [18:25:50]CreateOFDProtocolMessage [18:25:50]wFMCommunicate request_size=4 [18:25:50]MH_SAM_APDU [18:25:50]CAPDU: 80 11 00 00 [18:25:50]Write to MH i2c: E2 08 00 77 21 80 11 00 00 00 00 00 00 12 [18:25:50]Write i2c OK [18:25:50]MH_I2C_Read... [18:25:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:50]Read from MH i2c: E2 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: E2 17 00 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: E2 17 00 77 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 6B [18:25:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [18:25:50]wFMCommunicate OK [18:25:50]CreateOFDProtocolMessage done [18:25:50]OFDSenderStorePacket 27172 [18:25:50]StoreOFDPacket docnum=27172 [18:25:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 8A 01 00 00 4D 51 82 01 2A 18 5A 03 01 00 03 00 76 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 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 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 B3 DE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 24 6A 00 00 35 04 06 00 65 8A 07 32 44 14 AF 37 41 3F AE 04 1C CE [18:25:50]CheckFolder [18:25:50]dirname=/storage/ofd_packets [18:25:50]CheckFolder done [18:25:50]ProducePacketName [18:25:50]name=ofd_packets/00027172 [18:25:50]NVStorageSaveData ofd_packets/00027172 [18:25:50]File name is /storage/ofd_packets/00027172 [18:25:50]Write 424 bytes [18:25:50]NVStorageSaveData done [18:25:50]OFDSenderStorePacket done [18:25:50]KKMCreateOFDPacket done [18:25:50]NVStorageSaveData kkm_last_timestamp [18:25:50]File name is /storage/kkm_last_timestamp [18:25:50]Write 4 bytes [18:25:50]NVStorageSaveData done [18:25:50]ExternCall_PrintAddStr [18:25:50]wPrintStart [18:25:50]Write to MH i2c: 01 00 00 78 21 99 [18:25:50]Write i2c OK [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: 01 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: 01 07 00 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: 01 07 00 78 21 00 00 00 00 00 FF 0F AE [18:25:50]RasterBufferAndPrint [18:25:50]line Счет N : (3)150570 [18:25:50]line ИНН: 02508201610067 [18:25:50]line Контрольно-Кассовый Чек [18:25:50]line ПРОДАЖА [18:25:50]line Товар: 5449000005489 [18:25:50]line Вода Бонаква 1л б/г [18:25:50]line 1.000 * 50.00 [18:25:50]line = 50.00 [18:25:50]line НДС 12% НСП 1% [18:25:50]line > о реализуемом товаре [18:25:50]line Товар: 4700000160358 [18:25:50]line Вода Легенда 1л [18:25:50]line 1.000 * 50.00 [18:25:50]line = 50.00 [18:25:50]line НДС 12% НСП 1% [18:25:50]line > о реализуемом товаре [18:25:50]line ИТОГО: 100.00 [18:25:50]line НСП 1% : 0.88 [18:25:50]line НДС 12% : 10.62 [18:25:50]line Наличными: 100.00 [18:25:50]line Безнал.: 0.00 [18:25:50]line Место: АЗС № 134 "Партнер Нефть" [18:25:50]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:25:50]line СНО: Общий режим [18:25:50]line Чек 75 29.07.2024 18:25 [18:25:50]line Смена: 434 ФФД: 1.0 [18:25:50]line ЗНМ: 0300000043 [18:25:50]line РНМ: 0000000000092663 [18:25:50]line Версия ККМ: 001 [18:25:50]line ФМ: 0000000000874937 [18:25:50]line ФД: 27172 [18:25:50]line ФПД: 111643500626964 [18:25:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T182555&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27172&fm=111643500626964&tin=02508201610067®Number=0000000000092663&sum=10000 [18:25:50]line 0 [18:25:50]OFD Sender: Processing packet 27172 [packets to send 9, broken 8] [18:25:50]ProducePacketName [18:25:50]name=ofd_packets/00027172 [18:25:50]OFD Sender: To server: pG, [18:25:50]CommunicateWithHost lk.salyk.kg:30040 [18:25:50]ConnectInit lk.salyk.kg [18:25:50]written 0, free lines is 4095 [18:25:50]Connected sock=10 [18:25:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 8A 01 00 00 4D 51 82 01 2A 18 5A 03 01 00 03 00 76 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 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 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 B3 DE A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 24 6A 00 00 35 04 06 00 65 8A 07 32 44 14 AF 37 41 3F AE 04 1C CE [18:25:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 88 42 47 00 4A C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 24 6A 00 00 F4 03 04 00 03 85 A7 66 B6 04 01 00 00 9F 43 87 18 0E E4 98 06 [18:25:50]CommunicateWithHost err = 0 [18:25:50]CheckOFDResponse [18:25:50]1017 (14) - 77093643461234 [18:25:50]1041 (16) - 0000000000874937 [18:25:50]1040 (4) - 27172 [18:25:50]1012 (4) - 29.07.2024 12:03 [18:25:50]1206 (1) - 0 [18:25:50]OFD Sender: Remove packet 27172 [18:25:50]ProducePacketName [18:25:50]name=ofd_packets/00027172 [18:25:50]NVStorageDeleteData [18:25:51]Write to MH i2c: 01 00 00 A5 21 C6 [18:25:51]Write i2c OK [18:25:51]MH_I2C_Read... [18:25:51]Read from MH i2c: 01 [18:25:51]MH_I2C_Read... [18:25:51]Read from MH i2c: 01 07 00 [18:25:51]MH_I2C_Read... [18:25:51]Read from MH i2c: 01 07 00 A5 21 00 00 00 00 00 C3 0C 9C [18:25:51]RasterBufferAndPrint [18:25:51]line [18:25:51]line [18:25:51]line [18:25:51]line [18:25:51]line [18:25:51]written 0, free lines is 3273 [18:25:51]MH_Cut [18:25:51]Write to MH i2c: D1 01 00 AC 21 01 9F [18:25:51]Write i2c OK [18:25:51]MH_I2C_Read... [18:25:51]Read from MH i2c: D1 [18:25:51]MH_I2C_Read... [18:25:51]Read from MH i2c: D1 01 00 [18:25:51]MH_I2C_Read... [18:25:51]Read from MH i2c: D1 01 00 AC 21 00 9E [18:25:51]Write to MH i2c: 01 00 00 AD 21 CE [18:25:51]Write i2c OK [18:25:51]MH_I2C_Read... [18:25:51]OFD Sender: No OFD packet to send [18:25:51]*** Cut start [18:25:51]*** Partial cut [18:25:51]*** CUTSNS_PIN = 1 [18:25:51]*** CUTSNS_PIN = 0 [18:25:52]*** Brake cut motor [18:25:52]Read from MH i2c: 01 [18:25:52]MH_I2C_Read... [18:25:52]*** Stop cut motor [18:25:52]*** Cut end [18:25:52]Read from MH i2c: 01 07 00 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: 01 07 00 AD 21 00 00 00 00 00 FF 0F E3 [18:25:52]process_action close_receipt done [18:25:52]requested_data is exist [18:25:52]produce_requested_data [18:25:52]requested_item fm.sn is exist - process it [18:25:52]wFMCommunicate request_size=4 [18:25:52]MH_SAM_APDU [18:25:52]CAPDU: 80 11 00 00 [18:25:52]Write to MH i2c: E2 08 00 AE 21 80 11 00 00 00 00 00 00 49 [18:25:52]Write i2c OK [18:25:52]MH_I2C_Read... [18:25:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:52]Read from MH i2c: E2 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: E2 17 00 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: E2 17 00 AE 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 A2 [18:25:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [18:25:52]wFMCommunicate OK [18:25:52]requested_item fd.num is exist - process it [18:25:52]SAM_PROTO_GetFieldsCounters [18:25:52]wFMCommunicate request_size=4 [18:25:52]MH_SAM_APDU [18:25:52]CAPDU: 80 13 00 00 [18:25:52]Write to MH i2c: E2 08 00 AF 21 80 13 00 00 00 00 00 00 4C [18:25:52]Write i2c OK [18:25:52]MH_I2C_Read... [18:25:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:52]Read from MH i2c: E2 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: E2 62 00 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: E2 62 00 AF 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 24 6A 00 00 0E 04 04 00 B2 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 96 [18:25:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 24 6A 00 00 0E 04 04 00 B2 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 [18:25:52]wFMCommunicate OK [18:25:52]SAM_PROTO_GetFieldsCounters done [18:25:52]requested_item shift.num is exist - process it [18:25:52]requested_item shift.opened is exist - process it [18:25:52]req_shift_opened [18:25:52]FM_GetShiftState [18:25:52]SAM_PROTO_GetShiftState [18:25:52]wFMCommunicate request_size=4 [18:25:52]MH_SAM_APDU [18:25:52]CAPDU: 80 13 01 00 [18:25:52]Write to MH i2c: E2 08 00 B0 21 80 13 01 00 00 00 00 00 4E [18:25:52]Write i2c OK [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: E2 [18:25:52]MH_I2C_Read... [18:25:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:52]Read from MH i2c: E2 0E 00 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: E2 0E 00 B0 21 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 CF [18:25:52]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [18:25:52]wFMCommunicate OK [18:25:52]SAM_PROTO_GetShiftState done [18:25:52]FM_GetShiftState done [18:25:52]req_shift_opened done [18:25:52]requested_item shift.open_date is exist - process it [18:25:52]req_shift_open_date [18:25:52]req_shift_open_date done [18:25:52]produce_requested_data done [18:25:52]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27172,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [18:25:52]process_action_free close_receipt [18:25:52]json_value_free [18:25:52]json_value_free done [18:25:52]process_json_proto returns [18:25:52]Send response to host [18:25:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27172,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [18:25:52]free response buf [18:25:52]execute_script done [18:25:52]execute_script returns [18:25:52]free content buf [18:25:52]Sock 8.Close socket [18:25:52]Sock 8.Thread stoped [18:25:56]OFD Sender: No OFD packet to send [18:26:01]OFD Sender: No OFD packet to send [18:26:06]OFD Sender: No OFD packet to send [18:26:11]OFD Sender: No OFD packet to send [18:26:16]OFD Sender: No OFD packet to send [18:26:21]OFD Sender: No OFD packet to send [18:26:26]OFD Sender: No OFD packet to send [18:26:31]OFD Sender: No OFD packet to send [18:26:36]OFD Sender: No OFD packet to send [18:26:41]OFD Sender: No OFD packet to send [18:26:46]OFD Sender: No OFD packet to send [18:26:51]OFD Sender: No OFD packet to send [18:26:56]OFD Sender: No OFD packet to send [18:27:01]OFD Sender: No OFD packet to send [18:27:06]OFD Sender: No OFD packet to send [18:27:11]OFD Sender: No OFD packet to send [18:27:16]OFD Sender: No OFD packet to send [18:27:21]OFD Sender: No OFD packet to send [18:27:26]OFD Sender: No OFD packet to send [18:27:31]OFD Sender: No OFD packet to send [18:27:36]OFD Sender: No OFD packet to send [18:27:41]OFD Sender: No OFD packet to send [18:27:46]OFD Sender: No OFD packet to send [18:27:51]OFD Sender: No OFD packet to send [18:27:56]OFD Sender: No OFD packet to send [18:28:01]OFD Sender: No OFD packet to send [18:28:06]OFD Sender: No OFD packet to send [18:28:11]OFD Sender: No OFD packet to send [18:28:16]OFD Sender: No OFD packet to send [18:28:21]OFD Sender: No OFD packet to send [18:28:26]OFD Sender: No OFD packet to send [18:28:31]OFD Sender: No OFD packet to send [18:28:36]OFD Sender: No OFD packet to send [18:28:41]OFD Sender: No OFD packet to send [18:28:46]OFD Sender: No OFD packet to send [18:28:51]OFD Sender: No OFD packet to send [18:28:56]OFD Sender: No OFD packet to send [18:29:01]OFD Sender: No OFD packet to send [18:29:06]OFD Sender: No OFD packet to send [18:29:11]OFD Sender: No OFD packet to send [18:29:16]OFD Sender: No OFD packet to send [18:29:21]OFD Sender: No OFD packet to send [18:29:26]OFD Sender: No OFD packet to send [18:29:31]OFD Sender: No OFD packet to send [18:29:36]OFD Sender: No OFD packet to send [18:29:41]OFD Sender: No OFD packet to send [18:29:46]OFD Sender: No OFD packet to send [18:29:51]OFD Sender: No OFD packet to send [18:29:56]OFD Sender: No OFD packet to send [18:30:01]OFD Sender: No OFD packet to send [18:30:06]OFD Sender: No OFD packet to send [18:30:11]OFD Sender: No OFD packet to send [18:30:16]OFD Sender: No OFD packet to send [18:30:21]OFD Sender: No OFD packet to send [18:30:26]OFD Sender: No OFD packet to send [18:30:31]OFD Sender: No OFD packet to send [18:30:36]OFD Sender: No OFD packet to send [18:30:41]OFD Sender: No OFD packet to send [18:30:46]OFD Sender: No OFD packet to send [18:30:51]OFD Sender: No OFD packet to send [18:30:56]OFD Sender: No OFD packet to send [18:31:01]OFD Sender: No OFD packet to send [18:31:06]OFD Sender: No OFD packet to send [18:31:11]OFD Sender: No OFD packet to send [18:31:16]OFD Sender: No OFD packet to send [18:31:21]OFD Sender: No OFD packet to send [18:31:26]OFD Sender: No OFD packet to send [18:31:31]OFD Sender: No OFD packet to send [18:31:36]OFD Sender: No OFD packet to send [18:31:41]OFD Sender: No OFD packet to send [18:31:43]accept exits with 9 [18:31:43]New connection [18:31:43]New thread 3066785124 created [18:31:43]Thread 3066928484 joined [18:31:43]Waiting for new connection... [18:31:43] Sock 9.Parse request [18:31:43]Sock 9.Check first char [18:31:43]Sock 9.First char is OK [18:31:43]request: POST /json_proto HTTP/1.0 [18:31:43]Method: POST [18:31:43]URL: /json_proto [18:31:43]Method is POST - this is cgi request [18:31:43]url: /json_proto [18:31:43]query_string will be loaded in cgi processing [18:31:43]execute_cgi json_proto POST (null) [18:31:43]execute_cgi path=json_proto method=POST [18:31:43]POST find Content-Length [18:31:43]Host: 172.17.45.8:8080 [18:31:43]Content-Length: 893 [18:31:43]Content-Type: application/json [18:31:43] [18:31:43]POST finish read [18:31:43]Found Content-Length = 893 [18:31:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150571", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:43]execute_script... [18:31: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)150571", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:43]POST & json_proto [18:31:43]process_json_proto [18:31:43]json parsed OK: [18:31:43]protocol is kg_v1.0 [18:31:43]action value=close_receipt [18:31:43]process_action close_receipt [18:31:43]cmd_close_receipt [18:31:43]MH_GetDate [18:31:43]Write to MH i2c: F0 00 00 B1 21 C1 [18:31:43]Write i2c OK [18:31:43]MH_I2C_Read... [18:31:43]Read from MH i2c: F0 [18:31:43]MH_I2C_Read... [18:31:43]Read from MH i2c: F0 09 00 [18:31:43]MH_I2C_Read... [18:31:43]Read from MH i2c: F0 09 00 B1 21 00 16 E0 A7 66 A6 1F 7F 64 75 [18:31:43]GetLastDocTimeStamp 1722277555 [18:31:43]current date 1722277910 [18:31:43]FM_GetShiftState [18:31:43]SAM_PROTO_GetShiftState [18:31:43]wFMCommunicate request_size=4 [18:31:43]MH_SAM_APDU [18:31:43]CAPDU: 80 13 01 00 [18:31:43]Write to MH i2c: E2 08 00 B2 21 80 13 01 00 00 00 00 00 50 [18:31:43]Write i2c OK [18:31:43]MH_I2C_Read... [18:31:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:43]Read from MH i2c: E2 [18:31:43]MH_I2C_Read... [18:31:43]Read from MH i2c: E2 0E 00 [18:31:43]MH_I2C_Read... [18:31:43]Read from MH i2c: E2 0E 00 B2 21 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 D1 [18:31:43]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [18:31:43]wFMCommunicate OK [18:31:43]SAM_PROTO_GetShiftState done [18:31:43]FM_GetShiftState done [18:31:43]opened in 1722213509 [18:31:43]opened+sec_in_day 1722299909 [18:31:43]quantity*price = 5000 [18:31:43]sum+1 = 5001 [18:31:43]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310043 Вода Жалалабат 27 1л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 76 29.07.2024 18:31 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27173 ФПД: 3665575283870 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T183150&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27173&fm=3665575283870&tin=02508201610067®Number=0000000000092663&sum=11000 0 [18:31:44]StoreToDocumentArchive [18:31:44]shift 434 fd 27173 [18:31:44]save to /storage/0434/doc_00027173 [18:31:44]save last doc name /storage/0434/doc_00027173 to /storage/kkm_last_doc_name [18:31:44]save OK [18:31:44]Clear old archive folders... [18:31:44]ProcessDocumentItem done err = 0, tmpTLVsize=375 [18:31:44]tlvbuf is B6F4F8D0 [18:31:44]SAM_PROTO_ClearQueue [18:31:44]wFMCommunicate request_size=4 [18:31:44]MH_SAM_APDU [18:31:44]CAPDU: 80 09 00 00 [18:31:44]Write to MH i2c: E2 08 00 BF 21 80 09 00 00 00 00 00 00 52 [18:31:44]Write i2c OK [18:31:44]MH_I2C_Read... [18:31:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:44]Read from MH i2c: E2 [18:31:44]MH_I2C_Read... [18:31:44]Read from MH i2c: E2 03 00 [18:31:44]MH_I2C_Read... [18:31:44]Read from MH i2c: E2 03 00 BF 21 00 90 00 54 [18:31:44]RAPDU: 90 00 [18:31:44]wFMCommunicate OK [18:31:44]SAM_PROTO_ClearQueue done [18:31:44]KKMCreateOFDPacket [18:31:44]OFDProtocolAddRootSTLVToBuf [18:31:44]FM_MakeSignedData [18:31:44]FM_MakeSignedData [18:31:44]SAM_PROTO_SignData [18:31:44]wFMCommunicate request_size=4 [18:31:44]MH_SAM_APDU [18:31:44]CAPDU: 80 0D 01 02 [18:31:44]Write to MH i2c: E2 08 00 C0 21 80 0D 01 02 00 00 00 00 5A [18:31:44]Write i2c OK [18:31:44]MH_I2C_Read... [18:31:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:44]Read from MH i2c: E2 [18:31:44]MH_I2C_Read... [18:31:44]Read from MH i2c: E2 03 00 [18:31:44]MH_I2C_Read... [18:31:44]Read from MH i2c: E2 03 00 C0 21 00 90 00 55 [18:31:44]RAPDU: 90 00 [18:31:44]wFMCommunicate OK [18:31:44]wFMCommunicate request_size=255 [18:31:44]MH_SAM_APDU [18:31:44]CAPDU: 80 0D 02 02 FA 03 00 77 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 [18:31:44]Write to MH i2c: E2 02 01 C1 21 80 0D 02 02 FA 00 03 00 77 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 D4 [18:31:44]Write i2c OK [18:31:44]MH_I2C_Read... [18:31:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:44]Read from MH i2c: E2 [18:31:44]MH_I2C_Read... [18:31:44]Read from MH i2c: E2 03 00 [18:31:44]MH_I2C_Read... [18:31:44]Read from MH i2c: E2 03 00 C1 21 00 90 00 56 [18:31:44]RAPDU: 90 00 [18:31:44]wFMCommunicate OK [18:31:44]wFMCommunicate request_size=134 [18:31:44]MH_SAM_APDU [18:31:44]CAPDU: 80 0D 02 02 81 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 4C 00 00 00 F4 03 04 00 16 E0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 25 6A 00 00 35 04 06 00 03 55 75 50 0C 9E [18:31:44]Write to MH i2c: E2 89 00 C2 21 80 0D 02 02 81 00 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 4C 00 00 00 F4 03 04 00 16 E0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 25 6A 00 00 35 04 06 00 03 55 75 50 0C 9E 00 00 A1 [18:31:44]Write i2c OK [18:31:44]MH_I2C_Read... [18:31:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:44]Read from MH i2c: E2 [18:31:44]MH_I2C_Read... [18:31:44]Read from MH i2c: E2 03 00 [18:31:44]MH_I2C_Read... [18:31:44]Read from MH i2c: E2 03 00 C2 21 00 90 00 57 [18:31:44]RAPDU: 90 00 [18:31:44]wFMCommunicate OK [18:31:44]wFMCommunicate request_size=4 [18:31:44]MH_SAM_APDU [18:31:44]CAPDU: 80 0D 03 02 [18:31:44]Write to MH i2c: E2 08 00 C3 21 80 0D 03 02 00 00 00 00 5F [18:31:44]Write i2c OK [18:31:44]MH_I2C_Read... [18:31:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:44]Read from MH i2c: E2 [18:31:44]MH_I2C_Read... [18:31:44]Read from MH i2c: E2 0B 00 [18:31:44]MH_I2C_Read... [18:31:44]Read from MH i2c: E2 0B 00 C3 21 00 12 A6 40 88 28 85 A2 E7 90 00 16 [18:31:44]RAPDU: 12 A6 40 88 28 85 A2 E7 90 00 [18:31:44]wFMCommunicate OK [18:31:44]SAM_PROTO_SignData done [18:31:44]FM_MakeSignedData done [18:31:44]CreateOFDProtocolMessage [18:31:44]wFMCommunicate request_size=4 [18:31:44]MH_SAM_APDU [18:31:44]CAPDU: 80 11 00 00 [18:31:44]Write to MH i2c: E2 08 00 C4 21 80 11 00 00 00 00 00 00 5F [18:31:44]Write i2c OK [18:31:44]MH_I2C_Read... [18:31:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:44]Read from MH i2c: E2 [18:31:44]MH_I2C_Read... [18:31:44]Read from MH i2c: E2 17 00 [18:31:44]MH_I2C_Read... [18:31:44]Read from MH i2c: E2 17 00 C4 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 B8 [18:31:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [18:31:44]wFMCommunicate OK [18:31:44]CreateOFDProtocolMessage done [18:31:44]OFDSenderStorePacket 27173 [18:31:44]StoreOFDPacket docnum=27173 [18:31:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 8B 01 00 00 B5 94 83 01 75 30 5A 03 01 00 03 00 77 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 4C 00 00 00 F4 03 04 00 16 E0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 25 6A 00 00 35 04 06 00 03 55 75 50 0C 9E 12 A6 40 88 28 85 A2 E7 [18:31:44]CheckFolder [18:31:44]dirname=/storage/ofd_packets [18:31:44]CheckFolder done [18:31:44]ProducePacketName [18:31:44]name=ofd_packets/00027173 [18:31:44]NVStorageSaveData ofd_packets/00027173 [18:31:44]File name is /storage/ofd_packets/00027173 [18:31:44]Write 425 bytes [18:31:44]NVStorageSaveData done [18:31:44]OFDSenderStorePacket done [18:31:44]KKMCreateOFDPacket done [18:31:44]NVStorageSaveData kkm_last_timestamp [18:31:44]File name is /storage/kkm_last_timestamp [18:31:44]Write 4 bytes [18:31:44]NVStorageSaveData done [18:31:44]ExternCall_PrintAddStr [18:31:44]wPrintStart [18:31:44]Write to MH i2c: 01 00 00 C5 21 E6 [18:31:44]Write i2c OK [18:31:44]MH_I2C_Read... [18:31:44]Read from MH i2c: 01 [18:31:44]MH_I2C_Read... [18:31:44]Read from MH i2c: 01 07 00 [18:31:44]MH_I2C_Read... [18:31:44]Read from MH i2c: 01 07 00 C5 21 00 00 00 00 00 FF 0F FB [18:31:44]RasterBufferAndPrint [18:31:44]line Счет N : (3)150571 [18:31:44]line ИНН: 02508201610067 [18:31:44]line Контрольно-Кассовый Чек [18:31:44]line ПРОДАЖА [18:31:44]line Товар: 4700000160358 [18:31:44]line Вода Легенда 1л [18:31:44]line 1.000 * 50.00 [18:31:44]line = 50.00 [18:31:44]line НДС 12% НСП 1% [18:31:44]line > о реализуемом товаре [18:31:44]line Товар: 4700000310043 [18:31:44]line Вода Жалалабат 27 1л [18:31:44]line 1.000 * 60.00 [18:31:44]line = 60.00 [18:31:44]line НДС 12% НСП 1% [18:31:44]line > о реализуемом товаре [18:31:44]line ИТОГО: 110.00 [18:31:44]line НСП 1% : 0.97 [18:31:44]line НДС 12% : 11.68 [18:31:44]line Наличными: 110.00 [18:31:44]line Безнал.: 0.00 [18:31:44]line Место: АЗС № 134 "Партнер Нефть" [18:31:44]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:31:45]line СНО: Общий режим [18:31:45]line Чек 76 29.07.2024 18:31 [18:31:45]line Смена: 434 ФФД: 1.0 [18:31:45]line ЗНМ: 0300000043 [18:31:45]line РНМ: 0000000000092663 [18:31:45]line Версия ККМ: 001 [18:31:45]line ФМ: 0000000000874937 [18:31:45]line ФД: 27173 [18:31:45]line ФПД: 3665575283870 [18:31:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T183150&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27173&fm=3665575283870&tin=02508201610067®Number=0000000000092663&sum=11000 [18:31:45]line 0 [18:31:45]OFD Sender: Processing packet 27173 [packets to send 9, broken 8] [18:31:45]ProducePacketName [18:31:45]name=ofd_packets/00027173 [18:31:45]OFD Sender: To server: pG, [18:31:45]CommunicateWithHost lk.salyk.kg:30040 [18:31:45]ConnectInit lk.salyk.kg [18:31:45]written 0, free lines is 4095 [18:31:45]Connected sock=10 [18:31:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 8B 01 00 00 B5 94 83 01 75 30 5A 03 01 00 03 00 77 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 4C 00 00 00 F4 03 04 00 16 E0 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 25 6A 00 00 35 04 06 00 03 55 75 50 0C 9E 12 A6 40 88 28 85 A2 E7 [18:31:45]Write to MH i2c: 01 00 00 F2 21 13 [18:31:45]Write i2c OK [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: 01 [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: 01 07 00 [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: 01 07 00 F2 21 00 00 00 00 00 B1 0C D7 [18:31:45]RasterBufferAndPrint [18:31:45]line [18:31:45]line [18:31:45]line [18:31:45]line [18:31:45]line [18:31:45]written 0, free lines is 3254 [18:31:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 E7 7E 47 00 D0 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 25 6A 00 00 F4 03 04 00 66 86 A7 66 B6 04 01 00 00 91 4E 1B 07 54 D7 37 74 [18:31:45]CommunicateWithHost err = 0 [18:31:45]CheckOFDResponse [18:31:45]1017 (14) - 77093643461234 [18:31:45]1041 (16) - 0000000000874937 [18:31:45]1040 (4) - 27173 [18:31:45]1012 (4) - 29.07.2024 12:09 [18:31:45]1206 (1) - 0 [18:31:45]OFD Sender: Remove packet 27173 [18:31:45]ProducePacketName [18:31:45]name=ofd_packets/00027173 [18:31:45]NVStorageDeleteData [18:31:45]MH_Cut [18:31:45]Write to MH i2c: D1 01 00 F9 21 01 EC [18:31:45]Write i2c OK [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: D1 [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: D1 01 00 [18:31:45]MH_I2C_Read... [18:31:45]Read from MH i2c: D1 01 00 F9 21 00 EB [18:31:45]Write to MH i2c: 01 00 00 FA 21 1B [18:31:45]Write i2c OK [18:31:45]MH_I2C_Read... [18:31:46]OFD Sender: No OFD packet to send [18:31:46]*** Cut start [18:31:46]*** Partial cut [18:31:46]*** CUTSNS_PIN = 1 [18:31:46]*** CUTSNS_PIN = 0 [18:31:46]*** Brake cut motor [18:31:47]Read from MH i2c: 01 [18:31:47]MH_I2C_Read... [18:31:47]*** Stop cut motor [18:31:47]*** Cut end [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 FA 21 00 00 00 00 00 FF 0F 30 [18:31:47]process_action close_receipt done [18:31:47]requested_data is exist [18:31:47]produce_requested_data [18:31:47]requested_item fm.sn is exist - process it [18:31:47]wFMCommunicate request_size=4 [18:31:47]MH_SAM_APDU [18:31:47]CAPDU: 80 11 00 00 [18:31:47]Write to MH i2c: E2 08 00 FB 21 80 11 00 00 00 00 00 00 96 [18:31:47]Write i2c OK [18:31:47]MH_I2C_Read... [18:31:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:47]Read from MH i2c: E2 [18:31:47]MH_I2C_Read... [18:31:47]Read from MH i2c: E2 17 00 [18:31:47]MH_I2C_Read... [18:31:47]Read from MH i2c: E2 17 00 FB 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 EF [18:31:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [18:31:47]wFMCommunicate OK [18:31:47]requested_item fd.num is exist - process it [18:31:47]SAM_PROTO_GetFieldsCounters [18:31:47]wFMCommunicate request_size=4 [18:31:47]MH_SAM_APDU [18:31:47]CAPDU: 80 13 00 00 [18:31:47]Write to MH i2c: E2 08 00 FC 21 80 13 00 00 00 00 00 00 99 [18:31:47]Write i2c OK [18:31:47]MH_I2C_Read... [18:31:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:47]Read from MH i2c: E2 [18:31:47]MH_I2C_Read... [18:31:47]Read from MH i2c: E2 62 00 [18:31:47]MH_I2C_Read... [18:31:47]Read from MH i2c: E2 62 00 FC 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 25 6A 00 00 0E 04 04 00 B2 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 E7 [18:31:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 25 6A 00 00 0E 04 04 00 B2 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 [18:31:47]wFMCommunicate OK [18:31:47]SAM_PROTO_GetFieldsCounters done [18:31:47]requested_item shift.num is exist - process it [18:31:47]requested_item shift.opened is exist - process it [18:31:47]req_shift_opened [18:31:47]FM_GetShiftState [18:31:47]SAM_PROTO_GetShiftState [18:31:47]wFMCommunicate request_size=4 [18:31:47]MH_SAM_APDU [18:31:47]CAPDU: 80 13 01 00 [18:31:47]Write to MH i2c: E2 08 00 FD 21 80 13 01 00 00 00 00 00 9B [18:31:47]Write i2c OK [18:31:47]MH_I2C_Read... [18:31:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:47]Read from MH i2c: E2 [18:31:47]MH_I2C_Read... [18:31:47]Read from MH i2c: E2 0E 00 [18:31:47]MH_I2C_Read... [18:31:47]Read from MH i2c: E2 0E 00 FD 21 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 1C [18:31:47]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [18:31:47]wFMCommunicate OK [18:31:47]SAM_PROTO_GetShiftState done [18:31:47]FM_GetShiftState done [18:31:47]req_shift_opened done [18:31:47]requested_item shift.open_date is exist - process it [18:31:47]req_shift_open_date [18:31:47]req_shift_open_date done [18:31:47]produce_requested_data done [18:31:47]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27173,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [18:31:47]process_action_free close_receipt [18:31:47]json_value_free [18:31:47]json_value_free done [18:31:47]process_json_proto returns [18:31:47]Send response to host [18:31:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27173,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [18:31:47]free response buf [18:31:47]execute_script done [18:31:47]execute_script returns [18:31:47]free content buf [18:31:47]Sock 9.Close socket [18:31:47]Sock 9.Thread stoped [18:31:51]OFD Sender: No OFD packet to send [18:31:56]OFD Sender: No OFD packet to send [18:32:01]OFD Sender: No OFD packet to send [18:32:06]OFD Sender: No OFD packet to send [18:32:11]OFD Sender: No OFD packet to send [18:32:16]OFD Sender: No OFD packet to send [18:32:21]OFD Sender: No OFD packet to send [18:32:26]OFD Sender: No OFD packet to send [18:32:31]OFD Sender: No OFD packet to send [18:32:36]OFD Sender: No OFD packet to send [18:32:41]OFD Sender: No OFD packet to send [18:32:46]OFD Sender: No OFD packet to send [18:32:51]OFD Sender: No OFD packet to send [18:32:56]OFD Sender: No OFD packet to send [18:33:01]OFD Sender: No OFD packet to send [18:33:06]OFD Sender: No OFD packet to send [18:33:11]OFD Sender: No OFD packet to send [18:33:16]OFD Sender: No OFD packet to send [18:33:21]OFD Sender: No OFD packet to send [18:33:26]OFD Sender: No OFD packet to send [18:33:31]OFD Sender: No OFD packet to send [18:33:36]OFD Sender: No OFD packet to send [18:33:41]OFD Sender: No OFD packet to send [18:33:46]OFD Sender: No OFD packet to send [18:33:51]OFD Sender: No OFD packet to send [18:33:56]OFD Sender: No OFD packet to send [18:34:01]OFD Sender: No OFD packet to send [18:34:06]OFD Sender: No OFD packet to send [18:34:11]OFD Sender: No OFD packet to send [18:34:16]OFD Sender: No OFD packet to send [18:34:21]OFD Sender: No OFD packet to send [18:34:26]OFD Sender: No OFD packet to send [18:34:31]OFD Sender: No OFD packet to send [18:34:36]OFD Sender: No OFD packet to send [18:34:41]OFD Sender: No OFD packet to send [18:34:46]OFD Sender: No OFD packet to send [18:34:51]OFD Sender: No OFD packet to send [18:34:56]OFD Sender: No OFD packet to send [18:35:01]OFD Sender: No OFD packet to send [18:35:06]OFD Sender: No OFD packet to send [18:35:11]OFD Sender: No OFD packet to send [18:35:16]OFD Sender: No OFD packet to send [18:35:21]OFD Sender: No OFD packet to send [18:35:26]OFD Sender: No OFD packet to send [18:35:31]OFD Sender: No OFD packet to send [18:35:36]OFD Sender: No OFD packet to send [18:35:41]OFD Sender: No OFD packet to send [18:35:46]OFD Sender: No OFD packet to send [18:35:51]OFD Sender: No OFD packet to send [18:35:56]OFD Sender: No OFD packet to send [18:36:01]OFD Sender: No OFD packet to send [18:36:06]OFD Sender: No OFD packet to send [18:36:11]OFD Sender: No OFD packet to send [18:36:16]OFD Sender: No OFD packet to send [18:36:21]OFD Sender: No OFD packet to send [18:36:26]OFD Sender: No OFD packet to send [18:36:31]OFD Sender: No OFD packet to send [18:36:36]OFD Sender: No OFD packet to send [18:36:41]OFD Sender: No OFD packet to send [18:36:46]OFD Sender: No OFD packet to send [18:36:51]OFD Sender: No OFD packet to send [18:36:56]OFD Sender: No OFD packet to send [18:37:01]OFD Sender: No OFD packet to send [18:37:06]OFD Sender: No OFD packet to send [18:37:11]OFD Sender: No OFD packet to send [18:37:16]OFD Sender: No OFD packet to send [18:37:21]OFD Sender: No OFD packet to send [18:37:26]OFD Sender: No OFD packet to send [18:37:31]OFD Sender: No OFD packet to send [18:37:36]OFD Sender: No OFD packet to send [18:37:41]OFD Sender: No OFD packet to send [18:37:46]OFD Sender: No OFD packet to send [18:37:51]OFD Sender: No OFD packet to send [18:37:56]OFD Sender: No OFD packet to send [18:38:01]OFD Sender: No OFD packet to send [18:38:06]OFD Sender: No OFD packet to send [18:38:11]OFD Sender: No OFD packet to send [18:38:16]OFD Sender: No OFD packet to send [18:38:21]OFD Sender: No OFD packet to send [18:38:26]OFD Sender: No OFD packet to send [18:38:31]OFD Sender: No OFD packet to send [18:38:36]OFD Sender: No OFD packet to send [18:38:41]OFD Sender: No OFD packet to send [18:38:46]OFD Sender: No OFD packet to send [18:38:51]OFD Sender: No OFD packet to send [18:38:56]OFD Sender: No OFD packet to send [18:39:01]OFD Sender: No OFD packet to send [18:39:06]OFD Sender: No OFD packet to send [18:39:11]OFD Sender: No OFD packet to send [18:39:16]OFD Sender: No OFD packet to send [18:39:21]OFD Sender: No OFD packet to send [18:39:26]OFD Sender: No OFD packet to send [18:39:31]OFD Sender: No OFD packet to send [18:39:36]OFD Sender: No OFD packet to send [18:39:41]OFD Sender: No OFD packet to send [18:39:46]OFD Sender: No OFD packet to send [18:39:51]OFD Sender: No OFD packet to send [18:39:56]OFD Sender: No OFD packet to send [18:40:01]OFD Sender: No OFD packet to send [18:40:06]OFD Sender: No OFD packet to send [18:40:11]OFD Sender: No OFD packet to send [18:40:16]OFD Sender: No OFD packet to send [18:40:21]OFD Sender: No OFD packet to send [18:40:26]OFD Sender: No OFD packet to send [18:40:31]OFD Sender: No OFD packet to send [18:40:36]OFD Sender: No OFD packet to send [18:40:41]OFD Sender: No OFD packet to send [18:40:46]OFD Sender: No OFD packet to send [18:40:51]OFD Sender: No OFD packet to send [18:40:56]OFD Sender: No OFD packet to send [18:41:01]OFD Sender: No OFD packet to send [18:41:06]OFD Sender: No OFD packet to send [18:41:11]OFD Sender: No OFD packet to send [18:41:16]OFD Sender: No OFD packet to send [18:41:21]OFD Sender: No OFD packet to send [18:41:26]OFD Sender: No OFD packet to send [18:41:31]OFD Sender: No OFD packet to send [18:41:36]OFD Sender: No OFD packet to send [18:41:41]OFD Sender: No OFD packet to send [18:41:46]OFD Sender: No OFD packet to send [18:41:51]OFD Sender: No OFD packet to send [18:41:56]OFD Sender: No OFD packet to send [18:42:01]OFD Sender: No OFD packet to send [18:42:06]OFD Sender: No OFD packet to send [18:42:11]OFD Sender: No OFD packet to send [18:42:16]OFD Sender: No OFD packet to send [18:42:21]OFD Sender: No OFD packet to send [18:42:26]OFD Sender: No OFD packet to send [18:42:31]OFD Sender: No OFD packet to send [18:42:36]OFD Sender: No OFD packet to send [18:42:41]OFD Sender: No OFD packet to send [18:42:46]OFD Sender: No OFD packet to send [18:42:51]OFD Sender: No OFD packet to send [18:42:56]OFD Sender: No OFD packet to send [18:43:01]OFD Sender: No OFD packet to send [18:43:06]OFD Sender: No OFD packet to send [18:43:11]OFD Sender: No OFD packet to send [18:43:16]OFD Sender: No OFD packet to send [18:43:21]OFD Sender: No OFD packet to send [18:43:26]OFD Sender: No OFD packet to send [18:43:31]OFD Sender: No OFD packet to send [18:43:36]OFD Sender: No OFD packet to send [18:43:41]OFD Sender: No OFD packet to send [18:43:46]OFD Sender: No OFD packet to send [18:43:51]OFD Sender: No OFD packet to send [18:43:56]OFD Sender: No OFD packet to send [18:44:01]OFD Sender: No OFD packet to send [18:44:06]OFD Sender: No OFD packet to send [18:44:11]OFD Sender: No OFD packet to send [18:44:16]OFD Sender: No OFD packet to send [18:44:21]OFD Sender: No OFD packet to send [18:44:26]OFD Sender: No OFD packet to send [18:44:31]OFD Sender: No OFD packet to send [18:44:36]OFD Sender: No OFD packet to send [18:44:41]OFD Sender: No OFD packet to send [18:44:46]OFD Sender: No OFD packet to send [18:44:51]OFD Sender: No OFD packet to send [18:44:56]OFD Sender: No OFD packet to send [18:45:01]OFD Sender: No OFD packet to send [18:45:06]OFD Sender: No OFD packet to send [18:45:11]OFD Sender: No OFD packet to send [18:45:16]OFD Sender: No OFD packet to send [18:45:21]OFD Sender: No OFD packet to send [18:45:26]OFD Sender: No OFD packet to send [18:45:31]OFD Sender: No OFD packet to send [18:45:36]OFD Sender: No OFD packet to send [18:45:41]OFD Sender: No OFD packet to send [18:45:46]OFD Sender: No OFD packet to send [18:45:51]OFD Sender: No OFD packet to send [18:45:56]OFD Sender: No OFD packet to send [18:46:01]OFD Sender: No OFD packet to send [18:46:07]OFD Sender: No OFD packet to send [18:46:12]OFD Sender: No OFD packet to send [18:46:17]OFD Sender: No OFD packet to send [18:46:22]OFD Sender: No OFD packet to send [18:46:27]OFD Sender: No OFD packet to send [18:46:32]OFD Sender: No OFD packet to send [18:46:37]OFD Sender: No OFD packet to send [18:46:42]OFD Sender: No OFD packet to send [18:46:47]OFD Sender: No OFD packet to send [18:46:52]OFD Sender: No OFD packet to send [18:46:57]OFD Sender: No OFD packet to send [18:47:02]OFD Sender: No OFD packet to send [18:47:07]OFD Sender: No OFD packet to send [18:47:12]OFD Sender: No OFD packet to send [18:47:17]OFD Sender: No OFD packet to send [18:47:22]OFD Sender: No OFD packet to send [18:47:27]OFD Sender: No OFD packet to send [18:47:32]OFD Sender: No OFD packet to send [18:47:37]OFD Sender: No OFD packet to send [18:47:42]OFD Sender: No OFD packet to send [18:47:47]OFD Sender: No OFD packet to send [18:47:52]OFD Sender: No OFD packet to send [18:47:57]OFD Sender: No OFD packet to send [18:48:02]OFD Sender: No OFD packet to send [18:48:07]OFD Sender: No OFD packet to send [18:48:12]OFD Sender: No OFD packet to send [18:48:17]OFD Sender: No OFD packet to send [18:48:22]OFD Sender: No OFD packet to send [18:48:27]OFD Sender: No OFD packet to send [18:48:32]OFD Sender: No OFD packet to send [18:48:37]OFD Sender: No OFD packet to send [18:48:42]OFD Sender: No OFD packet to send [18:48:47]OFD Sender: No OFD packet to send [18:48:52]OFD Sender: No OFD packet to send [18:48:57]OFD Sender: No OFD packet to send [18:49:02]OFD Sender: No OFD packet to send [18:49:07]OFD Sender: No OFD packet to send [18:49:12]OFD Sender: No OFD packet to send [18:49:17]OFD Sender: No OFD packet to send [18:49:22]OFD Sender: No OFD packet to send [18:49:27]OFD Sender: No OFD packet to send [18:49:32]OFD Sender: No OFD packet to send [18:49:37]OFD Sender: No OFD packet to send [18:49:42]OFD Sender: No OFD packet to send [18:49:47]OFD Sender: No OFD packet to send [18:49:52]OFD Sender: No OFD packet to send [18:49:57]OFD Sender: No OFD packet to send [18:50:02]OFD Sender: No OFD packet to send [18:50:07]OFD Sender: No OFD packet to send [18:50:12]OFD Sender: No OFD packet to send [18:50:17]OFD Sender: No OFD packet to send [18:50:22]OFD Sender: No OFD packet to send [18:50:27]OFD Sender: No OFD packet to send [18:50:32]OFD Sender: No OFD packet to send [18:50:37]OFD Sender: No OFD packet to send [18:50:42]OFD Sender: No OFD packet to send [18:50:47]OFD Sender: No OFD packet to send [18:50:52]OFD Sender: No OFD packet to send [18:50:57]OFD Sender: No OFD packet to send [18:51:02]OFD Sender: No OFD packet to send [18:51:07]OFD Sender: No OFD packet to send [18:51:12]OFD Sender: No OFD packet to send [18:51:17]OFD Sender: No OFD packet to send [18:51:22]OFD Sender: No OFD packet to send [18:51:27]OFD Sender: No OFD packet to send [18:51:32]OFD Sender: No OFD packet to send [18:51:37]OFD Sender: No OFD packet to send [18:51:42]OFD Sender: No OFD packet to send [18:51:47]OFD Sender: No OFD packet to send [18:51:52]OFD Sender: No OFD packet to send [18:51: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:33]accept exits with 8 [18:56:33]New connection [18:56:33]New thread 3066928484 created [18:56:33]Thread 3066785124 joined [18:56:33]Waiting for new connection... [18:56:33] Sock 8.Parse request [18:56:33]Sock 8.Check first char [18:56:33]Sock 8.First char is OK [18:56:33]request: POST /json_proto HTTP/1.0 [18:56:33]Method: POST [18:56:33]URL: /json_proto [18:56:33]Method is POST - this is cgi request [18:56:33]url: /json_proto [18:56:33]query_string will be loaded in cgi processing [18:56:33]execute_cgi json_proto POST (null) [18:56:33]execute_cgi path=json_proto method=POST [18:56:33]POST find Content-Length [18:56:33]Host: 172.17.45.8:8080 [18:56:33]Content-Length: 675 [18:56:33]Content-Type: application/json [18:56:33] [18:56:33]POST finish read [18:56:33]Found Content-Length = 675 [18:56:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150572", "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" ] } } [18:56:33]execute_script... [18:56: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)150572", "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" ] } } [18:56:33]POST & json_proto [18:56:33]process_json_proto [18:56:33]json parsed OK: [18:56:33]protocol is kg_v1.0 [18:56:33]action value=close_receipt [18:56:33]process_action close_receipt [18:56:33]cmd_close_receipt [18:56:33]MH_GetDate [18:56:33]Write to MH i2c: F0 00 00 FE 21 0E [18:56:33]Write i2c OK [18:56:33]MH_I2C_Read... [18:56:33]Read from MH i2c: F0 [18:56:33]MH_I2C_Read... [18:56:33]Read from MH i2c: F0 09 00 [18:56:33]MH_I2C_Read... [18:56:33]Read from MH i2c: F0 09 00 FE 21 00 E8 E5 A7 66 A6 1F 7F 64 99 [18:56:33]GetLastDocTimeStamp 1722277910 [18:56:33]current date 1722279400 [18:56:33]FM_GetShiftState [18:56:33]SAM_PROTO_GetShiftState [18:56:33]wFMCommunicate request_size=4 [18:56:33]MH_SAM_APDU [18:56:33]CAPDU: 80 13 01 00 [18:56:33]Write to MH i2c: E2 08 00 FF 21 80 13 01 00 00 00 00 00 9D [18:56:33]Write i2c OK [18:56:33]MH_I2C_Read... [18:56:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:33]Read from MH i2c: E2 [18:56:33]MH_I2C_Read... [18:56:33]Read from MH i2c: E2 0E 00 [18:56:33]MH_I2C_Read... [18:56:33]Read from MH i2c: E2 0E 00 FF 21 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 1E [18:56:33]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [18:56:33]wFMCommunicate OK [18:56:33]SAM_PROTO_GetShiftState done [18:56:33]FM_GetShiftState done [18:56:33]opened in 1722213509 [18:56:33]opened+sec_in_day 1722299909 [18:56:33]quantity*price = 6500 [18:56:33]sum+1 = 6501 [18:56:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 77 29.07.2024 18:56 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27174 ФПД: 33066798206831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T185640&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27174&fm=33066798206831&tin=02508201610067®Number=0000000000092663&sum=6500 0 [18:56:34]StoreToDocumentArchive [18:56:34]shift 434 fd 27174 [18:56:34]save to /storage/0434/doc_00027174 [18:56:34]save last doc name /storage/0434/doc_00027174 to /storage/kkm_last_doc_name [18:56:34]save OK [18:56:34]Clear old archive folders... [18:56:34]ProcessDocumentItem done err = 0, tmpTLVsize=286 [18:56:34]tlvbuf is 00246FE0 [18:56:34]SAM_PROTO_ClearQueue [18:56:34]wFMCommunicate request_size=4 [18:56:34]MH_SAM_APDU [18:56:34]CAPDU: 80 09 00 00 [18:56:34]Write to MH i2c: E2 08 00 0C 22 80 09 00 00 00 00 00 00 A0 [18:56:34]Write i2c OK [18:56:34]MH_I2C_Read... [18:56:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:34]Read from MH i2c: E2 [18:56:34]MH_I2C_Read... [18:56:34]Read from MH i2c: E2 03 00 [18:56:34]MH_I2C_Read... [18:56:34]Read from MH i2c: E2 03 00 0C 22 00 90 00 A2 [18:56:34]RAPDU: 90 00 [18:56:34]wFMCommunicate OK [18:56:34]SAM_PROTO_ClearQueue done [18:56:34]KKMCreateOFDPacket [18:56:34]OFDProtocolAddRootSTLVToBuf [18:56:34]FM_MakeSignedData [18:56:34]FM_MakeSignedData [18:56:34]SAM_PROTO_SignData [18:56:34]wFMCommunicate request_size=4 [18:56:34]MH_SAM_APDU [18:56:34]CAPDU: 80 0D 01 02 [18:56:34]Write to MH i2c: E2 08 00 0D 22 80 0D 01 02 00 00 00 00 A8 [18:56:34]Write i2c OK [18:56:34]MH_I2C_Read... [18:56:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:34]Read from MH i2c: E2 [18:56:34]MH_I2C_Read... [18:56:34]Read from MH i2c: E2 03 00 [18:56:34]MH_I2C_Read... [18:56:34]Read from MH i2c: E2 03 00 0D 22 00 90 00 A3 [18:56:34]RAPDU: 90 00 [18:56:34]wFMCommunicate OK [18:56:34]wFMCommunicate request_size=255 [18:56:34]MH_SAM_APDU [18:56:34]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 4D 00 00 00 F4 03 04 00 E8 E5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 [18:56:34]Write to MH i2c: E2 02 01 0E 22 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 4D 00 00 00 F4 03 04 00 E8 E5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 00 00 4A [18:56:34]Write i2c OK [18:56:34]MH_I2C_Read... [18:56:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:34]Read from MH i2c: E2 [18:56:34]MH_I2C_Read... [18:56:34]Read from MH i2c: E2 03 00 [18:56:34]MH_I2C_Read... [18:56:34]Read from MH i2c: E2 03 00 0E 22 00 90 00 A4 [18:56:34]RAPDU: 90 00 [18:56:34]wFMCommunicate OK [18:56:34]wFMCommunicate request_size=45 [18:56:34]MH_SAM_APDU [18:56:34]CAPDU: 80 0D 02 02 28 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 26 6A 00 00 35 04 06 00 1E 12 F6 C2 CF 6F [18:56:34]Write to MH i2c: E2 30 00 0F 22 80 0D 02 02 28 00 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 26 6A 00 00 35 04 06 00 1E 12 F6 C2 CF 6F 00 00 BC [18:56:34]Write i2c OK [18:56:34]MH_I2C_Read... [18:56:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:34]Read from MH i2c: E2 [18:56:34]MH_I2C_Read... [18:56:34]Read from MH i2c: E2 03 00 [18:56:34]MH_I2C_Read... [18:56:34]Read from MH i2c: E2 03 00 0F 22 00 90 00 A5 [18:56:34]RAPDU: 90 00 [18:56:34]wFMCommunicate OK [18:56:34]wFMCommunicate request_size=4 [18:56:34]MH_SAM_APDU [18:56:34]CAPDU: 80 0D 03 02 [18:56:34]Write to MH i2c: E2 08 00 10 22 80 0D 03 02 00 00 00 00 AD [18:56:34]Write i2c OK [18:56:34]MH_I2C_Read... [18:56:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:34]Read from MH i2c: E2 [18:56:34]MH_I2C_Read... [18:56:34]Read from MH i2c: E2 0B 00 [18:56:34]MH_I2C_Read... [18:56:34]Read from MH i2c: E2 0B 00 10 22 00 A3 F6 F8 B1 24 EA CA B5 90 00 7D [18:56:34]RAPDU: A3 F6 F8 B1 24 EA CA B5 90 00 [18:56:34]wFMCommunicate OK [18:56:34]SAM_PROTO_SignData done [18:56:34]FM_MakeSignedData done [18:56:34]CreateOFDProtocolMessage [18:56:34]wFMCommunicate request_size=4 [18:56:34]MH_SAM_APDU [18:56:34]CAPDU: 80 11 00 00 [18:56:34]Write to MH i2c: E2 08 00 11 22 80 11 00 00 00 00 00 00 AD [18:56:34]Write i2c OK [18:56:34]MH_I2C_Read... [18:56:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:34]Read from MH i2c: E2 [18:56:34]MH_I2C_Read... [18:56:34]Read from MH i2c: E2 17 00 [18:56:34]MH_I2C_Read... [18:56:34]Read from MH i2c: E2 17 00 11 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 06 [18:56:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [18:56:34]wFMCommunicate OK [18:56:34]CreateOFDProtocolMessage done [18:56:34]OFDSenderStorePacket 27174 [18:56:34]StoreOFDPacket docnum=27174 [18:56:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 32 01 00 00 3F 98 2A 01 16 7F 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 4D 00 00 00 F4 03 04 00 E8 E5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 26 6A 00 00 35 04 06 00 1E 12 F6 C2 CF 6F A3 F6 F8 B1 24 EA CA B5 [18:56:34]CheckFolder [18:56:34]dirname=/storage/ofd_packets [18:56:34]CheckFolder done [18:56:34]ProducePacketName [18:56:34]name=ofd_packets/00027174 [18:56:34]NVStorageSaveData ofd_packets/00027174 [18:56:34]File name is /storage/ofd_packets/00027174 [18:56:34]Write 336 bytes [18:56:34]NVStorageSaveData done [18:56:34]OFDSenderStorePacket done [18:56:34]KKMCreateOFDPacket done [18:56:34]NVStorageSaveData kkm_last_timestamp [18:56:34]File name is /storage/kkm_last_timestamp [18:56:34]OFD Sender: Processing packet 27174 [packets to send 9, broken 8] [18:56:34]ProducePacketName [18:56:34]name=ofd_packets/00027174 [18:56:34]OFD Sender: To server: pG, [18:56:34]CommunicateWithHost lk.salyk.kg:30040 [18:56:34]ConnectInit lk.salyk.kg [18:56:34]Write 4 bytes [18:56:34]NVStorageSaveData done [18:56:34]ExternCall_PrintAddStr [18:56:34]wPrintStart [18:56:34]Write to MH i2c: 01 00 00 12 22 34 [18:56:34]Write i2c OK [18:56:34]MH_I2C_Read... [18:56:34]Read from MH i2c: 01 [18:56:34]MH_I2C_Read... [18:56:34]Read from MH i2c: 01 07 00 [18:56:34]MH_I2C_Read... [18:56:34]Read from MH i2c: 01 07 00 12 22 00 00 00 00 00 FF 0F 49 [18:56:34]RasterBufferAndPrint [18:56:34]line Счет N : (3)150572 [18:56:34]line ИНН: 02508201610067 [18:56:34]line Контрольно-Кассовый Чек [18:56:34]line ПРОДАЖА [18:56:34]line Товар: 4700040114120 [18:56:34]line Султан чай 1л. чер персик [18:56:34]line 1.000 * 65.00 [18:56:34]line = 65.00 [18:56:34]line НДС 12% НСП 1% [18:56:34]line > о реализуемом товаре [18:56:34]line ИТОГО: 65.00 [18:56:34]line НСП 1% : 0.57 [18:56:34]line НДС 12% : 6.90 [18:56:34]line Наличными: 65.00 [18:56:34]line Безнал.: 0.00 [18:56:34]line Место: АЗС № 134 "Партнер Нефть" [18:56:34]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:56:34]line СНО: Общий режим [18:56:34]line Чек 77 29.07.2024 18:56 [18:56:34]line Смена: 434 ФФД: 1.0 [18:56:34]line ЗНМ: 0300000043 [18:56:34]line РНМ: 0000000000092663 [18:56:34]line Версия ККМ: 001 [18:56:34]line ФМ: 0000000000874937 [18:56:34]line ФД: 27174 [18:56:34]line ФПД: 33066798206831 [18:56:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T185640&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27174&fm=33066798206831&tin=02508201610067®Number=0000000000092663&sum=6500 [18:56:35]line 0 [18:56:35]Connected sock=11 [18:56:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 32 01 00 00 3F 98 2A 01 16 7F 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 4D 00 00 00 F4 03 04 00 E8 E5 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 26 6A 00 00 35 04 06 00 1E 12 F6 C2 CF 6F A3 F6 F8 B1 24 EA CA B5 [18:56:35]written 0, free lines is 4095 [18:56:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 29 98 47 00 ED 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 34 39 33 37 10 04 04 00 26 6A 00 00 F4 03 04 00 38 8C A7 66 B6 04 01 00 00 79 EB 76 AB F4 64 2F 7C [18:56:35]CommunicateWithHost err = 0 [18:56:35]CheckOFDResponse [18:56:35]1017 (14) - 77093643461234 [18:56:35]1041 (16) - 0000000000874937 [18:56:35]1040 (4) - 27174 [18:56:35]1012 (4) - 29.07.2024 12:34 [18:56:35]1206 (1) - 0 [18:56:35]OFD Sender: Remove packet 27174 [18:56:35]ProducePacketName [18:56:35]name=ofd_packets/00027174 [18:56:35]NVStorageDeleteData [18:56:35]Write to MH i2c: 01 00 00 39 22 5B [18:56:35]Write i2c OK [18:56:35]MH_I2C_Read... [18:56:35]Read from MH i2c: 01 [18:56:35]MH_I2C_Read... [18:56:35]Read from MH i2c: 01 07 00 [18:56:35]MH_I2C_Read... [18:56:35]Read from MH i2c: 01 07 00 39 22 00 00 00 00 00 F2 0C 60 [18:56:35]RasterBufferAndPrint [18:56:35]line [18:56:35]line [18:56:35]line [18:56:35]line [18:56:35]line [18:56:35]written 0, free lines is 3320 [18:56:35]MH_Cut [18:56:35]Write to MH i2c: D1 01 00 40 22 01 34 [18:56:35]Write i2c OK [18:56:35]MH_I2C_Read... [18:56:35]Read from MH i2c: D1 [18:56:35]MH_I2C_Read... [18:56:35]Read from MH i2c: D1 01 00 [18:56:35]MH_I2C_Read... [18:56:35]Read from MH i2c: D1 01 00 40 22 00 33 [18:56:35]Write to MH i2c: 01 00 00 41 22 63 [18:56:35]Write i2c OK [18:56:35]MH_I2C_Read... [18:56:35]OFD Sender: No OFD packet to send [18:56:36]*** Cut start [18:56:36]*** Partial cut [18:56:36]*** CUTSNS_PIN = 1 [18:56:36]*** CUTSNS_PIN = 0 [18:56:36]*** Brake cut motor [18:56:37]Read from MH i2c: 01 [18:56:37]MH_I2C_Read... [18:56:37]*** Stop cut motor [18:56:37]*** Cut end [18:56:37]Read from MH i2c: 01 07 00 [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: 01 07 00 41 22 00 00 00 00 00 FF 0F 78 [18:56:37]process_action close_receipt done [18:56:37]requested_data is exist [18:56:37]produce_requested_data [18:56:37]requested_item fm.sn is exist - process it [18:56:37]wFMCommunicate request_size=4 [18:56:37]MH_SAM_APDU [18:56:37]CAPDU: 80 11 00 00 [18:56:37]Write to MH i2c: E2 08 00 42 22 80 11 00 00 00 00 00 00 DE [18:56:37]Write i2c OK [18:56:37]MH_I2C_Read... [18:56:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:37]Read from MH i2c: E2 [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: E2 17 00 [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: E2 17 00 42 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 37 [18:56:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [18:56:37]wFMCommunicate OK [18:56:37]requested_item fd.num is exist - process it [18:56:37]SAM_PROTO_GetFieldsCounters [18:56:37]wFMCommunicate request_size=4 [18:56:37]MH_SAM_APDU [18:56:37]CAPDU: 80 13 00 00 [18:56:37]Write to MH i2c: E2 08 00 43 22 80 13 00 00 00 00 00 00 E1 [18:56:37]Write i2c OK [18:56:37]MH_I2C_Read... [18:56:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:37]Read from MH i2c: E2 [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: E2 62 00 [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: E2 62 00 43 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 26 6A 00 00 0E 04 04 00 B2 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 33 [18:56:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 26 6A 00 00 0E 04 04 00 B2 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 [18:56:37]wFMCommunicate OK [18:56:37]SAM_PROTO_GetFieldsCounters done [18:56:37]requested_item shift.num is exist - process it [18:56:37]requested_item shift.opened is exist - process it [18:56:37]req_shift_opened [18:56:37]FM_GetShiftState [18:56:37]SAM_PROTO_GetShiftState [18:56:37]wFMCommunicate request_size=4 [18:56:37]MH_SAM_APDU [18:56:37]CAPDU: 80 13 01 00 [18:56:37]Write to MH i2c: E2 08 00 44 22 80 13 01 00 00 00 00 00 E3 [18:56:37]Write i2c OK [18:56:37]MH_I2C_Read... [18:56:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:37]Read from MH i2c: E2 [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: E2 0E 00 [18:56:37]MH_I2C_Read... [18:56:37]Read from MH i2c: E2 0E 00 44 22 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 64 [18:56:37]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [18:56:37]wFMCommunicate OK [18:56:37]SAM_PROTO_GetShiftState done [18:56:37]FM_GetShiftState done [18:56:37]req_shift_opened done [18:56:37]requested_item shift.open_date is exist - process it [18:56:37]req_shift_open_date [18:56:37]req_shift_open_date done [18:56:37]produce_requested_data done [18:56:37]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27174,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [18:56:37]process_action_free close_receipt [18:56:37]json_value_free [18:56:37]json_value_free done [18:56:37]process_json_proto returns [18:56:37]Send response to host [18:56:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27174,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [18:56:37]free response buf [18:56:37]execute_script done [18:56:37]execute_script returns [18:56:37]free content buf [18:56:37]Sock 8.Close socket [18:56:37]Sock 8.Thread stoped [18:56:40]OFD Sender: No OFD packet to send [18:56:45]OFD Sender: No OFD packet to send [18:56:50]OFD Sender: No OFD packet to send [18:56:55]OFD Sender: No OFD packet to send [18:57:00]accept exits with 9 [18:57:00]New connection [18:57:00]New thread 3066785124 created [18:57:00]Thread 3066928484 joined [18:57:00]Waiting for new connection... [18:57:00] Sock 9.Parse request [18:57:00]Sock 9.Check first char [18:57:00]Sock 9.First char is OK [18:57:00]request: POST /json_proto HTTP/1.0 [18:57:00]Method: POST [18:57:00]URL: /json_proto [18:57:00]Method is POST - this is cgi request [18:57:00]url: /json_proto [18:57:00]query_string will be loaded in cgi processing [18:57:00]execute_cgi json_proto POST (null) [18:57:00]execute_cgi path=json_proto method=POST [18:57:00]POST find Content-Length [18:57:00]Host: 172.17.45.8:8080 [18:57:00]Content-Length: 936 [18:57:00]Content-Type: application/json [18:57:00] [18:57:00]POST finish read [18:57:00]Found Content-Length = 936 [18:57:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150573", "tax_sys" : 0, "items" : [ { "code": "4700003241276", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 \u0422\u0410\u041D 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:00]execute_script... [18:57: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)150573", "tax_sys" : 0, "items" : [ { "code": "4700003241276", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041C\u043E\u043B\u043E\u0447\u043D\u044B\u0439 \u0422\u0410\u041D 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:00]POST & json_proto [18:57:00]process_json_proto [18:57:00]json parsed OK: [18:57:00]protocol is kg_v1.0 [18:57:00]action value=close_receipt [18:57:00]process_action close_receipt [18:57:00]cmd_close_receipt [18:57:00]MH_GetDate [18:57:00]Write to MH i2c: F0 00 00 45 22 56 [18:57:00]Write i2c OK [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: F0 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: F0 09 00 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: F0 09 00 45 22 00 03 E6 A7 66 A6 1F 7F 64 FD [18:57:00]GetLastDocTimeStamp 1722279400 [18:57:00]current date 1722279427 [18:57:00]FM_GetShiftState [18:57:00]SAM_PROTO_GetShiftState [18:57:00]wFMCommunicate request_size=4 [18:57:00]MH_SAM_APDU [18:57:00]CAPDU: 80 13 01 00 [18:57:00]Write to MH i2c: E2 08 00 46 22 80 13 01 00 00 00 00 00 E5 [18:57:00]Write i2c OK [18:57:00]MH_I2C_Read... [18:57:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:00]Read from MH i2c: E2 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: E2 0E 00 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: E2 0E 00 46 22 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 66 [18:57:00]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [18:57:00]wFMCommunicate OK [18:57:00]SAM_PROTO_GetShiftState done [18:57:00]FM_GetShiftState done [18:57:00]opened in 1722213509 [18:57:00]opened+sec_in_day 1722299909 [18:57:00]quantity*price = 11000 [18:57:00]sum+1 = 11001 [18:57:00]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 2.000 * 115.00 = 230.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 340.00 НСП 1% : 3.00 НДС 12% : 36.10 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 78 29.07.2024 18:57 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27175 ФПД: 243174547601614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T185707&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27175&fm=243174547601614&tin=02508201610067®Number=0000000000092663&sum=34000 0 [18:57:01]StoreToDocumentArchive [18:57:01]shift 434 fd 27175 [18:57:01]save to /storage/0434/doc_00027175 [18:57:01]save last doc name /storage/0434/doc_00027175 to /storage/kkm_last_doc_name [18:57:01]save OK [18:57:01]Clear old archive folders... [18:57:01]ProcessDocumentItem done err = 0, tmpTLVsize=394 [18:57:01]tlvbuf is B6F4F670 [18:57:01]SAM_PROTO_ClearQueue [18:57:01]wFMCommunicate request_size=4 [18:57:01]MH_SAM_APDU [18:57:01]CAPDU: 80 09 00 00 [18:57:01]Write to MH i2c: E2 08 00 53 22 80 09 00 00 00 00 00 00 E7 [18:57:01]Write i2c OK [18:57:01]MH_I2C_Read... [18:57:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:01]Read from MH i2c: E2 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 03 00 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 03 00 53 22 00 90 00 E9 [18:57:01]RAPDU: 90 00 [18:57:01]wFMCommunicate OK [18:57:01]SAM_PROTO_ClearQueue done [18:57:01]KKMCreateOFDPacket [18:57:01]OFDProtocolAddRootSTLVToBuf [18:57:01]FM_MakeSignedData [18:57:01]FM_MakeSignedData [18:57:01]SAM_PROTO_SignData [18:57:01]wFMCommunicate request_size=4 [18:57:01]MH_SAM_APDU [18:57:01]CAPDU: 80 0D 01 02 [18:57:01]Write to MH i2c: E2 08 00 54 22 80 0D 01 02 00 00 00 00 EF [18:57:01]Write i2c OK [18:57:01]MH_I2C_Read... [18:57:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:01]Read from MH i2c: E2 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 03 00 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 03 00 54 22 00 90 00 EA [18:57:01]RAPDU: 90 00 [18:57:01]wFMCommunicate OK [18:57:01]wFMCommunicate request_size=255 [18:57:01]MH_SAM_APDU [18:57:01]CAPDU: 80 0D 02 02 FA 03 00 8A 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB 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 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 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F [18:57:01]Write to MH i2c: E2 02 01 55 22 80 0D 02 02 FA 00 03 00 8A 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB 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 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 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 D7 [18:57:01]Write i2c OK [18:57:01]MH_I2C_Read... [18:57:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:02]Read from MH i2c: E2 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: E2 03 00 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: E2 03 00 55 22 00 90 00 EB [18:57:02]RAPDU: 90 00 [18:57:02]wFMCommunicate OK [18:57:02]wFMCommunicate request_size=153 [18:57:02]MH_SAM_APDU [18:57:02]CAPDU: 80 0D 02 02 94 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 03 E6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 27 6A 00 00 35 04 06 00 DD 2A 7C 87 38 CE [18:57:02]Write to MH i2c: E2 9C 00 56 22 80 0D 02 02 94 00 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 03 E6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 27 6A 00 00 35 04 06 00 DD 2A 7C 87 38 CE 00 00 8A [18:57:02]Write i2c OK [18:57:02]MH_I2C_Read... [18:57:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:02]Read from MH i2c: E2 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: E2 03 00 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: E2 03 00 56 22 00 90 00 EC [18:57:02]RAPDU: 90 00 [18:57:02]wFMCommunicate OK [18:57:02]wFMCommunicate request_size=4 [18:57:02]MH_SAM_APDU [18:57:02]CAPDU: 80 0D 03 02 [18:57:02]Write to MH i2c: E2 08 00 57 22 80 0D 03 02 00 00 00 00 F4 [18:57:02]Write i2c OK [18:57:02]MH_I2C_Read... [18:57:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:02]Read from MH i2c: E2 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: E2 0B 00 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: E2 0B 00 57 22 00 68 D4 B6 EB 66 B5 04 F2 90 00 E3 [18:57:02]RAPDU: 68 D4 B6 EB 66 B5 04 F2 90 00 [18:57:02]wFMCommunicate OK [18:57:02]SAM_PROTO_SignData done [18:57:02]FM_MakeSignedData done [18:57:02]CreateOFDProtocolMessage [18:57:02]wFMCommunicate request_size=4 [18:57:02]MH_SAM_APDU [18:57:02]CAPDU: 80 11 00 00 [18:57:02]Write to MH i2c: E2 08 00 58 22 80 11 00 00 00 00 00 00 F4 [18:57:02]Write i2c OK [18:57:02]MH_I2C_Read... [18:57:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:02]Read from MH i2c: E2 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: E2 17 00 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: E2 17 00 58 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 4D [18:57:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [18:57:02]wFMCommunicate OK [18:57:02]CreateOFDProtocolMessage done [18:57:02]OFDSenderStorePacket 27175 [18:57:02]StoreOFDPacket docnum=27175 [18:57:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 9E 01 00 00 54 9C 96 01 2D 1B 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB 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 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 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 03 E6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 27 6A 00 00 35 04 06 00 DD 2A 7C 87 38 CE 68 D4 B6 EB 66 B5 04 F2 [18:57:02]CheckFolder [18:57:02]dirname=/storage/ofd_packets [18:57:02]CheckFolder done [18:57:02]ProducePacketName [18:57:02]name=ofd_packets/00027175 [18:57:02]NVStorageSaveData ofd_packets/00027175 [18:57:02]File name is /storage/ofd_packets/00027175 [18:57:02]Write 444 bytes [18:57:02]NVStorageSaveData done [18:57:02]OFDSenderStorePacket done [18:57:02]KKMCreateOFDPacket done [18:57:02]NVStorageSaveData kkm_last_timestamp [18:57:02]File name is /storage/kkm_last_timestamp [18:57:02]Write 4 bytes [18:57:02]NVStorageSaveData done [18:57:02]ExternCall_PrintAddStr [18:57:02]wPrintStart [18:57:02]Write to MH i2c: 01 00 00 59 22 7B [18:57:02]Write i2c OK [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: 01 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: 01 07 00 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: 01 07 00 59 22 00 00 00 00 00 FF 0F 90 [18:57:02]RasterBufferAndPrint [18:57:02]line Счет N : (3)150573 [18:57:02]line ИНН: 02508201610067 [18:57:02]line Контрольно-Кассовый Чек [18:57:02]line ПРОДАЖА [18:57:02]line Товар: 4700003241276 [18:57:02]line Напиток Молочный ТАН 1л [18:57:02]line 1.000 * 110.00 [18:57:02]line = 110.00 [18:57:02]line НДС 12% НСП 1% [18:57:02]line > о реализуемом товаре [18:57:02]line Товар: 2000036210013 [18:57:02]line Кофе Капучино (GABB TRADE) [18:57:02]line 2.000 * 115.00 [18:57:02]line = 230.00 [18:57:02]line НДС 12% НСП 1% [18:57:02]line > о реализуемом товаре [18:57:02]line ИТОГО: 340.00 [18:57:02]line НСП 1% : 3.00 [18:57:02]line НДС 12% : 36.10 [18:57:02]line Наличными: 340.00 [18:57:02]line Безнал.: 0.00 [18:57:02]line Место: АЗС № 134 "Партнер Нефть" [18:57:02]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:57:02]line СНО: Общий режим [18:57:02]line Чек 78 29.07.2024 18:57 [18:57:02]line Смена: 434 ФФД: 1.0 [18:57:02]line ЗНМ: 0300000043 [18:57:02]line РНМ: 0000000000092663 [18:57:02]line Версия ККМ: 001 [18:57:02]line ФМ: 0000000000874937 [18:57:02]line ФД: 27175 [18:57:02]line ФПД: 243174547601614 [18:57:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T185707&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27175&fm=243174547601614&tin=02508201610067®Number=0000000000092663&sum=34000 [18:57:02]OFD Sender: Processing packet 27175 [packets to send 9, broken 8] [18:57:02]ProducePacketName [18:57:02]name=ofd_packets/00027175 [18:57:02]OFD Sender: To server: pG, [18:57:02]CommunicateWithHost lk.salyk.kg:30040 [18:57:02]ConnectInit lk.salyk.kg [18:57:02]line 0 [18:57:02]written 0, free lines is 4095 [18:57:02]Connected sock=10 [18:57:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 9E 01 00 00 54 9C 96 01 2D 1B 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 30 33 32 34 31 32 37 36 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9C D0 BE D0 BB D0 BE D1 87 D0 BD D1 8B D0 B9 20 D0 A2 D0 90 D0 9D 20 31 D0 BB 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 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 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1A 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 03 E6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 27 6A 00 00 35 04 06 00 DD 2A 7C 87 38 CE 68 D4 B6 EB 66 B5 04 F2 [18:57:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 7E D7 47 00 1C 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 34 39 33 37 10 04 04 00 27 6A 00 00 F4 03 04 00 53 8C A7 66 B6 04 01 00 00 8F D2 F8 A8 A0 B0 69 48 [18:57:02]CommunicateWithHost err = 0 [18:57:02]CheckOFDResponse [18:57:02]1017 (14) - 77093643461234 [18:57:02]1041 (16) - 0000000000874937 [18:57:02]1040 (4) - 27175 [18:57:02]1012 (4) - 29.07.2024 12:34 [18:57:02]1206 (1) - 0 [18:57:02]OFD Sender: Remove packet 27175 [18:57:02]ProducePacketName [18:57:02]name=ofd_packets/00027175 [18:57:02]NVStorageDeleteData [18:57:03]Write to MH i2c: 01 00 00 86 22 A8 [18:57:03]Write i2c OK [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: 01 [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: 01 07 00 [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: 01 07 00 86 22 00 00 00 00 00 B5 0C 70 [18:57:03]RasterBufferAndPrint [18:57:03]line [18:57:03]line [18:57:03]line [18:57:03]line [18:57:03]line [18:57:03]written 0, free lines is 3258 [18:57:03]MH_Cut [18:57:03]Write to MH i2c: D1 01 00 8D 22 01 81 [18:57:03]Write i2c OK [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: D1 [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: D1 01 00 [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: D1 01 00 8D 22 00 80 [18:57:03]Write to MH i2c: 01 00 00 8E 22 B0 [18:57:03]Write i2c OK [18:57:03]MH_I2C_Read... [18:57:03]OFD Sender: No OFD packet to send [18:57:03]*** Cut start [18:57:03]*** Partial cut [18:57:03]*** CUTSNS_PIN = 1 [18:57:03]*** CUTSNS_PIN = 0 [18:57:04]*** Brake cut motor [18:57:04]Read from MH i2c: 01 [18:57:04]MH_I2C_Read... [18:57:04]*** Stop cut motor [18:57:04]*** Cut end [18:57:04]Read from MH i2c: 01 07 00 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: 01 07 00 8E 22 00 00 00 00 00 FF 0F C5 [18:57:04]process_action close_receipt done [18:57:04]requested_data is exist [18:57:04]produce_requested_data [18:57:04]requested_item fm.sn is exist - process it [18:57:04]wFMCommunicate request_size=4 [18:57:04]MH_SAM_APDU [18:57:04]CAPDU: 80 11 00 00 [18:57:04]Write to MH i2c: E2 08 00 8F 22 80 11 00 00 00 00 00 00 2B [18:57:04]Write i2c OK [18:57:04]MH_I2C_Read... [18:57:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:04]Read from MH i2c: E2 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: E2 17 00 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: E2 17 00 8F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 84 [18:57:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [18:57:04]wFMCommunicate OK [18:57:04]requested_item fd.num is exist - process it [18:57:04]SAM_PROTO_GetFieldsCounters [18:57:04]wFMCommunicate request_size=4 [18:57:04]MH_SAM_APDU [18:57:04]CAPDU: 80 13 00 00 [18:57:04]Write to MH i2c: E2 08 00 90 22 80 13 00 00 00 00 00 00 2E [18:57:04]Write i2c OK [18:57:04]MH_I2C_Read... [18:57:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:04]Read from MH i2c: E2 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: E2 62 00 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: E2 62 00 90 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 27 6A 00 00 0E 04 04 00 B2 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 84 [18:57:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 27 6A 00 00 0E 04 04 00 B2 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 [18:57:04]wFMCommunicate OK [18:57:04]SAM_PROTO_GetFieldsCounters done [18:57:04]requested_item shift.num is exist - process it [18:57:04]requested_item shift.opened is exist - process it [18:57:04]req_shift_opened [18:57:04]FM_GetShiftState [18:57:04]SAM_PROTO_GetShiftState [18:57:04]wFMCommunicate request_size=4 [18:57:04]MH_SAM_APDU [18:57:04]CAPDU: 80 13 01 00 [18:57:04]Write to MH i2c: E2 08 00 91 22 80 13 01 00 00 00 00 00 30 [18:57:04]Write i2c OK [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: E2 [18:57:04]MH_I2C_Read... [18:57:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:04]Read from MH i2c: E2 0E 00 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: E2 0E 00 91 22 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 B1 [18:57:04]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [18:57:04]wFMCommunicate OK [18:57:04]SAM_PROTO_GetShiftState done [18:57:04]FM_GetShiftState done [18:57:04]req_shift_opened done [18:57:04]requested_item shift.open_date is exist - process it [18:57:04]req_shift_open_date [18:57:04]req_shift_open_date done [18:57:04]produce_requested_data done [18:57:04]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27175,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [18:57:04]process_action_free close_receipt [18:57:04]json_value_free [18:57:04]json_value_free done [18:57:04]process_json_proto returns [18:57:04]Send response to host [18:57:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27175,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [18:57:04]free response buf [18:57:04]execute_script done [18:57:04]execute_script returns [18:57:04]free content buf [18:57:04]Sock 9.Close socket [18:57:04]Sock 9.Thread stoped [18:57:08]OFD Sender: No OFD packet to send [18:57:13]OFD Sender: No OFD packet to send [18:57:18]OFD Sender: No OFD packet to send [18:57:23]OFD Sender: No OFD packet to send [18:57:28]OFD Sender: No OFD packet to send [18:57:33]OFD Sender: No OFD packet to send [18:57:38]OFD Sender: No OFD packet to send [18:57:43]OFD Sender: No OFD packet to send [18:57:48]OFD Sender: No OFD packet to send [18:57:53]OFD Sender: No OFD packet to send [18:57:58]OFD Sender: No OFD packet to send [18:58:01]accept exits with 8 [18:58:01]New connection [18:58:01]New thread 3066928484 created [18:58:01]Thread 3066785124 joined [18:58:01]Waiting for new connection... [18:58:01] Sock 8.Parse request [18:58:01]Sock 8.Check first char [18:58:01]Sock 8.First char is OK [18:58:01]request: POST /json_proto HTTP/1.0 [18:58:01]Method: POST [18:58:01]URL: /json_proto [18:58:01]Method is POST - this is cgi request [18:58:01]url: /json_proto [18:58:01]query_string will be loaded in cgi processing [18:58:01]execute_cgi json_proto POST (null) [18:58:01]execute_cgi path=json_proto method=POST [18:58:01]POST find Content-Length [18:58:01]Host: 172.17.45.8:8080 [18:58:01]Content-Length: 683 [18:58:01]Content-Type: application/json [18:58:01] [18:58:01]POST finish read [18:58:01]Found Content-Length = 683 [18:58:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150574", "tax_sys" : 0, "items" : [ { "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "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" ] } } [18:58:01]execute_script... [18:58:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150574", "tax_sys" : 0, "items" : [ { "code": "4870202522015", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 1,2\u043B", "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" ] } } [18:58:01]POST & json_proto [18:58:01]process_json_proto [18:58:01]json parsed OK: [18:58:01]protocol is kg_v1.0 [18:58:01]action value=close_receipt [18:58:01]process_action close_receipt [18:58:01]cmd_close_receipt [18:58:01]MH_GetDate [18:58:01]Write to MH i2c: F0 00 00 92 22 A3 [18:58:01]Write i2c OK [18:58:01]MH_I2C_Read... [18:58:01]Read from MH i2c: F0 [18:58:01]MH_I2C_Read... [18:58:01]Read from MH i2c: F0 09 00 [18:58:01]MH_I2C_Read... [18:58:01]Read from MH i2c: F0 09 00 92 22 00 40 E6 A7 66 A6 1F 7F 64 87 [18:58:01]GetLastDocTimeStamp 1722279427 [18:58:01]current date 1722279488 [18:58:01]FM_GetShiftState [18:58:01]SAM_PROTO_GetShiftState [18:58:01]wFMCommunicate request_size=4 [18:58:01]MH_SAM_APDU [18:58:01]CAPDU: 80 13 01 00 [18:58:01]Write to MH i2c: E2 08 00 93 22 80 13 01 00 00 00 00 00 32 [18:58:01]Write i2c OK [18:58:01]MH_I2C_Read... [18:58:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:01]Read from MH i2c: E2 [18:58:01]MH_I2C_Read... [18:58:01]Read from MH i2c: E2 0E 00 [18:58:01]MH_I2C_Read... [18:58:01]Read from MH i2c: E2 0E 00 93 22 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 B3 [18:58:01]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [18:58:01]wFMCommunicate OK [18:58:01]SAM_PROTO_GetShiftState done [18:58:01]FM_GetShiftState done [18:58:01]opened in 1722213509 [18:58:01]opened+sec_in_day 1722299909 [18:58:01]quantity*price = 11000 [18:58:01]sum+1 = 11001 [18:58:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 79 29.07.2024 18:58 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27176 ФПД: 198966583151295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T185808&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27176&fm=198966583151295&tin=02508201610067®Number=0000000000092663&sum=11000 0 [18:58:02]StoreToDocumentArchive [18:58:02]shift 434 fd 27176 [18:58:02]save to /storage/0434/doc_00027176 [18:58:02]save last doc name /storage/0434/doc_00027176 to /storage/kkm_last_doc_name [18:58:02]save OK [18:58:02]Clear old archive folders... [18:58:02]ProcessDocumentItem done err = 0, tmpTLVsize=291 [18:58:02]tlvbuf is 00204DD0 [18:58:02]SAM_PROTO_ClearQueue [18:58:02]wFMCommunicate request_size=4 [18:58:02]MH_SAM_APDU [18:58:02]CAPDU: 80 09 00 00 [18:58:02]Write to MH i2c: E2 08 00 A0 22 80 09 00 00 00 00 00 00 34 [18:58:02]Write i2c OK [18:58:02]MH_I2C_Read... [18:58:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:58:02]Read from MH i2c: E2 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 03 00 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 03 00 A0 22 00 90 00 36 [18:58:02]RAPDU: 90 00 [18:58:02]wFMCommunicate OK [18:58:02]SAM_PROTO_ClearQueue done [18:58:02]KKMCreateOFDPacket [18:58:02]OFDProtocolAddRootSTLVToBuf [18:58:02]FM_MakeSignedData [18:58:02]FM_MakeSignedData [18:58:02]SAM_PROTO_SignData [18:58:02]wFMCommunicate request_size=4 [18:58:02]MH_SAM_APDU [18:58:02]CAPDU: 80 0D 01 02 [18:58:02]Write to MH i2c: E2 08 00 A1 22 80 0D 01 02 00 00 00 00 3C [18:58:02]Write i2c OK [18:58:02]MH_I2C_Read... [18:58:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:58:02]Read from MH i2c: E2 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 03 00 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 03 00 A1 22 00 90 00 37 [18:58:02]RAPDU: 90 00 [18:58:02]wFMCommunicate OK [18:58:02]wFMCommunicate request_size=255 [18:58:02]MH_SAM_APDU [18:58:02]CAPDU: 80 0D 02 02 FA 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 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 31 2C 32 D0 BB 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 4F 00 00 00 F4 03 04 00 40 E6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 [18:58:02]Write to MH i2c: E2 02 01 A2 22 80 0D 02 02 FA 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 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 31 2C 32 D0 BB 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 4F 00 00 00 F4 03 04 00 40 E6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 00 00 E4 [18:58:02]Write i2c OK [18:58:02]MH_I2C_Read... [18:58:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:02]Read from MH i2c: E2 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 03 00 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 03 00 A2 22 00 90 00 38 [18:58:02]RAPDU: 90 00 [18:58:02]wFMCommunicate OK [18:58:02]wFMCommunicate request_size=50 [18:58:02]MH_SAM_APDU [18:58:02]CAPDU: 80 0D 02 02 2D 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 28 6A 00 00 35 04 06 00 B4 F5 84 82 CA BF [18:58:02]Write to MH i2c: E2 35 00 A3 22 80 0D 02 02 2D 00 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 28 6A 00 00 35 04 06 00 B4 F5 84 82 CA BF 00 00 6F [18:58:02]Write i2c OK [18:58:02]MH_I2C_Read... [18:58:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:02]Read from MH i2c: E2 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 03 00 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 03 00 A3 22 00 90 00 39 [18:58:02]RAPDU: 90 00 [18:58:02]wFMCommunicate OK [18:58:02]wFMCommunicate request_size=4 [18:58:02]MH_SAM_APDU [18:58:02]CAPDU: 80 0D 03 02 [18:58:02]Write to MH i2c: E2 08 00 A4 22 80 0D 03 02 00 00 00 00 41 [18:58:02]Write i2c OK [18:58:02]MH_I2C_Read... [18:58:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:58:02]Read from MH i2c: E2 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 0B 00 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 0B 00 A4 22 00 01 DD 6A 15 67 A9 65 C7 90 00 DB [18:58:02]RAPDU: 01 DD 6A 15 67 A9 65 C7 90 00 [18:58:02]wFMCommunicate OK [18:58:02]SAM_PROTO_SignData done [18:58:02]FM_MakeSignedData done [18:58:02]CreateOFDProtocolMessage [18:58:02]wFMCommunicate request_size=4 [18:58:02]MH_SAM_APDU [18:58:02]CAPDU: 80 11 00 00 [18:58:02]Write to MH i2c: E2 08 00 A5 22 80 11 00 00 00 00 00 00 41 [18:58:02]Write i2c OK [18:58:02]MH_I2C_Read... [18:58:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:02]Read from MH i2c: E2 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 17 00 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: E2 17 00 A5 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 9A [18:58:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [18:58:02]wFMCommunicate OK [18:58:02]CreateOFDProtocolMessage done [18:58:02]OFDSenderStorePacket 27176 [18:58:02]StoreOFDPacket docnum=27176 [18:58:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 37 01 00 00 0F 73 2F 01 8C 8B 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 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 31 2C 32 D0 BB 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 4F 00 00 00 F4 03 04 00 40 E6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 28 6A 00 00 35 04 06 00 B4 F5 84 82 CA BF 01 DD 6A 15 67 A9 65 C7 [18:58:02]CheckFolder [18:58:02]dirname=/storage/ofd_packets [18:58:02]CheckFolder done [18:58:02]ProducePacketName [18:58:02]name=ofd_packets/00027176 [18:58:02]NVStorageSaveData ofd_packets/00027176 [18:58:02]File name is /storage/ofd_packets/00027176 [18:58:02]Write 341 bytes [18:58:02]NVStorageSaveData done [18:58:02]OFDSenderStorePacket done [18:58:02]KKMCreateOFDPacket done [18:58:02]NVStorageSaveData kkm_last_timestamp [18:58:02]File name is /storage/kkm_last_timestamp [18:58:02]Write 4 bytes [18:58:02]NVStorageSaveData done [18:58:02]ExternCall_PrintAddStr [18:58:02]wPrintStart [18:58:02]Write to MH i2c: 01 00 00 A6 22 C8 [18:58:02]Write i2c OK [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: 01 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: 01 07 00 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: 01 07 00 A6 22 00 00 00 00 00 FF 0F DD [18:58:02]RasterBufferAndPrint [18:58:02]line Счет N : (3)150574 [18:58:02]line ИНН: 02508201610067 [18:58:02]line Контрольно-Кассовый Чек [18:58:02]line ПРОДАЖА [18:58:02]line Товар: 4870202522015 [18:58:02]line Напиток Maxi Чай Грушевый 1,2л [18:58:02]line 1.000 * 110.00 [18:58:02]line = 110.00 [18:58:02]line НДС 12% НСП 1% [18:58:02]line > о реализуемом товаре [18:58:02]line ИТОГО: 110.00 [18:58:02]line НСП 1% : 0.97 [18:58:02]line НДС 12% : 11.68 [18:58:02]line Наличными: 110.00 [18:58:02]line Безнал.: 0.00 [18:58:02]line Место: АЗС № 134 "Партнер Нефть" [18:58:02]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [18:58:02]line СНО: Общий режим [18:58:02]line Чек 79 29.07.2024 18:58 [18:58:02]line Смена: 434 ФФД: 1.0 [18:58:02]line ЗНМ: 0300000043 [18:58:02]line РНМ: 0000000000092663 [18:58:02]line Версия ККМ: 001 [18:58:02]line ФМ: 0000000000874937 [18:58:02]line ФД: 27176 [18:58:02]line ФПД: 198966583151295 [18:58:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T185808&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27176&fm=198966583151295&tin=02508201610067®Number=0000000000092663&sum=11000 [18:58:02]line 0 [18:58:03]written 0, free lines is 4095 [18:58:03]OFD Sender: Processing packet 27176 [packets to send 9, broken 8] [18:58:03]ProducePacketName [18:58:03]name=ofd_packets/00027176 [18:58:03]OFD Sender: To server: pG, [18:58:03]CommunicateWithHost lk.salyk.kg:30040 [18:58:03]ConnectInit lk.salyk.kg [18:58:03]Connected sock=9 [18:58:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 37 01 00 00 0F 73 2F 01 8C 8B 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 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 31 2C 32 D0 BB 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 4F 00 00 00 F4 03 04 00 40 E6 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 28 6A 00 00 35 04 06 00 B4 F5 84 82 CA BF 01 DD 6A 15 67 A9 65 C7 [18:58:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 7E FC 47 00 B2 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 28 6A 00 00 F4 03 04 00 90 8C A7 66 B6 04 01 00 00 75 78 E8 84 D4 3C 45 19 [18:58:03]CommunicateWithHost err = 0 [18:58:03]CheckOFDResponse [18:58:03]1017 (14) - 77093643461234 [18:58:03]1041 (16) - 0000000000874937 [18:58:03]1040 (4) - 27176 [18:58:03]1012 (4) - 29.07.2024 12:35 [18:58:03]1206 (1) - 0 [18:58:03]OFD Sender: Remove packet 27176 [18:58:03]ProducePacketName [18:58:03]name=ofd_packets/00027176 [18:58:03]NVStorageDeleteData [18:58:03]Write to MH i2c: 01 00 00 CE 22 F0 [18:58:03]Write i2c OK [18:58:03]MH_I2C_Read... [18:58:03]Read from MH i2c: 01 [18:58:03]MH_I2C_Read... [18:58:03]Read from MH i2c: 01 07 00 [18:58:03]MH_I2C_Read... [18:58:03]Read from MH i2c: 01 07 00 CE 22 00 00 00 00 00 DE 0C E1 [18:58:03]RasterBufferAndPrint [18:58:03]line [18:58:03]line [18:58:03]line [18:58:03]line [18:58:03]line [18:58:03]written 0, free lines is 3300 [18:58:03]MH_Cut [18:58:03]Write to MH i2c: D1 01 00 D5 22 01 C9 [18:58:03]Write i2c OK [18:58:03]MH_I2C_Read... [18:58:03]Read from MH i2c: D1 [18:58:03]MH_I2C_Read... [18:58:03]Read from MH i2c: D1 01 00 [18:58:03]MH_I2C_Read... [18:58:03]Read from MH i2c: D1 01 00 D5 22 00 C8 [18:58:03]Write to MH i2c: 01 00 00 D6 22 F8 [18:58:03]Write i2c OK [18:58:03]MH_I2C_Read... [18:58:04]OFD Sender: No OFD packet to send [18:58:04]*** Cut start [18:58:04]*** Partial cut [18:58:04]*** CUTSNS_PIN = 1 [18:58:04]*** CUTSNS_PIN = 0 [18:58:04]*** Brake cut motor [18:58:05]Read from MH i2c: 01 [18:58:05]MH_I2C_Read... [18:58:05]*** Stop cut motor [18:58:05]*** Cut end [18:58:05]Read from MH i2c: 01 07 00 [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: 01 07 00 D6 22 00 00 00 00 00 FF 0F 0D [18:58:05]process_action close_receipt done [18:58:05]requested_data is exist [18:58:05]produce_requested_data [18:58:05]requested_item fm.sn is exist - process it [18:58:05]wFMCommunicate request_size=4 [18:58:05]MH_SAM_APDU [18:58:05]CAPDU: 80 11 00 00 [18:58:05]Write to MH i2c: E2 08 00 D7 22 80 11 00 00 00 00 00 00 73 [18:58:05]Write i2c OK [18:58:05]MH_I2C_Read... [18:58:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:05]Read from MH i2c: E2 [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: E2 17 00 [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: E2 17 00 D7 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 CC [18:58:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [18:58:05]wFMCommunicate OK [18:58:05]requested_item fd.num is exist - process it [18:58:05]SAM_PROTO_GetFieldsCounters [18:58:05]wFMCommunicate request_size=4 [18:58:05]MH_SAM_APDU [18:58:05]CAPDU: 80 13 00 00 [18:58:05]Write to MH i2c: E2 08 00 D8 22 80 13 00 00 00 00 00 00 76 [18:58:05]Write i2c OK [18:58:05]MH_I2C_Read... [18:58:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:05]Read from MH i2c: E2 [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: E2 62 00 [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: E2 62 00 D8 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 28 6A 00 00 0E 04 04 00 B2 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 D0 [18: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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 28 6A 00 00 0E 04 04 00 B2 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 [18:58:05]wFMCommunicate OK [18:58:05]SAM_PROTO_GetFieldsCounters done [18:58:05]requested_item shift.num is exist - process it [18:58:05]requested_item shift.opened is exist - process it [18:58:05]req_shift_opened [18:58:05]FM_GetShiftState [18:58:05]SAM_PROTO_GetShiftState [18:58:05]wFMCommunicate request_size=4 [18:58:05]MH_SAM_APDU [18:58:05]CAPDU: 80 13 01 00 [18:58:05]Write to MH i2c: E2 08 00 D9 22 80 13 01 00 00 00 00 00 78 [18:58:05]Write i2c OK [18:58:05]MH_I2C_Read... [18:58:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:05]Read from MH i2c: E2 [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: E2 0E 00 [18:58:05]MH_I2C_Read... [18:58:05]Read from MH i2c: E2 0E 00 D9 22 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 F9 [18:58:05]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [18:58:05]wFMCommunicate OK [18:58:05]SAM_PROTO_GetShiftState done [18:58:05]FM_GetShiftState done [18:58:05]req_shift_opened done [18:58:05]requested_item shift.open_date is exist - process it [18:58:05]req_shift_open_date [18:58:05]req_shift_open_date done [18:58:05]produce_requested_data done [18:58:05]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27176,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [18:58:05]process_action_free close_receipt [18:58:05]json_value_free [18:58:05]json_value_free done [18:58:05]process_json_proto returns [18:58:05]Send response to host [18:58:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27176,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [18:58:05]free response buf [18:58:05]execute_script done [18:58:05]execute_script returns [18:58:05]free content buf [18:58:05]Sock 8.Close socket [18:58:05]Sock 8.Thread stoped [18:58:09]OFD Sender: No OFD packet to send [18:58:14]OFD Sender: No OFD packet to send [18:58:19]OFD Sender: No OFD packet to send [18:58:24]OFD Sender: No OFD packet to send [18:58:29]OFD Sender: No OFD packet to send [18:58:34]OFD Sender: No OFD packet to send [18:58:39]OFD Sender: No OFD packet to send [18:58:44]OFD Sender: No OFD packet to send [18:58:49]OFD Sender: No OFD packet to send [18:58:54]OFD Sender: No OFD packet to send [18:58:59]OFD Sender: No OFD packet to send [18:59:04]OFD Sender: No OFD packet to send [18:59:09]OFD Sender: No OFD packet to send [18:59:14]OFD Sender: No OFD packet to send [18:59:19]OFD Sender: No OFD packet to send [18:59:24]OFD Sender: No OFD packet to send [18:59:29]OFD Sender: No OFD packet to send [18:59:34]OFD Sender: No OFD packet to send [18:59:39]OFD Sender: No OFD packet to send [18:59:44]OFD Sender: No OFD packet to send [18:59:49]OFD Sender: No OFD packet to send [18:59:54]OFD Sender: No OFD packet to send [18:59:59]OFD Sender: No OFD packet to send [19:00:04]OFD Sender: No OFD packet to send [19:00:09]OFD Sender: No OFD packet to send [19:00:14]OFD Sender: No OFD packet to send [19:00:19]OFD Sender: No OFD packet to send [19:00:24]OFD Sender: No OFD packet to send [19:00:29]OFD Sender: No OFD packet to send [19:00:34]OFD Sender: No OFD packet to send [19:00:39]OFD Sender: No OFD packet to send [19:00:44]OFD Sender: No OFD packet to send [19:00:49]OFD Sender: No OFD packet to send [19:00:54]OFD Sender: No OFD packet to send [19:00:59]OFD Sender: No OFD packet to send [19:01:04]OFD Sender: No OFD packet to send [19:01:09]OFD Sender: No OFD packet to send [19:01:14]OFD Sender: No OFD packet to send [19:01:19]OFD Sender: No OFD packet to send [19:01:24]OFD Sender: No OFD packet to send [19:01:29]OFD Sender: No OFD packet to send [19:01:34]OFD Sender: No OFD packet to send [19:01:39]OFD Sender: No OFD packet to send [19:01: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:29]OFD Sender: No OFD packet to send [19:05:34]OFD Sender: No OFD packet to send [19:05:39]OFD Sender: No OFD packet to send [19:05:44]OFD Sender: No OFD packet to send [19:05:49]OFD Sender: No OFD packet to send [19:05:54]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [19:13:04]OFD Sender: No OFD packet to send [19:13:09]OFD Sender: No OFD packet to send [19:13:14]OFD Sender: No OFD packet to send [19:13:19]OFD Sender: No OFD packet to send [19:13:24]OFD Sender: No OFD packet to send [19:13:29]OFD Sender: No OFD packet to send [19:13:34]OFD Sender: No OFD packet to send [19:13:39]OFD Sender: No OFD packet to send [19:13:44]OFD Sender: No OFD packet to send [19:13:49]OFD Sender: No OFD packet to send [19:13:54]OFD Sender: No OFD packet to send [19:13:59]OFD Sender: No OFD packet to send [19:14:04]OFD Sender: No OFD packet to send [19:14:09]OFD Sender: No OFD packet to send [19:14:14]OFD Sender: No OFD packet to send [19:14:19]OFD Sender: No OFD packet to send [19:14:24]OFD Sender: No OFD packet to send [19:14:29]OFD Sender: No OFD packet to send [19:14:34]OFD Sender: No OFD packet to send [19:14:39]OFD Sender: No OFD packet to send [19:14:44]OFD Sender: No OFD packet to send [19:14:49]OFD Sender: No OFD packet to send [19:14:54]OFD Sender: No OFD packet to send [19:14:59]OFD Sender: No OFD packet to send [19:15:04]OFD Sender: No OFD packet to send [19:15:09]OFD Sender: No OFD packet to send [19:15:14]OFD Sender: No OFD packet to send [19:15:19]OFD Sender: No OFD packet to send [19:15:24]OFD Sender: No OFD packet to send [19:15:29]OFD Sender: No OFD packet to send [19:15:34]OFD Sender: No OFD packet to send [19:15:39]OFD Sender: No OFD packet to send [19:15:44]OFD Sender: No OFD packet to send [19:15:49]OFD Sender: No OFD packet to send [19:15:54]OFD Sender: No OFD packet to send [19:15:59]OFD Sender: No OFD packet to send [19:16:04]OFD Sender: No OFD packet to send [19:16:09]OFD Sender: No OFD packet to send [19:16:14]OFD Sender: No OFD packet to send [19:16:19]OFD Sender: No OFD packet to send [19:16:24]OFD Sender: No OFD packet to send [19:16:29]OFD Sender: No OFD packet to send [19:16:34]OFD Sender: No OFD packet to send [19:16:39]OFD Sender: No OFD packet to send [19:16:44]OFD Sender: No OFD packet to send [19:16:49]OFD Sender: No OFD packet to send [19:16:54]OFD Sender: No OFD packet to send [19:16:59]OFD Sender: No OFD packet to send [19:17:04]OFD Sender: No OFD packet to send [19:17:09]OFD Sender: No OFD packet to send [19:17:14]OFD Sender: No OFD packet to send [19:17:19]OFD Sender: No OFD packet to send [19:17:24]OFD Sender: No OFD packet to send [19:17:29]OFD Sender: No OFD packet to send [19:17:34]OFD Sender: No OFD packet to send [19:17:39]OFD Sender: No OFD packet to send [19:17:44]OFD Sender: No OFD packet to send [19:17:49]OFD Sender: No OFD packet to send [19:17:54]OFD Sender: No OFD packet to send [19:17:59]OFD Sender: No OFD packet to send [19:18:04]OFD Sender: No OFD packet to send [19:18:09]OFD Sender: No OFD packet to send [19:18:14]OFD Sender: No OFD packet to send [19:18:19]OFD Sender: No OFD packet to send [19:18:25]OFD Sender: No OFD packet to send [19:18:30]OFD Sender: No OFD packet to send [19:18:35]OFD Sender: No OFD packet to send [19:18:40]OFD Sender: No OFD packet to send [19:18:45]OFD Sender: No OFD packet to send [19:18:50]OFD Sender: No OFD packet to send [19:18:55]OFD Sender: No OFD packet to send [19:19:00]OFD Sender: No OFD packet to send [19:19:05]OFD Sender: No OFD packet to send [19:19:10]OFD Sender: No OFD packet to send [19:19:15]OFD Sender: No OFD packet to send [19:19:20]OFD Sender: No OFD packet to send [19:19:25]OFD Sender: No OFD packet to send [19:19:30]OFD Sender: No OFD packet to send [19:19:35]OFD Sender: No OFD packet to send [19:19:40]OFD Sender: No OFD packet to send [19:19:45]OFD Sender: No OFD packet to send [19:19:50]OFD Sender: No OFD packet to send [19:19:55]OFD Sender: No OFD packet to send [19:20:00]OFD Sender: No OFD packet to send [19:20:05]OFD Sender: No OFD packet to send [19:20:10]OFD Sender: No OFD packet to send [19:20:15]OFD Sender: No OFD packet to send [19:20:20]OFD Sender: No OFD packet to send [19:20:25]OFD Sender: No OFD packet to send [19:20:30]OFD Sender: No OFD packet to send [19:20:35]OFD Sender: No OFD packet to send [19:20:40]OFD Sender: No OFD packet to send [19:20:45]OFD Sender: No OFD packet to send [19:20:50]OFD Sender: No OFD packet to send [19:20:55]OFD Sender: No OFD packet to send [19:21:00]OFD Sender: No OFD packet to send [19:21:05]OFD Sender: No OFD packet to send [19:21:10]OFD Sender: No OFD packet to send [19:21:15]OFD Sender: No OFD packet to send [19:21:20]OFD Sender: No OFD packet to send [19:21:25]OFD Sender: No OFD packet to send [19:21:30]OFD Sender: No OFD packet to send [19:21:35]OFD Sender: No OFD packet to send [19:21:40]OFD Sender: No OFD packet to send [19:21:45]OFD Sender: No OFD packet to send [19:21:50]OFD Sender: No OFD packet to send [19:21:55]OFD Sender: No OFD packet to send [19:22:00]OFD Sender: No OFD packet to send [19:22:05]OFD Sender: No OFD packet to send [19:22:10]OFD Sender: No OFD packet to send [19:22:15]OFD Sender: No OFD packet to send [19:22:20]OFD Sender: No OFD packet to send [19:22:25]OFD Sender: No OFD packet to send [19:22:30]OFD Sender: No OFD packet to send [19:22:35]OFD Sender: No OFD packet to send [19:22:40]OFD Sender: No OFD packet to send [19:22:45]OFD Sender: No OFD packet to send [19:22:50]OFD Sender: No OFD packet to send [19:22:55]OFD Sender: No OFD packet to send [19:23:00]OFD Sender: No OFD packet to send [19:23:05]OFD Sender: No OFD packet to send [19:23:10]OFD Sender: No OFD packet to send [19:23:15]OFD Sender: No OFD packet to send [19:23:20]OFD Sender: No OFD packet to send [19:23:25]OFD Sender: No OFD packet to send [19:23:30]OFD Sender: No OFD packet to send [19:23:33]accept exits with 10 [19:23:33]New connection [19:23:33]New thread 3066785124 created [19:23:33]Thread 3066928484 joined [19:23:33]Waiting for new connection... [19:23:33] Sock 10.Parse request [19:23:33]Sock 10.Check first char [19:23:33]Sock 10.First char is OK [19:23:33]request: POST /json_proto HTTP/1.0 [19:23:33]Method: POST [19:23:33]URL: /json_proto [19:23:33]Method is POST - this is cgi request [19:23:33]url: /json_proto [19:23:33]query_string will be loaded in cgi processing [19:23:33]execute_cgi json_proto POST (null) [19:23:33]execute_cgi path=json_proto method=POST [19:23:33]POST find Content-Length [19:23:33]Host: 172.17.45.8:8080 [19:23:33]Content-Length: 669 [19:23:33]Content-Type: application/json [19:23:33] [19:23:33]POST finish read [19:23:33]Found Content-Length = 669 [19:23:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150575", "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" ] } } [19:23:33]execute_script... [19:23: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)150575", "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" ] } } [19:23:33]POST & json_proto [19:23:33]process_json_proto [19:23:33]json parsed OK: [19:23:33]protocol is kg_v1.0 [19:23:33]action value=close_receipt [19:23:33]process_action close_receipt [19:23:33]cmd_close_receipt [19:23:33]MH_GetDate [19:23:33]Write to MH i2c: F0 00 00 DA 22 EB [19:23:33]Write i2c OK [19:23:33]MH_I2C_Read... [19:23:33]Read from MH i2c: F0 [19:23:33]MH_I2C_Read... [19:23:33]Read from MH i2c: F0 09 00 [19:23:33]MH_I2C_Read... [19:23:33]Read from MH i2c: F0 09 00 DA 22 00 3C EC A7 66 A6 1F 7F 64 D1 [19:23:33]GetLastDocTimeStamp 1722279488 [19:23:33]current date 1722281020 [19:23:33]FM_GetShiftState [19:23:33]SAM_PROTO_GetShiftState [19:23:33]wFMCommunicate request_size=4 [19:23:33]MH_SAM_APDU [19:23:33]CAPDU: 80 13 01 00 [19:23:33]Write to MH i2c: E2 08 00 DB 22 80 13 01 00 00 00 00 00 7A [19:23:33]Write i2c OK [19:23:33]MH_I2C_Read... [19:23:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:33]Read from MH i2c: E2 [19:23:33]MH_I2C_Read... [19:23:33]Read from MH i2c: E2 0E 00 [19:23:33]MH_I2C_Read... [19:23:33]Read from MH i2c: E2 0E 00 DB 22 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 FB [19:23:33]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [19:23:33]wFMCommunicate OK [19:23:33]SAM_PROTO_GetShiftState done [19:23:33]FM_GetShiftState done [19:23:33]opened in 1722213509 [19:23:33]opened+sec_in_day 1722299909 [19:23:33]quantity*price = 6500 [19:23:33]sum+1 = 6501 [19:23:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 80 29.07.2024 19:23 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27177 ФПД: 240139289139645 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192340&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27177&fm=240139289139645&tin=02508201610067®Number=0000000000092663&sum=6500 0 [19:23:34]StoreToDocumentArchive [19:23:34]shift 434 fd 27177 [19:23:34]save to /storage/0434/doc_00027177 [19:23:34]save last doc name /storage/0434/doc_00027177 to /storage/kkm_last_doc_name [19:23:34]save OK [19:23:34]Clear old archive folders... [19:23:34]ProcessDocumentItem done err = 0, tmpTLVsize=284 [19:23:34]tlvbuf is B6F4F610 [19:23:34]SAM_PROTO_ClearQueue [19:23:34]wFMCommunicate request_size=4 [19:23:34]MH_SAM_APDU [19:23:34]CAPDU: 80 09 00 00 [19:23:34]Write to MH i2c: E2 08 00 E8 22 80 09 00 00 00 00 00 00 7C [19:23:34]Write i2c OK [19:23:34]MH_I2C_Read... [19:23:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:34]Read from MH i2c: E2 [19:23:34]MH_I2C_Read... [19:23:34]Read from MH i2c: E2 03 00 [19:23:34]MH_I2C_Read... [19:23:34]Read from MH i2c: E2 03 00 E8 22 00 90 00 7E [19:23:34]RAPDU: 90 00 [19:23:34]wFMCommunicate OK [19:23:34]SAM_PROTO_ClearQueue done [19:23:34]KKMCreateOFDPacket [19:23:34]OFDProtocolAddRootSTLVToBuf [19:23:34]FM_MakeSignedData [19:23:34]FM_MakeSignedData [19:23:34]SAM_PROTO_SignData [19:23:34]wFMCommunicate request_size=4 [19:23:34]MH_SAM_APDU [19:23:34]CAPDU: 80 0D 01 02 [19:23:34]Write to MH i2c: E2 08 00 E9 22 80 0D 01 02 00 00 00 00 84 [19:23:34]Write i2c OK [19:23:34]MH_I2C_Read... [19:23:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:34]Read from MH i2c: E2 [19:23:34]MH_I2C_Read... [19:23:34]Read from MH i2c: E2 03 00 [19:23:34]MH_I2C_Read... [19:23:34]Read from MH i2c: E2 03 00 E9 22 00 90 00 7F [19:23:34]RAPDU: 90 00 [19:23:34]wFMCommunicate OK [19:23:34]wFMCommunicate request_size=255 [19:23:34]MH_SAM_APDU [19:23:34]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 50 00 00 00 F4 03 04 00 3C EC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 [19:23:34]Write to MH i2c: E2 02 01 EA 22 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 50 00 00 00 F4 03 04 00 3C EC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 00 00 49 [19:23:34]Write i2c OK [19:23:34]MH_I2C_Read... [19:23:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:34]Read from MH i2c: E2 [19:23:34]MH_I2C_Read... [19:23:34]Read from MH i2c: E2 03 00 [19:23:34]MH_I2C_Read... [19:23:34]Read from MH i2c: E2 03 00 EA 22 00 90 00 80 [19:23:34]RAPDU: 90 00 [19:23:34]wFMCommunicate OK [19:23:34]wFMCommunicate request_size=43 [19:23:34]MH_SAM_APDU [19:23:34]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 29 6A 00 00 35 04 06 00 DA 67 C9 06 99 BD [19:23:34]Write to MH i2c: E2 2E 00 EB 22 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 29 6A 00 00 35 04 06 00 DA 67 C9 06 99 BD 00 00 6E [19:23:34]Write i2c OK [19:23:34]MH_I2C_Read... [19:23:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:34]Read from MH i2c: E2 [19:23:34]MH_I2C_Read... [19:23:34]Read from MH i2c: E2 03 00 [19:23:34]MH_I2C_Read... [19:23:34]Read from MH i2c: E2 03 00 EB 22 00 90 00 81 [19:23:34]RAPDU: 90 00 [19:23:34]wFMCommunicate OK [19:23:34]wFMCommunicate request_size=4 [19:23:34]MH_SAM_APDU [19:23:34]CAPDU: 80 0D 03 02 [19:23:34]Write to MH i2c: E2 08 00 EC 22 80 0D 03 02 00 00 00 00 89 [19:23:34]Write i2c OK [19:23:34]MH_I2C_Read... [19:23:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:34]Read from MH i2c: E2 [19:23:34]MH_I2C_Read... [19:23:34]Read from MH i2c: E2 0B 00 [19:23:34]MH_I2C_Read... [19:23:34]Read from MH i2c: E2 0B 00 EC 22 00 B0 A6 2B 32 49 2A F7 B5 90 00 5C [19:23:34]RAPDU: B0 A6 2B 32 49 2A F7 B5 90 00 [19:23:34]wFMCommunicate OK [19:23:34]SAM_PROTO_SignData done [19:23:34]FM_MakeSignedData done [19:23:34]CreateOFDProtocolMessage [19:23:34]wFMCommunicate request_size=4 [19:23:34]MH_SAM_APDU [19:23:34]CAPDU: 80 11 00 00 [19:23:34]Write to MH i2c: E2 08 00 ED 22 80 11 00 00 00 00 00 00 89 [19:23:34]Write i2c OK [19:23:34]MH_I2C_Read... [19:23:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:34]Read from MH i2c: E2 [19:23:34]MH_I2C_Read... [19:23:34]Read from MH i2c: E2 17 00 [19:23:34]MH_I2C_Read... [19:23:34]Read from MH i2c: E2 17 00 ED 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 E2 [19:23:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [19:23:34]wFMCommunicate OK [19:23:34]CreateOFDProtocolMessage done [19:23:34]OFDSenderStorePacket 27177 [19:23:34]StoreOFDPacket docnum=27177 [19:23:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 30 01 00 00 1D 8D 28 01 72 16 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 50 00 00 00 F4 03 04 00 3C EC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 29 6A 00 00 35 04 06 00 DA 67 C9 06 99 BD B0 A6 2B 32 49 2A F7 B5 [19:23:34]CheckFolder [19:23:34]dirname=/storage/ofd_packets [19:23:34]CheckFolder done [19:23:34]ProducePacketName [19:23:34]name=ofd_packets/00027177 [19:23:34]NVStorageSaveData ofd_packets/00027177 [19:23:34]File name is /storage/ofd_packets/00027177 [19:23:34]Write 334 bytes [19:23:34]NVStorageSaveData done [19:23:34]OFDSenderStorePacket done [19:23:34]KKMCreateOFDPacket done [19:23:34]NVStorageSaveData kkm_last_timestamp [19:23:34]File name is /storage/kkm_last_timestamp [19:23:34]OFD Sender: Processing packet 27177 [packets to send 9, broken 8] [19:23:34]ProducePacketName [19:23:34]name=ofd_packets/00027177 [19:23:34]OFD Sender: To server: pG, [19:23:34]CommunicateWithHost lk.salyk.kg:30040 [19:23:34]ConnectInit lk.salyk.kg [19:23:34]Write 4 bytes [19:23:34]NVStorageSaveData done [19:23:34]ExternCall_PrintAddStr [19:23:34]wPrintStart [19:23:34]Write to MH i2c: 01 00 00 EE 22 10 [19:23:34]Write i2c OK [19:23:34]MH_I2C_Read... [19:23:34]Read from MH i2c: 01 [19:23:34]MH_I2C_Read... [19:23:34]Read from MH i2c: 01 07 00 [19:23:34]MH_I2C_Read... [19:23:34]Read from MH i2c: 01 07 00 EE 22 00 00 00 00 00 FF 0F 25 [19:23:34]RasterBufferAndPrint [19:23:34]line Счет N : (3)150575 [19:23:34]line ИНН: 02508201610067 [19:23:34]line Контрольно-Кассовый Чек [19:23:34]line ПРОДАЖА [19:23:34]line Товар: 4700040114137 [19:23:34]line Султан чай 1л. зел лимон [19:23:34]line 1.000 * 65.00 [19:23:34]line = 65.00 [19:23:34]line НДС 12% НСП 1% [19:23:34]line > о реализуемом товаре [19:23:34]line ИТОГО: 65.00 [19:23:34]line НСП 1% : 0.57 [19:23:34]line НДС 12% : 6.90 [19:23:34]line Наличными: 65.00 [19:23:34]line Безнал.: 0.00 [19:23:34]line Место: АЗС № 134 "Партнер Нефть" [19:23:34]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:23:34]line СНО: Общий режим [19:23:34]line Чек 80 29.07.2024 19:23 [19:23:34]line Смена: 434 ФФД: 1.0 [19:23:34]line ЗНМ: 0300000043 [19:23:34]line РНМ: 0000000000092663 [19:23:34]line Версия ККМ: 001 [19:23:34]line ФМ: 0000000000874937 [19:23:34]line ФД: 27177 [19:23:34]line ФПД: 240139289139645 [19:23:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192340&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27177&fm=240139289139645&tin=02508201610067®Number=0000000000092663&sum=6500 [19:23:35]line 0 [19:23:35]Connected sock=11 [19:23:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 30 01 00 00 1D 8D 28 01 72 16 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 50 00 00 00 F4 03 04 00 3C EC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 29 6A 00 00 35 04 06 00 DA 67 C9 06 99 BD B0 A6 2B 32 49 2A F7 B5 [19:23:35]written 0, free lines is 4095 [19:23:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 85 6E 47 00 EB C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 29 6A 00 00 F4 03 04 00 8C 92 A7 66 B6 04 01 00 00 6F 4F 66 95 06 5C C1 2F [19:23:35]CommunicateWithHost err = 0 [19:23:35]CheckOFDResponse [19:23:35]1017 (14) - 77093643461234 [19:23:35]1041 (16) - 0000000000874937 [19:23:35]1040 (4) - 27177 [19:23:35]1012 (4) - 29.07.2024 13:01 [19:23:35]1206 (1) - 0 [19:23:35]OFD Sender: Remove packet 27177 [19:23:35]ProducePacketName [19:23:35]name=ofd_packets/00027177 [19:23:35]NVStorageDeleteData [19:23:35]Write to MH i2c: 01 00 00 15 23 38 [19:23:35]Write i2c OK [19:23:35]MH_I2C_Read... [19:23:35]Read from MH i2c: 01 [19:23:35]MH_I2C_Read... [19:23:35]Read from MH i2c: 01 07 00 [19:23:35]MH_I2C_Read... [19:23:35]Read from MH i2c: 01 07 00 15 23 00 00 00 00 00 FC 0C 47 [19:23:35]RasterBufferAndPrint [19:23:35]line [19:23:35]line [19:23:35]line [19:23:35]line [19:23:35]line [19:23:35]written 0, free lines is 3330 [19:23:35]MH_Cut [19:23:35]Write to MH i2c: D1 01 00 1C 23 01 11 [19:23:35]Write i2c OK [19:23:35]MH_I2C_Read... [19:23:35]Read from MH i2c: D1 [19:23:35]MH_I2C_Read... [19:23:35]Read from MH i2c: D1 01 00 [19:23:35]MH_I2C_Read... [19:23:35]Read from MH i2c: D1 01 00 1C 23 00 10 [19:23:35]Write to MH i2c: 01 00 00 1D 23 40 [19:23:35]Write i2c OK [19:23:35]MH_I2C_Read... [19:23:35]OFD Sender: No OFD packet to send [19:23:36]*** Cut start [19:23:36]*** Partial cut [19:23:36]*** CUTSNS_PIN = 1 [19:23:36]*** CUTSNS_PIN = 0 [19:23:36]*** Brake cut motor [19:23:36]Read from MH i2c: 01 [19:23:37]MH_I2C_Read... [19:23:37]*** Stop cut motor [19:23:37]*** Cut end [19:23:37]Read from MH i2c: 01 07 00 [19:23:37]MH_I2C_Read... [19:23:37]Read from MH i2c: 01 07 00 1D 23 00 00 00 00 00 FF 0F 55 [19:23:37]process_action close_receipt done [19:23:37]requested_data is exist [19:23:37]produce_requested_data [19:23:37]requested_item fm.sn is exist - process it [19:23:37]wFMCommunicate request_size=4 [19:23:37]MH_SAM_APDU [19:23:37]CAPDU: 80 11 00 00 [19:23:37]Write to MH i2c: E2 08 00 1E 23 80 11 00 00 00 00 00 00 BB [19:23:37]Write i2c OK [19:23:37]MH_I2C_Read... [19:23:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:37]Read from MH i2c: E2 [19:23:37]MH_I2C_Read... [19:23:37]Read from MH i2c: E2 17 00 [19:23:37]MH_I2C_Read... [19:23:37]Read from MH i2c: E2 17 00 1E 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 14 [19:23:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [19:23:37]wFMCommunicate OK [19:23:37]requested_item fd.num is exist - process it [19:23:37]SAM_PROTO_GetFieldsCounters [19:23:37]wFMCommunicate request_size=4 [19:23:37]MH_SAM_APDU [19:23:37]CAPDU: 80 13 00 00 [19:23:37]Write to MH i2c: E2 08 00 1F 23 80 13 00 00 00 00 00 00 BE [19:23:37]Write i2c OK [19:23:37]MH_I2C_Read... [19:23:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:37]Read from MH i2c: E2 [19:23:37]MH_I2C_Read... [19:23:37]Read from MH i2c: E2 62 00 [19:23:37]MH_I2C_Read... [19:23:37]Read from MH i2c: E2 62 00 1F 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 29 6A 00 00 0E 04 04 00 B2 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 1C [19:23:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 29 6A 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:23:37]wFMCommunicate OK [19:23:37]SAM_PROTO_GetFieldsCounters done [19:23:37]requested_item shift.num is exist - process it [19:23:37]requested_item shift.opened is exist - process it [19:23:37]req_shift_opened [19:23:37]FM_GetShiftState [19:23:37]SAM_PROTO_GetShiftState [19:23:37]wFMCommunicate request_size=4 [19:23:37]MH_SAM_APDU [19:23:37]CAPDU: 80 13 01 00 [19:23:37]Write to MH i2c: E2 08 00 20 23 80 13 01 00 00 00 00 00 C0 [19:23:37]Write i2c OK [19:23:37]MH_I2C_Read... [19:23:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:37]Read from MH i2c: E2 [19:23:37]MH_I2C_Read... [19:23:37]Read from MH i2c: E2 0E 00 [19:23:37]MH_I2C_Read... [19:23:37]Read from MH i2c: E2 0E 00 20 23 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 41 [19:23:37]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [19:23:37]wFMCommunicate OK [19:23:37]SAM_PROTO_GetShiftState done [19:23:37]FM_GetShiftState done [19:23:37]req_shift_opened done [19:23:37]requested_item shift.open_date is exist - process it [19:23:37]req_shift_open_date [19:23:37]req_shift_open_date done [19:23:37]produce_requested_data done [19:23:37]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27177,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [19:23:37]process_action_free close_receipt [19:23:37]json_value_free [19:23:37]json_value_free done [19:23:37]process_json_proto returns [19:23:37]Send response to host [19:23:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27177,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [19:23:37]free response buf [19:23:37]execute_script done [19:23:37]execute_script returns [19:23:37]free content buf [19:23:37]Sock 10.Close socket [19:23:37]Sock 10.Thread stoped [19:23:40]OFD Sender: No OFD packet to send [19:23:45]OFD Sender: No OFD packet to send [19:23:50]OFD Sender: No OFD packet to send [19:23:55]OFD Sender: No OFD packet to send [19:24:00]OFD Sender: No OFD packet to send [19:24:03]accept exits with 8 [19:24:03]New connection [19:24:03]New thread 3066928484 created [19:24:03]Thread 3066785124 joined [19:24:03]Waiting for new connection... [19:24:03] Sock 8.Parse request [19:24:03]Sock 8.Check first char [19:24:03]Sock 8.First char is OK [19:24:03]request: POST /json_proto HTTP/1.0 [19:24:03]Method: POST [19:24:03]URL: /json_proto [19:24:03]Method is POST - this is cgi request [19:24:03]url: /json_proto [19:24:03]query_string will be loaded in cgi processing [19:24:03]execute_cgi json_proto POST (null) [19:24:03]execute_cgi path=json_proto method=POST [19:24:03]POST find Content-Length [19:24:03]Host: 172.17.45.8:8080 [19:24:03]Content-Length: 613 [19:24:03]Content-Type: application/json [19:24:03] [19:24:03]POST finish read [19:24:03]Found Content-Length = 613 [19:24:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150576", "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" ] } } [19:24:03]execute_script... [19:24: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)150576", "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" ] } } [19:24:03]POST & json_proto [19:24:03]process_json_proto [19:24:03]json parsed OK: [19:24:03]protocol is kg_v1.0 [19:24:03]action value=close_receipt [19:24:03]process_action close_receipt [19:24:03]cmd_close_receipt [19:24:03]MH_GetDate [19:24:03]Write to MH i2c: F0 00 00 21 23 33 [19:24:03]Write i2c OK [19:24:03]MH_I2C_Read... [19:24:03]Read from MH i2c: F0 [19:24:03]MH_I2C_Read... [19:24:03]Read from MH i2c: F0 09 00 [19:24:03]MH_I2C_Read... [19:24:03]Read from MH i2c: F0 09 00 21 23 00 5A EC A7 66 A6 1F 7F 64 37 [19:24:03]GetLastDocTimeStamp 1722281020 [19:24:03]current date 1722281050 [19:24:03]FM_GetShiftState [19:24:03]SAM_PROTO_GetShiftState [19:24:03]wFMCommunicate request_size=4 [19:24:03]MH_SAM_APDU [19:24:03]CAPDU: 80 13 01 00 [19:24:03]Write to MH i2c: E2 08 00 22 23 80 13 01 00 00 00 00 00 C2 [19:24:03]Write i2c OK [19:24:03]MH_I2C_Read... [19:24:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:03]Read from MH i2c: E2 [19:24:03]MH_I2C_Read... [19:24:03]Read from MH i2c: E2 0E 00 [19:24:03]MH_I2C_Read... [19:24:03]Read from MH i2c: E2 0E 00 22 23 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 43 [19:24:03]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [19:24:03]wFMCommunicate OK [19:24:03]SAM_PROTO_GetShiftState done [19:24:03]FM_GetShiftState done [19:24:03]opened in 1722213509 [19:24:03]opened+sec_in_day 1722299909 [19:24:03]quantity*price = 8000 [19:24:03]sum+1 = 8001 [19:24:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 81 29.07.2024 19:24 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27178 ФПД: 119565972943460 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192410&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27178&fm=119565972943460&tin=02508201610067®Number=0000000000092663&sum=8000 0 [19:24:04]StoreToDocumentArchive [19:24:04]shift 434 fd 27178 [19:24:04]save to /storage/0434/doc_00027178 [19:24:04]save last doc name /storage/0434/doc_00027178 to /storage/kkm_last_doc_name [19:24:04]save OK [19:24:04]Clear old archive folders... [19:24:04]ProcessDocumentItem done err = 0, tmpTLVsize=268 [19:24:04]tlvbuf is B6DA2AF0 [19:24:04]SAM_PROTO_ClearQueue [19:24:04]wFMCommunicate request_size=4 [19:24:04]MH_SAM_APDU [19:24:04]CAPDU: 80 09 00 00 [19:24:04]Write to MH i2c: E2 08 00 2F 23 80 09 00 00 00 00 00 00 C4 [19:24:04]Write i2c OK [19:24:04]MH_I2C_Read... [19:24:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:04]Read from MH i2c: E2 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 03 00 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 03 00 2F 23 00 90 00 C6 [19:24:04]RAPDU: 90 00 [19:24:04]wFMCommunicate OK [19:24:04]SAM_PROTO_ClearQueue done [19:24:04]KKMCreateOFDPacket [19:24:04]OFDProtocolAddRootSTLVToBuf [19:24:04]FM_MakeSignedData [19:24:04]FM_MakeSignedData [19:24:04]SAM_PROTO_SignData [19:24:04]wFMCommunicate request_size=4 [19:24:04]MH_SAM_APDU [19:24:04]CAPDU: 80 0D 01 02 [19:24:04]Write to MH i2c: E2 08 00 30 23 80 0D 01 02 00 00 00 00 CC [19:24:04]Write i2c OK [19:24:04]MH_I2C_Read... [19:24:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:04]Read from MH i2c: E2 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 03 00 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 03 00 30 23 00 90 00 C7 [19:24:04]RAPDU: 90 00 [19:24:04]wFMCommunicate OK [19:24:04]wFMCommunicate request_size=255 [19:24:04]MH_SAM_APDU [19:24:04]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 51 00 00 00 F4 03 04 00 5A EC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [19:24:04]Write to MH i2c: E2 02 01 31 23 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 51 00 00 00 F4 03 04 00 5A EC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 37 [19:24:04]Write i2c OK [19:24:04]MH_I2C_Read... [19:24:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:04]Read from MH i2c: E2 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 03 00 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 03 00 31 23 00 90 00 C8 [19:24:04]RAPDU: 90 00 [19:24:04]wFMCommunicate OK [19:24:04]wFMCommunicate request_size=27 [19:24:04]MH_SAM_APDU [19:24:04]CAPDU: 80 0D 02 02 16 34 39 33 37 10 04 04 00 2A 6A 00 00 35 04 06 00 6C BE 9F 58 32 64 [19:24:04]Write to MH i2c: E2 1E 00 32 23 80 0D 02 02 16 00 34 39 33 37 10 04 04 00 2A 6A 00 00 35 04 06 00 6C BE 9F 58 32 64 00 00 74 [19:24:04]Write i2c OK [19:24:04]MH_I2C_Read... [19:24:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:04]Read from MH i2c: E2 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 03 00 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 03 00 32 23 00 90 00 C9 [19:24:04]RAPDU: 90 00 [19:24:04]wFMCommunicate OK [19:24:04]wFMCommunicate request_size=4 [19:24:04]MH_SAM_APDU [19:24:04]CAPDU: 80 0D 03 02 [19:24:04]Write to MH i2c: E2 08 00 33 23 80 0D 03 02 00 00 00 00 D1 [19:24:04]Write i2c OK [19:24:04]MH_I2C_Read... [19:24:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:04]Read from MH i2c: E2 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 0B 00 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 0B 00 33 23 00 37 2F B6 48 80 AA 31 B0 90 00 41 [19:24:04]RAPDU: 37 2F B6 48 80 AA 31 B0 90 00 [19:24:04]wFMCommunicate OK [19:24:04]SAM_PROTO_SignData done [19:24:04]FM_MakeSignedData done [19:24:04]CreateOFDProtocolMessage [19:24:04]wFMCommunicate request_size=4 [19:24:04]MH_SAM_APDU [19:24:04]CAPDU: 80 11 00 00 [19:24:04]Write to MH i2c: E2 08 00 34 23 80 11 00 00 00 00 00 00 D1 [19:24:04]Write i2c OK [19:24:04]MH_I2C_Read... [19:24:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:04]Read from MH i2c: E2 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 17 00 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: E2 17 00 34 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 2A [19:24:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [19:24:04]wFMCommunicate OK [19:24:04]CreateOFDProtocolMessage done [19:24:04]OFDSenderStorePacket 27178 [19:24:04]StoreOFDPacket docnum=27178 [19:24:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 20 01 00 00 0E 28 18 01 8D 3B 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 51 00 00 00 F4 03 04 00 5A EC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 2A 6A 00 00 35 04 06 00 6C BE 9F 58 32 64 37 2F B6 48 80 AA 31 B0 [19:24:04]CheckFolder [19:24:04]dirname=/storage/ofd_packets [19:24:04]CheckFolder done [19:24:04]ProducePacketName [19:24:04]name=ofd_packets/00027178 [19:24:04]NVStorageSaveData ofd_packets/00027178 [19:24:04]File name is /storage/ofd_packets/00027178 [19:24:04]Write 318 bytes [19:24:04]NVStorageSaveData done [19:24:04]OFDSenderStorePacket done [19:24:04]KKMCreateOFDPacket done [19:24:04]NVStorageSaveData kkm_last_timestamp [19:24:04]File name is /storage/kkm_last_timestamp [19:24:04]Write 4 bytes [19:24:04]NVStorageSaveData done [19:24:04]ExternCall_PrintAddStr [19:24:04]wPrintStart [19:24:04]Write to MH i2c: 01 00 00 35 23 58 [19:24:04]Write i2c OK [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: 01 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: 01 07 00 [19:24:04]MH_I2C_Read... [19:24:04]Read from MH i2c: 01 07 00 35 23 00 00 00 00 00 FF 0F 6D [19:24:04]RasterBufferAndPrint [19:24:04]line Счет N : (3)150576 [19:24:04]line ИНН: 02508201610067 [19:24:04]line Контрольно-Кассовый Чек [19:24:04]line ПРОДАЖА [19:24:04]line Товар: 4870001570057 [19:24:04]line Напиток Pepsi 0,5л [19:24:04]line 1.000 * 80.00 [19:24:04]line = 80.00 [19:24:04]line НДС 12% НСП 1% [19:24:04]line > о реализуемом товаре [19:24:04]line ИТОГО: 80.00 [19:24:04]line НСП 1% : 0.71 [19:24:04]line НДС 12% : 8.50 [19:24:04]line Наличными: 80.00 [19:24:04]line Безнал.: 0.00 [19:24:04]line Место: АЗС № 134 "Партнер Нефть" [19:24:04]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:24:04]line СНО: Общий режим [19:24:04]line Чек 81 29.07.2024 19:24 [19:24:04]line Смена: 434 ФФД: 1.0 [19:24:04]line ЗНМ: 0300000043 [19:24:04]line РНМ: 0000000000092663 [19:24:04]line Версия ККМ: 001 [19:24:04]line ФМ: 0000000000874937 [19:24:04]line ФД: 27178 [19:24:04]line ФПД: 119565972943460 [19:24:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192410&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27178&fm=119565972943460&tin=02508201610067®Number=0000000000092663&sum=8000 [19:24:05]OFD Sender: Processing packet 27178 [packets to send 9, broken 8] [19:24:05]ProducePacketName [19:24:05]name=ofd_packets/00027178 [19:24:05]OFD Sender: To server: pG, [19:24:05]CommunicateWithHost lk.salyk.kg:30040 [19:24:05]ConnectInit lk.salyk.kg [19:24:05]line 0 [19:24:05]written 0, free lines is 4095 [19:24:05]Connected sock=10 [19:24:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 20 01 00 00 0E 28 18 01 8D 3B 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 51 00 00 00 F4 03 04 00 5A EC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 2A 6A 00 00 35 04 06 00 6C BE 9F 58 32 64 37 2F B6 48 80 AA 31 B0 [19:24:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 60 47 47 00 B9 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 34 39 33 37 10 04 04 00 2A 6A 00 00 F4 03 04 00 AA 92 A7 66 B6 04 01 00 00 93 5F DF A3 70 59 B0 F2 [19:24:05]CommunicateWithHost err = 0 [19:24:05]CheckOFDResponse [19:24:05]1017 (14) - 77093643461234 [19:24:05]1041 (16) - 0000000000874937 [19:24:05]1040 (4) - 27178 [19:24:05]1012 (4) - 29.07.2024 13:01 [19:24:05]1206 (1) - 0 [19:24:05]OFD Sender: Remove packet 27178 [19:24:05]ProducePacketName [19:24:05]name=ofd_packets/00027178 [19:24:05]NVStorageDeleteData [19:24:05]Write to MH i2c: 01 00 00 5C 23 7F [19:24:05]Write i2c OK [19:24:05]MH_I2C_Read... [19:24:05]Read from MH i2c: 01 [19:24:05]MH_I2C_Read... [19:24:05]Read from MH i2c: 01 07 00 [19:24:05]MH_I2C_Read... [19:24:05]Read from MH i2c: 01 07 00 5C 23 00 00 00 00 00 FA 0C 8C [19:24:05]RasterBufferAndPrint [19:24:05]line [19:24:05]line [19:24:05]line [19:24:05]line [19:24:05]line [19:24:05]written 0, free lines is 3331 [19:24:05]MH_Cut [19:24:05]Write to MH i2c: D1 01 00 63 23 01 58 [19:24:05]Write i2c OK [19:24:05]MH_I2C_Read... [19:24:05]Read from MH i2c: D1 [19:24:05]MH_I2C_Read... [19:24:05]Read from MH i2c: D1 01 00 [19:24:05]MH_I2C_Read... [19:24:05]Read from MH i2c: D1 01 00 63 23 00 57 [19:24:05]Write to MH i2c: 01 00 00 64 23 87 [19:24:05]Write i2c OK [19:24:05]MH_I2C_Read... [19:24:05]OFD Sender: No OFD packet to send [19:24:06]*** Cut start [19:24:06]*** Partial cut [19:24:06]*** CUTSNS_PIN = 1 [19:24:06]*** CUTSNS_PIN = 0 [19:24:06]*** Brake cut motor [19:24:06]Read from MH i2c: 01 [19:24:06]MH_I2C_Read... [19:24:06]*** Stop cut motor [19:24:06]*** Cut end [19:24:06]Read from MH i2c: 01 07 00 [19:24:06]MH_I2C_Read... [19:24:06]Read from MH i2c: 01 07 00 64 23 00 00 00 00 00 FF 0F 9C [19:24:06]process_action close_receipt done [19:24:06]requested_data is exist [19:24:06]produce_requested_data [19:24:06]requested_item fm.sn is exist - process it [19:24:06]wFMCommunicate request_size=4 [19:24:06]MH_SAM_APDU [19:24:06]CAPDU: 80 11 00 00 [19:24:06]Write to MH i2c: E2 08 00 65 23 80 11 00 00 00 00 00 00 02 [19:24:06]Write i2c OK [19:24:06]MH_I2C_Read... [19:24:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:06]Read from MH i2c: E2 [19:24:06]MH_I2C_Read... [19:24:06]Read from MH i2c: E2 17 00 [19:24:06]MH_I2C_Read... [19:24:06]Read from MH i2c: E2 17 00 65 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 5B [19:24:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [19:24:06]wFMCommunicate OK [19:24:06]requested_item fd.num is exist - process it [19:24:06]SAM_PROTO_GetFieldsCounters [19:24:06]wFMCommunicate request_size=4 [19:24:06]MH_SAM_APDU [19:24:06]CAPDU: 80 13 00 00 [19:24:06]Write to MH i2c: E2 08 00 66 23 80 13 00 00 00 00 00 00 05 [19:24:06]Write i2c OK [19:24:06]MH_I2C_Read... [19:24:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:07]Read from MH i2c: E2 [19:24:07]MH_I2C_Read... [19:24:07]Read from MH i2c: E2 62 00 [19:24:07]MH_I2C_Read... [19:24:07]Read from MH i2c: E2 62 00 66 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 2A 6A 00 00 0E 04 04 00 B2 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 67 [19:24:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 2A 6A 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:24:07]wFMCommunicate OK [19:24:07]SAM_PROTO_GetFieldsCounters done [19:24:07]requested_item shift.num is exist - process it [19:24:07]requested_item shift.opened is exist - process it [19:24:07]req_shift_opened [19:24:07]FM_GetShiftState [19:24:07]SAM_PROTO_GetShiftState [19:24:07]wFMCommunicate request_size=4 [19:24:07]MH_SAM_APDU [19:24:07]CAPDU: 80 13 01 00 [19:24:07]Write to MH i2c: E2 08 00 67 23 80 13 01 00 00 00 00 00 07 [19:24:07]Write i2c OK [19:24:07]MH_I2C_Read... [19:24:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:07]Read from MH i2c: E2 [19:24:07]MH_I2C_Read... [19:24:07]Read from MH i2c: E2 0E 00 [19:24:07]MH_I2C_Read... [19:24:07]Read from MH i2c: E2 0E 00 67 23 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 88 [19:24:07]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [19:24:07]wFMCommunicate OK [19:24:07]SAM_PROTO_GetShiftState done [19:24:07]FM_GetShiftState done [19:24:07]req_shift_opened done [19:24:07]requested_item shift.open_date is exist - process it [19:24:07]req_shift_open_date [19:24:07]req_shift_open_date done [19:24:07]produce_requested_data done [19:24:07]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27178,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [19:24:07]process_action_free close_receipt [19:24:07]json_value_free [19:24:07]json_value_free done [19:24:07]process_json_proto returns [19:24:07]Send response to host [19:24:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27178,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [19:24:07]free response buf [19:24:07]execute_script done [19:24:07]execute_script returns [19:24:07]free content buf [19:24:07]Sock 8.Close socket [19:24:07]Sock 8.Thread stoped [19:24:10]OFD Sender: No OFD packet to send [19:24:15]OFD Sender: No OFD packet to send [19:24:20]OFD Sender: No OFD packet to send [19:24:25]OFD Sender: No OFD packet to send [19:24:30]OFD Sender: No OFD packet to send [19:24:35]OFD Sender: No OFD packet to send [19:24:40]OFD Sender: No OFD packet to send [19:24:45]OFD Sender: No OFD packet to send [19:24:50]OFD Sender: No OFD packet to send [19:24:55]accept exits with 9 [19:24:55]New connection [19:24:55]New thread 3066785124 created [19:24:55]Thread 3066928484 joined [19:24:55]Waiting for new connection... [19:24:55] Sock 9.Parse request [19:24:55]Sock 9.Check first char [19:24:55]Sock 9.First char is OK [19:24:55]request: POST /json_proto HTTP/1.0 [19:24:55]Method: POST [19:24:55]URL: /json_proto [19:24:55]Method is POST - this is cgi request [19:24:55]url: /json_proto [19:24:55]query_string will be loaded in cgi processing [19:24:55]execute_cgi json_proto POST (null) [19:24:55]execute_cgi path=json_proto method=POST [19:24:55]POST find Content-Length [19:24:55]Host: 172.17.45.8:8080 [19:24:55]Content-Length: 1041 [19:24:55]Content-Type: application/json [19:24:55] [19:24:55]POST finish read [19:24:55]Found Content-Length = 1041 [19:24:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150577", "tax_sys" : 0, "items" : [ { "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 }]} ,{ "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" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:55]execute_script... [19:24: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 : (3)150577", "tax_sys" : 0, "items" : [ { "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 }]} ,{ "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" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:55]POST & json_proto [19:24:55]process_json_proto [19:24:55]json parsed OK: [19:24:55]protocol is kg_v1.0 [19:24:55]action value=close_receipt [19:24:55]process_action close_receipt [19:24:55]cmd_close_receipt [19:24:55]MH_GetDate [19:24:55]Write to MH i2c: F0 00 00 68 23 7A [19:24:55]Write i2c OK [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: F0 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: F0 09 00 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: F0 09 00 68 23 00 8E EC A7 66 A6 1F 7F 64 B2 [19:24:55]GetLastDocTimeStamp 1722281050 [19:24:55]current date 1722281102 [19:24:55]FM_GetShiftState [19:24:55]SAM_PROTO_GetShiftState [19:24:55]wFMCommunicate request_size=4 [19:24:55]MH_SAM_APDU [19:24:55]CAPDU: 80 13 01 00 [19:24:55]Write to MH i2c: E2 08 00 69 23 80 13 01 00 00 00 00 00 09 [19:24:55]Write i2c OK [19:24:55]MH_I2C_Read... [19:24:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:55]Read from MH i2c: E2 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: E2 0E 00 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: E2 0E 00 69 23 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 8A [19:24:55]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [19:24:55]wFMCommunicate OK [19:24:55]SAM_PROTO_GetShiftState done [19:24:55]FM_GetShiftState done [19:24:55]opened in 1722213509 [19:24:55]opened+sec_in_day 1722299909 [19:24:55]quantity*price = 7500 [19:24:55]sum+1 = 7501 [19:24:55]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870235681086 Grizzly волнистые Сыр с халапеньо 55 гр 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 165.00 НСП 1% : 1.46 НДС 12% : 17.52 Наличными: 165.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 82 29.07.2024 19:25 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27179 ФПД: 171989833530996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192502&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27179&fm=171989833530996&tin=02508201610067®Number=0000000000092663&sum=16500 0 [19:24:56]StoreToDocumentArchive [19:24:56]shift 434 fd 27179 [19:24:56]save to /storage/0434/doc_00027179 [19:24:56]save last doc name /storage/0434/doc_00027179 to /storage/kkm_last_doc_name [19:24:56]save OK [19:24:56]Clear old archive folders... [19:24:56]ProcessDocumentItem done err = 0, tmpTLVsize=439 [19:24:56]tlvbuf is 00200290 [19:24:56]SAM_PROTO_ClearQueue [19:24:56]wFMCommunicate request_size=4 [19:24:56]MH_SAM_APDU [19:24:56]CAPDU: 80 09 00 00 [19:24:56]Write to MH i2c: E2 08 00 76 23 80 09 00 00 00 00 00 00 0B [19:24:56]Write i2c OK [19:24:56]MH_I2C_Read... [19:24:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:56]Read from MH i2c: E2 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: E2 03 00 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: E2 03 00 76 23 00 90 00 0D [19:24:56]RAPDU: 90 00 [19:24:56]wFMCommunicate OK [19:24:56]SAM_PROTO_ClearQueue done [19:24:56]KKMCreateOFDPacket [19:24:56]OFDProtocolAddRootSTLVToBuf [19:24:56]FM_MakeSignedData [19:24:56]FM_MakeSignedData [19:24:56]SAM_PROTO_SignData [19:24:56]wFMCommunicate request_size=4 [19:24:56]MH_SAM_APDU [19:24:56]CAPDU: 80 0D 01 02 [19:24:56]Write to MH i2c: E2 08 00 77 23 80 0D 01 02 00 00 00 00 13 [19:24:56]Write i2c OK [19:24:56]MH_I2C_Read... [19:24:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:56]Read from MH i2c: E2 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: E2 03 00 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: E2 03 00 77 23 00 90 00 0E [19:24:56]RAPDU: 90 00 [19:24:56]wFMCommunicate OK [19:24:56]wFMCommunicate request_size=255 [19:24:56]MH_SAM_APDU [19:24:56]CAPDU: 80 0D 02 02 FA 03 00 B7 01 1E 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 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 [19:24:56]Write to MH i2c: E2 02 01 78 23 80 0D 02 02 FA 00 03 00 B7 01 1E 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 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 87 [19:24:56]Write i2c OK [19:24:56]MH_I2C_Read... [19:24:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:56]Read from MH i2c: E2 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: E2 03 00 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: E2 03 00 78 23 00 90 00 0F [19:24:56]RAPDU: 90 00 [19:24:56]wFMCommunicate OK [19:24:56]wFMCommunicate request_size=198 [19:24:56]MH_SAM_APDU [19:24:56]CAPDU: 80 0D 02 02 C1 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 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 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 8E EC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 2B 6A 00 00 35 04 06 00 9C 6C 80 EE BE 74 [19:24:56]Write to MH i2c: E2 C9 00 79 23 80 0D 02 02 C1 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 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 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 8E EC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 2B 6A 00 00 35 04 06 00 9C 6C 80 EE BE 74 00 00 9E [19:24:56]Write i2c OK [19:24:56]MH_I2C_Read... [19:24:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:56]Read from MH i2c: E2 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: E2 03 00 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: E2 03 00 79 23 00 90 00 10 [19:24:56]RAPDU: 90 00 [19:24:56]wFMCommunicate OK [19:24:56]wFMCommunicate request_size=4 [19:24:56]MH_SAM_APDU [19:24:56]CAPDU: 80 0D 03 02 [19:24:56]Write to MH i2c: E2 08 00 7A 23 80 0D 03 02 00 00 00 00 18 [19:24:56]Write i2c OK [19:24:56]MH_I2C_Read... [19:24:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:57]Read from MH i2c: E2 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: E2 0B 00 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: E2 0B 00 7A 23 00 7C 67 2F 7F B3 7B 03 93 90 00 6E [19:24:57]RAPDU: 7C 67 2F 7F B3 7B 03 93 90 00 [19:24:57]wFMCommunicate OK [19:24:57]SAM_PROTO_SignData done [19:24:57]FM_MakeSignedData done [19:24:57]CreateOFDProtocolMessage [19:24:57]wFMCommunicate request_size=4 [19:24:57]MH_SAM_APDU [19:24:57]CAPDU: 80 11 00 00 [19:24:57]Write to MH i2c: E2 08 00 7B 23 80 11 00 00 00 00 00 00 18 [19:24:57]Write i2c OK [19:24:57]MH_I2C_Read... [19:24:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:57]Read from MH i2c: E2 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: E2 17 00 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: E2 17 00 7B 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 71 [19:24:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [19:24:57]wFMCommunicate OK [19:24:57]CreateOFDProtocolMessage done [19:24:57]OFDSenderStorePacket 27179 [19:24:57]StoreOFDPacket docnum=27179 [19:24:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 CB 01 00 00 BC 81 C3 01 AC 9A 5A 03 01 00 03 00 B7 01 1E 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 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 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 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 8E EC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 2B 6A 00 00 35 04 06 00 9C 6C 80 EE BE 74 7C 67 2F 7F B3 7B 03 93 [19:24:57]CheckFolder [19:24:57]dirname=/storage/ofd_packets [19:24:57]CheckFolder done [19:24:57]ProducePacketName [19:24:57]name=ofd_packets/00027179 [19:24:57]NVStorageSaveData ofd_packets/00027179 [19:24:57]File name is /storage/ofd_packets/00027179 [19:24:57]Write 489 bytes [19:24:57]NVStorageSaveData done [19:24:57]OFDSenderStorePacket done [19:24:57]KKMCreateOFDPacket done [19:24:57]NVStorageSaveData kkm_last_timestamp [19:24:57]File name is /storage/kkm_last_timestamp [19:24:57]Write 4 bytes [19:24:57]NVStorageSaveData done [19:24:57]ExternCall_PrintAddStr [19:24:57]wPrintStart [19:24:57]Write to MH i2c: 01 00 00 7C 23 9F [19:24:57]OFD Sender: Processing packet 27179 [packets to send 9, broken 8] [19:24:57]ProducePacketName [19:24:57]name=ofd_packets/00027179 [19:24:57]OFD Sender: To server: pG, [19:24:57]CommunicateWithHost lk.salyk.kg:30040 [19:24:57]ConnectInit lk.salyk.kg [19:24:57]Write i2c OK [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: 01 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: 01 07 00 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: 01 07 00 7C 23 00 00 00 00 00 FF 0F B4 [19:24:57]RasterBufferAndPrint [19:24:57]line Счет N : (3)150577 [19:24:57]line ИНН: 02508201610067 [19:24:57]line Контрольно-Кассовый Чек [19:24:57]line ПРОДАЖА [19:24:57]line Товар: 4870112003956 [19:24:57]line Шок батончик ALBENI SUPER Альбени Супер [19:24:57]line 1.000 * 75.00 [19:24:57]line = 75.00 [19:24:57]line НДС 12% НСП 1% [19:24:57]line > о реализуемом товаре [19:24:57]line Товар: 4870235681086 [19:24:57]line Grizzly волнистые Сыр с халапеньо 55 гр [19:24:57]line 1.000 * 90.00 [19:24:57]line = 90.00 [19:24:57]line НДС 12% НСП 1% [19:24:57]line > о реализуемом товаре [19:24:57]line ИТОГО: 165.00 [19:24:57]line НСП 1% : 1.46 [19:24:57]line НДС 12% : 17.52 [19:24:57]line Наличными: 165.00 [19:24:57]line Безнал.: 0.00 [19:24:57]line Место: АЗС № 134 "Партнер Нефть" [19:24:57]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:24:57]line СНО: Общий режим [19:24:57]line Чек 82 29.07.2024 19:25 [19:24:57]line Смена: 434 ФФД: 1.0 [19:24:57]line ЗНМ: 0300000043 [19:24:57]line РНМ: 0000000000092663 [19:24:57]line Версия ККМ: 001 [19:24:57]line ФМ: 0000000000874937 [19:24:57]line ФД: 27179 [19:24:57]line ФПД: 171989833530996 [19:24:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192502&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27179&fm=171989833530996&tin=02508201610067®Number=0000000000092663&sum=16500 [19:24:57]line 0 [19:24:57]written 0, free lines is 4095 [19:24:57]Connected sock=10 [19:24:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 CB 01 00 00 BC 81 C3 01 AC 9A 5A 03 01 00 03 00 B7 01 1E 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 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 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 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 8E EC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 2B 6A 00 00 35 04 06 00 9C 6C 80 EE BE 74 7C 67 2F 7F B3 7B 03 93 [19:24:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 C1 85 47 00 4D C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 2B 6A 00 00 F4 03 04 00 DE 92 A7 66 B6 04 01 00 00 45 5A A3 CE F4 AD 5C 8E [19:24:57]CommunicateWithHost err = 0 [19:24:57]CheckOFDResponse [19:24:57]1017 (14) - 77093643461234 [19:24:57]1041 (16) - 0000000000874937 [19:24:57]1040 (4) - 27179 [19:24:57]1012 (4) - 29.07.2024 13:02 [19:24:57]1206 (1) - 0 [19:24:57]OFD Sender: Remove packet 27179 [19:24:57]ProducePacketName [19:24:57]name=ofd_packets/00027179 [19:24:57]NVStorageDeleteData [19:24:57]Write to MH i2c: 01 00 00 AB 23 CE [19:24:57]Write i2c OK [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: 01 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: 01 07 00 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: 01 07 00 AB 23 00 00 00 00 00 7D 0C 5E [19:24:57]RasterBufferAndPrint [19:24:57]line [19:24:57]line [19:24:57]line [19:24:57]line [19:24:57]line [19:24:57]written 0, free lines is 3204 [19:24:57]MH_Cut [19:24:57]Write to MH i2c: D1 01 00 B2 23 01 A7 [19:24:57]Write i2c OK [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: D1 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: D1 01 00 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: D1 01 00 B2 23 00 A6 [19:24:57]Write to MH i2c: 01 00 00 B3 23 D6 [19:24:57]Write i2c OK [19:24:57]MH_I2C_Read... [19:24:58]OFD Sender: No OFD packet to send [19:24:58]*** Cut start [19:24:58]*** Partial cut [19:24:58]*** CUTSNS_PIN = 1 [19:24:58]*** CUTSNS_PIN = 0 [19:24:59]*** Brake cut motor [19:24:59]Read from MH i2c: 01 [19:24:59]MH_I2C_Read... [19:24:59]*** Stop cut motor [19:24:59]*** Cut end [19:24:59]Read from MH i2c: 01 07 00 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: 01 07 00 B3 23 00 00 00 00 00 FF 0F EB [19:24:59]process_action close_receipt done [19:24:59]requested_data is exist [19:24:59]produce_requested_data [19:24:59]requested_item fm.sn is exist - process it [19:24:59]wFMCommunicate request_size=4 [19:24:59]MH_SAM_APDU [19:24:59]CAPDU: 80 11 00 00 [19:24:59]Write to MH i2c: E2 08 00 B4 23 80 11 00 00 00 00 00 00 51 [19:24:59]Write i2c OK [19:24:59]MH_I2C_Read... [19:24:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:59]Read from MH i2c: E2 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 17 00 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 17 00 B4 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 AA [19:24:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [19:24:59]wFMCommunicate OK [19:24:59]requested_item fd.num is exist - process it [19:24:59]SAM_PROTO_GetFieldsCounters [19:24:59]wFMCommunicate request_size=4 [19:24:59]MH_SAM_APDU [19:24:59]CAPDU: 80 13 00 00 [19:24:59]Write to MH i2c: E2 08 00 B5 23 80 13 00 00 00 00 00 00 54 [19:24:59]Write i2c OK [19:24:59]MH_I2C_Read... [19:24:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:59]Read from MH i2c: E2 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 62 00 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 62 00 B5 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 2B 6A 00 00 0E 04 04 00 B2 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 BA [19:24:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 2B 6A 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:24:59]wFMCommunicate OK [19:24:59]SAM_PROTO_GetFieldsCounters done [19:24:59]requested_item shift.num is exist - process it [19:24:59]requested_item shift.opened is exist - process it [19:24:59]req_shift_opened [19:24:59]FM_GetShiftState [19:24:59]SAM_PROTO_GetShiftState [19:24:59]wFMCommunicate request_size=4 [19:24:59]MH_SAM_APDU [19:24:59]CAPDU: 80 13 01 00 [19:24:59]Write to MH i2c: E2 08 00 B6 23 80 13 01 00 00 00 00 00 56 [19:24:59]Write i2c OK [19:24:59]MH_I2C_Read... [19:24:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:59]Read from MH i2c: E2 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 0E 00 [19:24:59]MH_I2C_Read... [19:24:59]Read from MH i2c: E2 0E 00 B6 23 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 D7 [19:24:59]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [19:24:59]wFMCommunicate OK [19:24:59]SAM_PROTO_GetShiftState done [19:24:59]FM_GetShiftState done [19:24:59]req_shift_opened done [19:24:59]requested_item shift.open_date is exist - process it [19:24:59]req_shift_open_date [19:24:59]req_shift_open_date done [19:24:59]produce_requested_data done [19:24:59]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27179,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [19:24:59]process_action_free close_receipt [19:24:59]json_value_free [19:24:59]json_value_free done [19:24:59]process_json_proto returns [19:24:59]Send response to host [19:24:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27179,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [19:24:59]free response buf [19:24:59]execute_script done [19:24:59]execute_script returns [19:24:59]free content buf [19:24:59]Sock 9.Close socket [19:24:59]Sock 9.Thread stoped [19:25:03]OFD Sender: No OFD packet to send [19:25:08]OFD Sender: No OFD packet to send [19:25:13]OFD Sender: No OFD packet to send [19:25:18]OFD Sender: No OFD packet to send [19:25:23]OFD Sender: No OFD packet to send [19:25:28]OFD Sender: No OFD packet to send [19:25:33]OFD Sender: No OFD packet to send [19:25:38]OFD Sender: No OFD packet to send [19:25:43]OFD Sender: No OFD packet to send [19:25:48]OFD Sender: No OFD packet to send [19:25:53]OFD Sender: No OFD packet to send [19:25:54]accept exits with 8 [19:25:54]New connection [19:25:54]New thread 3066928484 created [19:25:54]Thread 3066785124 joined [19:25:54]Waiting for new connection... [19:25:54] Sock 8.Parse request [19:25:54]Sock 8.Check first char [19:25:54]Sock 8.First char is OK [19:25:54]request: POST /json_proto HTTP/1.0 [19:25:54]Method: POST [19:25:54]URL: /json_proto [19:25:54]Method is POST - this is cgi request [19:25:54]url: /json_proto [19:25:54]query_string will be loaded in cgi processing [19:25:54]execute_cgi json_proto POST (null) [19:25:54]execute_cgi path=json_proto method=POST [19:25:54]POST find Content-Length [19:25:54]Host: 172.17.45.8:8080 [19:25:54]Content-Length: 662 [19:25:54]Content-Type: application/json [19:25:54] [19:25:54]POST finish read [19:25:54]Found Content-Length = 662 [19:25:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150578", "tax_sys" : 0, "items" : [ { "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" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:54]execute_script... [19:25: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)150578", "tax_sys" : 0, "items" : [ { "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" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:54]POST & json_proto [19:25:54]process_json_proto [19:25:54]json parsed OK: [19:25:54]protocol is kg_v1.0 [19:25:54]action value=close_receipt [19:25:54]process_action close_receipt [19:25:54]cmd_close_receipt [19:25:54]MH_GetDate [19:25:54]Write to MH i2c: F0 00 00 B7 23 C9 [19:25:54]Write i2c OK [19:25:54]MH_I2C_Read... [19:25:54]Read from MH i2c: F0 [19:25:54]MH_I2C_Read... [19:25:54]Read from MH i2c: F0 09 00 [19:25:54]MH_I2C_Read... [19:25:54]Read from MH i2c: F0 09 00 B7 23 00 C9 EC A7 66 A6 1F 7F 64 3C [19:25:54]GetLastDocTimeStamp 1722281102 [19:25:54]current date 1722281161 [19:25:54]FM_GetShiftState [19:25:54]SAM_PROTO_GetShiftState [19:25:54]wFMCommunicate request_size=4 [19:25:54]MH_SAM_APDU [19:25:54]CAPDU: 80 13 01 00 [19:25:54]Write to MH i2c: E2 08 00 B8 23 80 13 01 00 00 00 00 00 58 [19:25:54]Write i2c OK [19:25:54]MH_I2C_Read... [19:25:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:54]Read from MH i2c: E2 [19:25:54]MH_I2C_Read... [19:25:54]Read from MH i2c: E2 0E 00 [19:25:54]MH_I2C_Read... [19:25:54]Read from MH i2c: E2 0E 00 B8 23 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 D9 [19:25:54]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [19:25:54]wFMCommunicate OK [19:25:54]SAM_PROTO_GetShiftState done [19:25:54]FM_GetShiftState done [19:25:54]opened in 1722213509 [19:25:54]opened+sec_in_day 1722299909 [19:25:54]quantity*price = 9500 [19:25:54]sum+1 = 9501 [19:25:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 83 29.07.2024 19:26 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27180 ФПД: 27598576232474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192601&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27180&fm=27598576232474&tin=02508201610067®Number=0000000000092663&sum=9500 0 [19:25:55]StoreToDocumentArchive [19:25:55]shift 434 fd 27180 [19:25:55]save to /storage/0434/doc_00027180 [19:25:55]save last doc name /storage/0434/doc_00027180 to /storage/kkm_last_doc_name [19:25:55]save OK [19:25:55]Clear old archive folders... [19:25:55]ProcessDocumentItem done err = 0, tmpTLVsize=289 [19:25:55]tlvbuf is 001E8640 [19:25:55]SAM_PROTO_ClearQueue [19:25:55]wFMCommunicate request_size=4 [19:25:55]MH_SAM_APDU [19:25:55]CAPDU: 80 09 00 00 [19:25:55]Write to MH i2c: E2 08 00 C5 23 80 09 00 00 00 00 00 00 5A [19:25:55]Write i2c OK [19:25:55]MH_I2C_Read... [19:25:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:25:55]Read from MH i2c: E2 [19:25:55]MH_I2C_Read... [19:25:55]Read from MH i2c: E2 03 00 [19:25:55]MH_I2C_Read... [19:25:55]Read from MH i2c: E2 03 00 C5 23 00 90 00 5C [19:25:55]RAPDU: 90 00 [19:25:55]wFMCommunicate OK [19:25:55]SAM_PROTO_ClearQueue done [19:25:55]KKMCreateOFDPacket [19:25:55]OFDProtocolAddRootSTLVToBuf [19:25:55]FM_MakeSignedData [19:25:55]FM_MakeSignedData [19:25:55]SAM_PROTO_SignData [19:25:55]wFMCommunicate request_size=4 [19:25:55]MH_SAM_APDU [19:25:55]CAPDU: 80 0D 01 02 [19:25:55]Write to MH i2c: E2 08 00 C6 23 80 0D 01 02 00 00 00 00 62 [19:25:55]Write i2c OK [19:25:55]MH_I2C_Read... [19:25:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:25:55]Read from MH i2c: E2 [19:25:55]MH_I2C_Read... [19:25:55]Read from MH i2c: E2 03 00 [19:25:55]MH_I2C_Read... [19:25:55]Read from MH i2c: E2 03 00 C6 23 00 90 00 5D [19:25:55]RAPDU: 90 00 [19:25:55]wFMCommunicate OK [19:25:55]wFMCommunicate request_size=255 [19:25:55]MH_SAM_APDU [19:25:55]CAPDU: 80 0D 02 02 FA 03 00 21 01 1E 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 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 53 00 00 00 F4 03 04 00 C9 EC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 [19:25:55]Write to MH i2c: E2 02 01 C7 23 80 0D 02 02 FA 00 03 00 21 01 1E 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 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 53 00 00 00 F4 03 04 00 C9 EC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 00 00 9A [19:25:55]Write i2c OK [19:25:55]MH_I2C_Read... [19:25:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:56]Read from MH i2c: E2 [19:25:56]MH_I2C_Read... [19:25:56]Read from MH i2c: E2 03 00 [19:25:56]MH_I2C_Read... [19:25:56]Read from MH i2c: E2 03 00 C7 23 00 90 00 5E [19:25:56]RAPDU: 90 00 [19:25:56]wFMCommunicate OK [19:25:56]wFMCommunicate request_size=48 [19:25:56]MH_SAM_APDU [19:25:56]CAPDU: 80 0D 02 02 2B 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 2C 6A 00 00 35 04 06 00 19 19 CB 55 28 1A [19:25:56]Write to MH i2c: E2 33 00 C8 23 80 0D 02 02 2B 00 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 2C 6A 00 00 35 04 06 00 19 19 CB 55 28 1A 00 00 91 [19:25:56]Write i2c OK [19:25:56]MH_I2C_Read... [19:25:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:56]Read from MH i2c: E2 [19:25:56]MH_I2C_Read... [19:25:56]Read from MH i2c: E2 03 00 [19:25:56]MH_I2C_Read... [19:25:56]Read from MH i2c: E2 03 00 C8 23 00 90 00 5F [19:25:56]RAPDU: 90 00 [19:25:56]wFMCommunicate OK [19:25:56]wFMCommunicate request_size=4 [19:25:56]MH_SAM_APDU [19:25:56]CAPDU: 80 0D 03 02 [19:25:56]Write to MH i2c: E2 08 00 C9 23 80 0D 03 02 00 00 00 00 67 [19:25:56]Write i2c OK [19:25:56]MH_I2C_Read... [19:25:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:25:56]Read from MH i2c: E2 [19:25:56]MH_I2C_Read... [19:25:56]Read from MH i2c: E2 0B 00 [19:25:56]MH_I2C_Read... [19:25:56]Read from MH i2c: E2 0B 00 C9 23 00 F7 C3 B7 34 6A 73 92 70 90 00 EC [19:25:56]RAPDU: F7 C3 B7 34 6A 73 92 70 90 00 [19:25:56]wFMCommunicate OK [19:25:56]SAM_PROTO_SignData done [19:25:56]FM_MakeSignedData done [19:25:56]CreateOFDProtocolMessage [19:25:56]wFMCommunicate request_size=4 [19:25:56]MH_SAM_APDU [19:25:56]CAPDU: 80 11 00 00 [19:25:56]Write to MH i2c: E2 08 00 CA 23 80 11 00 00 00 00 00 00 67 [19:25:56]Write i2c OK [19:25:56]MH_I2C_Read... [19:25:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:56]Read from MH i2c: E2 [19:25:56]MH_I2C_Read... [19:25:56]Read from MH i2c: E2 17 00 [19:25:56]MH_I2C_Read... [19:25:56]Read from MH i2c: E2 17 00 CA 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 C0 [19:25:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [19:25:56]wFMCommunicate OK [19:25:56]CreateOFDProtocolMessage done [19:25:56]OFDSenderStorePacket 27180 [19:25:56]StoreOFDPacket docnum=27180 [19:25:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 35 01 00 00 16 D9 2D 01 8F 75 5A 03 01 00 03 00 21 01 1E 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 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 53 00 00 00 F4 03 04 00 C9 EC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 2C 6A 00 00 35 04 06 00 19 19 CB 55 28 1A F7 C3 B7 34 6A 73 92 70 [19:25:56]CheckFolder [19:25:56]dirname=/storage/ofd_packets [19:25:56]CheckFolder done [19:25:56]ProducePacketName [19:25:56]name=ofd_packets/00027180 [19:25:56]NVStorageSaveData ofd_packets/00027180 [19:25:56]File name is /storage/ofd_packets/00027180 [19:25:56]Write 339 bytes [19:25:56]NVStorageSaveData done [19:25:56]OFDSenderStorePacket done [19:25:56]KKMCreateOFDPacket done [19:25:56]NVStorageSaveData kkm_last_timestamp [19:25:56]File name is /storage/kkm_last_timestamp [19:25:56]Write 4 bytes [19:25:56]NVStorageSaveData done [19:25:56]ExternCall_PrintAddStr [19:25:56]wPrintStart [19:25:56]Write to MH i2c: 01 00 00 CB 23 EE [19:25:56]Write i2c OK [19:25:56]MH_I2C_Read... [19:25:56]Read from MH i2c: 01 [19:25:56]MH_I2C_Read... [19:25:56]Read from MH i2c: 01 07 00 [19:25:56]MH_I2C_Read... [19:25:56]Read from MH i2c: 01 07 00 CB 23 00 00 00 00 00 FF 0F 03 [19:25:56]RasterBufferAndPrint [19:25:56]line Счет N : (3)150578 [19:25:56]line ИНН: 02508201610067 [19:25:56]line Контрольно-Кассовый Чек [19:25:56]line ПРОДАЖА [19:25:56]line Товар: 5449000176431 [19:25:56]line Сок Piko Pulpy апельсин ПЭТ 0,5л [19:25:56]line 1.000 * 95.00 [19:25:56]line = 95.00 [19:25:56]line НДС 12% НСП 1% [19:25:56]line > о реализуемом товаре [19:25:56]line ИТОГО: 95.00 [19:25:56]line НСП 1% : 0.84 [19:25:56]line НДС 12% : 10.09 [19:25:56]line Наличными: 95.00 [19:25:56]line Безнал.: 0.00 [19:25:56]line Место: АЗС № 134 "Партнер Нефть" [19:25:56]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:25:56]line СНО: Общий режим [19:25:56]line Чек 83 29.07.2024 19:26 [19:25:56]line Смена: 434 ФФД: 1.0 [19:25:56]line ЗНМ: 0300000043 [19:25:56]line РНМ: 0000000000092663 [19:25:56]line Версия ККМ: 001 [19:25:56]line ФМ: 0000000000874937 [19:25:56]line ФД: 27180 [19:25:56]line ФПД: 27598576232474 [19:25:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192601&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27180&fm=27598576232474&tin=02508201610067®Number=0000000000092663&sum=9500 [19:25:56]line 0 [19:25:56]written 0, free lines is 4095 [19:25:56]OFD Sender: Processing packet 27180 [packets to send 9, broken 8] [19:25:56]ProducePacketName [19:25:56]name=ofd_packets/00027180 [19:25:56]OFD Sender: To server: pG, [19:25:56]CommunicateWithHost lk.salyk.kg:30040 [19:25:56]ConnectInit lk.salyk.kg [19:25:56]Write to MH i2c: 01 00 00 F3 23 16 [19:25:56]Write i2c OK [19:25:56]MH_I2C_Read... [19:25:56]Read from MH i2c: 01 [19:25:56]MH_I2C_Read... [19:25:56]Read from MH i2c: 01 07 00 [19:25:56]MH_I2C_Read... [19:25:56]Read from MH i2c: 01 07 00 F3 23 00 00 00 00 00 ED 0C 16 [19:25:56]RasterBufferAndPrint [19:25:56]line [19:25:56]line [19:25:56]line [19:25:56]line [19:25:56]line [19:25:56]written 0, free lines is 3315 [19:25:56]Connected sock=10 [19:25:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 35 01 00 00 16 D9 2D 01 8F 75 5A 03 01 00 03 00 21 01 1E 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 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 53 00 00 00 F4 03 04 00 C9 EC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 2C 6A 00 00 35 04 06 00 19 19 CB 55 28 1A F7 C3 B7 34 6A 73 92 70 [19:25:56]MH_Cut [19:25:56]Write to MH i2c: D1 01 00 FA 23 01 EF [19:25:56]Write i2c OK [19:25:56]MH_I2C_Read... [19:25:56]Read from MH i2c: D1 [19:25:56]MH_I2C_Read... [19:25:56]Read from MH i2c: D1 01 00 [19:25:56]MH_I2C_Read... [19:25:56]Read from MH i2c: D1 01 00 FA 23 00 EE [19:25:56]Write to MH i2c: 01 00 00 FB 23 1E [19:25:56]Write i2c OK [19:25:56]MH_I2C_Read... [19:25:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 59 F0 47 00 6D 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 34 39 33 37 10 04 04 00 2C 6A 00 00 F4 03 04 00 19 93 A7 66 B6 04 01 00 00 B7 CC F0 3E 14 39 0D 3D [19:25:57]CommunicateWithHost err = 0 [19:25:57]CheckOFDResponse [19:25:57]1017 (14) - 77093643461234 [19:25:57]1041 (16) - 0000000000874937 [19:25:57]1040 (4) - 27180 [19:25:57]1012 (4) - 29.07.2024 13:03 [19:25:57]1206 (1) - 0 [19:25:57]OFD Sender: Remove packet 27180 [19:25:57]ProducePacketName [19:25:57]name=ofd_packets/00027180 [19:25:57]NVStorageDeleteData [19:25:57]*** Cut start [19:25:57]*** Partial cut [19:25:57]*** CUTSNS_PIN = 1 [19:25:57]OFD Sender: No OFD packet to send [19:25:57]*** CUTSNS_PIN = 0 [19:25:57]*** Brake cut motor [19:25:58]Read from MH i2c: 01 [19:25:58]MH_I2C_Read... [19:25:58]*** Stop cut motor [19:25:58]*** Cut end [19:25:58]Read from MH i2c: 01 07 00 [19:25:58]MH_I2C_Read... [19:25:58]Read from MH i2c: 01 07 00 FB 23 00 00 00 00 00 FF 0F 33 [19:25:58]process_action close_receipt done [19:25:58]requested_data is exist [19:25:58]produce_requested_data [19:25:58]requested_item fm.sn is exist - process it [19:25:58]wFMCommunicate request_size=4 [19:25:58]MH_SAM_APDU [19:25:58]CAPDU: 80 11 00 00 [19:25:58]Write to MH i2c: E2 08 00 FC 23 80 11 00 00 00 00 00 00 99 [19:25:58]Write i2c OK [19:25:58]MH_I2C_Read... [19:25:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:58]Read from MH i2c: E2 [19:25:58]MH_I2C_Read... [19:25:58]Read from MH i2c: E2 17 00 [19:25:58]MH_I2C_Read... [19:25:58]Read from MH i2c: E2 17 00 FC 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 F2 [19:25:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [19:25:58]wFMCommunicate OK [19:25:58]requested_item fd.num is exist - process it [19:25:58]SAM_PROTO_GetFieldsCounters [19:25:58]wFMCommunicate request_size=4 [19:25:58]MH_SAM_APDU [19:25:58]CAPDU: 80 13 00 00 [19:25:58]Write to MH i2c: E2 08 00 FD 23 80 13 00 00 00 00 00 00 9C [19:25:58]Write i2c OK [19:25:58]MH_I2C_Read... [19:25:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:25:58]Read from MH i2c: E2 [19:25:58]MH_I2C_Read... [19:25:58]Read from MH i2c: E2 62 00 [19:25:58]MH_I2C_Read... [19:25:58]Read from MH i2c: E2 62 00 FD 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 2C 6A 00 00 0E 04 04 00 B2 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 06 [19:25:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 2C 6A 00 00 0E 04 04 00 B2 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 [19:25:58]wFMCommunicate OK [19:25:58]SAM_PROTO_GetFieldsCounters done [19:25:58]requested_item shift.num is exist - process it [19:25:58]requested_item shift.opened is exist - process it [19:25:58]req_shift_opened [19:25:58]FM_GetShiftState [19:25:58]SAM_PROTO_GetShiftState [19:25:58]wFMCommunicate request_size=4 [19:25:58]MH_SAM_APDU [19:25:58]CAPDU: 80 13 01 00 [19:25:58]Write to MH i2c: E2 08 00 FE 23 80 13 01 00 00 00 00 00 9E [19:25:58]Write i2c OK [19:25:58]MH_I2C_Read... [19:25:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:58]Read from MH i2c: E2 [19:25:58]MH_I2C_Read... [19:25:58]Read from MH i2c: E2 0E 00 [19:25:58]MH_I2C_Read... [19:25:58]Read from MH i2c: E2 0E 00 FE 23 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 1F [19:25:58]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [19:25:58]wFMCommunicate OK [19:25:58]SAM_PROTO_GetShiftState done [19:25:58]FM_GetShiftState done [19:25:58]req_shift_opened done [19:25:58]requested_item shift.open_date is exist - process it [19:25:58]req_shift_open_date [19:25:58]req_shift_open_date done [19:25:58]produce_requested_data done [19:25:58]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27180,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [19:25:58]process_action_free close_receipt [19:25:58]json_value_free [19:25:58]json_value_free done [19:25:58]process_json_proto returns [19:25:58]Send response to host [19:25:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27180,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [19:25:58]free response buf [19:25:58]execute_script done [19:25:58]execute_script returns [19:25:58]free content buf [19:25:58]Sock 8.Close socket [19:25:58]Sock 8.Thread stoped [19:26:02]OFD Sender: No OFD packet to send [19:26:07]OFD Sender: No OFD packet to send [19:26:12]OFD Sender: No OFD packet to send [19:26:17]OFD Sender: No OFD packet to send [19:26:22]OFD Sender: No OFD packet to send [19:26:25]accept exits with 9 [19:26:25]New connection [19:26:25]New thread 3066785124 created [19:26:25]Thread 3066928484 joined [19:26:25]Waiting for new connection... [19:26:25] Sock 9.Parse request [19:26:25]Sock 9.Check first char [19:26:25]Sock 9.First char is OK [19:26:25]request: POST /json_proto HTTP/1.0 [19:26:25]Method: POST [19:26:25]URL: /json_proto [19:26:25]Method is POST - this is cgi request [19:26:25]url: /json_proto [19:26:25]query_string will be loaded in cgi processing [19:26:25]execute_cgi json_proto POST (null) [19:26:25]execute_cgi path=json_proto method=POST [19:26:25]POST find Content-Length [19:26:25]Host: 172.17.45.8:8080 [19:26:25]Content-Length: 981 [19:26:25]Content-Type: application/json [19:26:25] [19:26:25]POST finish read [19:26:25]Found Content-Length = 981 [19:26:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150579", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\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" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:25]execute_script... [19: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)150579", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\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" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:25]POST & json_proto [19:26:25]process_json_proto [19:26:25]json parsed OK: [19:26:25]protocol is kg_v1.0 [19:26:25]action value=close_receipt [19:26:25]process_action close_receipt [19:26:25]cmd_close_receipt [19:26:25]MH_GetDate [19:26:25]Write to MH i2c: F0 00 00 FF 23 11 [19:26:25]Write i2c OK [19:26:25]MH_I2C_Read... [19:26:25]Read from MH i2c: F0 [19:26:25]MH_I2C_Read... [19:26:25]Read from MH i2c: F0 09 00 [19:26:25]MH_I2C_Read... [19:26:25]Read from MH i2c: F0 09 00 FF 23 00 E8 EC A7 66 A6 1F 7F 64 A3 [19:26:25]GetLastDocTimeStamp 1722281161 [19:26:25]current date 1722281192 [19:26:25]FM_GetShiftState [19:26:25]SAM_PROTO_GetShiftState [19:26:25]wFMCommunicate request_size=4 [19:26:25]MH_SAM_APDU [19:26:25]CAPDU: 80 13 01 00 [19:26:25]Write to MH i2c: E2 08 00 00 24 80 13 01 00 00 00 00 00 A1 [19:26:25]Write i2c OK [19:26:25]MH_I2C_Read... [19:26:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:25]Read from MH i2c: E2 [19:26:25]MH_I2C_Read... [19:26:25]Read from MH i2c: E2 0E 00 [19:26:25]MH_I2C_Read... [19:26:25]Read from MH i2c: E2 0E 00 00 24 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 22 [19:26:25]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [19:26:25]wFMCommunicate OK [19:26:25]SAM_PROTO_GetShiftState done [19:26:25]FM_GetShiftState done [19:26:25]opened in 1722213509 [19:26:25]opened+sec_in_day 1722299909 [19:26:25]quantity*price = 9500 [19:26:25]sum+1 = 9501 [19:26:25]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480050 Напиток Nitro Energy эн green ж/б 0,45л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 84 29.07.2024 19:26 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27181 ФПД: 57273883896952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192632&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27181&fm=57273883896952&tin=02508201610067®Number=0000000000092663&sum=19000 0 [19:26:26]StoreToDocumentArchive [19:26:26]shift 434 fd 27181 [19:26:26]save to /storage/0434/doc_00027181 [19:26:26]save last doc name /storage/0434/doc_00027181 to /storage/kkm_last_doc_name [19:26:26]save OK [19:26:26]Clear old archive folders... [19:26:26]ProcessDocumentItem done err = 0, tmpTLVsize=427 [19:26:26]tlvbuf is 00200750 [19:26:26]SAM_PROTO_ClearQueue [19:26:26]wFMCommunicate request_size=4 [19:26:26]MH_SAM_APDU [19:26:26]CAPDU: 80 09 00 00 [19:26:26]Write to MH i2c: E2 08 00 0D 24 80 09 00 00 00 00 00 00 A3 [19:26:26]Write i2c OK [19:26:26]MH_I2C_Read... [19:26:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:26]Read from MH i2c: E2 [19:26:26]MH_I2C_Read... [19:26:26]Read from MH i2c: E2 03 00 [19:26:26]MH_I2C_Read... [19:26:26]Read from MH i2c: E2 03 00 0D 24 00 90 00 A5 [19:26:26]RAPDU: 90 00 [19:26:26]wFMCommunicate OK [19:26:26]SAM_PROTO_ClearQueue done [19:26:26]KKMCreateOFDPacket [19:26:26]OFDProtocolAddRootSTLVToBuf [19:26:26]FM_MakeSignedData [19:26:26]FM_MakeSignedData [19:26:26]SAM_PROTO_SignData [19:26:26]wFMCommunicate request_size=4 [19:26:26]MH_SAM_APDU [19:26:26]CAPDU: 80 0D 01 02 [19:26:26]Write to MH i2c: E2 08 00 0E 24 80 0D 01 02 00 00 00 00 AB [19:26:26]Write i2c OK [19:26:26]MH_I2C_Read... [19:26:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:26]Read from MH i2c: E2 [19:26:26]MH_I2C_Read... [19:26:26]Read from MH i2c: E2 03 00 [19:26:26]MH_I2C_Read... [19:26:26]Read from MH i2c: E2 03 00 0E 24 00 90 00 A6 [19:26:26]RAPDU: 90 00 [19:26:26]wFMCommunicate OK [19:26:26]wFMCommunicate request_size=255 [19:26:26]MH_SAM_APDU [19:26:26]CAPDU: 80 0D 02 02 FA 03 00 AB 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 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 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 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 [19:26:26]Write to MH i2c: E2 02 01 0F 24 80 0D 02 02 FA 00 03 00 AB 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 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 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 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 00 37 [19:26:26]Write i2c OK [19:26:26]MH_I2C_Read... [19:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:26]Read from MH i2c: E2 [19:26:26]MH_I2C_Read... [19:26:26]Read from MH i2c: E2 03 00 [19:26:26]MH_I2C_Read... [19:26:26]Read from MH i2c: E2 03 00 0F 24 00 90 00 A7 [19:26:26]RAPDU: 90 00 [19:26:26]wFMCommunicate OK [19:26:26]wFMCommunicate request_size=186 [19:26:26]MH_SAM_APDU [19:26:26]CAPDU: 80 0D 02 02 B5 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 E2 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 54 00 00 00 F4 03 04 00 E8 EC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 2D 6A 00 00 35 04 06 00 34 17 1D 81 2C 78 [19:26:26]Write to MH i2c: E2 BD 00 10 24 80 0D 02 02 B5 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 E2 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 54 00 00 00 F4 03 04 00 E8 EC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 2D 6A 00 00 35 04 06 00 34 17 1D 81 2C 78 00 00 B6 [19:26:26]Write i2c OK [19:26:26]MH_I2C_Read... [19:26:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:27]Read from MH i2c: E2 [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: E2 03 00 [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: E2 03 00 10 24 00 90 00 A8 [19:26:27]RAPDU: 90 00 [19:26:27]wFMCommunicate OK [19:26:27]wFMCommunicate request_size=4 [19:26:27]MH_SAM_APDU [19:26:27]CAPDU: 80 0D 03 02 [19:26:27]Write to MH i2c: E2 08 00 11 24 80 0D 03 02 00 00 00 00 B0 [19:26:27]Write i2c OK [19:26:27]MH_I2C_Read... [19:26:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:27]Read from MH i2c: E2 [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: E2 0B 00 [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: E2 0B 00 11 24 00 CE 79 7C 28 47 9E 3A 12 90 00 CD [19:26:27]RAPDU: CE 79 7C 28 47 9E 3A 12 90 00 [19:26:27]wFMCommunicate OK [19:26:27]SAM_PROTO_SignData done [19:26:27]FM_MakeSignedData done [19:26:27]CreateOFDProtocolMessage [19:26:27]wFMCommunicate request_size=4 [19:26:27]MH_SAM_APDU [19:26:27]CAPDU: 80 11 00 00 [19:26:27]Write to MH i2c: E2 08 00 12 24 80 11 00 00 00 00 00 00 B0 [19:26:27]Write i2c OK [19:26:27]MH_I2C_Read... [19:26:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:27]Read from MH i2c: E2 [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: E2 17 00 [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: E2 17 00 12 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 09 [19:26:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [19:26:27]wFMCommunicate OK [19:26:27]CreateOFDProtocolMessage done [19:26:27]OFDSenderStorePacket 27181 [19:26:27]StoreOFDPacket docnum=27181 [19:26:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 BF 01 00 00 8C 3C B7 01 67 13 5A 03 01 00 03 00 AB 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 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 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 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 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 E2 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 54 00 00 00 F4 03 04 00 E8 EC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 2D 6A 00 00 35 04 06 00 34 17 1D 81 2C 78 CE 79 7C 28 47 9E 3A 12 [19:26:27]CheckFolder [19:26:27]dirname=/storage/ofd_packets [19:26:27]CheckFolder done [19:26:27]ProducePacketName [19:26:27]name=ofd_packets/00027181 [19:26:27]NVStorageSaveData ofd_packets/00027181 [19:26:27]File name is /storage/ofd_packets/00027181 [19:26:27]Write 477 bytes [19:26:27]NVStorageSaveData done [19:26:27]OFDSenderStorePacket done [19:26:27]KKMCreateOFDPacket done [19:26:27]NVStorageSaveData kkm_last_timestamp [19:26:27]File name is /storage/kkm_last_timestamp [19:26:27]Write 4 bytes [19:26:27]NVStorageSaveData done [19:26:27]ExternCall_PrintAddStr [19:26:27]wPrintStart [19:26:27]Write to MH i2c: 01 00 00 13 24 37 [19:26:27]Write i2c OK [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: 01 [19:26:27]MH_I2C_Read... [19:26:27]Read from MH i2c: 01 07 00 [19:26:27]MH_I2C_Read... [19:26:27]OFD Sender: Processing packet 27181 [packets to send 9, broken 8] [19:26:27]ProducePacketName [19:26:27]name=ofd_packets/00027181 [19:26:27]OFD Sender: To server: pG, [19:26:27]CommunicateWithHost lk.salyk.kg:30040 [19:26:27]ConnectInit lk.salyk.kg [19:26:27]Read from MH i2c: 01 07 00 13 24 00 00 00 00 00 FF 0F 4C [19:26:27]RasterBufferAndPrint [19:26:27]line Счет N : (3)150579 [19:26:27]line ИНН: 02508201610067 [19:26:27]line Контрольно-Кассовый Чек [19:26:27]line ПРОДАЖА [19:26:27]line Товар: 4700000480302 [19:26:27]line Напиток энерг Nitro манго-клуб 0.45 ж/б [19:26:27]line 1.000 * 95.00 [19:26:27]line = 95.00 [19:26:27]line НДС 12% НСП 1% [19:26:27]line > о реализуемом товаре [19:26:27]line Товар: 4700000480050 [19:26:27]line Напиток Nitro Energy эн green ж/б 0,45л [19:26:27]line 1.000 * 95.00 [19:26:27]line = 95.00 [19:26:27]line НДС 12% НСП 1% [19:26:27]line > о реализуемом товаре [19:26:27]line ИТОГО: 190.00 [19:26:27]line НСП 1% : 1.68 [19:26:27]line НДС 12% : 20.18 [19:26:27]line Наличными: 190.00 [19:26:27]line Безнал.: 0.00 [19:26:27]line Место: АЗС № 134 "Партнер Нефть" [19:26:27]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:26:27]line СНО: Общий режим [19:26:27]line Чек 84 29.07.2024 19:26 [19:26:27]line Смена: 434 ФФД: 1.0 [19:26:27]line ЗНМ: 0300000043 [19:26:27]line РНМ: 0000000000092663 [19:26:27]line Версия ККМ: 001 [19:26:27]line ФМ: 0000000000874937 [19:26:27]line ФД: 27181 [19:26:27]line ФПД: 57273883896952 [19:26:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192632&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27181&fm=57273883896952&tin=02508201610067®Number=0000000000092663&sum=19000 [19:26:27]line 0 [19:26:27]written 0, free lines is 4095 [19:26:27]Connected sock=10 [19: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 34 39 33 37 BF 01 00 00 8C 3C B7 01 67 13 5A 03 01 00 03 00 AB 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 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 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 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 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 E2 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 54 00 00 00 F4 03 04 00 E8 EC A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 2D 6A 00 00 35 04 06 00 34 17 1D 81 2C 78 CE 79 7C 28 47 9E 3A 12 [19:26:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 65 FC 47 00 FF 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 2D 6A 00 00 F4 03 04 00 38 93 A7 66 B6 04 01 00 00 A8 8F 00 B9 A5 2A 2C 3A [19:26:27]CommunicateWithHost err = 0 [19:26:27]CheckOFDResponse [19:26:27]1017 (14) - 77093643461234 [19:26:27]1041 (16) - 0000000000874937 [19:26:27]1040 (4) - 27181 [19:26:27]1012 (4) - 29.07.2024 13:03 [19:26:27]1206 (1) - 0 [19:26:27]OFD Sender: Remove packet 27181 [19:26:27]ProducePacketName [19:26:27]name=ofd_packets/00027181 [19:26:27]NVStorageDeleteData [19:26:28]Write to MH i2c: 01 00 00 42 24 66 [19:26:28]Write i2c OK [19:26:28]MH_I2C_Read... [19:26:28]Read from MH i2c: 01 [19:26:28]MH_I2C_Read... [19:26:28]Read from MH i2c: 01 07 00 [19:26:28]MH_I2C_Read... [19:26:28]Read from MH i2c: 01 07 00 42 24 00 00 00 00 00 7A 0C F3 [19:26:28]RasterBufferAndPrint [19:26:28]line [19:26:28]line [19:26:28]line [19:26:28]line [19:26:28]line [19:26:28]written 0, free lines is 3204 [19:26:28]MH_Cut [19:26:28]Write to MH i2c: D1 01 00 49 24 01 3F [19:26:28]Write i2c OK [19:26:28]MH_I2C_Read... [19:26:28]Read from MH i2c: D1 [19:26:28]MH_I2C_Read... [19:26:28]Read from MH i2c: D1 01 00 [19:26:28]MH_I2C_Read... [19:26:28]Read from MH i2c: D1 01 00 49 24 00 3E [19:26:28]Write to MH i2c: 01 00 00 4A 24 6E [19:26:28]Write i2c OK [19:26:28]MH_I2C_Read... [19:26:28]OFD Sender: No OFD packet to send [19:26:28]*** Cut start [19:26:28]*** Partial cut [19:26:28]*** CUTSNS_PIN = 1 [19:26:28]*** CUTSNS_PIN = 0 [19:26:29]*** Brake cut motor [19:26:29]Read from MH i2c: 01 [19:26:29]MH_I2C_Read... [19:26:29]*** Stop cut motor [19:26:29]*** Cut end [19:26:29]Read from MH i2c: 01 07 00 [19:26:29]MH_I2C_Read... [19:26:29]Read from MH i2c: 01 07 00 4A 24 00 00 00 00 00 FF 0F 83 [19:26:29]process_action close_receipt done [19:26:29]requested_data is exist [19:26:29]produce_requested_data [19:26:29]requested_item fm.sn is exist - process it [19:26:29]wFMCommunicate request_size=4 [19:26:29]MH_SAM_APDU [19:26:29]CAPDU: 80 11 00 00 [19:26:29]Write to MH i2c: E2 08 00 4B 24 80 11 00 00 00 00 00 00 E9 [19:26:29]Write i2c OK [19:26:29]MH_I2C_Read... [19:26:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:29]Read from MH i2c: E2 [19:26:29]MH_I2C_Read... [19:26:29]Read from MH i2c: E2 17 00 [19:26:29]MH_I2C_Read... [19:26:29]Read from MH i2c: E2 17 00 4B 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 42 [19:26:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [19:26:29]wFMCommunicate OK [19:26:29]requested_item fd.num is exist - process it [19:26:29]SAM_PROTO_GetFieldsCounters [19:26:29]wFMCommunicate request_size=4 [19:26:29]MH_SAM_APDU [19:26:29]CAPDU: 80 13 00 00 [19:26:29]Write to MH i2c: E2 08 00 4C 24 80 13 00 00 00 00 00 00 EC [19:26:29]Write i2c OK [19:26:29]MH_I2C_Read... [19:26:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:29]Read from MH i2c: E2 [19:26:29]MH_I2C_Read... [19:26:29]Read from MH i2c: E2 62 00 [19:26:29]MH_I2C_Read... [19:26:29]Read from MH i2c: E2 62 00 4C 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 2D 6A 00 00 0E 04 04 00 B2 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 5A [19: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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 2D 6A 00 00 0E 04 04 00 B2 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 [19:26:29]wFMCommunicate OK [19:26:29]SAM_PROTO_GetFieldsCounters done [19:26:29]requested_item shift.num is exist - process it [19:26:29]requested_item shift.opened is exist - process it [19:26:29]req_shift_opened [19:26:29]FM_GetShiftState [19:26:29]SAM_PROTO_GetShiftState [19:26:29]wFMCommunicate request_size=4 [19:26:29]MH_SAM_APDU [19:26:29]CAPDU: 80 13 01 00 [19:26:29]Write to MH i2c: E2 08 00 4D 24 80 13 01 00 00 00 00 00 EE [19:26:29]Write i2c OK [19:26:29]MH_I2C_Read... [19:26:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:29]Read from MH i2c: E2 [19:26:29]MH_I2C_Read... [19:26:29]Read from MH i2c: E2 0E 00 [19:26:29]MH_I2C_Read... [19:26:29]Read from MH i2c: E2 0E 00 4D 24 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 6F [19:26:29]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [19:26:29]wFMCommunicate OK [19:26:29]SAM_PROTO_GetShiftState done [19:26:29]FM_GetShiftState done [19:26:29]req_shift_opened done [19:26:29]requested_item shift.open_date is exist - process it [19:26:29]req_shift_open_date [19:26:29]req_shift_open_date done [19:26:29]produce_requested_data done [19:26:29]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27181,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [19:26:29]process_action_free close_receipt [19:26:29]json_value_free [19:26:29]json_value_free done [19:26:29]process_json_proto returns [19:26:29]Send response to host [19:26:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27181,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [19:26:29]free response buf [19:26:29]execute_script done [19:26:29]execute_script returns [19:26:29]free content buf [19:26:29]Sock 9.Close socket [19:26:29]Sock 9.Thread stoped [19:26:33]OFD Sender: No OFD packet to send [19:26:38]OFD Sender: No OFD packet to send [19:26:43]OFD Sender: No OFD packet to send [19:26:48]OFD Sender: No OFD packet to send [19:26:53]OFD Sender: No OFD packet to send [19:26:58]OFD Sender: No OFD packet to send [19:27:03]OFD Sender: No OFD packet to send [19:27:08]OFD Sender: No OFD packet to send [19:27:13]OFD Sender: No OFD packet to send [19:27:18]OFD Sender: No OFD packet to send [19:27:23]accept exits with 8 [19:27:23]New connection [19:27:23]New thread 3066928484 created [19:27:23]Thread 3066785124 joined [19:27:23]Waiting for new connection... [19:27:23] Sock 8.Parse request [19:27:23]Sock 8.Check first char [19:27:23]Sock 8.First char is OK [19:27:23]request: POST /json_proto HTTP/1.0 [19:27:23]Method: POST [19:27:23]URL: /json_proto [19:27:23]Method is POST - this is cgi request [19:27:23]url: /json_proto [19:27:23]query_string will be loaded in cgi processing [19:27:23]execute_cgi json_proto POST (null) [19:27:23]execute_cgi path=json_proto method=POST [19:27:23]POST find Content-Length [19:27:23]Host: 172.17.45.8:8080 [19:27:23]Content-Length: 695 [19:27:23]Content-Type: application/json [19:27:23] [19:27:23]POST finish read [19:27:23]Found Content-Length = 695 [19:27:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150580", "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 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:23]execute_script... [19:27: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)150580", "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 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:23]POST & json_proto [19:27:23]process_json_proto [19:27:23]json parsed OK: [19:27:23]protocol is kg_v1.0 [19:27:23]action value=close_receipt [19:27:23]process_action close_receipt [19:27:23]cmd_close_receipt [19:27:23]MH_GetDate [19:27:23]Write to MH i2c: F0 00 00 4E 24 61 [19:27:23]Write i2c OK [19:27:23]MH_I2C_Read... [19:27:23]Read from MH i2c: F0 [19:27:23]MH_I2C_Read... [19:27:23]Read from MH i2c: F0 09 00 [19:27:23]MH_I2C_Read... [19:27:23]Read from MH i2c: F0 09 00 4E 24 00 22 ED A7 66 A6 1F 7F 64 2E [19:27:23]GetLastDocTimeStamp 1722281192 [19:27:23]current date 1722281250 [19:27:23]FM_GetShiftState [19:27:23]SAM_PROTO_GetShiftState [19:27:23]wFMCommunicate request_size=4 [19:27:23]MH_SAM_APDU [19:27:23]CAPDU: 80 13 01 00 [19:27:23]Write to MH i2c: E2 08 00 4F 24 80 13 01 00 00 00 00 00 F0 [19:27:23]Write i2c OK [19:27:23]MH_I2C_Read... [19:27:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:23]Read from MH i2c: E2 [19:27:23]MH_I2C_Read... [19:27:23]Read from MH i2c: E2 0E 00 [19:27:23]MH_I2C_Read... [19:27:23]Read from MH i2c: E2 0E 00 4F 24 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 71 [19:27:23]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [19:27:23]wFMCommunicate OK [19:27:23]SAM_PROTO_GetShiftState done [19:27:23]FM_GetShiftState done [19:27:23]opened in 1722213509 [19:27:23]opened+sec_in_day 1722299909 [19:27:23]quantity*price = 6000 [19:27:23]sum+1 = 6001 [19:27:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 85 29.07.2024 19:27 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27182 ФПД: 170662135746647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192730&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27182&fm=170662135746647&tin=02508201610067®Number=0000000000092663&sum=6000 0 [19:27:24]StoreToDocumentArchive [19:27:24]shift 434 fd 27182 [19:27:24]save to /storage/0434/doc_00027182 [19:27:24]save last doc name /storage/0434/doc_00027182 to /storage/kkm_last_doc_name [19:27:24]save OK [19:27:24]Clear old archive folders... [19:27:24]ProcessDocumentItem done err = 0, tmpTLVsize=298 [19:27:24]tlvbuf is 001AC530 [19:27:24]SAM_PROTO_ClearQueue [19:27:24]wFMCommunicate request_size=4 [19:27:24]MH_SAM_APDU [19:27:24]CAPDU: 80 09 00 00 [19:27:24]Write to MH i2c: E2 08 00 5C 24 80 09 00 00 00 00 00 00 F2 [19:27:24]Write i2c OK [19:27:24]MH_I2C_Read... [19:27:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:27:24]Read from MH i2c: E2 [19:27:24]MH_I2C_Read... [19:27:24]Read from MH i2c: E2 03 00 [19:27:24]MH_I2C_Read... [19:27:24]Read from MH i2c: E2 03 00 5C 24 00 90 00 F4 [19:27:24]RAPDU: 90 00 [19:27:24]wFMCommunicate OK [19:27:24]SAM_PROTO_ClearQueue done [19:27:24]KKMCreateOFDPacket [19:27:24]OFDProtocolAddRootSTLVToBuf [19:27:24]FM_MakeSignedData [19:27:24]FM_MakeSignedData [19:27:24]SAM_PROTO_SignData [19:27:24]wFMCommunicate request_size=4 [19:27:24]MH_SAM_APDU [19:27:24]CAPDU: 80 0D 01 02 [19:27:24]Write to MH i2c: E2 08 00 5D 24 80 0D 01 02 00 00 00 00 FA [19:27:24]Write i2c OK [19:27:24]MH_I2C_Read... [19:27:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:27:24]Read from MH i2c: E2 [19:27:24]MH_I2C_Read... [19:27:24]Read from MH i2c: E2 03 00 [19:27:24]MH_I2C_Read... [19:27:24]Read from MH i2c: E2 03 00 5D 24 00 90 00 F5 [19:27:24]RAPDU: 90 00 [19:27:24]wFMCommunicate OK [19:27:24]wFMCommunicate request_size=255 [19:27:24]MH_SAM_APDU [19:27:24]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 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 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 55 00 00 00 F4 03 04 00 22 ED A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [19:27:24]Write to MH i2c: E2 02 01 5E 24 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 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 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 55 00 00 00 F4 03 04 00 22 ED A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 D2 [19:27:24]Write i2c OK [19:27:24]MH_I2C_Read... [19:27:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:24]Read from MH i2c: E2 [19:27:24]MH_I2C_Read... [19:27:24]Read from MH i2c: E2 03 00 [19:27:24]MH_I2C_Read... [19:27:24]Read from MH i2c: E2 03 00 5E 24 00 90 00 F6 [19:27:24]RAPDU: 90 00 [19:27:24]wFMCommunicate OK [19:27:24]wFMCommunicate request_size=57 [19:27:24]MH_SAM_APDU [19:27:24]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 2E 6A 00 00 35 04 06 00 9B 37 5F FA 50 57 [19:27:24]Write to MH i2c: E2 3C 00 5F 24 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 2E 6A 00 00 35 04 06 00 9B 37 5F FA 50 57 00 00 2B [19:27:24]Write i2c OK [19:27:24]MH_I2C_Read... [19:27:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:24]Read from MH i2c: E2 [19:27:24]MH_I2C_Read... [19:27:24]Read from MH i2c: E2 03 00 [19:27:24]MH_I2C_Read... [19:27:24]Read from MH i2c: E2 03 00 5F 24 00 90 00 F7 [19:27:24]RAPDU: 90 00 [19:27:24]wFMCommunicate OK [19:27:24]wFMCommunicate request_size=4 [19:27:24]MH_SAM_APDU [19:27:24]CAPDU: 80 0D 03 02 [19:27:24]Write to MH i2c: E2 08 00 60 24 80 0D 03 02 00 00 00 00 FF [19:27:24]Write i2c OK [19:27:24]MH_I2C_Read... [19:27:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:24]Read from MH i2c: E2 [19:27:24]MH_I2C_Read... [19:27:24]Read from MH i2c: E2 0B 00 [19:27:24]MH_I2C_Read... [19:27:24]Read from MH i2c: E2 0B 00 60 24 00 F5 C0 F1 14 E7 A2 EF 7C 90 00 AE [19:27:24]RAPDU: F5 C0 F1 14 E7 A2 EF 7C 90 00 [19:27:24]wFMCommunicate OK [19:27:24]SAM_PROTO_SignData done [19:27:24]FM_MakeSignedData done [19:27:24]CreateOFDProtocolMessage [19:27:24]wFMCommunicate request_size=4 [19:27:24]MH_SAM_APDU [19:27:24]CAPDU: 80 11 00 00 [19:27:24]Write to MH i2c: E2 08 00 61 24 80 11 00 00 00 00 00 00 FF [19:27:24]Write i2c OK [19:27:24]MH_I2C_Read... [19:27:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:24]Read from MH i2c: E2 [19:27:24]MH_I2C_Read... [19:27:24]Read from MH i2c: E2 17 00 [19:27:24]MH_I2C_Read... [19:27:24]Read from MH i2c: E2 17 00 61 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 58 [19:27:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [19:27:24]wFMCommunicate OK [19:27:24]CreateOFDProtocolMessage done [19:27:24]OFDSenderStorePacket 27182 [19:27:24]StoreOFDPacket docnum=27182 [19:27:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 3E 01 00 00 AA 4A 36 01 13 7C 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 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 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 55 00 00 00 F4 03 04 00 22 ED A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 2E 6A 00 00 35 04 06 00 9B 37 5F FA 50 57 F5 C0 F1 14 E7 A2 EF 7C [19:27:24]CheckFolder [19:27:24]dirname=/storage/ofd_packets [19:27:24]CheckFolder done [19:27:24]ProducePacketName [19:27:24]name=ofd_packets/00027182 [19:27:24]NVStorageSaveData ofd_packets/00027182 [19:27:24]File name is /storage/ofd_packets/00027182 [19:27:24]Write 348 bytes [19:27:24]NVStorageSaveData done [19:27:24]OFDSenderStorePacket done [19:27:24]KKMCreateOFDPacket done [19:27:24]NVStorageSaveData kkm_last_timestamp [19:27:24]File name is /storage/kkm_last_timestamp [19:27:24]Write 4 bytes [19:27:24]NVStorageSaveData done [19:27:24]ExternCall_PrintAddStr [19:27:24]wPrintStart [19:27:24]Write to MH i2c: 01 00 00 62 24 86 [19:27:24]Write i2c OK [19:27:24]MH_I2C_Read... [19:27:24]Read from MH i2c: 01 [19:27:24]MH_I2C_Read... [19:27:24]Read from MH i2c: 01 07 00 [19:27:24]MH_I2C_Read... [19:27:24]Read from MH i2c: 01 07 00 62 24 00 00 00 00 00 FF 0F 9B [19:27:24]RasterBufferAndPrint [19:27:24]line Счет N : (3)150580 [19:27:24]line ИНН: 02508201610067 [19:27:24]line Контрольно-Кассовый Чек [19:27:24]line ПРОДАЖА [19:27:24]line Товар: 4870209743574 [19:27:24]line Арахис BIG BOB Вяленая конина 50 гр [19:27:24]line 1.000 * 60.00 [19:27:24]line = 60.00 [19:27:24]line НДС 12% НСП 1% [19:27:24]line > о реализуемом товаре [19:27:24]line ИТОГО: 60.00 [19:27:24]line НСП 1% : 0.53 [19:27:24]line НДС 12% : 6.37 [19:27:24]line Наличными: 60.00 [19:27:24]line Безнал.: 0.00 [19:27:24]line Место: АЗС № 134 "Партнер Нефть" [19:27:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:27:24]line СНО: Общий режим [19:27:24]line Чек 85 29.07.2024 19:27 [19:27:24]line Смена: 434 ФФД: 1.0 [19:27:24]line ЗНМ: 0300000043 [19:27:24]line РНМ: 0000000000092663 [19:27:24]line Версия ККМ: 001 [19:27:24]line ФМ: 0000000000874937 [19:27:24]line ФД: 27182 [19:27:24]line ФПД: 170662135746647 [19:27:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T192730&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27182&fm=170662135746647&tin=02508201610067®Number=0000000000092663&sum=6000 [19:27:25]OFD Sender: Processing packet 27182 [packets to send 9, broken 8] [19:27:25]ProducePacketName [19:27:25]name=ofd_packets/00027182 [19:27:25]OFD Sender: To server: pG, [19:27:25]CommunicateWithHost lk.salyk.kg:30040 [19:27:25]ConnectInit lk.salyk.kg [19:27:25]line 0 [19:27:25]written 0, free lines is 4095 [19:27:25]Connected sock=10 [19:27:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 3E 01 00 00 AA 4A 36 01 13 7C 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 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 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 55 00 00 00 F4 03 04 00 22 ED A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 2E 6A 00 00 35 04 06 00 9B 37 5F FA 50 57 F5 C0 F1 14 E7 A2 EF 7C [19:27:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 A6 84 47 00 AB 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 34 39 33 37 10 04 04 00 2E 6A 00 00 F4 03 04 00 72 93 A7 66 B6 04 01 00 00 2C 26 C5 30 BE 72 A0 FE [19:27:25]CommunicateWithHost err = 0 [19:27:25]CheckOFDResponse [19:27:25]1017 (14) - 77093643461234 [19:27:25]1041 (16) - 0000000000874937 [19:27:25]1040 (4) - 27182 [19:27:25]1012 (4) - 29.07.2024 13:04 [19:27:25]1206 (1) - 0 [19:27:25]OFD Sender: Remove packet 27182 [19:27:25]ProducePacketName [19:27:25]name=ofd_packets/00027182 [19:27:25]NVStorageDeleteData [19:27:25]Write to MH i2c: 01 00 00 8A 24 AE [19:27:25]Write i2c OK [19:27:25]MH_I2C_Read... [19:27:25]Read from MH i2c: 01 [19:27:25]MH_I2C_Read... [19:27:25]Read from MH i2c: 01 07 00 [19:27:25]MH_I2C_Read... [19:27:25]Read from MH i2c: 01 07 00 8A 24 00 00 00 00 00 E2 0C A3 [19:27:25]RasterBufferAndPrint [19:27:25]line [19:27:25]line [19:27:25]line [19:27:25]line [19:27:25]line [19:27:25]written 0, free lines is 3305 [19:27:25]MH_Cut [19:27:25]Write to MH i2c: D1 01 00 91 24 01 87 [19:27:25]Write i2c OK [19:27:25]MH_I2C_Read... [19:27:25]Read from MH i2c: D1 [19:27:25]MH_I2C_Read... [19:27:25]Read from MH i2c: D1 01 00 [19:27:25]MH_I2C_Read... [19:27:25]Read from MH i2c: D1 01 00 91 24 00 86 [19:27:25]Write to MH i2c: 01 00 00 92 24 B6 [19:27:25]Write i2c OK [19:27:25]MH_I2C_Read... [19:27:25]OFD Sender: No OFD packet to send [19:27:26]*** Cut start [19:27:26]*** Partial cut [19:27:26]*** CUTSNS_PIN = 1 [19:27:26]*** CUTSNS_PIN = 0 [19:27:26]*** Brake cut motor [19:27:26]Read from MH i2c: 01 [19:27:26]MH_I2C_Read... [19:27:26]*** Stop cut motor [19:27:26]*** Cut end [19:27:26]Read from MH i2c: 01 07 00 [19:27:26]MH_I2C_Read... [19:27:26]Read from MH i2c: 01 07 00 92 24 00 00 00 00 00 FF 0F CB [19:27:26]process_action close_receipt done [19:27:26]requested_data is exist [19:27:26]produce_requested_data [19:27:26]requested_item fm.sn is exist - process it [19:27:26]wFMCommunicate request_size=4 [19:27:26]MH_SAM_APDU [19:27:26]CAPDU: 80 11 00 00 [19:27:26]Write to MH i2c: E2 08 00 93 24 80 11 00 00 00 00 00 00 31 [19:27:26]Write i2c OK [19:27:26]MH_I2C_Read... [19:27:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:26]Read from MH i2c: E2 [19:27:26]MH_I2C_Read... [19:27:26]Read from MH i2c: E2 17 00 [19:27:26]MH_I2C_Read... [19:27:26]Read from MH i2c: E2 17 00 93 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 8A [19:27:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [19:27:26]wFMCommunicate OK [19:27:26]requested_item fd.num is exist - process it [19:27:26]SAM_PROTO_GetFieldsCounters [19:27:26]wFMCommunicate request_size=4 [19:27:26]MH_SAM_APDU [19:27:26]CAPDU: 80 13 00 00 [19:27:26]Write to MH i2c: E2 08 00 94 24 80 13 00 00 00 00 00 00 34 [19:27:26]Write i2c OK [19:27:26]MH_I2C_Read... [19:27:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:27]Read from MH i2c: E2 [19:27:27]MH_I2C_Read... [19:27:27]Read from MH i2c: E2 62 00 [19:27:27]MH_I2C_Read... [19:27:27]Read from MH i2c: E2 62 00 94 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 2E 6A 00 00 0E 04 04 00 B2 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 A6 [19:27:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 2E 6A 00 00 0E 04 04 00 B2 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 [19:27:27]wFMCommunicate OK [19:27:27]SAM_PROTO_GetFieldsCounters done [19:27:27]requested_item shift.num is exist - process it [19:27:27]requested_item shift.opened is exist - process it [19:27:27]req_shift_opened [19:27:27]FM_GetShiftState [19:27:27]SAM_PROTO_GetShiftState [19:27:27]wFMCommunicate request_size=4 [19:27:27]MH_SAM_APDU [19:27:27]CAPDU: 80 13 01 00 [19:27:27]Write to MH i2c: E2 08 00 95 24 80 13 01 00 00 00 00 00 36 [19:27:27]Write i2c OK [19:27:27]MH_I2C_Read... [19:27:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:27]Read from MH i2c: E2 [19:27:27]MH_I2C_Read... [19:27:27]Read from MH i2c: E2 0E 00 [19:27:27]MH_I2C_Read... [19:27:27]Read from MH i2c: E2 0E 00 95 24 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 B7 [19:27:27]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [19:27:27]wFMCommunicate OK [19:27:27]SAM_PROTO_GetShiftState done [19:27:27]FM_GetShiftState done [19:27:27]req_shift_opened done [19:27:27]requested_item shift.open_date is exist - process it [19:27:27]req_shift_open_date [19:27:27]req_shift_open_date done [19:27:27]produce_requested_data done [19:27:27]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27182,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [19:27:27]process_action_free close_receipt [19:27:27]json_value_free [19:27:27]json_value_free done [19:27:27]process_json_proto returns [19:27:27]Send response to host [19:27:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27182,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [19:27:27]free response buf [19:27:27]execute_script done [19:27:27]execute_script returns [19:27:27]free content buf [19:27:27]Sock 8.Close socket [19:27:27]Sock 8.Thread stoped [19:27:30]OFD Sender: No OFD packet to send [19:27:35]OFD Sender: No OFD packet to send [19:27:40]OFD Sender: No OFD packet to send [19:27:45]OFD Sender: No OFD packet to send [19:27:50]OFD Sender: No OFD packet to send [19:27:55]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:21]OFD Sender: No OFD packet to send [19:41:26]OFD Sender: No OFD packet to send [19:41:31]OFD Sender: No OFD packet to send [19:41:36]OFD Sender: No OFD packet to send [19:41:41]OFD Sender: No OFD packet to send [19:41:46]OFD Sender: No OFD packet to send [19:41:51]OFD Sender: No OFD packet to send [19:41:56]OFD Sender: No OFD packet to send [19:42:01]OFD Sender: No OFD packet to send [19:42:06]OFD Sender: No OFD packet to send [19:42:11]OFD Sender: No OFD packet to send [19:42:16]OFD Sender: No OFD packet to send [19:42:21]OFD Sender: No OFD packet to send [19:42:26]OFD Sender: No OFD packet to send [19:42:31]OFD Sender: No OFD packet to send [19:42:36]OFD Sender: No OFD packet to send [19:42:41]OFD Sender: No OFD packet to send [19:42:46]OFD Sender: No OFD packet to send [19:42:51]OFD Sender: No OFD packet to send [19:42:56]OFD Sender: No OFD packet to send [19:43:01]OFD Sender: No OFD packet to send [19:43:06]OFD Sender: No OFD packet to send [19:43:11]OFD Sender: No OFD packet to send [19:43:16]OFD Sender: No OFD packet to send [19:43:21]OFD Sender: No OFD packet to send [19:43:26]OFD Sender: No OFD packet to send [19:43:31]OFD Sender: No OFD packet to send [19:43:36]OFD Sender: No OFD packet to send [19:43:41]OFD Sender: No OFD packet to send [19:43:46]OFD Sender: No OFD packet to send [19:43:51]OFD Sender: No OFD packet to send [19:43:56]OFD Sender: No OFD packet to send [19:44:01]OFD Sender: No OFD packet to send [19:44:06]OFD Sender: No OFD packet to send [19:44:11]OFD Sender: No OFD packet to send [19:44:16]OFD Sender: No OFD packet to send [19:44:21]OFD Sender: No OFD packet to send [19:44:26]OFD Sender: No OFD packet to send [19:44:31]OFD Sender: No OFD packet to send [19:44:36]OFD Sender: No OFD packet to send [19:44:41]OFD Sender: No OFD packet to send [19:44:46]OFD Sender: No OFD packet to send [19:44:51]OFD Sender: No OFD packet to send [19:44:56]OFD Sender: No OFD packet to send [19:45:01]OFD Sender: No OFD packet to send [19:45:02]accept exits with 9 [19:45:02]New connection [19:45:02]New thread 3066785124 created [19:45:02]Thread 3066928484 joined [19:45:02]Waiting for new connection... [19:45:02] Sock 9.Parse request [19:45:02]Sock 9.Check first char [19:45:02]Sock 9.First char is OK [19:45:02]request: POST /json_proto HTTP/1.0 [19:45:02]Method: POST [19:45:02]URL: /json_proto [19:45:02]Method is POST - this is cgi request [19:45:02]url: /json_proto [19:45:02]query_string will be loaded in cgi processing [19:45:02]execute_cgi json_proto POST (null) [19:45:02]execute_cgi path=json_proto method=POST [19:45:02]POST find Content-Length [19:45:02]Host: 172.17.45.8:8080 [19:45:02]Content-Length: 1830 [19:45:02]Content-Type: application/json [19:45:02] [19:45:02]POST finish read [19:45:02]Found Content-Length = 1830 [19:45:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150581", "tax_sys" : 0, "items" : [ { "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" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607035653513", "name": "\u0412\u0430\u0444\u043B\u0438 \u0413\u043E\u043B\u043B\u0430\u043D\u0434\u0441\u043A\u0438\u0435 \u043A\u0430\u0440\u0430\u043C\u0435\u043B 290", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700002086380", "name": "\u0412\u043E\u0434\u043A\u0430 \u0421\u0430\u0440\u044B \u0447\u0435\u043B\u0435\u043A 0,35\u043B", "price" : 260.00, "quantity" : 1.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 763.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:45:02]execute_script... [19:45: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)150581", "tax_sys" : 0, "items" : [ { "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" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607035653513", "name": "\u0412\u0430\u0444\u043B\u0438 \u0413\u043E\u043B\u043B\u0430\u043D\u0434\u0441\u043A\u0438\u0435 \u043A\u0430\u0440\u0430\u043C\u0435\u043B 290", "price" : 143.00, "quantity" : 1.000, "sum" : 143.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700002086380", "name": "\u0412\u043E\u0434\u043A\u0430 \u0421\u0430\u0440\u044B \u0447\u0435\u043B\u0435\u043A 0,35\u043B", "price" : 260.00, "quantity" : 1.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 763.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:45:03]POST & json_proto [19:45:03]process_json_proto [19:45:03]json parsed OK: [19:45:03]protocol is kg_v1.0 [19:45:03]action value=close_receipt [19:45:03]process_action close_receipt [19:45:03]cmd_close_receipt [19:45:03]MH_GetDate [19:45:03]Write to MH i2c: F0 00 00 96 24 A9 [19:45:03]Write i2c OK [19:45:03]MH_I2C_Read... [19:45:03]Read from MH i2c: F0 [19:45:03]MH_I2C_Read... [19:45:03]Read from MH i2c: F0 09 00 [19:45:03]MH_I2C_Read... [19:45:03]Read from MH i2c: F0 09 00 96 24 00 46 F1 A7 66 A6 1F 7F 64 9E [19:45:03]GetLastDocTimeStamp 1722281250 [19:45:03]current date 1722282310 [19:45:03]FM_GetShiftState [19:45:03]SAM_PROTO_GetShiftState [19:45:03]wFMCommunicate request_size=4 [19:45:03]MH_SAM_APDU [19:45:03]CAPDU: 80 13 01 00 [19:45:03]Write to MH i2c: E2 08 00 97 24 80 13 01 00 00 00 00 00 38 [19:45:03]Write i2c OK [19:45:03]MH_I2C_Read... [19:45:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:03]Read from MH i2c: E2 [19:45:03]MH_I2C_Read... [19:45:03]Read from MH i2c: E2 0E 00 [19:45:03]MH_I2C_Read... [19:45:03]Read from MH i2c: E2 0E 00 97 24 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 B9 [19:45:03]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [19:45:03]wFMCommunicate OK [19:45:03]SAM_PROTO_GetShiftState done [19:45:03]FM_GetShiftState done [19:45:03]opened in 1722213509 [19:45:03]opened+sec_in_day 1722299909 [19:45:03]quantity*price = 15000 [19:45:03]sum+1 = 15001 [19:45:03]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112002775 Шок батончик ALBENI BITES 80гр 2.000 * 75.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607035653513 Вафли Голландские карамел 290 1.000 * 143.00 = 143.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000310043 Вода Жалалабат 27 1л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700002086380 Водка Сары челек 0,35л 1.000 * 260.00 = 260.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 763.00 НСП 1% : 6.75 НДС 12% : 81.03 Наличными: 763.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 86 29.07.2024 19:45 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27183 ФПД: 197182955235593 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T194510&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27183&fm=197182955235593&tin=02508201610067®Number=0000000000092663&sum=76300 0 [19:45:04]StoreToDocumentArchive [19:45:04]shift 434 fd 27183 [19:45:04]save to /storage/0434/doc_00027183 [19:45:04]save last doc name /storage/0434/doc_00027183 to /storage/kkm_last_doc_name [19:45:04]save OK [19:45:04]Clear old archive folders... [19:45:04]ProcessDocumentItem done err = 0, tmpTLVsize=758 [19:45:04]tlvbuf is 002046A0 [19:45:04]SAM_PROTO_ClearQueue [19:45:04]wFMCommunicate request_size=4 [19:45:04]MH_SAM_APDU [19:45:04]CAPDU: 80 09 00 00 [19:45:04]Write to MH i2c: E2 08 00 A4 24 80 09 00 00 00 00 00 00 3A [19:45:04]Write i2c OK [19:45:04]MH_I2C_Read... [19:45:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:45:04]Read from MH i2c: E2 [19:45:04]MH_I2C_Read... [19:45:04]Read from MH i2c: E2 03 00 [19:45:04]MH_I2C_Read... [19:45:04]Read from MH i2c: E2 03 00 A4 24 00 90 00 3C [19:45:04]RAPDU: 90 00 [19:45:04]wFMCommunicate OK [19:45:04]SAM_PROTO_ClearQueue done [19:45:04]KKMCreateOFDPacket [19:45:04]OFDProtocolAddRootSTLVToBuf [19:45:04]FM_MakeSignedData [19:45:04]FM_MakeSignedData [19:45:04]SAM_PROTO_SignData [19:45:04]wFMCommunicate request_size=4 [19:45:04]MH_SAM_APDU [19:45:04]CAPDU: 80 0D 01 02 [19:45:04]Write to MH i2c: E2 08 00 A5 24 80 0D 01 02 00 00 00 00 42 [19:45:04]Write i2c OK [19:45:04]MH_I2C_Read... [19:45:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:45:04]Read from MH i2c: E2 [19:45:04]MH_I2C_Read... [19:45:04]Read from MH i2c: E2 03 00 [19:45:04]MH_I2C_Read... [19:45:04]Read from MH i2c: E2 03 00 A5 24 00 90 00 3D [19:45:04]RAPDU: 90 00 [19:45:04]wFMCommunicate OK [19:45:04]wFMCommunicate request_size=255 [19:45:04]MH_SAM_APDU [19:45:04]CAPDU: 80 0D 02 02 FA 03 00 F6 02 1E 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 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 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 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 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 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 [19:45:04]Write to MH i2c: E2 02 01 A6 24 80 0D 02 02 FA 00 03 00 F6 02 1E 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 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 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 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 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 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 00 00 39 [19:45:04]Write i2c OK [19:45:04]MH_I2C_Read... [19:45:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:05]Read from MH i2c: E2 [19:45:05]MH_I2C_Read... [19:45:05]Read from MH i2c: E2 03 00 [19:45:05]MH_I2C_Read... [19:45:05]Read from MH i2c: E2 03 00 A6 24 00 90 00 3E [19:45:05]RAPDU: 90 00 [19:45:05]wFMCommunicate OK [19:45:05]wFMCommunicate request_size=255 [19:45:05]MH_SAM_APDU [19:45:05]CAPDU: 80 0D 02 02 FA 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 37 30 33 35 36 35 33 35 31 33 06 04 34 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 93 D0 BE D0 BB D0 BB D0 B0 D0 BD D0 B4 D1 81 D0 BA D0 B8 D0 B5 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB 20 32 39 30 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 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 [19:45:05]Write to MH i2c: E2 02 01 A7 24 80 0D 02 02 FA 00 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 37 30 33 35 36 35 33 35 31 33 06 04 34 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 93 D0 BE D0 BB D0 BB D0 B0 D0 BD D0 B4 D1 81 D0 BA D0 B8 D0 B5 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB 20 32 39 30 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 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 00 00 34 [19:45:05]Write i2c OK [19:45:05]MH_I2C_Read... [19:45:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:05]Read from MH i2c: E2 [19:45:05]MH_I2C_Read... [19:45:05]Read from MH i2c: E2 03 00 [19:45:05]MH_I2C_Read... [19:45:05]Read from MH i2c: E2 03 00 A7 24 00 90 00 3F [19:45:05]RAPDU: 90 00 [19:45:05]wFMCommunicate OK [19:45:05]wFMCommunicate request_size=255 [19:45:05]MH_SAM_APDU [19:45:05]CAPDU: 80 0D 02 02 FA 30 30 32 30 38 36 33 38 30 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 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 0C 2A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 1F 00 00 00 00 07 04 06 00 0C 2A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 46 F1 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 2F 6A [19:45:05]Write to MH i2c: E2 02 01 A8 24 80 0D 02 02 FA 00 30 30 32 30 38 36 33 38 30 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 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 0C 2A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 1F 00 00 00 00 07 04 06 00 0C 2A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 46 F1 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 2F 6A 00 00 34 [19:45:05]Write i2c OK [19:45:05]MH_I2C_Read... [19:45:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:05]Read from MH i2c: E2 [19:45:05]MH_I2C_Read... [19:45:05]Read from MH i2c: E2 03 00 [19:45:05]MH_I2C_Read... [19:45:05]Read from MH i2c: E2 03 00 A8 24 00 90 00 40 [19:45:05]RAPDU: 90 00 [19:45:05]wFMCommunicate OK [19:45:05]wFMCommunicate request_size=17 [19:45:05]MH_SAM_APDU [19:45:05]CAPDU: 80 0D 02 02 0C 00 00 35 04 06 00 B3 56 3C 00 A9 09 [19:45:05]Write to MH i2c: E2 14 00 A9 24 80 0D 02 02 0C 00 00 00 35 04 06 00 B3 56 3C 00 A9 09 00 00 95 [19:45:05]Write i2c OK [19:45:05]MH_I2C_Read... [19:45:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:05]Read from MH i2c: E2 [19:45:05]MH_I2C_Read... [19:45:05]Read from MH i2c: E2 03 00 [19:45:05]MH_I2C_Read... [19:45:05]Read from MH i2c: E2 03 00 A9 24 00 90 00 41 [19:45:05]RAPDU: 90 00 [19:45:05]wFMCommunicate OK [19:45:05]wFMCommunicate request_size=4 [19:45:05]MH_SAM_APDU [19:45:05]CAPDU: 80 0D 03 02 [19:45:05]Write to MH i2c: E2 08 00 AA 24 80 0D 03 02 00 00 00 00 49 [19:45:05]Write i2c OK [19:45:05]MH_I2C_Read... [19:45:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:45:05]Read from MH i2c: E2 [19:45:05]MH_I2C_Read... [19:45:05]Read from MH i2c: E2 0B 00 [19:45:05]MH_I2C_Read... [19:45:05]Read from MH i2c: E2 0B 00 AA 24 00 62 91 F6 C0 F3 EE 7B B7 90 00 06 [19:45:05]RAPDU: 62 91 F6 C0 F3 EE 7B B7 90 00 [19:45:05]wFMCommunicate OK [19:45:05]SAM_PROTO_SignData done [19:45:05]FM_MakeSignedData done [19:45:05]CreateOFDProtocolMessage [19:45:05]wFMCommunicate request_size=4 [19:45:05]MH_SAM_APDU [19:45:05]CAPDU: 80 11 00 00 [19:45:05]Write to MH i2c: E2 08 00 AB 24 80 11 00 00 00 00 00 00 49 [19:45:05]Write i2c OK [19:45:05]MH_I2C_Read... [19:45:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:05]Read from MH i2c: E2 [19:45:05]MH_I2C_Read... [19:45:05]Read from MH i2c: E2 17 00 [19:45:05]MH_I2C_Read... [19:45:05]Read from MH i2c: E2 17 00 AB 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 A2 [19:45:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [19:45:05]wFMCommunicate OK [19:45:05]CreateOFDProtocolMessage done [19:45:05]OFDSenderStorePacket 27183 [19:45:05]StoreOFDPacket docnum=27183 [19:45:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0A 03 00 00 30 43 02 03 92 CD 5A 03 01 00 03 00 F6 02 1E 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 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 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 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 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 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 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 78 00 8A 04 0D 00 34 36 30 37 30 33 35 36 35 33 35 31 33 06 04 34 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 93 D0 BE D0 BB D0 BB D0 B0 D0 BD D0 B4 D1 81 D0 BA D0 B8 D0 B5 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB 20 32 39 30 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 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 36 33 38 30 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 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 0C 2A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 1F 00 00 00 00 07 04 06 00 0C 2A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 46 F1 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 2F 6A 00 00 35 04 06 00 B3 56 3C 00 A9 09 62 91 F6 C0 F3 EE 7B B7 [19:45:05]CheckFolder [19:45:05]dirname=/storage/ofd_packets [19:45:05]CheckFolder done [19:45:05]ProducePacketName [19:45:05]name=ofd_packets/00027183 [19:45:05]NVStorageSaveData ofd_packets/00027183 [19:45:05]File name is /storage/ofd_packets/00027183 [19:45:05]Write 808 bytes [19:45:05]NVStorageSaveData done [19:45:05]OFDSenderStorePacket done [19:45:05]KKMCreateOFDPacket done [19:45:05]NVStorageSaveData kkm_last_timestamp [19:45:05]File name is /storage/kkm_last_timestamp [19:45:05]Write 4 bytes [19:45:05]NVStorageSaveData done [19:45:05]ExternCall_PrintAddStr [19:45:05]wPrintStart [19:45:05]Write to MH i2c: 01 00 00 AC 24 D0 [19:45:05]Write i2c OK [19:45:05]MH_I2C_Read... [19:45:05]Read from MH i2c: 01 [19:45:05]MH_I2C_Read... [19:45:05]Read from MH i2c: 01 07 00 [19:45:05]MH_I2C_Read... [19:45:05]Read from MH i2c: 01 07 00 AC 24 00 00 00 00 00 FF 0F E5 [19:45:05]RasterBufferAndPrint [19:45:05]line Счет N : (3)150581 [19:45:05]line ИНН: 02508201610067 [19:45:05]line Контрольно-Кассовый Чек [19:45:05]line ПРОДАЖА [19:45:05]line Товар: 4870112003956 [19:45:05]line Шок батончик ALBENI SUPER Альбени Супер [19:45:05]line 2.000 * 75.00 [19:45:05]line = 150.00 [19:45:05]line НДС 12% НСП 1% [19:45:05]line > о реализуемом товаре [19:45:05]line Товар: 4870112002775 [19:45:05]line Шок батончик ALBENI BITES 80гр [19:45:05]line 2.000 * 75.00 [19:45:05]line = 150.00 [19:45:05]line НДС 12% НСП 1% [19:45:05]line > о реализуемом товаре [19:45:05]line Товар: 4607035653513 [19:45:05]line Вафли Голландские карамел 290 [19:45:05]line 1.000 * 143.00 [19:45:05]line = 143.00 [19:45:05]line НДС 12% НСП 1% [19:45:05]line > о реализуемом товаре [19:45:05]line Товар: 4700000310043 [19:45:05]line Вода Жалалабат 27 1л [19:45:06]line 1.000 * 60.00 [19:45:06]line = 60.00 [19:45:06]line НДС 12% НСП 1% [19:45:06]line > о реализуемом товаре [19:45:06]line Товар: 4700002086380 [19:45:06]line Водка Сары челек 0,35л [19:45:06]line 1.000 * 260.00 [19:45:06]line = 260.00 [19:45:06]line НДС 12% НСП 1% [19:45:06]line > о реализуемом товаре [19:45:06]line ИТОГО: 763.00 [19:45:06]line НСП 1% : 6.75 [19:45:06]line НДС 12% : 81.03 [19:45:06]line Наличными: 763.00 [19:45:06]line Безнал.: 0.00 [19:45:06]line Место: АЗС № 134 "Партнер Нефть" [19:45:06]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [19:45:06]line СНО: Общий режим [19:45:06]line Чек 86 29.07.2024 19:45 [19:45:06]line Смена: 434 ФФД: 1.0 [19:45:06]line ЗНМ: 0300000043 [19:45:06]line РНМ: 0000000000092663 [19:45:06]line Версия ККМ: 001 [19:45:06]line ФМ: 0000000000874937 [19:45:06]line ФД: 27183 [19:45:06]line ФПД: 197182955235593 [19:45:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T194510&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27183&fm=197182955235593&tin=02508201610067®Number=0000000000092663&sum=76300 [19:45:06]line 0 [19:45:06]OFD Sender: Processing packet 27183 [packets to send 9, broken 8] [19:45:06]ProducePacketName [19:45:06]name=ofd_packets/00027183 [19:45:06]OFD Sender: To server: pG, [19:45:06]CommunicateWithHost lk.salyk.kg:30040 [19:45:06]ConnectInit lk.salyk.kg [19:45:06]written 0, free lines is 4095 [19:45:06]Connected sock=10 [19:45:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0A 03 00 00 30 43 02 03 92 CD 5A 03 01 00 03 00 F6 02 1E 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 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 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 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 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 42 49 54 45 53 20 38 30 D0 B3 D1 80 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 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 78 00 8A 04 0D 00 34 36 30 37 30 33 35 36 35 33 35 31 33 06 04 34 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 93 D0 BE D0 BB D0 BB D0 B0 D0 BD D0 B4 D1 81 D0 BA D0 B8 D0 B5 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB 20 32 39 30 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 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 36 33 38 30 06 04 25 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A1 D0 B0 D1 80 D1 8B 20 D1 87 D0 B5 D0 BB D0 B5 D0 BA 20 30 2C 33 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 65 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 0C 2A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 1F 00 00 00 00 07 04 06 00 0C 2A 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 46 F1 A7 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 2F 6A 00 00 35 04 06 00 B3 56 3C 00 A9 09 62 91 F6 C0 F3 EE 7B B7 [19:45:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 B0 5E 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 34 39 33 37 10 04 04 00 2F 6A 00 00 F4 03 04 00 97 97 A7 66 B6 04 01 00 00 6B 7D D2 2B D6 EE 76 B8 [19:45:06]CommunicateWithHost err = 0 [19:45:06]CheckOFDResponse [19:45:06]1017 (14) - 77093643461234 [19:45:06]1041 (16) - 0000000000874937 [19:45:06]1040 (4) - 27183 [19:45:06]1012 (4) - 29.07.2024 13:22 [19:45:06]1206 (1) - 0 [19:45:06]OFD Sender: Remove packet 27183 [19:45:06]ProducePacketName [19:45:06]name=ofd_packets/00027183 [19:45:06]NVStorageDeleteData [19:45:06]Write to MH i2c: 01 00 00 EE 24 12 [19:45:06]Write i2c OK [19:45:06]MH_I2C_Read... [19:45:06]Read from MH i2c: 01 [19:45:06]MH_I2C_Read... [19:45:06]Read from MH i2c: 01 07 00 [19:45:06]MH_I2C_Read... [19:45:06]Read from MH i2c: 01 07 00 EE 24 00 00 00 00 00 5D 0B 81 [19:45:06]RasterBufferAndPrint [19:45:06]line [19:45:06]line [19:45:06]line [19:45:06]line [19:45:06]line [19:45:06]written 0, free lines is 2917 [19:45:06]MH_Cut [19:45:06]Write to MH i2c: D1 01 00 F5 24 01 EB [19:45:06]Write i2c OK [19:45:06]MH_I2C_Read... [19:45:06]Read from MH i2c: D1 [19:45:06]MH_I2C_Read... [19:45:06]Read from MH i2c: D1 01 00 [19:45:06]MH_I2C_Read... [19:45:06]Read from MH i2c: D1 01 00 F5 24 00 EA [19:45:06]Write to MH i2c: 01 00 00 F6 24 1A [19:45:06]Write i2c OK [19:45:06]MH_I2C_Read... [19:45:06]OFD Sender: No OFD packet to send [19:45:07]*** Cut start [19:45:07]*** Partial cut [19:45:07]*** CUTSNS_PIN = 1 [19:45:07]*** CUTSNS_PIN = 0 [19:45:08]*** Brake cut motor [19:45:08]Read from MH i2c: 01 [19:45:08]MH_I2C_Read... [19:45:08]*** Stop cut motor [19:45:08]*** Cut end [19:45:08]Read from MH i2c: 01 07 00 [19:45:08]MH_I2C_Read... [19:45:08]Read from MH i2c: 01 07 00 F6 24 00 00 00 00 00 FF 0F 2F [19:45:08]process_action close_receipt done [19:45:08]requested_data is exist [19:45:08]produce_requested_data [19:45:08]requested_item fm.sn is exist - process it [19:45:08]wFMCommunicate request_size=4 [19:45:08]MH_SAM_APDU [19:45:08]CAPDU: 80 11 00 00 [19:45:08]Write to MH i2c: E2 08 00 F7 24 80 11 00 00 00 00 00 00 95 [19:45:08]Write i2c OK [19:45:08]MH_I2C_Read... [19:45:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:08]Read from MH i2c: E2 [19:45:08]MH_I2C_Read... [19:45:08]Read from MH i2c: E2 17 00 [19:45:08]MH_I2C_Read... [19:45:08]Read from MH i2c: E2 17 00 F7 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 EE [19:45:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [19:45:08]wFMCommunicate OK [19:45:08]requested_item fd.num is exist - process it [19:45:08]SAM_PROTO_GetFieldsCounters [19:45:08]wFMCommunicate request_size=4 [19:45:08]MH_SAM_APDU [19:45:08]CAPDU: 80 13 00 00 [19:45:08]Write to MH i2c: E2 08 00 F8 24 80 13 00 00 00 00 00 00 98 [19:45:08]Write i2c OK [19:45:08]MH_I2C_Read... [19:45:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:45:08]Read from MH i2c: E2 [19:45:08]MH_I2C_Read... [19:45:08]Read from MH i2c: E2 62 00 [19:45:08]MH_I2C_Read... [19:45:08]Read from MH i2c: E2 62 00 F8 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 2F 6A 00 00 0E 04 04 00 B2 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 0E [19:45:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 2F 6A 00 00 0E 04 04 00 B2 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 [19:45:08]wFMCommunicate OK [19:45:08]SAM_PROTO_GetFieldsCounters done [19:45:08]requested_item shift.num is exist - process it [19:45:08]requested_item shift.opened is exist - process it [19:45:08]req_shift_opened [19:45:08]FM_GetShiftState [19:45:08]SAM_PROTO_GetShiftState [19:45:08]wFMCommunicate request_size=4 [19:45:08]MH_SAM_APDU [19:45:08]CAPDU: 80 13 01 00 [19:45:08]Write to MH i2c: E2 08 00 F9 24 80 13 01 00 00 00 00 00 9A [19:45:08]Write i2c OK [19:45:08]MH_I2C_Read... [19:45:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:08]Read from MH i2c: E2 [19:45:08]MH_I2C_Read... [19:45:08]Read from MH i2c: E2 0E 00 [19:45:08]MH_I2C_Read... [19:45:08]Read from MH i2c: E2 0E 00 F9 24 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 1B [19:45:08]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [19:45:08]wFMCommunicate OK [19:45:08]SAM_PROTO_GetShiftState done [19:45:08]FM_GetShiftState done [19:45:08]req_shift_opened done [19:45:08]requested_item shift.open_date is exist - process it [19:45:08]req_shift_open_date [19:45:08]req_shift_open_date done [19:45:08]produce_requested_data done [19:45:08]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27183,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [19:45:08]process_action_free close_receipt [19:45:08]json_value_free [19:45:08]json_value_free done [19:45:08]process_json_proto returns [19:45:08]Send response to host [19:45:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27183,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [19:45:08]free response buf [19:45:08]execute_script done [19:45:08]execute_script returns [19:45:08]free content buf [19:45:08]Sock 9.Close socket [19:45:08]Sock 9.Thread stoped [19:45:11]OFD Sender: No OFD packet to send [19:45:16]OFD Sender: No OFD packet to send [19:45:21]OFD Sender: No OFD packet to send [19:45:26]OFD Sender: No OFD packet to send [19:45:31]OFD Sender: No OFD packet to send [19:45:36]OFD Sender: No OFD packet to send [19:45:41]OFD Sender: No OFD packet to send [19:45:46]OFD Sender: No OFD packet to send [19:45:51]OFD Sender: No OFD packet to send [19:45:56]OFD Sender: No OFD packet to send [19:46:01]OFD Sender: No OFD packet to send [19:46:06]OFD Sender: No OFD packet to send [19:46:11]OFD Sender: No OFD packet to send [19:46:16]OFD Sender: No OFD packet to send [19:46:21]OFD Sender: No OFD packet to send [19:46:26]OFD Sender: No OFD packet to send [19:46:31]OFD Sender: No OFD packet to send [19:46:36]OFD Sender: No OFD packet to send [19:46:41]OFD Sender: No OFD packet to send [19:46:46]OFD Sender: No OFD packet to send [19:46:51]OFD Sender: No OFD packet to send [19:46: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:02]OFD Sender: No OFD packet to send [19:54:07]OFD Sender: No OFD packet to send [19:54:12]OFD Sender: No OFD packet to send [19:54:17]OFD Sender: No OFD packet to send [19:54:22]OFD Sender: No OFD packet to send [19:54:27]OFD Sender: No OFD packet to send [19:54:32]OFD Sender: No OFD packet to send [19:54:37]OFD Sender: No OFD packet to send [19:54:42]OFD Sender: No OFD packet to send [19:54:47]OFD Sender: No OFD packet to send [19:54:52]OFD Sender: No OFD packet to send [19:54:57]OFD Sender: No OFD packet to send [19:55:02]OFD Sender: No OFD packet to send [19:55:07]OFD Sender: No OFD packet to send [19:55:12]OFD Sender: No OFD packet to send [19:55:17]OFD Sender: No OFD packet to send [19:55:22]OFD Sender: No OFD packet to send [19:55:27]OFD Sender: No OFD packet to send [19:55:32]OFD Sender: No OFD packet to send [19:55:37]OFD Sender: No OFD packet to send [19:55:42]OFD Sender: No OFD packet to send [19:55:47]OFD Sender: No OFD packet to send [19:55:52]OFD Sender: No OFD packet to send [19:55:57]OFD Sender: No OFD packet to send [19:56:02]OFD Sender: No OFD packet to send [19:56:07]OFD Sender: No OFD packet to send [19:56:12]OFD Sender: No OFD packet to send [19:56:17]OFD Sender: No OFD packet to send [19:56:22]OFD Sender: No OFD packet to send [19:56:27]OFD Sender: No OFD packet to send [19:56:32]OFD Sender: No OFD packet to send [19:56:37]OFD Sender: No OFD packet to send [19:56:42]OFD Sender: No OFD packet to send [19:56:47]OFD Sender: No OFD packet to send [19:56:52]OFD Sender: No OFD packet to send [19:56:57]OFD Sender: No OFD packet to send [19:57:02]OFD Sender: No OFD packet to send [19:57:07]OFD Sender: No OFD packet to send [19:57:12]OFD Sender: No OFD packet to send [19:57:17]OFD Sender: No OFD packet to send [19:57:22]OFD Sender: No OFD packet to send [19:57:27]OFD Sender: No OFD packet to send [19:57:32]OFD Sender: No OFD packet to send [19:57:37]OFD Sender: No OFD packet to send [19:57:42]OFD Sender: No OFD packet to send [19:57:47]OFD Sender: No OFD packet to send [19:57:52]OFD Sender: No OFD packet to send [19:57:57]OFD Sender: No OFD packet to send [19:58:02]OFD Sender: No OFD packet to send [19:58:07]OFD Sender: No OFD packet to send [19:58:12]OFD Sender: No OFD packet to send [19:58:17]OFD Sender: No OFD packet to send [19:58:22]OFD Sender: No OFD packet to send [19:58:27]OFD Sender: No OFD packet to send [19:58:32]OFD Sender: No OFD packet to send [19:58:37]OFD Sender: No OFD packet to send [19:58:42]OFD Sender: No OFD packet to send [19:58:47]OFD Sender: No OFD packet to send [19:58:52]OFD Sender: No OFD packet to send [19:58:57]OFD Sender: No OFD packet to send [19:59:02]OFD Sender: No OFD packet to send [19:59:07]OFD Sender: No OFD packet to send [19:59:12]OFD Sender: No OFD packet to send [19:59:17]OFD Sender: No OFD packet to send [19:59:22]OFD Sender: No OFD packet to send [19:59:27]OFD Sender: No OFD packet to send [19:59:32]OFD Sender: No OFD packet to send [19:59:37]OFD Sender: No OFD packet to send [19:59:42]OFD Sender: No OFD packet to send [19:59:47]OFD Sender: No OFD packet to send [19:59:52]OFD Sender: No OFD packet to send [19:59:57]OFD Sender: No OFD packet to send [20:00:02]OFD Sender: No OFD packet to send [20:00:07]OFD Sender: No OFD packet to send [20:00:12]OFD Sender: No OFD packet to send [20:00:17]OFD Sender: No OFD packet to send [20:00:22]OFD Sender: No OFD packet to send [20:00:27]OFD Sender: No OFD packet to send [20:00:32]OFD Sender: No OFD packet to send [20:00:37]OFD Sender: No OFD packet to send [20:00:42]OFD Sender: No OFD packet to send [20:00:47]OFD Sender: No OFD packet to send [20:00:52]OFD Sender: No OFD packet to send [20:00:57]OFD Sender: No OFD packet to send [20:01:02]OFD Sender: No OFD packet to send [20:01:07]OFD Sender: No OFD packet to send [20:01:12]OFD Sender: No OFD packet to send [20:01:17]OFD Sender: No OFD packet to send [20:01:22]OFD Sender: No OFD packet to send [20:01:27]OFD Sender: No OFD packet to send [20:01:32]OFD Sender: No OFD packet to send [20:01:37]OFD Sender: No OFD packet to send [20:01:42]OFD Sender: No OFD packet to send [20:01:47]OFD Sender: No OFD packet to send [20:01:52]OFD Sender: No OFD packet to send [20:01:57]OFD Sender: No OFD packet to send [20:02:02]OFD Sender: No OFD packet to send [20:02:07]OFD Sender: No OFD packet to send [20:02:12]OFD Sender: No OFD packet to send [20:02:17]OFD Sender: No OFD packet to send [20:02:22]OFD Sender: No OFD packet to send [20:02:27]OFD Sender: No OFD packet to send [20:02:32]OFD Sender: No OFD packet to send [20:02:37]OFD Sender: No OFD packet to send [20:02:42]OFD Sender: No OFD packet to send [20:02:47]OFD Sender: No OFD packet to send [20:02:52]OFD Sender: No OFD packet to send [20:02:57]OFD Sender: No OFD packet to send [20:03:02]OFD Sender: No OFD packet to send [20:03:07]OFD Sender: No OFD packet to send [20:03:12]OFD Sender: No OFD packet to send [20:03:17]OFD Sender: No OFD packet to send [20:03:22]OFD Sender: No OFD packet to send [20:03:27]OFD Sender: No OFD packet to send [20:03:32]OFD Sender: No OFD packet to send [20:03:37]OFD Sender: No OFD packet to send [20:03:42]OFD Sender: No OFD packet to send [20:03:47]OFD Sender: No OFD packet to send [20:03:52]OFD Sender: No OFD packet to send [20:03:57]OFD Sender: No OFD packet to send [20:04:02]OFD Sender: No OFD packet to send [20:04:07]OFD Sender: No OFD packet to send [20:04:12]OFD Sender: No OFD packet to send [20:04:17]OFD Sender: No OFD packet to send [20:04:22]OFD Sender: No OFD packet to send [20:04:27]OFD Sender: No OFD packet to send [20:04:32]OFD Sender: No OFD packet to send [20:04:37]OFD Sender: No OFD packet to send [20:04:42]OFD Sender: No OFD packet to send [20:04:47]OFD Sender: No OFD packet to send [20:04:52]OFD Sender: No OFD packet to send [20:04:57]OFD Sender: No OFD packet to send [20:05:02]OFD Sender: No OFD packet to send [20:05:07]OFD Sender: No OFD packet to send [20:05:12]OFD Sender: No OFD packet to send [20:05:17]OFD Sender: No OFD packet to send [20:05:22]OFD Sender: No OFD packet to send [20:05:27]OFD Sender: No OFD packet to send [20:05:32]OFD Sender: No OFD packet to send [20:05:37]OFD Sender: No OFD packet to send [20:05:42]OFD Sender: No OFD packet to send [20:05:47]OFD Sender: No OFD packet to send [20:05:52]OFD Sender: No OFD packet to send [20:05:57]OFD Sender: No OFD packet to send [20:06:02]OFD Sender: No OFD packet to send [20:06:07]OFD Sender: No OFD packet to send [20:06:12]OFD Sender: No OFD packet to send [20:06:17]OFD Sender: No OFD packet to send [20:06:22]OFD Sender: No OFD packet to send [20:06:27]OFD Sender: No OFD packet to send [20:06:32]OFD Sender: No OFD packet to send [20:06:37]OFD Sender: No OFD packet to send [20:06:42]OFD Sender: No OFD packet to send [20:06:47]OFD Sender: No OFD packet to send [20:06:52]OFD Sender: No OFD packet to send [20:06:57]OFD Sender: No OFD packet to send [20:07:02]OFD Sender: No OFD packet to send [20:07:07]OFD Sender: No OFD packet to send [20:07:12]OFD Sender: No OFD packet to send [20:07:17]OFD Sender: No OFD packet to send [20:07:22]OFD Sender: No OFD packet to send [20:07:27]OFD Sender: No OFD packet to send [20:07:32]OFD Sender: No OFD packet to send [20:07:37]OFD Sender: No OFD packet to send [20:07:42]OFD Sender: No OFD packet to send [20:07:47]OFD Sender: No OFD packet to send [20:07:52]OFD Sender: No OFD packet to send [20:07:57]OFD Sender: No OFD packet to send [20:08:02]OFD Sender: No OFD packet to send [20:08:07]OFD Sender: No OFD packet to send [20:08:13]OFD Sender: No OFD packet to send [20:08:18]OFD Sender: No OFD packet to send [20:08:23]OFD Sender: No OFD packet to send [20:08:28]OFD Sender: No OFD packet to send [20:08:33]OFD Sender: No OFD packet to send [20:08:38]OFD Sender: No OFD packet to send [20:08:43]OFD Sender: No OFD packet to send [20:08:48]OFD Sender: No OFD packet to send [20:08:53]OFD Sender: No OFD packet to send [20:08:58]OFD Sender: No OFD packet to send [20:09:03]OFD Sender: No OFD packet to send [20:09:08]OFD Sender: No OFD packet to send [20:09:13]OFD Sender: No OFD packet to send [20:09:18]OFD Sender: No OFD packet to send [20:09:23]OFD Sender: No OFD packet to send [20:09:28]OFD Sender: No OFD packet to send [20:09:33]OFD Sender: No OFD packet to send [20:09:38]OFD Sender: No OFD packet to send [20:09:43]OFD Sender: No OFD packet to send [20:09:48]OFD Sender: No OFD packet to send [20:09:53]OFD Sender: No OFD packet to send [20:09:58]OFD Sender: No OFD packet to send [20:10:03]OFD Sender: No OFD packet to send [20:10:08]OFD Sender: No OFD packet to send [20:10:13]OFD Sender: No OFD packet to send [20:10:18]OFD Sender: No OFD packet to send [20:10:23]OFD Sender: No OFD packet to send [20:10:28]OFD Sender: No OFD packet to send [20:10:33]OFD Sender: No OFD packet to send [20:10:38]OFD Sender: No OFD packet to send [20:10:43]OFD Sender: No OFD packet to send [20:10:48]OFD Sender: No OFD packet to send [20:10:53]OFD Sender: No OFD packet to send [20:10:58]OFD Sender: No OFD packet to send [20:11:03]OFD Sender: No OFD packet to send [20:11:08]OFD Sender: No OFD packet to send [20:11:13]OFD Sender: No OFD packet to send [20:11:18]OFD Sender: No OFD packet to send [20:11:23]OFD Sender: No OFD packet to send [20:11:28]OFD Sender: No OFD packet to send [20:11:33]OFD Sender: No OFD packet to send [20:11:38]OFD Sender: No OFD packet to send [20:11:43]OFD Sender: No OFD packet to send [20:11:48]OFD Sender: No OFD packet to send [20:11:53]OFD Sender: No OFD packet to send [20:11:58]OFD Sender: No OFD packet to send [20:12:03]OFD Sender: No OFD packet to send [20:12:08]OFD Sender: No OFD packet to send [20:12:13]OFD Sender: No OFD packet to send [20:12:18]OFD Sender: No OFD packet to send [20:12:23]OFD Sender: No OFD packet to send [20:12:28]OFD Sender: No OFD packet to send [20:12:33]OFD Sender: No OFD packet to send [20:12:38]OFD Sender: No OFD packet to send [20:12:43]OFD Sender: No OFD packet to send [20:12:48]OFD Sender: No OFD packet to send [20:12:53]OFD Sender: No OFD packet to send [20:12:58]OFD Sender: No OFD packet to send [20:13:03]OFD Sender: No OFD packet to send [20:13:08]OFD Sender: No OFD packet to send [20:13:13]OFD Sender: No OFD packet to send [20:13:18]OFD Sender: No OFD packet to send [20:13:23]OFD Sender: No OFD packet to send [20:13:28]OFD Sender: No OFD packet to send [20:13:33]OFD Sender: No OFD packet to send [20:13:38]OFD Sender: No OFD packet to send [20:13:43]OFD Sender: No OFD packet to send [20:13:48]OFD Sender: No OFD packet to send [20:13:53]OFD Sender: No OFD packet to send [20:13:58]OFD Sender: No OFD packet to send [20:14:03]OFD Sender: No OFD packet to send [20:14:08]OFD Sender: No OFD packet to send [20:14:13]OFD Sender: No OFD packet to send [20:14:18]OFD Sender: No OFD packet to send [20:14:23]OFD Sender: No OFD packet to send [20:14:28]OFD Sender: No OFD packet to send [20:14:33]OFD Sender: No OFD packet to send [20:14:38]OFD Sender: No OFD packet to send [20:14:43]OFD Sender: No OFD packet to send [20:14:48]OFD Sender: No OFD packet to send [20:14:53]OFD Sender: No OFD packet to send [20:14:58]OFD Sender: No OFD packet to send [20:15:03]OFD Sender: No OFD packet to send [20:15:08]OFD Sender: No OFD packet to send [20:15:13]OFD Sender: No OFD packet to send [20:15:18]OFD Sender: No OFD packet to send [20:15:23]OFD Sender: No OFD packet to send [20:15:28]OFD Sender: No OFD packet to send [20:15:33]OFD Sender: No OFD packet to send [20:15:38]OFD Sender: No OFD packet to send [20:15:43]OFD Sender: No OFD packet to send [20:15:48]OFD Sender: No OFD packet to send [20:15:53]OFD Sender: No OFD packet to send [20:15:58]OFD Sender: No OFD packet to send [20:16:03]OFD Sender: No OFD packet to send [20:16:08]OFD Sender: No OFD packet to send [20:16:13]OFD Sender: No OFD packet to send [20:16:18]OFD Sender: No OFD packet to send [20:16:23]OFD Sender: No OFD packet to send [20:16:28]OFD Sender: No OFD packet to send [20:16:33]OFD Sender: No OFD packet to send [20:16:38]OFD Sender: No OFD packet to send [20:16:43]OFD Sender: No OFD packet to send [20:16:48]OFD Sender: No OFD packet to send [20:16:53]OFD Sender: No OFD packet to send [20:16:58]OFD Sender: No OFD packet to send [20:17:03]OFD Sender: No OFD packet to send [20:17:08]OFD Sender: No OFD packet to send [20:17:13]OFD Sender: No OFD packet to send [20:17:18]OFD Sender: No OFD packet to send [20:17:23]OFD Sender: No OFD packet to send [20:17:28]OFD Sender: No OFD packet to send [20:17:33]OFD Sender: No OFD packet to send [20:17:38]OFD Sender: No OFD packet to send [20:17:43]OFD Sender: No OFD packet to send [20:17:48]OFD Sender: No OFD packet to send [20:17:53]OFD Sender: No OFD packet to send [20:17:58]OFD Sender: No OFD packet to send [20:18:03]OFD Sender: No OFD packet to send [20:18:08]OFD Sender: No OFD packet to send [20:18:13]OFD Sender: No OFD packet to send [20:18:18]OFD Sender: No OFD packet to send [20:18:23]OFD Sender: No OFD packet to send [20:18:28]OFD Sender: No OFD packet to send [20:18:33]OFD Sender: No OFD packet to send [20:18:38]OFD Sender: No OFD packet to send [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:24]OFD Sender: No OFD packet to send [20:29:29]OFD Sender: No OFD packet to send [20:29:34]OFD Sender: No OFD packet to send [20:29:39]OFD Sender: No OFD packet to send [20:29:44]OFD Sender: No OFD packet to send [20:29:49]OFD Sender: No OFD packet to send [20:29:54]OFD Sender: No OFD packet to send [20:29:59]OFD Sender: No OFD packet to send [20:30:04]OFD Sender: No OFD packet to send [20:30:09]OFD Sender: No OFD packet to send [20:30:14]OFD Sender: No OFD packet to send [20:30:19]OFD Sender: No OFD packet to send [20:30:24]OFD Sender: No OFD packet to send [20:30:29]OFD Sender: No OFD packet to send [20:30:34]OFD Sender: No OFD packet to send [20:30:39]OFD Sender: No OFD packet to send [20:30:44]OFD Sender: No OFD packet to send [20:30:49]OFD Sender: No OFD packet to send [20:30:54]OFD Sender: No OFD packet to send [20:30:59]OFD Sender: No OFD packet to send [20:31:04]OFD Sender: No OFD packet to send [20:31:09]OFD Sender: No OFD packet to send [20:31:14]OFD Sender: No OFD packet to send [20:31:19]OFD Sender: No OFD packet to send [20:31:24]OFD Sender: No OFD packet to send [20:31:29]OFD Sender: No OFD packet to send [20:31:34]OFD Sender: No OFD packet to send [20:31:39]OFD Sender: No OFD packet to send [20:31:44]OFD Sender: No OFD packet to send [20:31:49]OFD Sender: No OFD packet to send [20:31:54]OFD Sender: No OFD packet to send [20:31:59]OFD Sender: No OFD packet to send [20:32:04]OFD Sender: No OFD packet to send [20:32:09]OFD Sender: No OFD packet to send [20:32:14]OFD Sender: No OFD packet to send [20:32:19]OFD Sender: No OFD packet to send [20:32:24]OFD Sender: No OFD packet to send [20:32:29]OFD Sender: No OFD packet to send [20:32:34]OFD Sender: No OFD packet to send [20:32:39]OFD Sender: No OFD packet to send [20:32:44]OFD Sender: No OFD packet to send [20:32:49]OFD Sender: No OFD packet to send [20:32:54]OFD Sender: No OFD packet to send [20:32:59]OFD Sender: No OFD packet to send [20:33:04]OFD Sender: No OFD packet to send [20:33:09]OFD Sender: No OFD packet to send [20:33:14]OFD Sender: No OFD packet to send [20:33:19]OFD Sender: No OFD packet to send [20:33:24]OFD Sender: No OFD packet to send [20:33:29]OFD Sender: No OFD packet to send [20:33:34]OFD Sender: No OFD packet to send [20:33:39]OFD Sender: No OFD packet to send [20:33:44]OFD Sender: No OFD packet to send [20:33:49]OFD Sender: No OFD packet to send [20:33:54]OFD Sender: No OFD packet to send [20:33:59]OFD Sender: No OFD packet to send [20:34:04]OFD Sender: No OFD packet to send [20:34:09]OFD Sender: No OFD packet to send [20:34:14]OFD Sender: No OFD packet to send [20:34:19]OFD Sender: No OFD packet to send [20:34:24]OFD Sender: No OFD packet to send [20:34:29]OFD Sender: No OFD packet to send [20:34:34]OFD Sender: No OFD packet to send [20:34:39]OFD Sender: No OFD packet to send [20:34:44]OFD Sender: No OFD packet to send [20:34:49]OFD Sender: No OFD packet to send [20:34:54]OFD Sender: No OFD packet to send [20:34:59]OFD Sender: No OFD packet to send [20:35:04]OFD Sender: No OFD packet to send [20:35:09]OFD Sender: No OFD packet to send [20:35:14]OFD Sender: No OFD packet to send [20:35:19]OFD Sender: No OFD packet to send [20:35:24]OFD Sender: No OFD packet to send [20:35:29]OFD Sender: No OFD packet to send [20:35:34]OFD Sender: No OFD packet to send [20:35:39]OFD Sender: No OFD packet to send [20:35:44]OFD Sender: No OFD packet to send [20:35:49]OFD Sender: No OFD packet to send [20:35:54]OFD Sender: No OFD packet to send [20:35:59]OFD Sender: No OFD packet to send [20:36:04]OFD Sender: No OFD packet to send [20:36:09]OFD Sender: No OFD packet to send [20:36:14]OFD Sender: No OFD packet to send [20:36:19]OFD Sender: No OFD packet to send [20:36:24]OFD Sender: No OFD packet to send [20:36:29]OFD Sender: No OFD packet to send [20:36:34]OFD Sender: No OFD packet to send [20:36:39]OFD Sender: No OFD packet to send [20:36:44]OFD Sender: No OFD packet to send [20:36:49]OFD Sender: No OFD packet to send [20:36:54]OFD Sender: No OFD packet to send [20:36:59]OFD Sender: No OFD packet to send [20:37:04]OFD Sender: No OFD packet to send [20:37:09]OFD Sender: No OFD packet to send [20:37:14]OFD Sender: No OFD packet to send [20:37:19]OFD Sender: No OFD packet to send [20:37:24]OFD Sender: No OFD packet to send [20:37:29]OFD Sender: No OFD packet to send [20:37:34]OFD Sender: No OFD packet to send [20:37:39]OFD Sender: No OFD packet to send [20:37:44]OFD Sender: No OFD packet to send [20:37:49]OFD Sender: No OFD packet to send [20:37:54]OFD Sender: No OFD packet to send [20:37:59]OFD Sender: No OFD packet to send [20:38:04]OFD Sender: No OFD packet to send [20:38:09]OFD Sender: No OFD packet to send [20:38:14]OFD Sender: No OFD packet to send [20:38:19]OFD Sender: No OFD packet to send [20:38:24]OFD Sender: No OFD packet to send [20:38:29]OFD Sender: No OFD packet to send [20:38:34]OFD Sender: No OFD packet to send [20:38:39]OFD Sender: No OFD packet to send [20:38:44]OFD Sender: No OFD packet to send [20:38:49]OFD Sender: No OFD packet to send [20:38:54]OFD Sender: No OFD packet to send [20:38:59]OFD Sender: No OFD packet to send [20:39:04]OFD Sender: No OFD packet to send [20:39:09]OFD Sender: No OFD packet to send [20:39:14]OFD Sender: No OFD packet to send [20:39:19]OFD Sender: No OFD packet to send [20:39:24]OFD Sender: No OFD packet to send [20:39:29]OFD Sender: No OFD packet to send [20:39:34]OFD Sender: No OFD packet to send [20:39:39]OFD Sender: No OFD packet to send [20:39:44]OFD Sender: No OFD packet to send [20:39:49]OFD Sender: No OFD packet to send [20:39:54]OFD Sender: No OFD packet to send [20:39:59]OFD Sender: No OFD packet to send [20:40:04]OFD Sender: No OFD packet to send [20:40:09]OFD Sender: No OFD packet to send [20:40:14]OFD Sender: No OFD packet to send [20:40:19]OFD Sender: No OFD packet to send [20:40:24]OFD Sender: No OFD packet to send [20:40:29]OFD Sender: No OFD packet to send [20:40:34]OFD Sender: No OFD packet to send [20:40:39]OFD Sender: No OFD packet to send [20:40:44]OFD Sender: No OFD packet to send [20:40:49]OFD Sender: No OFD packet to send [20:40:54]OFD Sender: No OFD packet to send [20:40:59]OFD Sender: No OFD packet to send [20:41:04]OFD Sender: No OFD packet to send [20:41:09]OFD Sender: No OFD packet to send [20:41:14]OFD Sender: No OFD packet to send [20:41:19]OFD Sender: No OFD packet to send [20:41:24]OFD Sender: No OFD packet to send [20:41:29]OFD Sender: No OFD packet to send [20:41:34]OFD Sender: No OFD packet to send [20:41:39]OFD Sender: No OFD packet to send [20:41:44]OFD Sender: No OFD packet to send [20:41:49]OFD Sender: No OFD packet to send [20:41:54]OFD Sender: No OFD packet to send [20:41:59]OFD Sender: No OFD packet to send [20:42:04]OFD Sender: No OFD packet to send [20:42:09]OFD Sender: No OFD packet to send [20:42:14]OFD Sender: No OFD packet to send [20:42:19]OFD Sender: No OFD packet to send [20:42:24]OFD Sender: No OFD packet to send [20:42:29]OFD Sender: No OFD packet to send [20:42:34]OFD Sender: No OFD packet to send [20:42:39]OFD Sender: No OFD packet to send [20:42:44]OFD Sender: No OFD packet to send [20:42:49]OFD Sender: No OFD packet to send [20:42:54]OFD Sender: No OFD packet to send [20:42:59]OFD Sender: No OFD packet to send [20:43:04]OFD Sender: No OFD packet to send [20:43:09]OFD Sender: No OFD packet to send [20:43:14]OFD Sender: No OFD packet to send [20:43:19]OFD Sender: No OFD packet to send [20:43:24]OFD Sender: No OFD packet to send [20:43:29]OFD Sender: No OFD packet to send [20:43:34]OFD Sender: No OFD packet to send [20:43:39]OFD Sender: No OFD packet to send [20:43:44]OFD Sender: No OFD packet to send [20:43:49]OFD Sender: No OFD packet to send [20:43:54]OFD Sender: No OFD packet to send [20:43:59]OFD Sender: No OFD packet to send [20:44:04]OFD Sender: No OFD packet to send [20:44:09]OFD Sender: No OFD packet to send [20:44:14]OFD Sender: No OFD packet to send [20:44:19]OFD Sender: No OFD packet to send [20:44:24]OFD Sender: No OFD packet to send [20:44:29]OFD Sender: No OFD packet to send [20:44:34]OFD Sender: No OFD packet to send [20:44:39]OFD Sender: No OFD packet to send [20:44:44]OFD Sender: No OFD packet to send [20:44:49]OFD Sender: No OFD packet to send [20:44:54]OFD Sender: No OFD packet to send [20:44:59]OFD Sender: No OFD packet to send [20:45:04]OFD Sender: No OFD packet to send [20:45:09]OFD Sender: No OFD packet to send [20:45:14]OFD Sender: No OFD packet to send [20:45:19]OFD Sender: No OFD packet to send [20:45:24]OFD Sender: No OFD packet to send [20:45:29]OFD Sender: No OFD packet to send [20:45:34]OFD Sender: No OFD packet to send [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:54]OFD Sender: No OFD packet to send [20:45:59]OFD Sender: No OFD packet to send [20:46:04]OFD Sender: No OFD packet to send [20:46:09]OFD Sender: No OFD packet to send [20:46:14]OFD Sender: No OFD packet to send [20:46:19]OFD Sender: No OFD packet to send [20:46:24]OFD Sender: No OFD packet to send [20:46:29]OFD Sender: No OFD packet to send [20:46:34]OFD Sender: No OFD packet to send [20:46:39]OFD Sender: No OFD packet to send [20:46:44]OFD Sender: No OFD packet to send [20:46:49]OFD Sender: No OFD packet to send [20:46:54]OFD Sender: No OFD packet to send [20:46:59]OFD Sender: No OFD packet to send [20:47:04]OFD Sender: No OFD packet to send [20:47:09]OFD Sender: No OFD packet to send [20:47:14]OFD Sender: No OFD packet to send [20:47:19]OFD Sender: No OFD packet to send [20:47:24]OFD Sender: No OFD packet to send [20:47:29]OFD Sender: No OFD packet to send [20:47:34]OFD Sender: No OFD packet to send [20:47:39]OFD Sender: No OFD packet to send [20:47:44]OFD Sender: No OFD packet to send [20:47:49]OFD Sender: No OFD packet to send [20:47:54]OFD Sender: No OFD packet to send [20:47:59]OFD Sender: No OFD packet to send [20:48:04]OFD Sender: No OFD packet to send [20:48:09]OFD Sender: No OFD packet to send [20:48:14]OFD Sender: No OFD packet to send [20:48:19]OFD Sender: No OFD packet to send [20:48:24]OFD Sender: No OFD packet to send [20:48:29]OFD Sender: No OFD packet to send [20:48:34]OFD Sender: No OFD packet to send [20:48:39]OFD Sender: No OFD packet to send [20:48:44]OFD Sender: No OFD packet to send [20:48:49]OFD Sender: No OFD packet to send [20:48:54]OFD Sender: No OFD packet to send [20:48:59]OFD Sender: No OFD packet to send [20:49:04]OFD Sender: No OFD packet to send [20:49:09]OFD Sender: No OFD packet to send [20:49:14]OFD Sender: No OFD packet to send [20:49:19]OFD Sender: No OFD packet to send [20:49:24]OFD Sender: No OFD packet to send [20:49:29]OFD Sender: No OFD packet to send [20:49:34]OFD Sender: No OFD packet to send [20:49:39]OFD Sender: No OFD packet to send [20:49:44]OFD Sender: No OFD packet to send [20:49:49]OFD Sender: No OFD packet to send [20:49:54]OFD Sender: No OFD packet to send [20:49:59]OFD Sender: No OFD packet to send [20:50:04]OFD Sender: No OFD packet to send [20:50:09]OFD Sender: No OFD packet to send [20:50:14]OFD Sender: No OFD packet to send [20:50:19]OFD Sender: No OFD packet to send [20:50:24]OFD Sender: No OFD packet to send [20:50:29]OFD Sender: No OFD packet to send [20:50:34]OFD Sender: No OFD packet to send [20:50:40]OFD Sender: No OFD packet to send [20:50:45]OFD Sender: No OFD packet to send [20:50:50]OFD Sender: No OFD packet to send [20:50:55]OFD Sender: No OFD packet to send [20:51:00]OFD Sender: No OFD packet to send [20:51:05]OFD Sender: No OFD packet to send [20:51:10]OFD Sender: No OFD packet to send [20:51:15]OFD Sender: No OFD packet to send [20:51:20]OFD Sender: No OFD packet to send [20:51:25]OFD Sender: No OFD packet to send [20:51:30]OFD Sender: No OFD packet to send [20:51:35]OFD Sender: No OFD packet to send [20:51:40]OFD Sender: No OFD packet to send [20:51:45]OFD Sender: No OFD packet to send [20:51:50]OFD Sender: No OFD packet to send [20:51:55]OFD Sender: No OFD packet to send [20:52:00]OFD Sender: No OFD packet to send [20:52:05]OFD Sender: No OFD packet to send [20:52:10]OFD Sender: No OFD packet to send [20:52:15]OFD Sender: No OFD packet to send [20:52:15]accept exits with 8 [20:52:15]New connection [20:52:15]New thread 3066928484 created [20:52:15]Thread 3066785124 joined [20:52:15]Waiting for new connection... [20:52:15] Sock 8.Parse request [20:52:15]Sock 8.Check first char [20:52:15]Sock 8.First char is OK [20:52:15]request: POST /json_proto HTTP/1.0 [20:52:15]Method: POST [20:52:15]URL: /json_proto [20:52:15]Method is POST - this is cgi request [20:52:15]url: /json_proto [20:52:15]query_string will be loaded in cgi processing [20:52:15]execute_cgi json_proto POST (null) [20:52:15]execute_cgi path=json_proto method=POST [20:52:15]POST find Content-Length [20:52:15]Host: 172.17.45.8:8080 [20:52:15]Content-Length: 1177 [20:52:15]Content-Type: application/json [20:52:15] [20:52:15]POST finish read [20:52:15]Found Content-Length = 1177 [20:52:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150582", "tax_sys" : 0, "items" : [ { "code": "4700002083266", "name": "\u0412\u043E\u0434\u043A\u0430 \u0410\u0442\u0438\u043B\u043B\u0430 \u0413\u0443\u043D\u043D 0,5\u043B", "price" : 450.00, "quantity" : 1.000, "sum" : 450.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 2.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 675.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:15]execute_script... [20:52: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)150582", "tax_sys" : 0, "items" : [ { "code": "4700002083266", "name": "\u0412\u043E\u0434\u043A\u0430 \u0410\u0442\u0438\u043B\u043B\u0430 \u0413\u0443\u043D\u043D 0,5\u043B", "price" : 450.00, "quantity" : 1.000, "sum" : 450.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 2.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 675.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:15]POST & json_proto [20:52:15]process_json_proto [20:52:15]json parsed OK: [20:52:15]protocol is kg_v1.0 [20:52:15]action value=close_receipt [20:52:15]process_action close_receipt [20:52:15]cmd_close_receipt [20:52:15]MH_GetDate [20:52:15]Write to MH i2c: F0 00 00 FA 24 0D [20:52:15]Write i2c OK [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: F0 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: F0 09 00 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: F0 09 00 FA 24 00 06 01 A8 66 A6 1F 7F 64 D3 [20:52:15]GetLastDocTimeStamp 1722282310 [20:52:15]current date 1722286342 [20:52:15]FM_GetShiftState [20:52:15]SAM_PROTO_GetShiftState [20:52:15]wFMCommunicate request_size=4 [20:52:15]MH_SAM_APDU [20:52:15]CAPDU: 80 13 01 00 [20:52:15]Write to MH i2c: E2 08 00 FB 24 80 13 01 00 00 00 00 00 9C [20:52:15]Write i2c OK [20:52:15]MH_I2C_Read... [20:52:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:15]Read from MH i2c: E2 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: E2 0E 00 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: E2 0E 00 FB 24 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 1D [20:52:15]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [20:52:15]wFMCommunicate OK [20:52:15]SAM_PROTO_GetShiftState done [20:52:15]FM_GetShiftState done [20:52:15]opened in 1722213509 [20:52:15]opened+sec_in_day 1722299909 [20:52:15]quantity*price = 45000 [20:52:15]sum+1 = 45001 [20:52:15]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570057 Напиток Pepsi 0,5л 2.000 * 80.00 = 160.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700040114137 Султан чай 1л. зел лимон 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 675.00 НСП 1% : 5.97 НДС 12% : 71.68 Наличными: 675.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 87 29.07.2024 20:52 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27184 ФПД: 601087121004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T205222&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27184&fm=601087121004&tin=02508201610067®Number=0000000000092663&sum=67500 0 [20:52:16]StoreToDocumentArchive [20:52:16]shift 434 fd 27184 [20:52:16]save to /storage/0434/doc_00027184 [20:52:16]save last doc name /storage/0434/doc_00027184 to /storage/kkm_last_doc_name [20:52:16]save OK [20:52:16]Clear old archive folders... [20:52:16]ProcessDocumentItem done err = 0, tmpTLVsize=492 [20:52:16]tlvbuf is 002328C0 [20:52:16]SAM_PROTO_ClearQueue [20:52:16]wFMCommunicate request_size=4 [20:52:16]MH_SAM_APDU [20:52:16]CAPDU: 80 09 00 00 [20:52:16]Write to MH i2c: E2 08 00 08 25 80 09 00 00 00 00 00 00 9F [20:52:16]Write i2c OK [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: E2 [20:52:16]MH_I2C_Read... [20:52:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:52:16]Read from MH i2c: E2 03 00 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: E2 03 00 08 25 00 90 00 A1 [20:52:16]RAPDU: 90 00 [20:52:16]wFMCommunicate OK [20:52:16]SAM_PROTO_ClearQueue done [20:52:16]KKMCreateOFDPacket [20:52:16]OFDProtocolAddRootSTLVToBuf [20:52:16]FM_MakeSignedData [20:52:16]FM_MakeSignedData [20:52:16]SAM_PROTO_SignData [20:52:16]wFMCommunicate request_size=4 [20:52:16]MH_SAM_APDU [20:52:16]CAPDU: 80 0D 01 02 [20:52:16]Write to MH i2c: E2 08 00 09 25 80 0D 01 02 00 00 00 00 A7 [20:52:16]Write i2c OK [20:52:16]MH_I2C_Read... [20:52:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:52:16]Read from MH i2c: E2 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: E2 03 00 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: E2 03 00 09 25 00 90 00 A2 [20:52:16]RAPDU: 90 00 [20:52:16]wFMCommunicate OK [20:52:16]wFMCommunicate request_size=255 [20:52:16]MH_SAM_APDU [20:52:16]CAPDU: 80 0D 02 02 FA 03 00 EC 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 32 36 36 06 04 26 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D1 82 D0 B8 D0 BB D0 BB D0 B0 20 D0 93 D1 83 D0 BD D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 AF 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 D0 07 00 00 00 00 00 37 04 06 00 40 1F 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 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 [20:52:16]Write to MH i2c: E2 02 01 0A 25 80 0D 02 02 FA 00 03 00 EC 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 32 36 36 06 04 26 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D1 82 D0 B8 D0 BB D0 BB D0 B0 20 D0 93 D1 83 D0 BD D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 AF 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 D0 07 00 00 00 00 00 37 04 06 00 40 1F 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 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 00 00 8E [20:52:16]Write i2c OK [20:52:16]MH_I2C_Read... [20:52:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:17]Read from MH i2c: E2 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: E2 03 00 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: E2 03 00 0A 25 00 90 00 A3 [20:52:17]RAPDU: 90 00 [20:52:17]wFMCommunicate OK [20:52:17]wFMCommunicate request_size=251 [20:52:17]MH_SAM_APDU [20:52:17]CAPDU: 80 0D 02 02 F6 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 AC 07 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 1C 00 00 00 00 07 04 06 00 AC 07 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 06 01 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 30 6A 00 00 35 04 06 00 00 8B F3 95 96 6C [20:52:17]Write to MH i2c: E2 FE 00 0B 25 80 0D 02 02 F6 00 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 AC 07 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 1C 00 00 00 00 07 04 06 00 AC 07 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 06 01 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 30 6A 00 00 35 04 06 00 00 8B F3 95 96 6C 00 00 B5 [20:52:17]Write i2c OK [20:52:17]MH_I2C_Read... [20:52:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:17]Read from MH i2c: E2 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: E2 03 00 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: E2 03 00 0B 25 00 90 00 A4 [20:52:17]RAPDU: 90 00 [20:52:17]wFMCommunicate OK [20:52:17]wFMCommunicate request_size=4 [20:52:17]MH_SAM_APDU [20:52:17]CAPDU: 80 0D 03 02 [20:52:17]Write to MH i2c: E2 08 00 0C 25 80 0D 03 02 00 00 00 00 AC [20:52:17]Write i2c OK [20:52:17]MH_I2C_Read... [20:52:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:52:17]Read from MH i2c: E2 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: E2 0B 00 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: E2 0B 00 0C 25 00 D1 7D 6C FE 38 76 F8 5E 90 00 69 [20:52:17]RAPDU: D1 7D 6C FE 38 76 F8 5E 90 00 [20:52:17]wFMCommunicate OK [20:52:17]SAM_PROTO_SignData done [20:52:17]FM_MakeSignedData done [20:52:17]CreateOFDProtocolMessage [20:52:17]wFMCommunicate request_size=4 [20:52:17]MH_SAM_APDU [20:52:17]CAPDU: 80 11 00 00 [20:52:17]Write to MH i2c: E2 08 00 0D 25 80 11 00 00 00 00 00 00 AC [20:52:17]Write i2c OK [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: E2 [20:52:17]MH_I2C_Read... [20:52:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:17]Read from MH i2c: E2 17 00 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: E2 17 00 0D 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 05 [20:52:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [20:52:17]wFMCommunicate OK [20:52:17]CreateOFDProtocolMessage done [20:52:17]OFDSenderStorePacket 27184 [20:52:17]StoreOFDPacket docnum=27184 [20:52:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 00 02 00 00 D8 28 F8 01 4B 80 5A 03 01 00 03 00 EC 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 32 36 36 06 04 26 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D1 82 D0 B8 D0 BB D0 BB D0 B0 20 D0 93 D1 83 D0 BD D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 AF 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 D0 07 00 00 00 00 00 37 04 06 00 40 1F 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 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 AC 07 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 1C 00 00 00 00 07 04 06 00 AC 07 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 06 01 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 30 6A 00 00 35 04 06 00 00 8B F3 95 96 6C D1 7D 6C FE 38 76 F8 5E [20:52:17]CheckFolder [20:52:17]dirname=/storage/ofd_packets [20:52:17]CheckFolder done [20:52:17]ProducePacketName [20:52:17]name=ofd_packets/00027184 [20:52:17]NVStorageSaveData ofd_packets/00027184 [20:52:17]File name is /storage/ofd_packets/00027184 [20:52:17]Write 542 bytes [20:52:17]NVStorageSaveData done [20:52:17]OFDSenderStorePacket done [20:52:17]KKMCreateOFDPacket done [20:52:17]NVStorageSaveData kkm_last_timestamp [20:52:17]File name is /storage/kkm_last_timestamp [20:52:17]Write 4 bytes [20:52:17]NVStorageSaveData done [20:52:17]ExternCall_PrintAddStr [20:52:17]wPrintStart [20:52:17]Write to MH i2c: 01 00 00 0E 25 33 [20:52:17]Write i2c OK [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: 01 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: 01 07 00 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: 01 07 00 0E 25 00 00 00 00 00 FF 0F 48 [20:52:17]RasterBufferAndPrint [20:52:17]line Счет N : (3)150582 [20:52:17]line ИНН: 02508201610067 [20:52:17]line Контрольно-Кассовый Чек [20:52:17]line ПРОДАЖА [20:52:17]line Товар: 4700002083266 [20:52:17]line Водка Атилла Гунн 0,5л [20:52:17]line 1.000 * 450.00 [20:52:17]line = 450.00 [20:52:17]line НДС 12% НСП 1% [20:52:17]line > о реализуемом товаре [20:52:17]line Товар: 4870001570057 [20:52:17]line Напиток Pepsi 0,5л [20:52:17]line 2.000 * 80.00 [20:52:17]line = 160.00 [20:52:17]line НДС 12% НСП 1% [20:52:17]line > о реализуемом товаре [20:52:17]line Товар: 4700040114137 [20:52:17]line Султан чай 1л. зел лимон [20:52:17]line 1.000 * 65.00 [20:52:17]line = 65.00 [20:52:17]line НДС 12% НСП 1% [20:52:17]line > о реализуемом товаре [20:52:17]line ИТОГО: 675.00 [20:52:17]line НСП 1% : 5.97 [20:52:17]line НДС 12% : 71.68 [20:52:17]line Наличными: 675.00 [20:52:17]line Безнал.: 0.00 [20:52:17]line Место: АЗС № 134 "Партнер Нефть" [20:52:17]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [20:52:17]line СНО: Общий режим [20:52:17]line Чек 87 29.07.2024 20:52 [20:52:17]line Смена: 434 ФФД: 1.0 [20:52:17]line ЗНМ: 0300000043 [20:52:17]line РНМ: 0000000000092663 [20:52:17]line Версия ККМ: 001 [20:52:17]line ФМ: 0000000000874937 [20:52:17]line ФД: 27184 [20:52:17]line ФПД: 601087121004 [20:52:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T205222&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27184&fm=601087121004&tin=02508201610067®Number=0000000000092663&sum=67500 [20:52:17]line 0 [20:52:17]written 0, free lines is 4095 [20:52:17]OFD Sender: Processing packet 27184 [packets to send 9, broken 8] [20:52:17]ProducePacketName [20:52:17]name=ofd_packets/00027184 [20:52:17]OFD Sender: To server: pG, [20:52:17]CommunicateWithHost lk.salyk.kg:30040 [20:52:17]ConnectInit lk.salyk.kg [20:52:17]Connected sock=10 [20:52:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 00 02 00 00 D8 28 F8 01 4B 80 5A 03 01 00 03 00 EC 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 32 36 36 06 04 26 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D1 82 D0 B8 D0 BB D0 BB D0 B0 20 D0 93 D1 83 D0 BD D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 AF 00 00 00 00 13 04 06 00 C8 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 D0 07 00 00 00 00 00 37 04 06 00 40 1F 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 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 AC 07 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 1C 00 00 00 00 07 04 06 00 AC 07 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 06 01 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 30 6A 00 00 35 04 06 00 00 8B F3 95 96 6C D1 7D 6C FE 38 76 F8 5E [20:52:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 7D 06 47 00 7F 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 34 39 33 37 10 04 04 00 30 6A 00 00 F4 03 04 00 56 A7 A7 66 B6 04 01 00 00 EE 95 F6 BF 2B 46 75 72 [20:52:17]CommunicateWithHost err = 0 [20:52:17]CheckOFDResponse [20:52:17]1017 (14) - 77093643461234 [20:52:17]1041 (16) - 0000000000874937 [20:52:17]1040 (4) - 27184 [20:52:17]1012 (4) - 29.07.2024 14:29 [20:52:17]1206 (1) - 0 [20:52:17]OFD Sender: Remove packet 27184 [20:52:17]ProducePacketName [20:52:17]name=ofd_packets/00027184 [20:52:17]NVStorageDeleteData [20:52:17]Write to MH i2c: 01 00 00 41 25 66 [20:52:17]Write i2c OK [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: 01 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: 01 07 00 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: 01 07 00 41 25 00 00 00 00 00 55 0C CE [20:52:17]RasterBufferAndPrint [20:52:17]line [20:52:17]line [20:52:17]line [20:52:17]line [20:52:17]line [20:52:17]written 0, free lines is 3165 [20:52:17]MH_Cut [20:52:17]Write to MH i2c: D1 01 00 48 25 01 3F [20:52:17]Write i2c OK [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: D1 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: D1 01 00 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: D1 01 00 48 25 00 3E [20:52:17]Write to MH i2c: 01 00 00 49 25 6E [20:52:17]Write i2c OK [20:52:17]MH_I2C_Read... [20:52:18]OFD Sender: No OFD packet to send [20:52:18]*** Cut start [20:52:18]*** Partial cut [20:52:18]*** CUTSNS_PIN = 1 [20:52:18]*** CUTSNS_PIN = 0 [20:52:19]*** Brake cut motor [20:52:19]Read from MH i2c: 01 [20:52:19]MH_I2C_Read... [20:52:19]*** Stop cut motor [20:52:19]*** Cut end [20:52:19]Read from MH i2c: 01 07 00 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: 01 07 00 49 25 00 00 00 00 00 FF 0F 83 [20:52:19]process_action close_receipt done [20:52:19]requested_data is exist [20:52:19]produce_requested_data [20:52:19]requested_item fm.sn is exist - process it [20:52:19]wFMCommunicate request_size=4 [20:52:19]MH_SAM_APDU [20:52:19]CAPDU: 80 11 00 00 [20:52:19]Write to MH i2c: E2 08 00 4A 25 80 11 00 00 00 00 00 00 E9 [20:52:19]Write i2c OK [20:52:19]MH_I2C_Read... [20:52:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:19]Read from MH i2c: E2 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: E2 17 00 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: E2 17 00 4A 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 42 [20:52:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [20:52:19]wFMCommunicate OK [20:52:19]requested_item fd.num is exist - process it [20:52:19]SAM_PROTO_GetFieldsCounters [20:52:19]wFMCommunicate request_size=4 [20:52:19]MH_SAM_APDU [20:52:19]CAPDU: 80 13 00 00 [20:52:19]Write to MH i2c: E2 08 00 4B 25 80 13 00 00 00 00 00 00 EC [20:52:19]Write i2c OK [20:52:19]MH_I2C_Read... [20:52:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:52:19]Read from MH i2c: E2 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: E2 62 00 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: E2 62 00 4B 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 30 6A 00 00 0E 04 04 00 B2 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 66 [20:52:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 30 6A 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:52:19]wFMCommunicate OK [20:52:19]SAM_PROTO_GetFieldsCounters done [20:52:19]requested_item shift.num is exist - process it [20:52:19]requested_item shift.opened is exist - process it [20:52:19]req_shift_opened [20:52:19]FM_GetShiftState [20:52:19]SAM_PROTO_GetShiftState [20:52:19]wFMCommunicate request_size=4 [20:52:19]MH_SAM_APDU [20:52:19]CAPDU: 80 13 01 00 [20:52:19]Write to MH i2c: E2 08 00 4C 25 80 13 01 00 00 00 00 00 EE [20:52:19]Write i2c OK [20:52:19]MH_I2C_Read... [20:52:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:19]Read from MH i2c: E2 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: E2 0E 00 [20:52:19]MH_I2C_Read... [20:52:19]Read from MH i2c: E2 0E 00 4C 25 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 6F [20:52:19]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [20:52:19]wFMCommunicate OK [20:52:19]SAM_PROTO_GetShiftState done [20:52:19]FM_GetShiftState done [20:52:19]req_shift_opened done [20:52:19]requested_item shift.open_date is exist - process it [20:52:19]req_shift_open_date [20:52:19]req_shift_open_date done [20:52:19]produce_requested_data done [20:52:19]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27184,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [20:52:19]process_action_free close_receipt [20:52:19]json_value_free [20:52:19]json_value_free done [20:52:19]process_json_proto returns [20:52:19]Send response to host [20:52:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27184,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [20:52:19]free response buf [20:52:19]execute_script done [20:52:19]execute_script returns [20:52:19]free content buf [20:52:19]Sock 8.Close socket [20:52:19]Sock 8.Thread stoped [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:08]OFD Sender: No OFD packet to send [20:54:13]OFD Sender: No OFD packet to send [20:54:18]OFD Sender: No OFD packet to send [20:54:23]OFD Sender: No OFD packet to send [20:54:28]OFD Sender: No OFD packet to send [20:54:33]OFD Sender: No OFD packet to send [20:54:38]OFD Sender: No OFD packet to send [20:54:43]OFD Sender: No OFD packet to send [20:54:48]OFD Sender: No OFD packet to send [20:54:53]OFD Sender: No OFD packet to send [20:54:58]OFD Sender: No OFD packet to send [20:55:03]OFD Sender: No OFD packet to send [20:55:08]OFD Sender: No OFD packet to send [20:55:13]OFD Sender: No OFD packet to send [20:55:18]OFD Sender: No OFD packet to send [20:55:23]OFD Sender: No OFD packet to send [20:55:28]OFD Sender: No OFD packet to send [20:55:33]OFD Sender: No OFD packet to send [20:55:38]OFD Sender: No OFD packet to send [20:55:43]OFD Sender: No OFD packet to send [20:55:48]OFD Sender: No OFD packet to send [20:55:53]OFD Sender: No OFD packet to send [20:55:58]OFD Sender: No OFD packet to send [20:56:03]OFD Sender: No OFD packet to send [20:56:08]OFD Sender: No OFD packet to send [20:56:13]OFD Sender: No OFD packet to send [20:56:18]OFD Sender: No OFD packet to send [20:56:23]OFD Sender: No OFD packet to send [20:56:28]OFD Sender: No OFD packet to send [20:56:33]OFD Sender: No OFD packet to send [20:56:38]OFD Sender: No OFD packet to send [20:56:43]OFD Sender: No OFD packet to send [20:56:48]OFD Sender: No OFD packet to send [20:56:53]OFD Sender: No OFD packet to send [20:56:58]OFD Sender: No OFD packet to send [20:57:03]OFD Sender: No OFD packet to send [20:57:08]OFD Sender: No OFD packet to send [20:57:13]OFD Sender: No OFD packet to send [20:57:18]OFD Sender: No OFD packet to send [20:57:23]OFD Sender: No OFD packet to send [20:57:28]OFD Sender: No OFD packet to send [20:57:33]OFD Sender: No OFD packet to send [20:57:38]OFD Sender: No OFD packet to send [20:57:43]OFD Sender: No OFD packet to send [20:57:48]OFD Sender: No OFD packet to send [20:57:53]OFD Sender: No OFD packet to send [20:57:58]OFD Sender: No OFD packet to send [20:58:03]OFD Sender: No OFD packet to send [20:58:08]OFD Sender: No OFD packet to send [20:58:13]OFD Sender: No OFD packet to send [20:58:18]OFD Sender: No OFD packet to send [20:58:23]OFD Sender: No OFD packet to send [20:58:28]OFD Sender: No OFD packet to send [20:58:33]OFD Sender: No OFD packet to send [20:58:38]OFD Sender: No OFD packet to send [20:58:43]OFD Sender: No OFD packet to send [20:58:48]OFD Sender: No OFD packet to send [20:58:53]OFD Sender: No OFD packet to send [20:58:58]OFD Sender: No OFD packet to send [20:59:03]OFD Sender: No OFD packet to send [20:59:08]OFD Sender: No OFD packet to send [20:59:13]OFD Sender: No OFD packet to send [20:59:18]OFD Sender: No OFD packet to send [20:59:23]OFD Sender: No OFD packet to send [20:59:28]OFD Sender: No OFD packet to send [20:59:33]OFD Sender: No OFD packet to send [20:59:38]OFD Sender: No OFD packet to send [20:59:43]OFD Sender: No OFD packet to send [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:58]OFD Sender: No OFD packet to send [21:00:03]OFD Sender: No OFD packet to send [21:00:08]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:18]OFD Sender: No OFD packet to send [21:00:23]OFD Sender: No OFD packet to send [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:23]OFD Sender: No OFD packet to send [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:38]OFD Sender: No OFD packet to send [21:01:43]OFD Sender: No OFD packet to send [21:01:48]OFD Sender: No OFD packet to send [21:01:53]OFD Sender: No OFD packet to send [21:01:58]OFD Sender: No OFD packet to send [21:02:03]OFD Sender: No OFD packet to send [21:02:08]OFD Sender: No OFD packet to send [21:02:13]OFD Sender: No OFD packet to send [21:02:18]OFD Sender: No OFD packet to send [21:02:23]OFD Sender: No OFD packet to send [21:02:28]OFD Sender: No OFD packet to send [21:02:33]OFD Sender: No OFD packet to send [21:02:38]OFD Sender: No OFD packet to send [21:02:43]OFD Sender: No OFD packet to send [21:02:48]OFD Sender: No OFD packet to send [21:02:53]OFD Sender: No OFD packet to send [21:02:58]OFD Sender: No OFD packet to send [21:03:03]OFD Sender: No OFD packet to send [21:03:08]OFD Sender: No OFD packet to send [21:03:13]OFD Sender: No OFD packet to send [21:03:18]OFD Sender: No OFD packet to send [21:03:23]OFD Sender: No OFD packet to send [21:03:28]OFD Sender: No OFD packet to send [21:03:33]OFD Sender: No OFD packet to send [21:03:38]OFD Sender: No OFD packet to send [21:03:43]OFD Sender: No OFD packet to send [21:03:48]OFD Sender: No OFD packet to send [21:03:53]OFD Sender: No OFD packet to send [21:03:58]OFD Sender: No OFD packet to send [21:04:03]OFD Sender: No OFD packet to send [21:04:08]OFD Sender: No OFD packet to send [21:04:13]OFD Sender: No OFD packet to send [21:04:18]OFD Sender: No OFD packet to send [21:04:23]OFD Sender: No OFD packet to send [21:04:28]OFD Sender: No OFD packet to send [21:04:33]OFD Sender: No OFD packet to send [21:04:38]OFD Sender: No OFD packet to send [21:04:43]OFD Sender: No OFD packet to send [21:04:48]OFD Sender: No OFD packet to send [21:04:53]OFD Sender: No OFD packet to send [21:04:58]OFD Sender: No OFD packet to send [21:05:03]OFD Sender: No OFD packet to send [21:05:08]OFD Sender: No OFD packet to send [21:05:13]OFD Sender: No OFD packet to send [21:05:18]OFD Sender: No OFD packet to send [21:05:23]OFD Sender: No OFD packet to send [21:05:28]OFD Sender: No OFD packet to send [21:05:33]OFD Sender: No OFD packet to send [21:05:38]OFD Sender: No OFD packet to send [21:05:43]OFD Sender: No OFD packet to send [21:05:48]OFD Sender: No OFD packet to send [21:05:53]OFD Sender: No OFD packet to send [21:05:58]OFD Sender: No OFD packet to send [21:06:03]OFD Sender: No OFD packet to send [21:06:08]OFD Sender: No OFD packet to send [21:06:13]OFD Sender: No OFD packet to send [21:06:18]OFD Sender: No OFD packet to send [21:06:23]OFD Sender: No OFD packet to send [21:06:28]OFD Sender: No OFD packet to send [21:06:33]OFD Sender: No OFD packet to send [21:06:38]OFD Sender: No OFD packet to send [21:06:43]OFD Sender: No OFD packet to send [21:06:48]OFD Sender: No OFD packet to send [21:06:53]OFD Sender: No OFD packet to send [21:06: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]OFD Sender: No OFD packet to send [21:10:04]OFD Sender: No OFD packet to send [21:10:09]OFD Sender: No OFD packet to send [21:10:14]OFD Sender: No OFD packet to send [21:10:19]OFD Sender: No OFD packet to send [21:10:24]OFD Sender: No OFD packet to send [21:10:29]OFD Sender: No OFD packet to send [21:10:34]OFD Sender: No OFD packet to send [21:10:39]OFD Sender: No OFD packet to send [21:10:44]OFD Sender: No OFD packet to send [21:10:49]OFD Sender: No OFD packet to send [21:10:54]OFD Sender: No OFD packet to send [21:10:59]OFD Sender: No OFD packet to send [21:11:04]OFD Sender: No OFD packet to send [21:11:09]OFD Sender: No OFD packet to send [21:11:14]OFD Sender: No OFD packet to send [21:11:19]OFD Sender: No OFD packet to send [21:11:24]OFD Sender: No OFD packet to send [21:11:29]OFD Sender: No OFD packet to send [21:11:34]OFD Sender: No OFD packet to send [21:11:39]OFD Sender: No OFD packet to send [21:11:44]OFD Sender: No OFD packet to send [21:11:49]OFD Sender: No OFD packet to send [21:11:54]OFD Sender: No OFD packet to send [21:11:59]OFD Sender: No OFD packet to send [21:12:04]OFD Sender: No OFD packet to send [21:12:09]OFD Sender: No OFD packet to send [21:12:14]OFD Sender: No OFD packet to send [21:12:19]OFD Sender: No OFD packet to send [21:12:24]OFD Sender: No OFD packet to send [21:12:29]OFD Sender: No OFD packet to send [21:12:34]OFD Sender: No OFD packet to send [21:12:39]OFD Sender: No OFD packet to send [21:12:44]OFD Sender: No OFD packet to send [21:12:49]OFD Sender: No OFD packet to send [21:12:54]OFD Sender: No OFD packet to send [21:12:59]OFD Sender: No OFD packet to send [21:13:04]OFD Sender: No OFD packet to send [21:13:09]OFD Sender: No OFD packet to send [21:13:14]OFD Sender: No OFD packet to send [21:13:19]OFD Sender: No OFD packet to send [21:13:24]OFD Sender: No OFD packet to send [21:13:29]OFD Sender: No OFD packet to send [21:13:34]OFD Sender: No OFD packet to send [21:13:39]OFD Sender: No OFD packet to send [21:13:44]OFD Sender: No OFD packet to send [21:13:49]OFD Sender: No OFD packet to send [21:13:54]OFD Sender: No OFD packet to send [21:13:59]OFD Sender: No OFD packet to send [21:14:04]OFD Sender: No OFD packet to send [21:14:09]OFD Sender: No OFD packet to send [21:14:14]OFD Sender: No OFD packet to send [21:14:19]OFD Sender: No OFD packet to send [21:14:24]OFD Sender: No OFD packet to send [21:14:29]OFD Sender: No OFD packet to send [21:14:34]OFD Sender: No OFD packet to send [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14:49]OFD Sender: No OFD packet to send [21:14:54]OFD Sender: No OFD packet to send [21:14:59]OFD Sender: No OFD packet to send [21:15:04]OFD Sender: No OFD packet to send [21:15:09]OFD Sender: No OFD packet to send [21:15:14]OFD Sender: No OFD packet to send [21:15:19]OFD Sender: No OFD packet to send [21:15:24]OFD Sender: No OFD packet to send [21:15:29]OFD Sender: No OFD packet to send [21:15:34]OFD Sender: No OFD packet to send [21:15:39]OFD Sender: No OFD packet to send [21:15:44]OFD Sender: No OFD packet to send [21:15:49]OFD Sender: No OFD packet to send [21:15:54]OFD Sender: No OFD packet to send [21:15:59]OFD Sender: No OFD packet to send [21:16:04]OFD Sender: No OFD packet to send [21:16:09]OFD Sender: No OFD packet to send [21:16:14]OFD Sender: No OFD packet to send [21:16:19]OFD Sender: No OFD packet to send [21:16:24]OFD Sender: No OFD packet to send [21:16:29]OFD Sender: No OFD packet to send [21:16:34]OFD Sender: No OFD packet to send [21:16:39]OFD Sender: No OFD packet to send [21:16:44]OFD Sender: No OFD packet to send [21:16:49]OFD Sender: No OFD packet to send [21:16:54]OFD Sender: No OFD packet to send [21:16:59]OFD Sender: No OFD packet to send [21:17:04]OFD Sender: No OFD packet to send [21:17:09]OFD Sender: No OFD packet to send [21:17:14]OFD Sender: No OFD packet to send [21:17:19]OFD Sender: No OFD packet to send [21:17:24]OFD Sender: No OFD packet to send [21:17:29]OFD Sender: No OFD packet to send [21:17:34]OFD Sender: No OFD packet to send [21:17:39]OFD Sender: No OFD packet to send [21:17:44]OFD Sender: No OFD packet to send [21:17:49]OFD Sender: No OFD packet to send [21:17:54]OFD Sender: No OFD packet to send [21:17:59]OFD Sender: No OFD packet to send [21:18:04]OFD Sender: No OFD packet to send [21:18:09]OFD Sender: No OFD packet to send [21:18:14]OFD Sender: No OFD packet to send [21:18:19]OFD Sender: No OFD packet to send [21:18:24]OFD Sender: No OFD packet to send [21:18:29]OFD Sender: No OFD packet to send [21:18:34]OFD Sender: No OFD packet to send [21:18:39]OFD Sender: No OFD packet to send [21:18:44]OFD Sender: No OFD packet to send [21:18:49]OFD Sender: No OFD packet to send [21:18:54]OFD Sender: No OFD packet to send [21:18:59]OFD Sender: No OFD packet to send [21:19:04]OFD Sender: No OFD packet to send [21:19:09]OFD Sender: No OFD packet to send [21:19:14]OFD Sender: No OFD packet to send [21:19:19]OFD Sender: No OFD packet to send [21:19:24]OFD Sender: No OFD packet to send [21:19:29]OFD Sender: No OFD packet to send [21:19:34]OFD Sender: No OFD packet to send [21:19:39]OFD Sender: No OFD packet to send [21:19:44]OFD Sender: No OFD packet to send [21:19:49]OFD Sender: No OFD packet to send [21:19:54]OFD Sender: No OFD packet to send [21:19:59]OFD Sender: No OFD packet to send [21:20:04]OFD Sender: No OFD packet to send [21:20:09]OFD Sender: No OFD packet to send [21:20:14]OFD Sender: No OFD packet to send [21:20:19]OFD Sender: No OFD packet to send [21:20:24]OFD Sender: No OFD packet to send [21:20:29]OFD Sender: No OFD packet to send [21:20:34]OFD Sender: No OFD packet to send [21:20:39]OFD Sender: No OFD packet to send [21:20:44]OFD Sender: No OFD packet to send [21:20:49]OFD Sender: No OFD packet to send [21:20:54]OFD Sender: No OFD packet to send [21:20:59]OFD Sender: No OFD packet to send [21:21:04]OFD Sender: No OFD packet to send [21:21:09]OFD Sender: No OFD packet to send [21:21:14]OFD Sender: No OFD packet to send [21:21:19]OFD Sender: No OFD packet to send [21:21:24]OFD Sender: No OFD packet to send [21:21:29]OFD Sender: No OFD packet to send [21:21:34]OFD Sender: No OFD packet to send [21:21:39]OFD Sender: No OFD packet to send [21:21:44]OFD Sender: No OFD packet to send [21:21:49]OFD Sender: No OFD packet to send [21:21:54]OFD Sender: No OFD packet to send [21:21:59]OFD Sender: No OFD packet to send [21:22:04]OFD Sender: No OFD packet to send [21:22:09]OFD Sender: No OFD packet to send [21:22:14]OFD Sender: No OFD packet to send [21:22:19]OFD Sender: No OFD packet to send [21:22:24]OFD Sender: No OFD packet to send [21:22:29]OFD Sender: No OFD packet to send [21:22:34]OFD Sender: No OFD packet to send [21:22:39]OFD Sender: No OFD packet to send [21:22:44]OFD Sender: No OFD packet to send [21:22:49]OFD Sender: No OFD packet to send [21:22:54]OFD Sender: No OFD packet to send [21:22:59]OFD Sender: No OFD packet to send [21:23:04]OFD Sender: No OFD packet to send [21:23:09]OFD Sender: No OFD packet to send [21:23:14]OFD Sender: No OFD packet to send [21:23:19]OFD Sender: No OFD packet to send [21:23:24]OFD Sender: No OFD packet to send [21:23:29]OFD Sender: No OFD packet to send [21:23:34]OFD Sender: No OFD packet to send [21:23:39]OFD Sender: No OFD packet to send [21:23:44]OFD Sender: No OFD packet to send [21:23:49]OFD Sender: No OFD packet to send [21:23:54]OFD Sender: No OFD packet to send [21:23:59]OFD Sender: No OFD packet to send [21:24:04]OFD Sender: No OFD packet to send [21:24:09]OFD Sender: No OFD packet to send [21:24:14]OFD Sender: No OFD packet to send [21:24:19]OFD Sender: No OFD packet to send [21:24:24]OFD Sender: No OFD packet to send [21:24:29]OFD Sender: No OFD packet to send [21:24:34]OFD Sender: No OFD packet to send [21:24:39]OFD Sender: No OFD packet to send [21:24:44]OFD Sender: No OFD packet to send [21:24:49]OFD Sender: No OFD packet to send [21:24:54]OFD Sender: No OFD packet to send [21:24:59]OFD Sender: No OFD packet to send [21:25:04]OFD Sender: No OFD packet to send [21:25:09]OFD Sender: No OFD packet to send [21:25:14]OFD Sender: No OFD packet to send [21:25:19]OFD Sender: No OFD packet to send [21:25:24]OFD Sender: No OFD packet to send [21:25:29]OFD Sender: No OFD packet to send [21:25:34]OFD Sender: No OFD packet to send [21:25:39]OFD Sender: No OFD packet to send [21:25:44]OFD Sender: No OFD packet to send [21:25:49]OFD Sender: No OFD packet to send [21:25:54]OFD Sender: No OFD packet to send [21:25:59]OFD Sender: No OFD packet to send [21:26:04]OFD Sender: No OFD packet to send [21:26:09]OFD Sender: No OFD packet to send [21:26:14]OFD Sender: No OFD packet to send [21:26:19]OFD Sender: No OFD packet to send [21:26:24]OFD Sender: No OFD packet to send [21:26:29]OFD Sender: No OFD packet to send [21:26:34]OFD Sender: No OFD packet to send [21:26:39]OFD Sender: No OFD packet to send [21:26:44]OFD Sender: No OFD packet to send [21:26:49]OFD Sender: No OFD packet to send [21:26:54]OFD Sender: No OFD packet to send [21:26:59]OFD Sender: No OFD packet to send [21:27:04]OFD Sender: No OFD packet to send [21:27:09]OFD Sender: No OFD packet to send [21:27:14]OFD Sender: No OFD packet to send [21:27:19]OFD Sender: No OFD packet to send [21:27:24]OFD Sender: No OFD packet to send [21:27:29]OFD Sender: No OFD packet to send [21:27:34]OFD Sender: No OFD packet to send [21:27:39]OFD Sender: No OFD packet to send [21:27:44]OFD Sender: No OFD packet to send [21:27:49]OFD Sender: No OFD packet to send [21:27:54]OFD Sender: No OFD packet to send [21:27:59]OFD Sender: No OFD packet to send [21:28:04]OFD Sender: No OFD packet to send [21:28:09]OFD Sender: No OFD packet to send [21:28:15]OFD Sender: No OFD packet to send [21:28:20]OFD Sender: No OFD packet to send [21:28:25]OFD Sender: No OFD packet to send [21:28:30]OFD Sender: No OFD packet to send [21:28:35]OFD Sender: No OFD packet to send [21:28:40]OFD Sender: No OFD packet to send [21:28:45]OFD Sender: No OFD packet to send [21:28:50]OFD Sender: No OFD packet to send [21:28:55]OFD Sender: No OFD packet to send [21:29:00]OFD Sender: No OFD packet to send [21:29:05]OFD Sender: No OFD packet to send [21:29:10]OFD Sender: No OFD packet to send [21:29:15]OFD Sender: No OFD packet to send [21:29:20]OFD Sender: No OFD packet to send [21:29:25]OFD Sender: No OFD packet to send [21:29:30]OFD Sender: No OFD packet to send [21:29:35]OFD Sender: No OFD packet to send [21:29:40]OFD Sender: No OFD packet to send [21:29:45]OFD Sender: No OFD packet to send [21:29:50]OFD Sender: No OFD packet to send [21:29:55]OFD Sender: No OFD packet to send [21:30:00]OFD Sender: No OFD packet to send [21:30:05]OFD Sender: No OFD packet to send [21:30:10]OFD Sender: No OFD packet to send [21:30:15]OFD Sender: No OFD packet to send [21:30:20]OFD Sender: No OFD packet to send [21:30:25]OFD Sender: No OFD packet to send [21:30:30]OFD Sender: No OFD packet to send [21:30:35]OFD Sender: No OFD packet to send [21:30:40]OFD Sender: No OFD packet to send [21:30:45]OFD Sender: No OFD packet to send [21:30:50]OFD Sender: No OFD packet to send [21:30:55]OFD Sender: No OFD packet to send [21:31:00]OFD Sender: No OFD packet to send [21:31:05]OFD Sender: No OFD packet to send [21:31:10]OFD Sender: No OFD packet to send [21:31:15]OFD Sender: No OFD packet to send [21:31:20]OFD Sender: No OFD packet to send [21:31:25]OFD Sender: No OFD packet to send [21:31:30]OFD Sender: No OFD packet to send [21:31:35]OFD Sender: No OFD packet to send [21:31:40]OFD Sender: No OFD packet to send [21:31:45]OFD Sender: No OFD packet to send [21:31:50]OFD Sender: No OFD packet to send [21:31:55]OFD Sender: No OFD packet to send [21:32:00]OFD Sender: No OFD packet to send [21:32:05]OFD Sender: No OFD packet to send [21:32:10]OFD Sender: No OFD packet to send [21:32:15]OFD Sender: No OFD packet to send [21:32:20]OFD Sender: No OFD packet to send [21:32:25]OFD Sender: No OFD packet to send [21:32:30]OFD Sender: No OFD packet to send [21:32:35]OFD Sender: No OFD packet to send [21:32:40]OFD Sender: No OFD packet to send [21:32:45]OFD Sender: No OFD packet to send [21:32:50]OFD Sender: No OFD packet to send [21:32:55]OFD Sender: No OFD packet to send [21:33:00]OFD Sender: No OFD packet to send [21:33:05]OFD Sender: No OFD packet to send [21:33:10]OFD Sender: No OFD packet to send [21:33:15]OFD Sender: No OFD packet to send [21:33:20]OFD Sender: No OFD packet to send [21:33:25]OFD Sender: No OFD packet to send [21:33:30]OFD Sender: No OFD packet to send [21:33:35]OFD Sender: No OFD packet to send [21:33:40]OFD Sender: No OFD packet to send [21:33:45]OFD Sender: No OFD packet to send [21:33:50]OFD Sender: No OFD packet to send [21:33:55]OFD Sender: No OFD packet to send [21:34:00]OFD Sender: No OFD packet to send [21:34:05]OFD Sender: No OFD packet to send [21:34:10]OFD Sender: No OFD packet to send [21:34:15]OFD Sender: No OFD packet to send [21:34:20]OFD Sender: No OFD packet to send [21:34:25]OFD Sender: No OFD packet to send [21:34:30]OFD Sender: No OFD packet to send [21:34:35]OFD Sender: No OFD packet to send [21:34:40]OFD Sender: No OFD packet to send [21:34:45]OFD Sender: No OFD packet to send [21:34:50]OFD Sender: No OFD packet to send [21:34:55]OFD Sender: No OFD packet to send [21:35:00]OFD Sender: No OFD packet to send [21:35:05]OFD Sender: No OFD packet to send [21:35:10]OFD Sender: No OFD packet to send [21:35:15]OFD Sender: No OFD packet to send [21:35:20]OFD Sender: No OFD packet to send [21:35:25]OFD Sender: No OFD packet to send [21:35:30]OFD Sender: No OFD packet to send [21:35:35]OFD Sender: No OFD packet to send [21:35:40]OFD Sender: No OFD packet to send [21:35:45]OFD Sender: No OFD packet to send [21:35:50]OFD Sender: No OFD packet to send [21:35:55]OFD Sender: No OFD packet to send [21:36:00]OFD Sender: No OFD packet to send [21:36:05]OFD Sender: No OFD packet to send [21:36:10]OFD Sender: No OFD packet to send [21:36:15]OFD Sender: No OFD packet to send [21:36:20]OFD Sender: No OFD packet to send [21:36:25]OFD Sender: No OFD packet to send [21:36:30]OFD Sender: No OFD packet to send [21:36:35]OFD Sender: No OFD packet to send [21:36:40]OFD Sender: No OFD packet to send [21:36:45]OFD Sender: No OFD packet to send [21:36:50]OFD Sender: No OFD packet to send [21:36:55]OFD Sender: No OFD packet to send [21:37:00]OFD Sender: No OFD packet to send [21:37:05]OFD Sender: No OFD packet to send [21:37:10]OFD Sender: No OFD packet to send [21:37:15]OFD Sender: No OFD packet to send [21:37:20]OFD Sender: No OFD packet to send [21:37:25]OFD Sender: No OFD packet to send [21:37:30]OFD Sender: No OFD packet to send [21:37:35]OFD Sender: No OFD packet to send [21:37:40]OFD Sender: No OFD packet to send [21:37:45]OFD Sender: No OFD packet to send [21:37:50]OFD Sender: No OFD packet to send [21:37:55]OFD Sender: No OFD packet to send [21:38:00]OFD Sender: No OFD packet to send [21:38:05]OFD Sender: No OFD packet to send [21:38:10]OFD Sender: No OFD packet to send [21:38:15]OFD Sender: No OFD packet to send [21:38:20]OFD Sender: No OFD packet to send [21:38:25]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38:35]OFD Sender: No OFD packet to send [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:50]OFD Sender: No OFD packet to send [21:39:55]OFD Sender: No OFD packet to send [21:40:00]OFD Sender: No OFD packet to send [21:40:05]OFD Sender: No OFD packet to send [21:40:10]OFD Sender: No OFD packet to send [21:40:15]OFD Sender: No OFD packet to send [21:40:20]OFD Sender: No OFD packet to send [21:40:25]OFD Sender: No OFD packet to send [21:40:30]OFD Sender: No OFD packet to send [21:40:35]OFD Sender: No OFD packet to send [21:40:40]OFD Sender: No OFD packet to send [21:40:45]OFD Sender: No OFD packet to send [21:40:50]OFD Sender: No OFD packet to send [21:40:55]OFD Sender: No OFD packet to send [21:41:00]OFD Sender: No OFD packet to send [21:41:05]OFD Sender: No OFD packet to send [21:41:10]OFD Sender: No OFD packet to send [21:41:15]OFD Sender: No OFD packet to send [21:41:20]OFD Sender: No OFD packet to send [21:41:25]OFD Sender: No OFD packet to send [21:41:30]OFD Sender: No OFD packet to send [21:41:35]OFD Sender: No OFD packet to send [21:41:40]OFD Sender: No OFD packet to send [21:41:45]OFD Sender: No OFD packet to send [21:41:50]OFD Sender: No OFD packet to send [21:41:55]OFD Sender: No OFD packet to send [21:42:00]OFD Sender: No OFD packet to send [21:42:05]OFD Sender: No OFD packet to send [21:42:10]OFD Sender: No OFD packet to send [21:42:15]OFD Sender: No OFD packet to send [21:42:20]OFD Sender: No OFD packet to send [21:42:25]OFD Sender: No OFD packet to send [21:42:30]OFD Sender: No OFD packet to send [21:42:35]OFD Sender: No OFD packet to send [21:42:40]OFD Sender: No OFD packet to send [21:42:45]OFD Sender: No OFD packet to send [21:42:50]OFD Sender: No OFD packet to send [21:42:55]OFD Sender: No OFD packet to send [21:43:00]OFD Sender: No OFD packet to send [21:43:05]OFD Sender: No OFD packet to send [21:43:10]OFD Sender: No OFD packet to send [21:43:15]OFD Sender: No OFD packet to send [21:43:20]OFD Sender: No OFD packet to send [21:43:25]OFD Sender: No OFD packet to send [21:43:30]OFD Sender: No OFD packet to send [21:43:35]OFD Sender: No OFD packet to send [21:43:40]OFD Sender: No OFD packet to send [21:43:45]OFD Sender: No OFD packet to send [21:43:50]OFD Sender: No OFD packet to send [21:43:55]OFD Sender: No OFD packet to send [21:44:00]OFD Sender: No OFD packet to send [21:44:05]OFD Sender: No OFD packet to send [21:44:10]OFD Sender: No OFD packet to send [21:44:15]OFD Sender: No OFD packet to send [21:44:20]OFD Sender: No OFD packet to send [21:44:25]OFD Sender: No OFD packet to send [21:44:30]OFD Sender: No OFD packet to send [21:44:35]OFD Sender: No OFD packet to send [21:44:40]OFD Sender: No OFD packet to send [21:44:45]OFD Sender: No OFD packet to send [21:44:50]OFD Sender: No OFD packet to send [21:44:55]OFD Sender: No OFD packet to send [21:45:00]OFD Sender: No OFD packet to send [21:45:05]OFD Sender: No OFD packet to send [21:45:10]OFD Sender: No OFD packet to send [21:45:15]OFD Sender: No OFD packet to send [21:45:20]OFD Sender: No OFD packet to send [21:45:25]OFD Sender: No OFD packet to send [21:45:30]OFD Sender: No OFD packet to send [21:45:35]OFD Sender: No OFD packet to send [21:45:40]OFD Sender: No OFD packet to send [21:45:45]OFD Sender: No OFD packet to send [21:45:50]OFD Sender: No OFD packet to send [21:45:55]OFD Sender: No OFD packet to send [21:46:00]OFD Sender: No OFD packet to send [21:46:05]OFD Sender: No OFD packet to send [21:46:10]OFD Sender: No OFD packet to send [21:46:15]OFD Sender: No OFD packet to send [21:46:20]OFD Sender: No OFD packet to send [21:46:25]OFD Sender: No OFD packet to send [21:46:30]OFD Sender: No OFD packet to send [21:46:35]OFD Sender: No OFD packet to send [21:46:40]OFD Sender: No OFD packet to send [21:46:45]OFD Sender: No OFD packet to send [21:46:50]OFD Sender: No OFD packet to send [21:46:55]OFD Sender: No OFD packet to send [21:47:00]OFD Sender: No OFD packet to send [21:47:05]OFD Sender: No OFD packet to send [21:47:10]OFD Sender: No OFD packet to send [21:47:15]OFD Sender: No OFD packet to send [21:47:20]OFD Sender: No OFD packet to send [21:47:25]OFD Sender: No OFD packet to send [21:47:30]OFD Sender: No OFD packet to send [21:47:35]OFD Sender: No OFD packet to send [21:47:40]OFD Sender: No OFD packet to send [21:47:45]OFD Sender: No OFD packet to send [21:47:50]OFD Sender: No OFD packet to send [21:47:55]OFD Sender: No OFD packet to send [21:48:00]OFD Sender: No OFD packet to send [21:48:05]OFD Sender: No OFD packet to send [21:48:10]OFD Sender: No OFD packet to send [21:48:15]OFD Sender: No OFD packet to send [21:48:20]OFD Sender: No OFD packet to send [21:48:25]OFD Sender: No OFD packet to send [21:48:30]OFD Sender: No OFD packet to send [21:48:35]OFD Sender: No OFD packet to send [21:48:40]OFD Sender: No OFD packet to send [21:48:45]OFD Sender: No OFD packet to send [21:48:50]OFD Sender: No OFD packet to send [21:48:55]OFD Sender: No OFD packet to send [21:49:00]OFD Sender: No OFD packet to send [21:49:05]OFD Sender: No OFD packet to send [21:49:10]OFD Sender: No OFD packet to send [21:49:16]OFD Sender: No OFD packet to send [21:49:21]OFD Sender: No OFD packet to send [21:49:26]OFD Sender: No OFD packet to send [21:49:31]OFD Sender: No OFD packet to send [21:49:36]OFD Sender: No OFD packet to send [21:49:41]OFD Sender: No OFD packet to send [21:49:46]OFD Sender: No OFD packet to send [21:49:51]OFD Sender: No OFD packet to send [21:49:56]OFD Sender: No OFD packet to send [21:50:01]OFD Sender: No OFD packet to send [21:50:06]OFD Sender: No OFD packet to send [21:50:11]OFD Sender: No OFD packet to send [21:50:16]OFD Sender: No OFD packet to send [21:50:21]OFD Sender: No OFD packet to send [21:50:26]OFD Sender: No OFD packet to send [21:50:31]OFD Sender: No OFD packet to send [21:50:36]OFD Sender: No OFD packet to send [21:50:41]OFD Sender: No OFD packet to send [21:50:46]OFD Sender: No OFD packet to send [21:50:51]OFD Sender: No OFD packet to send [21:50:56]OFD Sender: No OFD packet to send [21:51:01]OFD Sender: No OFD packet to send [21:51:06]OFD Sender: No OFD packet to send [21:51:11]OFD Sender: No OFD packet to send [21:51:16]OFD Sender: No OFD packet to send [21:51:21]OFD Sender: No OFD packet to send [21:51:26]OFD Sender: No OFD packet to send [21:51:31]OFD Sender: No OFD packet to send [21:51:36]OFD Sender: No OFD packet to send [21:51:41]OFD Sender: No OFD packet to send [21:51:46]OFD Sender: No OFD packet to send [21:51:51]OFD Sender: No OFD packet to send [21:51:56]OFD Sender: No OFD packet to send [21:52:01]OFD Sender: No OFD packet to send [21:52:06]OFD Sender: No OFD packet to send [21:52:11]OFD Sender: No OFD packet to send [21:52:16]OFD Sender: No OFD packet to send [21:52:21]OFD Sender: No OFD packet to send [21:52:26]OFD Sender: No OFD packet to send [21:52:31]OFD Sender: No OFD packet to send [21:52:36]OFD Sender: No OFD packet to send [21:52:41]OFD Sender: No OFD packet to send [21:52:46]OFD Sender: No OFD packet to send [21:52:51]OFD Sender: No OFD packet to send [21:52:56]OFD Sender: No OFD packet to send [21:53:01]OFD Sender: No OFD packet to send [21:53:06]OFD Sender: No OFD packet to send [21:53:11]OFD Sender: No OFD packet to send [21:53:16]OFD Sender: No OFD packet to send [21:53:21]OFD Sender: No OFD packet to send [21:53:26]OFD Sender: No OFD packet to send [21:53:31]OFD Sender: No OFD packet to send [21:53:36]OFD Sender: No OFD packet to send [21:53:41]OFD Sender: No OFD packet to send [21:53:46]OFD Sender: No OFD packet to send [21:53:51]OFD Sender: No OFD packet to send [21:53:56]OFD Sender: No OFD packet to send [21:54:01]OFD Sender: No OFD packet to send [21:54:06]OFD Sender: No OFD packet to send [21:54:11]OFD Sender: No OFD packet to send [21:54:16]OFD Sender: No OFD packet to send [21:54:21]OFD Sender: No OFD packet to send [21:54:26]OFD Sender: No OFD packet to send [21:54:31]OFD Sender: No OFD packet to send [21:54:36]OFD Sender: No OFD packet to send [21:54:41]OFD Sender: No OFD packet to send [21:54:46]OFD Sender: No OFD packet to send [21:54:51]OFD Sender: No OFD packet to send [21:54:56]OFD Sender: No OFD packet to send [21:55:01]OFD Sender: No OFD packet to send [21:55:06]OFD Sender: No OFD packet to send [21:55:11]OFD Sender: No OFD packet to send [21:55:16]OFD Sender: No OFD packet to send [21:55:21]OFD Sender: No OFD packet to send [21:55:26]OFD Sender: No OFD packet to send [21:55:31]OFD Sender: No OFD packet to send [21:55:36]OFD Sender: No OFD packet to send [21:55:41]OFD Sender: No OFD packet to send [21:55:46]OFD Sender: No OFD packet to send [21:55:51]OFD Sender: No OFD packet to send [21:55:56]OFD Sender: No OFD packet to send [21:56:01]OFD Sender: No OFD packet to send [21:56:06]OFD Sender: No OFD packet to send [21:56:11]OFD Sender: No OFD packet to send [21:56:16]OFD Sender: No OFD packet to send [21:56:21]OFD Sender: No OFD packet to send [21:56:26]OFD Sender: No OFD packet to send [21:56:31]OFD Sender: No OFD packet to send [21:56:36]OFD Sender: No OFD packet to send [21:56:41]OFD Sender: No OFD packet to send [21:56:46]OFD Sender: No OFD packet to send [21:56:51]OFD Sender: No OFD packet to send [21:56:56]OFD Sender: No OFD packet to send [21:57:01]OFD Sender: No OFD packet to send [21:57:06]OFD Sender: No OFD packet to send [21:57:11]OFD Sender: No OFD packet to send [21:57:16]OFD Sender: No OFD packet to send [21:57:21]OFD Sender: No OFD packet to send [21:57:26]OFD Sender: No OFD packet to send [21:57:31]OFD Sender: No OFD packet to send [21:57:36]OFD Sender: No OFD packet to send [21:57:41]OFD Sender: No OFD packet to send [21:57:46]OFD Sender: No OFD packet to send [21:57:51]OFD Sender: No OFD packet to send [21:57:56]OFD Sender: No OFD packet to send [21:58:01]OFD Sender: No OFD packet to send [21:58:06]OFD Sender: No OFD packet to send [21:58:11]OFD Sender: No OFD packet to send [21:58:16]OFD Sender: No OFD packet to send [21:58:21]OFD Sender: No OFD packet to send [21:58:26]OFD Sender: No OFD packet to send [21:58:31]OFD Sender: No OFD packet to send [21:58:36]OFD Sender: No OFD packet to send [21:58:41]OFD Sender: No OFD packet to send [21:58:46]OFD Sender: No OFD packet to send [21:58:51]OFD Sender: No OFD packet to send [21:58:56]OFD Sender: No OFD packet to send [21:59:01]OFD Sender: No OFD packet to send [21:59:06]OFD Sender: No OFD packet to send [21:59:11]OFD Sender: No OFD packet to send [21:59:16]OFD Sender: No OFD packet to send [21:59:21]OFD Sender: No OFD packet to send [21:59:26]OFD Sender: No OFD packet to send [21:59:31]OFD Sender: No OFD packet to send [21:59:36]OFD Sender: No OFD packet to send [21:59:41]OFD Sender: No OFD packet to send [21:59:46]OFD Sender: No OFD packet to send [21:59:51]OFD Sender: No OFD packet to send [21:59:56]OFD Sender: No OFD packet to send [22:00:01]OFD Sender: No OFD packet to send [22:00:06]OFD Sender: No OFD packet to send [22:00:11]OFD Sender: No OFD packet to send [22:00:16]OFD Sender: No OFD packet to send [22:00:21]OFD Sender: No OFD packet to send [22:00:26]OFD Sender: No OFD packet to send [22:00:31]OFD Sender: No OFD packet to send [22:00:36]OFD Sender: No OFD packet to send [22:00:41]OFD Sender: No OFD packet to send [22:00:46]OFD Sender: No OFD packet to send [22:00:51]OFD Sender: No OFD packet to send [22:00:56]OFD Sender: No OFD packet to send [22:01:01]OFD Sender: No OFD packet to send [22:01:06]OFD Sender: No OFD packet to send [22:01:11]OFD Sender: No OFD packet to send [22:01:16]OFD Sender: No OFD packet to send [22:01:21]OFD Sender: No OFD packet to send [22:01:26]OFD Sender: No OFD packet to send [22:01:31]OFD Sender: No OFD packet to send [22:01:36]OFD Sender: No OFD packet to send [22:01:41]OFD Sender: No OFD packet to send [22:01:46]OFD Sender: No OFD packet to send [22:01:51]OFD Sender: No OFD packet to send [22:01:56]OFD Sender: No OFD packet to send [22:02:01]OFD Sender: No OFD packet to send [22:02:06]OFD Sender: No OFD packet to send [22:02:11]OFD Sender: No OFD packet to send [22:02:16]OFD Sender: No OFD packet to send [22:02:21]OFD Sender: No OFD packet to send [22:02:26]OFD Sender: No OFD packet to send [22:02:31]OFD Sender: No OFD packet to send [22:02:36]OFD Sender: No OFD packet to send [22:02:41]OFD Sender: No OFD packet to send [22:02:46]OFD Sender: No OFD packet to send [22:02:51]OFD Sender: No OFD packet to send [22:02:56]OFD Sender: No OFD packet to send [22:03:01]OFD Sender: No OFD packet to send [22:03: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:08]accept exits with 9 [22:07:08]New connection [22:07:08]New thread 3066785124 created [22:07:08]Thread 3066928484 joined [22:07:08]Waiting for new connection... [22:07:08] Sock 9.Parse request [22:07:08]Sock 9.Check first char [22:07:08]Sock 9.First char is OK [22:07:08]request: POST /json_proto HTTP/1.0 [22:07:08]Method: POST [22:07:08]URL: /json_proto [22:07:08]Method is POST - this is cgi request [22:07:08]url: /json_proto [22:07:08]query_string will be loaded in cgi processing [22:07:08]execute_cgi json_proto POST (null) [22:07:08]execute_cgi path=json_proto method=POST [22:07:08]POST find Content-Length [22:07:08]Host: 172.17.45.8:8080 [22:07:08]Content-Length: 872 [22:07:08]Content-Type: application/json [22:07:08] [22:07:08]POST finish read [22:07:08]Found Content-Length = 872 [22:07:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150583", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\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" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:08]execute_script... [22:07: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)150583", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\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" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:08]POST & json_proto [22:07:08]process_json_proto [22:07:08]json parsed OK: [22:07:08]protocol is kg_v1.0 [22:07:08]action value=close_receipt [22:07:08]process_action close_receipt [22:07:08]cmd_close_receipt [22:07:08]MH_GetDate [22:07:08]Write to MH i2c: F0 00 00 4D 25 61 [22:07:08]Write i2c OK [22:07:08]MH_I2C_Read... [22:07:08]Read from MH i2c: F0 [22:07:08]MH_I2C_Read... [22:07:08]Read from MH i2c: F0 09 00 [22:07:08]MH_I2C_Read... [22:07:08]Read from MH i2c: F0 09 00 4D 25 00 94 12 A8 66 A6 1F 7F 64 C6 [22:07:08]GetLastDocTimeStamp 1722286342 [22:07:08]current date 1722290836 [22:07:08]FM_GetShiftState [22:07:08]SAM_PROTO_GetShiftState [22:07:08]wFMCommunicate request_size=4 [22:07:08]MH_SAM_APDU [22:07:08]CAPDU: 80 13 01 00 [22:07:08]Write to MH i2c: E2 08 00 4E 25 80 13 01 00 00 00 00 00 F0 [22:07:08]Write i2c OK [22:07:08]MH_I2C_Read... [22:07:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:08]Read from MH i2c: E2 [22:07:08]MH_I2C_Read... [22:07:08]Read from MH i2c: E2 0E 00 [22:07:08]MH_I2C_Read... [22:07:08]Read from MH i2c: E2 0E 00 4E 25 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 71 [22:07:08]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [22:07:08]wFMCommunicate OK [22:07:08]SAM_PROTO_GetShiftState done [22:07:08]FM_GetShiftState done [22:07:08]opened in 1722213509 [22:07:08]opened+sec_in_day 1722299909 [22:07:08]quantity*price = 15000 [22:07:08]sum+1 = 15001 [22:07:08]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 88 29.07.2024 22:07 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27185 ФПД: 165727035853728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T220716&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27185&fm=165727035853728&tin=02508201610067®Number=0000000000092663&sum=20000 0 [22:07:10]StoreToDocumentArchive [22:07:10]shift 434 fd 27185 [22:07:10]save to /storage/0434/doc_00027185 [22:07:10]save last doc name /storage/0434/doc_00027185 to /storage/kkm_last_doc_name [22:07:10]save OK [22:07:10]Clear old archive folders... [22:07:10]ProcessDocumentItem done err = 0, tmpTLVsize=376 [22:07:10]tlvbuf is B6F4F7F0 [22:07:10]SAM_PROTO_ClearQueue [22:07:10]wFMCommunicate request_size=4 [22:07:10]MH_SAM_APDU [22:07:10]CAPDU: 80 09 00 00 [22:07:10]Write to MH i2c: E2 08 00 5B 25 80 09 00 00 00 00 00 00 F2 [22:07:10]Write i2c OK [22:07:10]MH_I2C_Read... [22:07:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:07:10]Read from MH i2c: E2 [22:07:10]MH_I2C_Read... [22:07:10]Read from MH i2c: E2 03 00 [22:07:10]MH_I2C_Read... [22:07:10]Read from MH i2c: E2 03 00 5B 25 00 90 00 F4 [22:07:10]RAPDU: 90 00 [22:07:10]wFMCommunicate OK [22:07:10]SAM_PROTO_ClearQueue done [22:07:10]KKMCreateOFDPacket [22:07:10]OFDProtocolAddRootSTLVToBuf [22:07:10]FM_MakeSignedData [22:07:10]FM_MakeSignedData [22:07:10]SAM_PROTO_SignData [22:07:10]wFMCommunicate request_size=4 [22:07:10]MH_SAM_APDU [22:07:10]CAPDU: 80 0D 01 02 [22:07:10]Write to MH i2c: E2 08 00 5C 25 80 0D 01 02 00 00 00 00 FA [22:07:10]Write i2c OK [22:07:10]MH_I2C_Read... [22:07:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:07:10]Read from MH i2c: E2 [22:07:10]MH_I2C_Read... [22:07:10]Read from MH i2c: E2 03 00 [22:07:10]MH_I2C_Read... [22:07:10]Read from MH i2c: E2 03 00 5C 25 00 90 00 F5 [22:07:10]RAPDU: 90 00 [22:07:10]wFMCommunicate OK [22:07:10]wFMCommunicate request_size=255 [22:07:10]MH_SAM_APDU [22:07:10]CAPDU: 80 0D 02 02 FA 03 00 78 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 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 42 72 6F 6E 7A 65 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 [22:07:10]Write to MH i2c: E2 02 01 5D 25 80 0D 02 02 FA 00 03 00 78 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 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 42 72 6F 6E 7A 65 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 00 00 38 [22:07:10]Write i2c OK [22:07:10]MH_I2C_Read... [22:07:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:10]Read from MH i2c: E2 [22:07:10]MH_I2C_Read... [22:07:10]Read from MH i2c: E2 03 00 [22:07:10]MH_I2C_Read... [22:07:10]Read from MH i2c: E2 03 00 5D 25 00 90 00 F6 [22:07:10]RAPDU: 90 00 [22:07:10]wFMCommunicate OK [22:07:10]wFMCommunicate request_size=135 [22:07:10]MH_SAM_APDU [22:07:10]CAPDU: 80 0D 02 02 82 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 94 12 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 31 6A 00 00 35 04 06 00 96 BA 55 1A 0B A0 [22:07:10]Write to MH i2c: E2 8A 00 5E 25 80 0D 02 02 82 00 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 94 12 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 31 6A 00 00 35 04 06 00 96 BA 55 1A 0B A0 00 00 CA [22:07:10]Write i2c OK [22:07:10]MH_I2C_Read... [22:07:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:10]Read from MH i2c: E2 [22:07:10]MH_I2C_Read... [22:07:10]Read from MH i2c: E2 03 00 [22:07:10]MH_I2C_Read... [22:07:10]Read from MH i2c: E2 03 00 5E 25 00 90 00 F7 [22:07:10]RAPDU: 90 00 [22:07:10]wFMCommunicate OK [22:07:10]wFMCommunicate request_size=4 [22:07:10]MH_SAM_APDU [22:07:10]CAPDU: 80 0D 03 02 [22:07:10]Write to MH i2c: E2 08 00 5F 25 80 0D 03 02 00 00 00 00 FF [22:07:10]Write i2c OK [22:07:10]MH_I2C_Read... [22:07:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:07:10]Read from MH i2c: E2 [22:07:10]MH_I2C_Read... [22:07:10]Read from MH i2c: E2 0B 00 [22:07:10]MH_I2C_Read... [22:07:10]Read from MH i2c: E2 0B 00 5F 25 00 D6 56 C7 88 C8 22 C8 2A 90 00 57 [22:07:10]RAPDU: D6 56 C7 88 C8 22 C8 2A 90 00 [22:07:10]wFMCommunicate OK [22:07:10]SAM_PROTO_SignData done [22:07:10]FM_MakeSignedData done [22:07:10]CreateOFDProtocolMessage [22:07:10]wFMCommunicate request_size=4 [22:07:10]MH_SAM_APDU [22:07:10]CAPDU: 80 11 00 00 [22:07:10]Write to MH i2c: E2 08 00 60 25 80 11 00 00 00 00 00 00 FF [22:07:10]Write i2c OK [22:07:10]MH_I2C_Read... [22:07:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:10]Read from MH i2c: E2 [22:07:10]MH_I2C_Read... [22:07:10]Read from MH i2c: E2 17 00 [22:07:10]MH_I2C_Read... [22:07:10]Read from MH i2c: E2 17 00 60 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 58 [22:07:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [22:07:10]wFMCommunicate OK [22:07:10]CreateOFDProtocolMessage done [22:07:10]OFDSenderStorePacket 27185 [22:07:10]StoreOFDPacket docnum=27185 [22:07:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 8C 01 00 00 F2 F9 84 01 E3 80 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 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 42 72 6F 6E 7A 65 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 94 12 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 31 6A 00 00 35 04 06 00 96 BA 55 1A 0B A0 D6 56 C7 88 C8 22 C8 2A [22:07:10]CheckFolder [22:07:10]dirname=/storage/ofd_packets [22:07:10]CheckFolder done [22:07:10]ProducePacketName [22:07:10]name=ofd_packets/00027185 [22:07:10]NVStorageSaveData ofd_packets/00027185 [22:07:10]File name is /storage/ofd_packets/00027185 [22:07:10]Write 426 bytes [22:07:10]NVStorageSaveData done [22:07:10]OFDSenderStorePacket done [22:07:10]KKMCreateOFDPacket done [22:07:10]NVStorageSaveData kkm_last_timestamp [22:07:10]File name is /storage/kkm_last_timestamp [22:07:10]Write 4 bytes [22:07:10]NVStorageSaveData done [22:07:10]ExternCall_PrintAddStr [22:07:10]wPrintStart [22:07:10]Write to MH i2c: 01 00 00 61 25 86 [22:07:10]Write i2c OK [22:07:10]MH_I2C_Read... [22:07:10]Read from MH i2c: 01 [22:07:10]MH_I2C_Read... [22:07:10]Read from MH i2c: 01 07 00 [22:07:10]MH_I2C_Read... [22:07:10]Read from MH i2c: 01 07 00 61 25 00 00 00 00 00 FF 0F 9B [22:07:10]RasterBufferAndPrint [22:07:10]line Счет N : (3)150583 [22:07:10]line ИНН: 02508201610067 [22:07:10]line Контрольно-Кассовый Чек [22:07:10]line ПРОДАЖА [22:07:10]line Товар: 46230607 [22:07:10]line Сигареты Richmond Bronze Edition [22:07:10]line 1.000 * 150.00 [22:07:10]line = 150.00 [22:07:10]line НДС 12% НСП 1% [22:07:10]line > о реализуемом товаре [22:07:10]line Товар: 4700000160358 [22:07:10]line Вода Легенда 1л [22:07:10]line 1.000 * 50.00 [22:07:10]line = 50.00 [22:07:10]line НДС 12% НСП 1% [22:07:10]line > о реализуемом товаре [22:07:10]line ИТОГО: 200.00 [22:07:10]line НСП 1% : 1.77 [22:07:10]line НДС 12% : 21.24 [22:07:10]line Наличными: 200.00 [22:07:10]line Безнал.: 0.00 [22:07:11]line Место: АЗС № 134 "Партнер Нефть" [22:07:11]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:07:11]line СНО: Общий режим [22:07:11]line Чек 88 29.07.2024 22:07 [22:07:11]line Смена: 434 ФФД: 1.0 [22:07:11]line ЗНМ: 0300000043 [22:07:11]line РНМ: 0000000000092663 [22:07:11]line Версия ККМ: 001 [22:07:11]line ФМ: 0000000000874937 [22:07:11]line ФД: 27185 [22:07:11]line ФПД: 165727035853728 [22:07:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T220716&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27185&fm=165727035853728&tin=02508201610067®Number=0000000000092663&sum=20000 [22:07:11]line 0 [22:07:11]OFD Sender: Processing packet 27185 [packets to send 9, broken 8] [22:07:11]ProducePacketName [22:07:11]name=ofd_packets/00027185 [22:07:11]OFD Sender: To server: pG, [22:07:11]CommunicateWithHost lk.salyk.kg:30040 [22:07:11]ConnectInit lk.salyk.kg [22:07:11]written 0, free lines is 4095 [22:07:11]Connected sock=10 [22:07:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 8C 01 00 00 F2 F9 84 01 E3 80 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 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 42 72 6F 6E 7A 65 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 94 12 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 31 6A 00 00 35 04 06 00 96 BA 55 1A 0B A0 D6 56 C7 88 C8 22 C8 2A [22:07:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 88 7D 47 00 AC 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 34 39 33 37 10 04 04 00 31 6A 00 00 F4 03 04 00 E4 B8 A7 66 B6 04 01 00 00 5C 62 79 C9 82 DA A4 8D [22:07:11]CommunicateWithHost err = 0 [22:07:11]CheckOFDResponse [22:07:11]1017 (14) - 77093643461234 [22:07:11]1041 (16) - 0000000000874937 [22:07:11]1040 (4) - 27185 [22:07:11]1012 (4) - 29.07.2024 15:44 [22:07:11]1206 (1) - 0 [22:07:11]OFD Sender: Remove packet 27185 [22:07:11]ProducePacketName [22:07:11]name=ofd_packets/00027185 [22:07:11]NVStorageDeleteData [22:07:11]Write to MH i2c: 01 00 00 8F 25 B4 [22:07:11]Write i2c OK [22:07:11]MH_I2C_Read... [22:07:11]Read from MH i2c: 01 [22:07:11]MH_I2C_Read... [22:07:11]Read from MH i2c: 01 07 00 [22:07:11]MH_I2C_Read... [22:07:11]Read from MH i2c: 01 07 00 8F 25 00 00 00 00 00 87 0C 4E [22:07:11]RasterBufferAndPrint [22:07:11]line [22:07:11]line [22:07:11]line [22:07:11]line [22:07:11]line [22:07:11]written 0, free lines is 3213 [22:07:11]MH_Cut [22:07:11]Write to MH i2c: D1 01 00 96 25 01 8D [22:07:11]Write i2c OK [22:07:11]MH_I2C_Read... [22:07:11]Read from MH i2c: D1 [22:07:11]MH_I2C_Read... [22:07:11]Read from MH i2c: D1 01 00 [22:07:11]MH_I2C_Read... [22:07:11]Read from MH i2c: D1 01 00 96 25 00 8C [22:07:11]Write to MH i2c: 01 00 00 97 25 BC [22:07:11]Write i2c OK [22:07:11]MH_I2C_Read... [22:07:11]OFD Sender: No OFD packet to send [22:07:12]*** Cut start [22:07:12]*** Partial cut [22:07:12]*** CUTSNS_PIN = 1 [22:07:12]*** CUTSNS_PIN = 0 [22:07:12]*** Brake cut motor [22:07:12]Read from MH i2c: 01 [22:07:12]MH_I2C_Read... [22:07:12]*** Stop cut motor [22:07:12]*** Cut end [22:07:12]Read from MH i2c: 01 07 00 [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: 01 07 00 97 25 00 00 00 00 00 FF 0F D1 [22:07:12]process_action close_receipt done [22:07:12]requested_data is exist [22:07:12]produce_requested_data [22:07:12]requested_item fm.sn is exist - process it [22:07:12]wFMCommunicate request_size=4 [22:07:12]MH_SAM_APDU [22:07:12]CAPDU: 80 11 00 00 [22:07:12]Write to MH i2c: E2 08 00 98 25 80 11 00 00 00 00 00 00 37 [22:07:12]Write i2c OK [22:07:12]MH_I2C_Read... [22:07:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:13]Read from MH i2c: E2 [22:07:13]MH_I2C_Read... [22:07:13]Read from MH i2c: E2 17 00 [22:07:13]MH_I2C_Read... [22:07:13]Read from MH i2c: E2 17 00 98 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 90 [22:07:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [22:07:13]wFMCommunicate OK [22:07:13]requested_item fd.num is exist - process it [22:07:13]SAM_PROTO_GetFieldsCounters [22:07:13]wFMCommunicate request_size=4 [22:07:13]MH_SAM_APDU [22:07:13]CAPDU: 80 13 00 00 [22:07:13]Write to MH i2c: E2 08 00 99 25 80 13 00 00 00 00 00 00 3A [22:07:13]Write i2c OK [22:07:13]MH_I2C_Read... [22:07:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:07:13]Read from MH i2c: E2 [22:07:13]MH_I2C_Read... [22:07:13]Read from MH i2c: E2 62 00 [22:07:13]MH_I2C_Read... [22:07:13]Read from MH i2c: E2 62 00 99 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 31 6A 00 00 0E 04 04 00 B2 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 B8 [22:07:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 31 6A 00 00 0E 04 04 00 B2 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 [22:07:13]wFMCommunicate OK [22:07:13]SAM_PROTO_GetFieldsCounters done [22:07:13]requested_item shift.num is exist - process it [22:07:13]requested_item shift.opened is exist - process it [22:07:13]req_shift_opened [22:07:13]FM_GetShiftState [22:07:13]SAM_PROTO_GetShiftState [22:07:13]wFMCommunicate request_size=4 [22:07:13]MH_SAM_APDU [22:07:13]CAPDU: 80 13 01 00 [22:07:13]Write to MH i2c: E2 08 00 9A 25 80 13 01 00 00 00 00 00 3C [22:07:13]Write i2c OK [22:07:13]MH_I2C_Read... [22:07:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:13]Read from MH i2c: E2 [22:07:13]MH_I2C_Read... [22:07:13]Read from MH i2c: E2 0E 00 [22:07:13]MH_I2C_Read... [22:07:13]Read from MH i2c: E2 0E 00 9A 25 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 BD [22:07:13]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [22:07:13]wFMCommunicate OK [22:07:13]SAM_PROTO_GetShiftState done [22:07:13]FM_GetShiftState done [22:07:13]req_shift_opened done [22:07:13]requested_item shift.open_date is exist - process it [22:07:13]req_shift_open_date [22:07:13]req_shift_open_date done [22:07:13]produce_requested_data done [22:07:13]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27185,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [22:07:13]process_action_free close_receipt [22:07:13]json_value_free [22:07:13]json_value_free done [22:07:13]process_json_proto returns [22:07:13]Send response to host [22:07:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27185,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [22:07:13]free response buf [22:07:13]execute_script done [22:07:13]execute_script returns [22:07:13]free content buf [22:07:13]Sock 9.Close socket [22:07:13]Sock 9.Thread stoped [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:36]OFD Sender: No OFD packet to send [22:08:41]OFD Sender: No OFD packet to send [22:08:46]OFD Sender: No OFD packet to send [22:08:51]OFD Sender: No OFD packet to send [22:08:56]OFD Sender: No OFD packet to send [22:09:01]OFD Sender: No OFD packet to send [22:09:06]OFD Sender: No OFD packet to send [22:09:11]OFD Sender: No OFD packet to send [22:09:16]OFD Sender: No OFD packet to send [22:09:21]OFD Sender: No OFD packet to send [22:09:26]OFD Sender: No OFD packet to send [22:09:31]OFD Sender: No OFD packet to send [22:09:36]OFD Sender: No OFD packet to send [22:09:41]OFD Sender: No OFD packet to send [22:09:46]OFD Sender: No OFD packet to send [22:09:51]OFD Sender: No OFD packet to send [22:09:56]OFD Sender: No OFD packet to send [22:10:01]OFD Sender: No OFD packet to send [22:10:06]OFD Sender: No OFD packet to send [22:10:11]OFD Sender: No OFD packet to send [22:10:16]OFD Sender: No OFD packet to send [22:10:21]OFD Sender: No OFD packet to send [22:10:26]OFD Sender: No OFD packet to send [22:10:31]OFD Sender: No OFD packet to send [22:10:36]OFD Sender: No OFD packet to send [22:10:41]OFD Sender: No OFD packet to send [22:10:46]OFD Sender: No OFD packet to send [22:10:51]OFD Sender: No OFD packet to send [22:10:56]OFD Sender: No OFD packet to send [22:11:02]OFD Sender: No OFD packet to send [22:11:07]OFD Sender: No OFD packet to send [22:11:12]OFD Sender: No OFD packet to send [22:11:17]OFD Sender: No OFD packet to send [22:11:22]OFD Sender: No OFD packet to send [22:11:27]OFD Sender: No OFD packet to send [22:11:32]OFD Sender: No OFD packet to send [22:11:37]OFD Sender: No OFD packet to send [22:11:42]OFD Sender: No OFD packet to send [22:11:47]OFD Sender: No OFD packet to send [22:11:52]OFD Sender: No OFD packet to send [22:11:57]OFD Sender: No OFD packet to send [22:12:02]OFD Sender: No OFD packet to send [22:12:07]OFD Sender: No OFD packet to send [22:12:12]OFD Sender: No OFD packet to send [22:12:17]OFD Sender: No OFD packet to send [22:12:22]OFD Sender: No OFD packet to send [22:12:27]OFD Sender: No OFD packet to send [22:12:32]OFD Sender: No OFD packet to send [22:12:37]OFD Sender: No OFD packet to send [22:12:42]OFD Sender: No OFD packet to send [22:12:47]OFD Sender: No OFD packet to send [22:12:52]OFD Sender: No OFD packet to send [22:12:57]OFD Sender: No OFD packet to send [22:13:02]OFD Sender: No OFD packet to send [22:13:07]OFD Sender: No OFD packet to send [22:13:12]OFD Sender: No OFD packet to send [22:13:17]OFD Sender: No OFD packet to send [22:13:22]OFD Sender: No OFD packet to send [22:13:27]OFD Sender: No OFD packet to send [22:13:32]OFD Sender: No OFD packet to send [22:13:37]OFD Sender: No OFD packet to send [22:13:42]OFD Sender: No OFD packet to send [22:13:47]OFD Sender: No OFD packet to send [22:13:52]OFD Sender: No OFD packet to send [22:13:57]OFD Sender: No OFD packet to send [22:14:02]OFD Sender: No OFD packet to send [22:14:07]OFD Sender: No OFD packet to send [22:14:12]OFD Sender: No OFD packet to send [22:14:17]OFD Sender: No OFD packet to send [22:14:22]OFD Sender: No OFD packet to send [22:14:27]OFD Sender: No OFD packet to send [22:14:32]OFD Sender: No OFD packet to send [22:14:37]OFD Sender: No OFD packet to send [22:14:42]OFD Sender: No OFD packet to send [22:14:47]OFD Sender: No OFD packet to send [22:14:52]OFD Sender: No OFD packet to send [22:14:57]OFD Sender: No OFD packet to send [22:15:02]OFD Sender: No OFD packet to send [22:15:07]OFD Sender: No OFD packet to send [22:15:12]OFD Sender: No OFD packet to send [22:15:17]OFD Sender: No OFD packet to send [22:15:22]OFD Sender: No OFD packet to send [22:15:27]OFD Sender: No OFD packet to send [22:15:32]OFD Sender: No OFD packet to send [22:15:37]OFD Sender: No OFD packet to send [22:15:42]OFD Sender: No OFD packet to send [22:15:47]OFD Sender: No OFD packet to send [22:15:52]OFD Sender: No OFD packet to send [22:15:57]OFD Sender: No OFD packet to send [22:16:02]OFD Sender: No OFD packet to send [22:16:07]OFD Sender: No OFD packet to send [22:16:12]OFD Sender: No OFD packet to send [22:16:17]OFD Sender: No OFD packet to send [22:16:22]OFD Sender: No OFD packet to send [22:16:27]OFD Sender: No OFD packet to send [22:16:32]OFD Sender: No OFD packet to send [22:16:37]OFD Sender: No OFD packet to send [22:16:42]OFD Sender: No OFD packet to send [22:16:47]OFD Sender: No OFD packet to send [22:16:52]OFD Sender: No OFD packet to send [22:16:57]OFD Sender: No OFD packet to send [22:17:02]OFD Sender: No OFD packet to send [22:17:07]OFD Sender: No OFD packet to send [22:17:12]OFD Sender: No OFD packet to send [22:17:17]OFD Sender: No OFD packet to send [22:17:22]OFD Sender: No OFD packet to send [22:17:27]OFD Sender: No OFD packet to send [22:17:32]OFD Sender: No OFD packet to send [22:17:37]OFD Sender: No OFD packet to send [22:17:42]OFD Sender: No OFD packet to send [22:17:47]OFD Sender: No OFD packet to send [22:17:52]OFD Sender: No OFD packet to send [22:17:57]OFD Sender: No OFD packet to send [22:18:02]OFD Sender: No OFD packet to send [22:18:07]OFD Sender: No OFD packet to send [22:18:12]OFD Sender: No OFD packet to send [22:18:17]OFD Sender: No OFD packet to send [22:18:22]OFD Sender: No OFD packet to send [22:18:27]OFD Sender: No OFD packet to send [22:18:32]OFD Sender: No OFD packet to send [22:18:37]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:10]accept exits with 8 [22:26:10]New connection [22:26:10]New thread 3066928484 created [22:26:10]Thread 3066785124 joined [22:26:10]Waiting for new connection... [22:26:10] Sock 8.Parse request [22:26:10]Sock 8.Check first char [22:26:10]Sock 8.First char is OK [22:26:10]request: POST /json_proto HTTP/1.0 [22:26:10]Method: POST [22:26:10]URL: /json_proto [22:26:10]Method is POST - this is cgi request [22:26:10]url: /json_proto [22:26:10]query_string will be loaded in cgi processing [22:26:10]execute_cgi json_proto POST (null) [22:26:10]execute_cgi path=json_proto method=POST [22:26:10]POST find Content-Length [22:26:10]Host: 172.17.45.8:8080 [22:26:10]Content-Length: 1466 [22:26:10]Content-Type: application/json [22:26:10] [22:26:10]POST finish read [22:26:10]Found Content-Length = 1466 [22:26:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150584", "tax_sys" : 0, "items" : [ { "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 }]} ,{ "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": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.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" : 350.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:10]execute_script... [22:26: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)150584", "tax_sys" : 0, "items" : [ { "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 }]} ,{ "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": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.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" : 350.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:26:10]POST & json_proto [22:26:10]process_json_proto [22:26:10]json parsed OK: [22:26:10]protocol is kg_v1.0 [22:26:10]action value=close_receipt [22:26:10]process_action close_receipt [22:26:10]cmd_close_receipt [22:26:10]MH_GetDate [22:26:10]Write to MH i2c: F0 00 00 9B 25 AF [22:26:10]Write i2c OK [22:26:10]MH_I2C_Read... [22:26:10]Read from MH i2c: F0 [22:26:10]MH_I2C_Read... [22:26:10]Read from MH i2c: F0 09 00 [22:26:10]MH_I2C_Read... [22:26:10]Read from MH i2c: F0 09 00 9B 25 00 09 17 A8 66 A6 1F 7F 64 8E [22:26:10]GetLastDocTimeStamp 1722290836 [22:26:10]current date 1722291977 [22:26:10]FM_GetShiftState [22:26:10]SAM_PROTO_GetShiftState [22:26:10]wFMCommunicate request_size=4 [22:26:10]MH_SAM_APDU [22:26:10]CAPDU: 80 13 01 00 [22:26:10]Write to MH i2c: E2 08 00 9C 25 80 13 01 00 00 00 00 00 3E [22:26:10]Write i2c OK [22:26:10]MH_I2C_Read... [22:26:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:10]Read from MH i2c: E2 [22:26:10]MH_I2C_Read... [22:26:10]Read from MH i2c: E2 0E 00 [22:26:10]MH_I2C_Read... [22:26:10]Read from MH i2c: E2 0E 00 9C 25 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 BF [22:26:10]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [22:26:10]wFMCommunicate OK [22:26:10]SAM_PROTO_GetShiftState done [22:26:10]FM_GetShiftState done [22:26:10]opened in 1722213509 [22:26:10]opened+sec_in_day 1722299909 [22:26:10]quantity*price = 7500 [22:26:10]sum+1 = 7501 [22:26:10]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600682557456 Напиток FLash up energy эн ж/б 0,5/0,45л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 350.00 НСП 1% : 3.09 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 89 29.07.2024 22:26 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27186 ФПД: 36493393436103 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T222618&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27186&fm=36493393436103&tin=02508201610067®Number=0000000000092663&sum=35000 0 [22:26:11]StoreToDocumentArchive [22:26:11]shift 434 fd 27186 [22:26:11]save to /storage/0434/doc_00027186 [22:26:11]save last doc name /storage/0434/doc_00027186 to /storage/kkm_last_doc_name [22:26:11]save OK [22:26:11]Clear old archive folders... [22:26:11]ProcessDocumentItem done err = 0, tmpTLVsize=630 [22:26:11]tlvbuf is 001AC540 [22:26:11]SAM_PROTO_ClearQueue [22:26:11]wFMCommunicate request_size=4 [22:26:11]MH_SAM_APDU [22:26:11]CAPDU: 80 09 00 00 [22:26:11]Write to MH i2c: E2 08 00 A9 25 80 09 00 00 00 00 00 00 40 [22:26:11]Write i2c OK [22:26:11]MH_I2C_Read... [22:26:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:26:11]Read from MH i2c: E2 [22:26:11]MH_I2C_Read... [22:26:11]Read from MH i2c: E2 03 00 [22:26:11]MH_I2C_Read... [22:26:11]Read from MH i2c: E2 03 00 A9 25 00 90 00 42 [22:26:11]RAPDU: 90 00 [22:26:11]wFMCommunicate OK [22:26:11]SAM_PROTO_ClearQueue done [22:26:11]KKMCreateOFDPacket [22:26:11]OFDProtocolAddRootSTLVToBuf [22:26:11]FM_MakeSignedData [22:26:11]FM_MakeSignedData [22:26:11]SAM_PROTO_SignData [22:26:11]wFMCommunicate request_size=4 [22:26:11]MH_SAM_APDU [22:26:11]CAPDU: 80 0D 01 02 [22:26:11]Write to MH i2c: E2 08 00 AA 25 80 0D 01 02 00 00 00 00 48 [22:26:11]Write i2c OK [22:26:11]MH_I2C_Read... [22:26:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:26:11]Read from MH i2c: E2 [22:26:11]MH_I2C_Read... [22:26:11]Read from MH i2c: E2 03 00 [22:26:11]MH_I2C_Read... [22:26:11]Read from MH i2c: E2 03 00 AA 25 00 90 00 43 [22:26:11]RAPDU: 90 00 [22:26:11]wFMCommunicate OK [22:26:11]wFMCommunicate request_size=255 [22:26:11]MH_SAM_APDU [22:26:11]CAPDU: 80 0D 02 02 FA 03 00 76 02 1E 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 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 [22:26:11]Write to MH i2c: E2 02 01 AB 25 80 0D 02 02 FA 00 03 00 76 02 1E 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 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 73 [22:26:11]Write i2c OK [22:26:11]MH_I2C_Read... [22:26:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:11]Read from MH i2c: E2 [22:26:11]MH_I2C_Read... [22:26:11]Read from MH i2c: E2 03 00 [22:26:11]MH_I2C_Read... [22:26:11]Read from MH i2c: E2 03 00 AB 25 00 90 00 44 [22:26:11]RAPDU: 90 00 [22:26:11]wFMCommunicate OK [22:26:11]wFMCommunicate request_size=255 [22:26:11]MH_SAM_APDU [22:26:11]CAPDU: 80 0D 02 02 FA 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 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 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 01 00 00 [22:26:11]Write to MH i2c: E2 02 01 AC 25 80 0D 02 02 FA 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 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 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 01 00 00 00 00 9E [22:26:11]Write i2c OK [22:26:11]MH_I2C_Read... [22:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:12]Read from MH i2c: E2 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 03 00 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 03 00 AC 25 00 90 00 45 [22:26:12]RAPDU: 90 00 [22:26:12]wFMCommunicate OK [22:26:12]wFMCommunicate request_size=139 [22:26:12]MH_SAM_APDU [22:26:12]CAPDU: 80 0D 02 02 86 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 0A 17 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 32 6A 00 00 35 04 06 00 21 30 C7 C0 9D C7 [22:26:12]Write to MH i2c: E2 8E 00 AD 25 80 0D 02 02 86 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 0A 17 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 32 6A 00 00 35 04 06 00 21 30 C7 C0 9D C7 00 00 72 [22:26:12]Write i2c OK [22:26:12]MH_I2C_Read... [22:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:12]Read from MH i2c: E2 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 03 00 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 03 00 AD 25 00 90 00 46 [22:26:12]RAPDU: 90 00 [22:26:12]wFMCommunicate OK [22:26:12]wFMCommunicate request_size=4 [22:26:12]MH_SAM_APDU [22:26:12]CAPDU: 80 0D 03 02 [22:26:12]Write to MH i2c: E2 08 00 AE 25 80 0D 03 02 00 00 00 00 4E [22:26:12]Write i2c OK [22:26:12]MH_I2C_Read... [22:26:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:26:12]Read from MH i2c: E2 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 0B 00 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 0B 00 AE 25 00 EC 14 97 86 B2 E1 FD AE 90 00 AA [22:26:12]RAPDU: EC 14 97 86 B2 E1 FD AE 90 00 [22:26:12]wFMCommunicate OK [22:26:12]SAM_PROTO_SignData done [22:26:12]FM_MakeSignedData done [22:26:12]CreateOFDProtocolMessage [22:26:12]wFMCommunicate request_size=4 [22:26:12]MH_SAM_APDU [22:26:12]CAPDU: 80 11 00 00 [22:26:12]Write to MH i2c: E2 08 00 AF 25 80 11 00 00 00 00 00 00 4E [22:26:12]Write i2c OK [22:26:12]MH_I2C_Read... [22:26:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:12]Read from MH i2c: E2 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 17 00 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 17 00 AF 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 A7 [22:26:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [22:26:12]wFMCommunicate OK [22:26:12]CreateOFDProtocolMessage done [22:26:12]OFDSenderStorePacket 27186 [22:26:12]StoreOFDPacket docnum=27186 [22:26:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 8A 02 00 00 BD 83 82 02 C1 80 5A 03 01 00 03 00 76 02 1E 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 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 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 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 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 0A 17 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 32 6A 00 00 35 04 06 00 21 30 C7 C0 9D C7 EC 14 97 86 B2 E1 FD AE [22:26:12]CheckFolder [22:26:12]dirname=/storage/ofd_packets [22:26:12]CheckFolder done [22:26:12]ProducePacketName [22:26:12]name=ofd_packets/00027186 [22:26:12]NVStorageSaveData ofd_packets/00027186 [22:26:12]File name is /storage/ofd_packets/00027186 [22:26:12]Write 680 bytes [22:26:12]NVStorageSaveData done [22:26:12]OFDSenderStorePacket done [22:26:12]KKMCreateOFDPacket done [22:26:12]NVStorageSaveData kkm_last_timestamp [22:26:12]File name is /storage/kkm_last_timestamp [22:26:12]Write 4 bytes [22:26:12]NVStorageSaveData done [22:26:12]ExternCall_PrintAddStr [22:26:12]wPrintStart [22:26:12]Write to MH i2c: 01 00 00 B0 25 D5 [22:26:12]Write i2c OK [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: 01 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: 01 07 00 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: 01 07 00 B0 25 00 00 00 00 00 FF 0F EA [22:26:12]RasterBufferAndPrint [22:26:12]line Счет N : (3)150584 [22:26:12]line ИНН: 02508201610067 [22:26:12]line Контрольно-Кассовый Чек [22:26:12]line ПРОДАЖА [22:26:12]line Товар: 4870112003956 [22:26:12]line Шок батончик ALBENI SUPER Альбени Супер [22:26:12]line 1.000 * 75.00 [22:26:12]line = 75.00 [22:26:12]line НДС 12% НСП 1% [22:26:12]line > о реализуемом товаре [22:26:12]line Товар: 4600682557456 [22:26:12]line Напиток FLash up energy эн ж/б 0,5/0,45л [22:26:12]line 1.000 * 85.00 [22:26:12]line = 85.00 [22:26:12]line НДС 12% НСП 1% [22:26:12]line > о реализуемом товаре [22:26:12]line Товар: 4700000160358 [22:26:12]line Вода Легенда 1л [22:26:12]line 1.000 * 50.00 [22:26:12]line = 50.00 [22:26:12]line НДС 12% НСП 1% [22:26:12]line > о реализуемом товаре [22:26:12]line Товар: 48743570 [22:26:12]line Сигареты Winston XStyle Blue [22:26:12]line 1.000 * 140.00 [22:26:12]line = 140.00 [22:26:12]line НДС 12% НСП 1% [22:26:12]line > о реализуемом товаре [22:26:12]line ИТОГО: 350.00 [22:26:12]line НСП 1% : 3.09 [22:26:12]line НДС 12% : 37.17 [22:26:12]line Наличными: 350.00 [22:26:12]line Безнал.: 0.00 [22:26:12]line Место: АЗС № 134 "Партнер Нефть" [22:26:12]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:26:12]line СНО: Общий режим [22:26:12]line Чек 89 29.07.2024 22:26 [22:26:12]line Смена: 434 ФФД: 1.0 [22:26:12]line ЗНМ: 0300000043 [22:26:12]line РНМ: 0000000000092663 [22:26:12]line Версия ККМ: 001 [22:26:12]line ФМ: 0000000000874937 [22:26:12]line ФД: 27186 [22:26:12]line ФПД: 36493393436103 [22:26:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T222618&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27186&fm=36493393436103&tin=02508201610067®Number=0000000000092663&sum=35000 [22:26:12]OFD Sender: Processing packet 27186 [packets to send 9, broken 8] [22:26:12]ProducePacketName [22:26:12]name=ofd_packets/00027186 [22:26:12]OFD Sender: To server: pG, [22:26:12]CommunicateWithHost lk.salyk.kg:30040 [22:26:12]ConnectInit lk.salyk.kg [22:26:12]line 0 [22:26:12]written 0, free lines is 4095 [22:26:12]Connected sock=10 [22:26:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 8A 02 00 00 BD 83 82 02 C1 80 5A 03 01 00 03 00 76 02 1E 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 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 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 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 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 0A 17 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 32 6A 00 00 35 04 06 00 21 30 C7 C0 9D C7 EC 14 97 86 B2 E1 FD AE [22:26:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 0B 7F 47 00 86 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 32 6A 00 00 F4 03 04 00 5A BD A7 66 B6 04 01 00 00 92 1E 68 9B 79 E8 F3 57 [22:26:13]CommunicateWithHost err = 0 [22:26:13]CheckOFDResponse [22:26:13]1017 (14) - 77093643461234 [22:26:13]1041 (16) - 0000000000874937 [22:26:13]1040 (4) - 27186 [22:26:13]1012 (4) - 29.07.2024 16:03 [22:26:13]1206 (1) - 0 [22:26:13]OFD Sender: Remove packet 27186 [22:26:13]ProducePacketName [22:26:13]name=ofd_packets/00027186 [22:26:13]NVStorageDeleteData [22:26:13]Write to MH i2c: 01 00 00 EB 25 10 [22:26:13]Write i2c OK [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: 01 [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: 01 07 00 [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: 01 07 00 EB 25 00 00 00 00 00 D7 0B F9 [22:26:13]RasterBufferAndPrint [22:26:13]line [22:26:13]line [22:26:13]line [22:26:13]line [22:26:13]line [22:26:13]written 0, free lines is 3042 [22:26:13]MH_Cut [22:26:13]Write to MH i2c: D1 01 00 F2 25 01 E9 [22:26:13]Write i2c OK [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: D1 [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: D1 01 00 [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: D1 01 00 F2 25 00 E8 [22:26:13]Write to MH i2c: 01 00 00 F3 25 18 [22:26:13]Write i2c OK [22:26:13]MH_I2C_Read... [22:26:13]OFD Sender: No OFD packet to send [22:26:14]*** Cut start [22:26:14]*** Partial cut [22:26:14]*** CUTSNS_PIN = 1 [22:26:14]*** CUTSNS_PIN = 0 [22:26:14]*** Brake cut motor [22:26:15]Read from MH i2c: 01 [22:26:15]MH_I2C_Read... [22:26:15]*** Stop cut motor [22:26:15]*** Cut end [22:26:15]Read from MH i2c: 01 07 00 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: 01 07 00 F3 25 00 00 00 00 00 FF 0F 2D [22:26:15]process_action close_receipt done [22:26:15]requested_data is exist [22:26:15]produce_requested_data [22:26:15]requested_item fm.sn is exist - process it [22:26:15]wFMCommunicate request_size=4 [22:26:15]MH_SAM_APDU [22:26:15]CAPDU: 80 11 00 00 [22:26:15]Write to MH i2c: E2 08 00 F4 25 80 11 00 00 00 00 00 00 93 [22:26:15]Write i2c OK [22:26:15]MH_I2C_Read... [22:26:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:15]Read from MH i2c: E2 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: E2 17 00 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: E2 17 00 F4 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 EC [22:26:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [22:26:15]wFMCommunicate OK [22:26:15]requested_item fd.num is exist - process it [22:26:15]SAM_PROTO_GetFieldsCounters [22:26:15]wFMCommunicate request_size=4 [22:26:15]MH_SAM_APDU [22:26:15]CAPDU: 80 13 00 00 [22:26:15]Write to MH i2c: E2 08 00 F5 25 80 13 00 00 00 00 00 00 96 [22:26:15]Write i2c OK [22:26:15]MH_I2C_Read... [22:26:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:26:15]Read from MH i2c: E2 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: E2 62 00 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: E2 62 00 F5 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 32 6A 00 00 0E 04 04 00 B2 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 18 [22:26:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 32 6A 00 00 0E 04 04 00 B2 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 [22:26:15]wFMCommunicate OK [22:26:15]SAM_PROTO_GetFieldsCounters done [22:26:15]requested_item shift.num is exist - process it [22:26:15]requested_item shift.opened is exist - process it [22:26:15]req_shift_opened [22:26:15]FM_GetShiftState [22:26:15]SAM_PROTO_GetShiftState [22:26:15]wFMCommunicate request_size=4 [22:26:15]MH_SAM_APDU [22:26:15]CAPDU: 80 13 01 00 [22:26:15]Write to MH i2c: E2 08 00 F6 25 80 13 01 00 00 00 00 00 98 [22:26:15]Write i2c OK [22:26:15]MH_I2C_Read... [22:26:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:15]Read from MH i2c: E2 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: E2 0E 00 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: E2 0E 00 F6 25 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 19 [22:26:15]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [22:26:15]wFMCommunicate OK [22:26:15]SAM_PROTO_GetShiftState done [22:26:15]FM_GetShiftState done [22:26:15]req_shift_opened done [22:26:15]requested_item shift.open_date is exist - process it [22:26:15]req_shift_open_date [22:26:15]req_shift_open_date done [22:26:15]produce_requested_data done [22:26:15]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27186,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [22:26:15]process_action_free close_receipt [22:26:15]json_value_free [22:26:15]json_value_free done [22:26:15]process_json_proto returns [22:26:15]Send response to host [22:26:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27186,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [22:26:15]free response buf [22:26:15]execute_script done [22:26:15]execute_script returns [22:26:15]free content buf [22:26:15]Sock 8.Close socket [22:26:15]Sock 8.Thread stoped [22:26:18]OFD Sender: No OFD packet to send [22:26:23]OFD Sender: No OFD packet to send [22:26:28]OFD Sender: No OFD packet to send [22:26:33]OFD Sender: No OFD packet to send [22:26:38]OFD Sender: No OFD packet to send [22:26:43]OFD Sender: No OFD packet to send [22:26:48]OFD Sender: No OFD packet to send [22:26:53]OFD Sender: No OFD packet to send [22:26:58]OFD Sender: No OFD packet to send [22:27:03]OFD Sender: No OFD packet to send [22:27:08]OFD Sender: No OFD packet to send [22:27:13]OFD Sender: No OFD packet to send [22:27:18]OFD Sender: No OFD packet to send [22:27:23]OFD Sender: No OFD packet to send [22:27:28]OFD Sender: No OFD packet to send [22:27:33]OFD Sender: No OFD packet to send [22:27:38]OFD Sender: No OFD packet to send [22:27:43]OFD Sender: No OFD packet to send [22:27:48]OFD Sender: No OFD packet to send [22:27:53]OFD Sender: No OFD packet to send [22:27:58]OFD Sender: No OFD packet to send [22:28:03]OFD Sender: No OFD packet to send [22:28:08]OFD Sender: No OFD packet to send [22:28:13]OFD Sender: No OFD packet to send [22:28:18]OFD Sender: No OFD packet to send [22:28:23]OFD Sender: No OFD packet to send [22:28:28]OFD Sender: No OFD packet to send [22:28:33]OFD Sender: No OFD packet to send [22:28:38]OFD Sender: No OFD packet to send [22:28:43]OFD Sender: No OFD packet to send [22:28:48]OFD Sender: No OFD packet to send [22:28:53]OFD Sender: No OFD packet to send [22:28:58]OFD Sender: No OFD packet to send [22:29:03]OFD Sender: No OFD packet to send [22:29:08]OFD Sender: No OFD packet to send [22:29:13]OFD Sender: No OFD packet to send [22:29:18]OFD Sender: No OFD packet to send [22:29:23]OFD Sender: No OFD packet to send [22:29:28]OFD Sender: No OFD packet to send [22:29:33]OFD Sender: No OFD packet to send [22:29:38]OFD Sender: No OFD packet to send [22:29:43]OFD Sender: No OFD packet to send [22:29:48]OFD Sender: No OFD packet to send [22:29:53]OFD Sender: No OFD packet to send [22:29:58]OFD Sender: No OFD packet to send [22:30:03]OFD Sender: No OFD packet to send [22:30:08]OFD Sender: No OFD packet to send [22:30:13]OFD Sender: No OFD packet to send [22:30:18]OFD Sender: No OFD packet to send [22:30:23]OFD Sender: No OFD packet to send [22:30:28]OFD Sender: No OFD packet to send [22:30:33]OFD Sender: No OFD packet to send [22:30:38]OFD Sender: No OFD packet to send [22:30:43]OFD Sender: No OFD packet to send [22:30:48]OFD Sender: No OFD packet to send [22:30:53]OFD Sender: No OFD packet to send [22:30:58]OFD Sender: No OFD packet to send [22:31:03]OFD Sender: No OFD packet to send [22:31:08]OFD Sender: No OFD packet to send [22:31:13]OFD Sender: No OFD packet to send [22:31:18]OFD Sender: No OFD packet to send [22:31:23]OFD Sender: No OFD packet to send [22:31:28]OFD Sender: No OFD packet to send [22:31:33]OFD Sender: No OFD packet to send [22:31:38]OFD Sender: No OFD packet to send [22:31:43]OFD Sender: No OFD packet to send [22:31:48]OFD Sender: No OFD packet to send [22:31:53]OFD Sender: No OFD packet to send [22:31:58]OFD Sender: No OFD packet to send [22:32:03]OFD Sender: No OFD packet to send [22:32:08]OFD Sender: No OFD packet to send [22:32:13]OFD Sender: No OFD packet to send [22:32:18]OFD Sender: No OFD packet to send [22:32:23]OFD Sender: No OFD packet to send [22:32:28]OFD Sender: No OFD packet to send [22:32:33]OFD Sender: No OFD packet to send [22:32:38]OFD Sender: No OFD packet to send [22:32:43]OFD Sender: No OFD packet to send [22:32:48]OFD Sender: No OFD packet to send [22:32:53]OFD Sender: No OFD packet to send [22:32:58]OFD Sender: No OFD packet to send [22:33:03]OFD Sender: No OFD packet to send [22:33:09]OFD Sender: No OFD packet to send [22:33:14]OFD Sender: No OFD packet to send [22:33:19]OFD Sender: No OFD packet to send [22:33:24]OFD Sender: No OFD packet to send [22:33:29]OFD Sender: No OFD packet to send [22:33:34]OFD Sender: No OFD packet to send [22:33:39]OFD Sender: No OFD packet to send [22:33:44]OFD Sender: No OFD packet to send [22:33:49]OFD Sender: No OFD packet to send [22:33:54]OFD Sender: No OFD packet to send [22:33:59]OFD Sender: No OFD packet to send [22:34:04]OFD Sender: No OFD packet to send [22:34:09]OFD Sender: No OFD packet to send [22:34:14]OFD Sender: No OFD packet to send [22:34:19]OFD Sender: No OFD packet to send [22:34:24]OFD Sender: No OFD packet to send [22:34:29]OFD Sender: No OFD packet to send [22:34:34]OFD Sender: No OFD packet to send [22:34:39]OFD Sender: No OFD packet to send [22:34:44]OFD Sender: No OFD packet to send [22:34:49]OFD Sender: No OFD packet to send [22:34:54]OFD Sender: No OFD packet to send [22:34:59]OFD Sender: No OFD packet to send [22:35:04]OFD Sender: No OFD packet to send [22:35:09]OFD Sender: No OFD packet to send [22:35:14]OFD Sender: No OFD packet to send [22:35:19]OFD Sender: No OFD packet to send [22:35:24]OFD Sender: No OFD packet to send [22:35:29]OFD Sender: No OFD packet to send [22:35:34]OFD Sender: No OFD packet to send [22:35:39]OFD Sender: No OFD packet to send [22:35:44]OFD Sender: No OFD packet to send [22:35:49]OFD Sender: No OFD packet to send [22:35:54]OFD Sender: No OFD packet to send [22:35:59]OFD Sender: No OFD packet to send [22:36:04]OFD Sender: No OFD packet to send [22:36:09]OFD Sender: No OFD packet to send [22:36:14]OFD Sender: No OFD packet to send [22:36:19]OFD Sender: No OFD packet to send [22:36:24]OFD Sender: No OFD packet to send [22:36:29]OFD Sender: No OFD packet to send [22:36:34]OFD Sender: No OFD packet to send [22:36:39]OFD Sender: No OFD packet to send [22:36:41]accept exits with 9 [22:36:41]New connection [22:36:41]New thread 3066785124 created [22:36:41]Thread 3066928484 joined [22:36:41]Waiting for new connection... [22:36:41] Sock 9.Parse request [22:36:41]Sock 9.Check first char [22:36:41]Sock 9.First char is OK [22:36:41]request: POST /json_proto HTTP/1.0 [22:36:41]Method: POST [22:36:41]URL: /json_proto [22:36:41]Method is POST - this is cgi request [22:36:41]url: /json_proto [22:36:41]query_string will be loaded in cgi processing [22:36:41]execute_cgi json_proto POST (null) [22:36:41]execute_cgi path=json_proto method=POST [22:36:41]POST find Content-Length [22:36:41]Host: 172.17.45.8:8080 [22:36:41]Content-Length: 878 [22:36:41]Content-Type: application/json [22:36:41] [22:36:41]POST finish read [22:36:41]Found Content-Length = 878 [22:36:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150585", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 4.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:41]execute_script... [22:36:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150585", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 4.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 300.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:41]POST & json_proto [22:36:41]process_json_proto [22:36:41]json parsed OK: [22:36:41]protocol is kg_v1.0 [22:36:41]action value=close_receipt [22:36:41]process_action close_receipt [22:36:41]cmd_close_receipt [22:36:41]MH_GetDate [22:36:41]Write to MH i2c: F0 00 00 F7 25 0B [22:36:41]Write i2c OK [22:36:41]MH_I2C_Read... [22:36:41]Read from MH i2c: F0 [22:36:41]MH_I2C_Read... [22:36:41]Read from MH i2c: F0 09 00 [22:36:41]MH_I2C_Read... [22:36:41]Read from MH i2c: F0 09 00 F7 25 00 81 19 A8 66 A6 1F 7F 64 64 [22:36:41]GetLastDocTimeStamp 1722291978 [22:36:41]current date 1722292609 [22:36:41]FM_GetShiftState [22:36:41]SAM_PROTO_GetShiftState [22:36:41]wFMCommunicate request_size=4 [22:36:41]MH_SAM_APDU [22:36:41]CAPDU: 80 13 01 00 [22:36:41]Write to MH i2c: E2 08 00 F8 25 80 13 01 00 00 00 00 00 9A [22:36:41]Write i2c OK [22:36:41]MH_I2C_Read... [22:36:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:41]Read from MH i2c: E2 [22:36:41]MH_I2C_Read... [22:36:41]Read from MH i2c: E2 0E 00 [22:36:41]MH_I2C_Read... [22:36:41]Read from MH i2c: E2 0E 00 F8 25 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 1B [22:36:41]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [22:36:41]wFMCommunicate OK [22:36:41]SAM_PROTO_GetShiftState done [22:36:41]FM_GetShiftState done [22:36:41]opened in 1722213509 [22:36:41]opened+sec_in_day 1722299909 [22:36:41]quantity*price = 20000 [22:36:41]sum+1 = 20001 [22:36:41]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480814 Пиво Живое 0,5 ст 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 300.00 НСП 1% : 2.65 НДС 12% : 31.86 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 90 29.07.2024 22:36 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27187 ФПД: 163813044037248 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T223649&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27187&fm=163813044037248&tin=02508201610067®Number=0000000000092663&sum=30000 0 [22:36:42]StoreToDocumentArchive [22:36:42]shift 434 fd 27187 [22:36:42]save to /storage/0434/doc_00027187 [22:36:42]save last doc name /storage/0434/doc_00027187 to /storage/kkm_last_doc_name [22:36:42]save OK [22:36:42]Clear old archive folders... [22:36:42]ProcessDocumentItem done err = 0, tmpTLVsize=369 [22:36:42]tlvbuf is 0021B7C0 [22:36:42]SAM_PROTO_ClearQueue [22:36:42]wFMCommunicate request_size=4 [22:36:42]MH_SAM_APDU [22:36:42]CAPDU: 80 09 00 00 [22:36:42]Write to MH i2c: E2 08 00 05 26 80 09 00 00 00 00 00 00 9D [22:36:42]Write i2c OK [22:36:42]MH_I2C_Read... [22:36:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:36:42]Read from MH i2c: E2 [22:36:42]MH_I2C_Read... [22:36:42]Read from MH i2c: E2 03 00 [22:36:42]MH_I2C_Read... [22:36:42]Read from MH i2c: E2 03 00 05 26 00 90 00 9F [22:36:42]RAPDU: 90 00 [22:36:42]wFMCommunicate OK [22:36:42]SAM_PROTO_ClearQueue done [22:36:42]KKMCreateOFDPacket [22:36:42]OFDProtocolAddRootSTLVToBuf [22:36:42]FM_MakeSignedData [22:36:42]FM_MakeSignedData [22:36:42]SAM_PROTO_SignData [22:36:42]wFMCommunicate request_size=4 [22:36:42]MH_SAM_APDU [22:36:42]CAPDU: 80 0D 01 02 [22:36:42]Write to MH i2c: E2 08 00 06 26 80 0D 01 02 00 00 00 00 A5 [22:36:42]Write i2c OK [22:36:42]MH_I2C_Read... [22:36:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:36:42]Read from MH i2c: E2 [22:36:42]MH_I2C_Read... [22:36:42]Read from MH i2c: E2 03 00 [22:36:42]MH_I2C_Read... [22:36:42]Read from MH i2c: E2 03 00 06 26 00 90 00 A0 [22:36:42]RAPDU: 90 00 [22:36:42]wFMCommunicate OK [22:36:42]wFMCommunicate request_size=255 [22:36:42]MH_SAM_APDU [22:36:42]CAPDU: 80 0D 02 02 FA 03 00 71 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 [22:36:42]Write to MH i2c: E2 02 01 07 26 80 0D 02 02 FA 00 03 00 71 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 00 00 8C [22:36:42]Write i2c OK [22:36:42]MH_I2C_Read... [22:36:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:43]Read from MH i2c: E2 [22:36:43]MH_I2C_Read... [22:36:43]Read from MH i2c: E2 03 00 [22:36:43]MH_I2C_Read... [22:36:43]Read from MH i2c: E2 03 00 07 26 00 90 00 A1 [22:36:43]RAPDU: 90 00 [22:36:43]wFMCommunicate OK [22:36:43]wFMCommunicate request_size=128 [22:36:43]MH_SAM_APDU [22:36:43]CAPDU: 80 0D 02 02 7B F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 81 19 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 33 6A 00 00 35 04 06 00 94 FC B2 4C A6 80 [22:36:43]Write to MH i2c: E2 83 00 08 26 80 0D 02 02 7B 00 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 81 19 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 33 6A 00 00 35 04 06 00 94 FC B2 4C A6 80 00 00 04 [22:36:43]Write i2c OK [22:36:43]MH_I2C_Read... [22:36:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:43]Read from MH i2c: E2 [22:36:43]MH_I2C_Read... [22:36:43]Read from MH i2c: E2 03 00 [22:36:43]MH_I2C_Read... [22:36:43]Read from MH i2c: E2 03 00 08 26 00 90 00 A2 [22:36:43]RAPDU: 90 00 [22:36:43]wFMCommunicate OK [22:36:43]wFMCommunicate request_size=4 [22:36:43]MH_SAM_APDU [22:36:43]CAPDU: 80 0D 03 02 [22:36:43]Write to MH i2c: E2 08 00 09 26 80 0D 03 02 00 00 00 00 AA [22:36:43]Write i2c OK [22:36:43]MH_I2C_Read... [22:36:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:36:43]Read from MH i2c: E2 [22:36:43]MH_I2C_Read... [22:36:43]Read from MH i2c: E2 0B 00 [22:36:43]MH_I2C_Read... [22:36:43]Read from MH i2c: E2 0B 00 09 26 00 AB 8B 74 E0 C7 17 16 0C 90 00 35 [22:36:43]RAPDU: AB 8B 74 E0 C7 17 16 0C 90 00 [22:36:43]wFMCommunicate OK [22:36:43]SAM_PROTO_SignData done [22:36:43]FM_MakeSignedData done [22:36:43]CreateOFDProtocolMessage [22:36:43]wFMCommunicate request_size=4 [22:36:43]MH_SAM_APDU [22:36:43]CAPDU: 80 11 00 00 [22:36:43]Write to MH i2c: E2 08 00 0A 26 80 11 00 00 00 00 00 00 AA [22:36:43]Write i2c OK [22:36:43]MH_I2C_Read... [22:36:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:43]Read from MH i2c: E2 [22:36:43]MH_I2C_Read... [22:36:43]Read from MH i2c: E2 17 00 [22:36:43]MH_I2C_Read... [22:36:43]Read from MH i2c: E2 17 00 0A 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 03 [22:36:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [22:36:43]wFMCommunicate OK [22:36:43]CreateOFDProtocolMessage done [22:36:43]OFDSenderStorePacket 27187 [22:36:43]StoreOFDPacket docnum=27187 [22:36:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 85 01 00 00 2A A6 7D 01 C2 84 5A 03 01 00 03 00 71 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 81 19 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 33 6A 00 00 35 04 06 00 94 FC B2 4C A6 80 AB 8B 74 E0 C7 17 16 0C [22:36:43]CheckFolder [22:36:43]dirname=/storage/ofd_packets [22:36:43]CheckFolder done [22:36:43]ProducePacketName [22:36:43]name=ofd_packets/00027187 [22:36:43]NVStorageSaveData ofd_packets/00027187 [22:36:43]File name is /storage/ofd_packets/00027187 [22:36:43]Write 419 bytes [22:36:43]NVStorageSaveData done [22:36:43]OFDSenderStorePacket done [22:36:43]KKMCreateOFDPacket done [22:36:43]NVStorageSaveData kkm_last_timestamp [22:36:43]File name is /storage/kkm_last_timestamp [22:36:43]Write 4 bytes [22:36:43]NVStorageSaveData done [22:36:43]ExternCall_PrintAddStr [22:36:43]wPrintStart [22:36:43]Write to MH i2c: 01 00 00 0B 26 31 [22:36:43]Write i2c OK [22:36:43]MH_I2C_Read... [22:36:43]Read from MH i2c: 01 [22:36:43]MH_I2C_Read... [22:36:43]Read from MH i2c: 01 07 00 [22:36:43]MH_I2C_Read... [22:36:43]Read from MH i2c: 01 07 00 0B 26 00 00 00 00 00 FF 0F 46 [22:36:43]RasterBufferAndPrint [22:36:43]line Счет N : (3)150585 [22:36:43]line ИНН: 02508201610067 [22:36:43]line Контрольно-Кассовый Чек [22:36:43]line ПРОДАЖА [22:36:43]line Товар: 4700000160358 [22:36:43]line Вода Легенда 1л [22:36:43]line 4.000 * 50.00 [22:36:43]line = 200.00 [22:36:43]line НДС 12% НСП 1% [22:36:43]line > о реализуемом товаре [22:36:43]line Товар: 4700000480814 [22:36:43]line Пиво Живое 0,5 ст [22:36:43]line 1.000 * 100.00 [22:36:43]line = 100.00 [22:36:43]line НДС 12% НСП 1% [22:36:43]line > о реализуемом товаре [22:36:43]line ИТОГО: 300.00 [22:36:43]line НСП 1% : 2.65 [22:36:43]line НДС 12% : 31.86 [22:36:43]line Наличными: 300.00 [22:36:43]line Безнал.: 0.00 [22:36:43]line Место: АЗС № 134 "Партнер Нефть" [22:36:43]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:36:43]line СНО: Общий режим [22:36:43]line Чек 90 29.07.2024 22:36 [22:36:43]line Смена: 434 ФФД: 1.0 [22:36:43]line ЗНМ: 0300000043 [22:36:43]line РНМ: 0000000000092663 [22:36:43]line Версия ККМ: 001 [22:36:43]line ФМ: 0000000000874937 [22:36:43]line ФД: 27187 [22:36:43]line ФПД: 163813044037248 [22:36:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T223649&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27187&fm=163813044037248&tin=02508201610067®Number=0000000000092663&sum=30000 [22:36:43]line 0 [22:36:43]OFD Sender: Processing packet 27187 [packets to send 9, broken 8] [22:36:43]ProducePacketName [22:36:43]name=ofd_packets/00027187 [22:36:43]OFD Sender: To server: pG, [22:36:43]CommunicateWithHost lk.salyk.kg:30040 [22:36:43]ConnectInit lk.salyk.kg [22:36:43]written 0, free lines is 4095 [22:36:43]Connected sock=11 [22:36:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 85 01 00 00 2A A6 7D 01 C2 84 5A 03 01 00 03 00 71 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 81 19 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 33 6A 00 00 35 04 06 00 94 FC B2 4C A6 80 AB 8B 74 E0 C7 17 16 0C [22:36:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 45 AB 47 00 1F 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 33 6A 00 00 F4 03 04 00 D1 BF A7 66 B6 04 01 00 00 FF 98 E4 5B 74 78 1F 12 [22:36:44]CommunicateWithHost err = 0 [22:36:44]CheckOFDResponse [22:36:44]1017 (14) - 77093643461234 [22:36:44]1041 (16) - 0000000000874937 [22:36:44]1040 (4) - 27187 [22:36:44]1012 (4) - 29.07.2024 16:14 [22:36:44]1206 (1) - 0 [22:36:44]OFD Sender: Remove packet 27187 [22:36:44]ProducePacketName [22:36:44]name=ofd_packets/00027187 [22:36:44]NVStorageDeleteData [22:36:44]Write to MH i2c: 01 00 00 38 26 5E [22:36:44]Write i2c OK [22:36:44]MH_I2C_Read... [22:36:44]Read from MH i2c: 01 [22:36:44]MH_I2C_Read... [22:36:44]Read from MH i2c: 01 07 00 [22:36:44]MH_I2C_Read... [22:36:44]Read from MH i2c: 01 07 00 38 26 00 00 00 00 00 B9 0C 2A [22:36:44]RasterBufferAndPrint [22:36:44]line [22:36:44]line [22:36:44]line [22:36:44]line [22:36:44]line [22:36:44]written 0, free lines is 3263 [22:36:44]MH_Cut [22:36:44]Write to MH i2c: D1 01 00 3F 26 01 37 [22:36:44]Write i2c OK [22:36:44]MH_I2C_Read... [22:36:44]Read from MH i2c: D1 [22:36:44]MH_I2C_Read... [22:36:44]Read from MH i2c: D1 01 00 [22:36:44]MH_I2C_Read... [22:36:44]Read from MH i2c: D1 01 00 3F 26 00 36 [22:36:44]Write to MH i2c: 01 00 00 40 26 66 [22:36:44]Write i2c OK [22:36:44]MH_I2C_Read... [22:36:44]OFD Sender: No OFD packet to send [22:36:45]*** Cut start [22:36:45]*** Partial cut [22:36:45]*** CUTSNS_PIN = 1 [22:36:45]*** CUTSNS_PIN = 0 [22:36:45]*** Brake cut motor [22:36:45]Read from MH i2c: 01 [22:36:45]MH_I2C_Read... [22:36:45]*** Stop cut motor [22:36:45]*** Cut end [22:36:45]Read from MH i2c: 01 07 00 [22:36:45]MH_I2C_Read... [22:36:45]Read from MH i2c: 01 07 00 40 26 00 00 00 00 00 FF 0F 7B [22:36:45]process_action close_receipt done [22:36:45]requested_data is exist [22:36:45]produce_requested_data [22:36:45]requested_item fm.sn is exist - process it [22:36:45]wFMCommunicate request_size=4 [22:36:45]MH_SAM_APDU [22:36:45]CAPDU: 80 11 00 00 [22:36:45]Write to MH i2c: E2 08 00 41 26 80 11 00 00 00 00 00 00 E1 [22:36:45]Write i2c OK [22:36:45]MH_I2C_Read... [22:36:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:45]Read from MH i2c: E2 [22:36:45]MH_I2C_Read... [22:36:45]Read from MH i2c: E2 17 00 [22:36:45]MH_I2C_Read... [22:36:45]Read from MH i2c: E2 17 00 41 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 3A [22:36:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [22:36:45]wFMCommunicate OK [22:36:45]requested_item fd.num is exist - process it [22:36:45]SAM_PROTO_GetFieldsCounters [22:36:45]wFMCommunicate request_size=4 [22:36:45]MH_SAM_APDU [22:36:45]CAPDU: 80 13 00 00 [22:36:45]Write to MH i2c: E2 08 00 42 26 80 13 00 00 00 00 00 00 E4 [22:36:45]Write i2c OK [22:36:45]MH_I2C_Read... [22:36:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:36:45]Read from MH i2c: E2 [22:36:45]MH_I2C_Read... [22:36:45]Read from MH i2c: E2 62 00 [22:36:45]MH_I2C_Read... [22:36:45]Read from MH i2c: E2 62 00 42 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 33 6A 00 00 0E 04 04 00 B2 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 6A [22:36:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 33 6A 00 00 0E 04 04 00 B2 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 [22:36:45]wFMCommunicate OK [22:36:45]SAM_PROTO_GetFieldsCounters done [22:36:45]requested_item shift.num is exist - process it [22:36:45]requested_item shift.opened is exist - process it [22:36:45]req_shift_opened [22:36:45]FM_GetShiftState [22:36:45]SAM_PROTO_GetShiftState [22:36:45]wFMCommunicate request_size=4 [22:36:45]MH_SAM_APDU [22:36:45]CAPDU: 80 13 01 00 [22:36:45]Write to MH i2c: E2 08 00 43 26 80 13 01 00 00 00 00 00 E6 [22:36:45]Write i2c OK [22:36:45]MH_I2C_Read... [22:36:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:45]Read from MH i2c: E2 [22:36:45]MH_I2C_Read... [22:36:45]Read from MH i2c: E2 0E 00 [22:36:45]MH_I2C_Read... [22:36:45]Read from MH i2c: E2 0E 00 43 26 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 67 [22:36:45]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [22:36:45]wFMCommunicate OK [22:36:45]SAM_PROTO_GetShiftState done [22:36:45]FM_GetShiftState done [22:36:45]req_shift_opened done [22:36:45]requested_item shift.open_date is exist - process it [22:36:45]req_shift_open_date [22:36:45]req_shift_open_date done [22:36:45]produce_requested_data done [22:36:45]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27187,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [22:36:45]process_action_free close_receipt [22:36:45]json_value_free [22:36:45]json_value_free done [22:36:45]process_json_proto returns [22:36:45]Send response to host [22:36:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27187,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [22:36:45]free response buf [22:36:45]execute_script done [22:36:45]execute_script returns [22:36:45]free content buf [22:36:45]Sock 9.Close socket [22:36:45]Sock 9.Thread stoped [22:36:49]OFD Sender: No OFD packet to send [22:36:54]OFD Sender: No OFD packet to send [22:36:59]OFD Sender: No OFD packet to send [22:37:04]OFD Sender: No OFD packet to send [22:37:09]OFD Sender: No OFD packet to send [22:37:14]OFD Sender: No OFD packet to send [22:37:19]OFD Sender: No OFD packet to send [22:37:24]OFD Sender: No OFD packet to send [22:37:29]OFD Sender: No OFD packet to send [22:37:34]OFD Sender: No OFD packet to send [22:37:39]OFD Sender: No OFD packet to send [22:37:44]OFD Sender: No OFD packet to send [22:37:49]OFD Sender: No OFD packet to send [22:37:54]OFD Sender: No OFD packet to send [22:37:59]OFD Sender: No OFD packet to send [22:38:04]OFD Sender: No OFD packet to send [22:38:09]OFD Sender: No OFD packet to send [22:38:14]OFD Sender: No OFD packet to send [22:38:19]OFD Sender: No OFD packet to send [22:38:24]OFD Sender: No OFD packet to send [22:38:29]OFD Sender: No OFD packet to send [22:38:34]OFD Sender: No OFD packet to send [22:38:39]OFD Sender: No OFD packet to send [22:38:44]OFD Sender: No OFD packet to send [22:38:49]OFD Sender: No OFD packet to send [22:38:54]OFD Sender: No OFD packet to send [22:38:59]OFD Sender: No OFD packet to send [22:39:04]OFD Sender: No OFD packet to send [22:39:09]OFD Sender: No OFD packet to send [22:39:14]OFD Sender: No OFD packet to send [22:39:19]OFD Sender: No OFD packet to send [22:39:24]OFD Sender: No OFD packet to send [22:39:29]OFD Sender: No OFD packet to send [22:39:34]OFD Sender: No OFD packet to send [22:39:39]OFD Sender: No OFD packet to send [22:39:44]OFD Sender: No OFD packet to send [22:39:49]OFD Sender: No OFD packet to send [22:39:54]OFD Sender: No OFD packet to send [22:39:59]OFD Sender: No OFD packet to send [22:40:04]OFD Sender: No OFD packet to send [22:40:09]OFD Sender: No OFD packet to send [22:40:14]OFD Sender: No OFD packet to send [22:40:19]OFD Sender: No OFD packet to send [22:40:24]OFD Sender: No OFD packet to send [22:40:29]OFD Sender: No OFD packet to send [22:40:34]OFD Sender: No OFD packet to send [22:40:39]OFD Sender: No OFD packet to send [22:40:44]OFD Sender: No OFD packet to send [22:40:49]OFD Sender: No OFD packet to send [22:40:54]OFD Sender: No OFD packet to send [22:40:59]OFD Sender: No OFD packet to send [22:41:04]OFD Sender: No OFD packet to send [22:41:09]OFD Sender: No OFD packet to send [22:41:14]OFD Sender: No OFD packet to send [22:41:19]OFD Sender: No OFD packet to send [22:41:24]OFD Sender: No OFD packet to send [22:41:29]OFD Sender: No OFD packet to send [22:41:34]OFD Sender: No OFD packet to send [22:41:39]OFD Sender: No OFD packet to send [22:41:44]OFD Sender: No OFD packet to send [22:41:49]OFD Sender: No OFD packet to send [22:41:54]OFD Sender: No OFD packet to send [22:41:59]OFD Sender: No OFD packet to send [22:42:04]OFD Sender: No OFD packet to send [22:42:09]OFD Sender: No OFD packet to send [22:42:14]OFD Sender: No OFD packet to send [22:42:19]OFD Sender: No OFD packet to send [22:42:24]OFD Sender: No OFD packet to send [22:42:29]OFD Sender: No OFD packet to send [22:42:34]OFD Sender: No OFD packet to send [22:42:39]accept exits with 8 [22:42:39]New connection [22:42:39]New thread 3066928484 created [22:42:39]Thread 3066785124 joined [22:42:39]Waiting for new connection... [22:42:39] Sock 8.Parse request [22:42:39]Sock 8.Check first char [22:42:39]Sock 8.First char is OK [22:42:39]request: POST /json_proto HTTP/1.0 [22:42:39]Method: POST [22:42:39]URL: /json_proto [22:42:39]Method is POST - this is cgi request [22:42:39]url: /json_proto [22:42:39]query_string will be loaded in cgi processing [22:42:39]execute_cgi json_proto POST (null) [22:42:39]execute_cgi path=json_proto method=POST [22:42:39]POST find Content-Length [22:42:39]Host: 172.17.45.8:8080 [22:42:39]Content-Length: 621 [22:42:39]Content-Type: application/json [22:42:39] [22:42:39]POST finish read [22:42:39]Found Content-Length = 621 [22:42:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150586", "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" ] } } [22:42:39]execute_script... [22:42:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150586", "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" ] } } [22:42:39]POST & json_proto [22:42:39]process_json_proto [22:42:39]json parsed OK: [22:42:39]protocol is kg_v1.0 [22:42:39]action value=close_receipt [22:42:39]process_action close_receipt [22:42:39]cmd_close_receipt [22:42:39]MH_GetDate [22:42:39]Write to MH i2c: F0 00 00 44 26 59 [22:42:39]Write i2c OK [22:42:39]MH_I2C_Read... [22:42:39]Read from MH i2c: F0 [22:42:39]MH_I2C_Read... [22:42:39]Read from MH i2c: F0 09 00 [22:42:39]MH_I2C_Read... [22:42:39]Read from MH i2c: F0 09 00 44 26 00 E7 1A A8 66 A6 1F 7F 64 19 [22:42:39]GetLastDocTimeStamp 1722292609 [22:42:39]current date 1722292967 [22:42:39]FM_GetShiftState [22:42:39]SAM_PROTO_GetShiftState [22:42:39]wFMCommunicate request_size=4 [22:42:39]MH_SAM_APDU [22:42:39]CAPDU: 80 13 01 00 [22:42:39]Write to MH i2c: E2 08 00 45 26 80 13 01 00 00 00 00 00 E8 [22:42:39]Write i2c OK [22:42:39]MH_I2C_Read... [22:42:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:39]Read from MH i2c: E2 [22:42:39]MH_I2C_Read... [22:42:39]Read from MH i2c: E2 0E 00 [22:42:39]MH_I2C_Read... [22:42:39]Read from MH i2c: E2 0E 00 45 26 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 69 [22:42:39]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [22:42:39]wFMCommunicate OK [22:42:39]SAM_PROTO_GetShiftState done [22:42:39]FM_GetShiftState done [22:42:39]opened in 1722213509 [22:42:39]opened+sec_in_day 1722299909 [22:42:39]quantity*price = 14000 [22:42:39]sum+1 = 14001 [22:42:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 91 29.07.2024 22:42 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27188 ФПД: 122914082795488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T224247&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27188&fm=122914082795488&tin=02508201610067®Number=0000000000092663&sum=14000 0 [22:42:40]StoreToDocumentArchive [22:42:40]shift 434 fd 27188 [22:42:40]save to /storage/0434/doc_00027188 [22:42:40]save last doc name /storage/0434/doc_00027188 to /storage/kkm_last_doc_name [22:42:40]save OK [22:42:40]Clear old archive folders... [22:42:40]ProcessDocumentItem done err = 0, tmpTLVsize=273 [22:42:40]tlvbuf is 00247A30 [22:42:40]SAM_PROTO_ClearQueue [22:42:40]wFMCommunicate request_size=4 [22:42:40]MH_SAM_APDU [22:42:40]CAPDU: 80 09 00 00 [22:42:40]Write to MH i2c: E2 08 00 52 26 80 09 00 00 00 00 00 00 EA [22:42:40]Write i2c OK [22:42:40]MH_I2C_Read... [22:42:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:42:40]Read from MH i2c: E2 [22:42:40]MH_I2C_Read... [22:42:40]Read from MH i2c: E2 03 00 [22:42:40]MH_I2C_Read... [22:42:40]Read from MH i2c: E2 03 00 52 26 00 90 00 EC [22:42:40]RAPDU: 90 00 [22:42:40]wFMCommunicate OK [22:42:40]SAM_PROTO_ClearQueue done [22:42:40]KKMCreateOFDPacket [22:42:40]OFDProtocolAddRootSTLVToBuf [22:42:40]FM_MakeSignedData [22:42:40]FM_MakeSignedData [22:42:40]SAM_PROTO_SignData [22:42:40]wFMCommunicate request_size=4 [22:42:40]MH_SAM_APDU [22:42:40]CAPDU: 80 0D 01 02 [22:42:40]Write to MH i2c: E2 08 00 53 26 80 0D 01 02 00 00 00 00 F2 [22:42:40]Write i2c OK [22:42:40]MH_I2C_Read... [22:42:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:42:40]Read from MH i2c: E2 [22:42:40]MH_I2C_Read... [22:42:40]Read from MH i2c: E2 03 00 [22:42:40]MH_I2C_Read... [22:42:40]Read from MH i2c: E2 03 00 53 26 00 90 00 ED [22:42:40]RAPDU: 90 00 [22:42:40]wFMCommunicate OK [22:42:40]wFMCommunicate request_size=255 [22:42:40]MH_SAM_APDU [22:42:40]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 5B 00 00 00 F4 03 04 00 E7 1A A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 [22:42:40]Write to MH i2c: E2 02 01 54 26 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 5B 00 00 00 F4 03 04 00 E7 1A A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 00 00 05 [22:42:40]Write i2c OK [22:42:40]MH_I2C_Read... [22:42:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:41]Read from MH i2c: E2 [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: E2 03 00 [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: E2 03 00 54 26 00 90 00 EE [22:42:41]RAPDU: 90 00 [22:42:41]wFMCommunicate OK [22:42:41]wFMCommunicate request_size=32 [22:42:41]MH_SAM_APDU [22:42:41]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 39 33 37 10 04 04 00 34 6A 00 00 35 04 06 00 6F CA 2A 3E 2F E0 [22:42:41]Write to MH i2c: E2 23 00 55 26 80 0D 02 02 1B 00 30 30 30 38 37 34 39 33 37 10 04 04 00 34 6A 00 00 35 04 06 00 6F CA 2A 3E 2F E0 00 00 A6 [22:42:41]Write i2c OK [22:42:41]MH_I2C_Read... [22:42:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:42:41]Read from MH i2c: E2 [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: E2 03 00 [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: E2 03 00 55 26 00 90 00 EF [22:42:41]RAPDU: 90 00 [22:42:41]wFMCommunicate OK [22:42:41]wFMCommunicate request_size=4 [22:42:41]MH_SAM_APDU [22:42:41]CAPDU: 80 0D 03 02 [22:42:41]Write to MH i2c: E2 08 00 56 26 80 0D 03 02 00 00 00 00 F7 [22:42:41]Write i2c OK [22:42:41]MH_I2C_Read... [22:42:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:42:41]Read from MH i2c: E2 [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: E2 0B 00 [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: E2 0B 00 56 26 00 A3 4C 27 C0 30 5E C7 18 90 00 3B [22:42:41]RAPDU: A3 4C 27 C0 30 5E C7 18 90 00 [22:42:41]wFMCommunicate OK [22:42:41]SAM_PROTO_SignData done [22:42:41]FM_MakeSignedData done [22:42:41]CreateOFDProtocolMessage [22:42:41]wFMCommunicate request_size=4 [22:42:41]MH_SAM_APDU [22:42:41]CAPDU: 80 11 00 00 [22:42:41]Write to MH i2c: E2 08 00 57 26 80 11 00 00 00 00 00 00 F7 [22:42:41]Write i2c OK [22:42:41]MH_I2C_Read... [22:42:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:41]Read from MH i2c: E2 [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: E2 17 00 [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: E2 17 00 57 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 50 [22:42:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [22:42:41]wFMCommunicate OK [22:42:41]CreateOFDProtocolMessage done [22:42:41]OFDSenderStorePacket 27188 [22:42:41]StoreOFDPacket docnum=27188 [22:42:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 25 01 00 00 BE E0 1D 01 11 8D 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 5B 00 00 00 F4 03 04 00 E7 1A A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 34 6A 00 00 35 04 06 00 6F CA 2A 3E 2F E0 A3 4C 27 C0 30 5E C7 18 [22:42:41]CheckFolder [22:42:41]dirname=/storage/ofd_packets [22:42:41]CheckFolder done [22:42:41]ProducePacketName [22:42:41]name=ofd_packets/00027188 [22:42:41]NVStorageSaveData ofd_packets/00027188 [22:42:41]File name is /storage/ofd_packets/00027188 [22:42:41]Write 323 bytes [22:42:41]NVStorageSaveData done [22:42:41]OFDSenderStorePacket done [22:42:41]KKMCreateOFDPacket done [22:42:41]NVStorageSaveData kkm_last_timestamp [22:42:41]File name is /storage/kkm_last_timestamp [22:42:41]Write 4 bytes [22:42:41]NVStorageSaveData done [22:42:41]ExternCall_PrintAddStr [22:42:41]wPrintStart [22:42:41]Write to MH i2c: 01 00 00 58 26 7E [22:42:41]Write i2c OK [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: 01 [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: 01 07 00 [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: 01 07 00 58 26 00 00 00 00 00 FF 0F 93 [22:42:41]RasterBufferAndPrint [22:42:41]line Счет N : (3)150586 [22:42:41]line ИНН: 02508201610067 [22:42:41]line Контрольно-Кассовый Чек [22:42:41]line ПРОДАЖА [22:42:41]line Товар: 48743570 [22:42:41]line Сигареты Winston XStyle Blue [22:42:41]line 1.000 * 140.00 [22:42:41]line = 140.00 [22:42:41]line НДС 12% НСП 1% [22:42:41]line > о реализуемом товаре [22:42:41]line ИТОГО: 140.00 [22:42:41]line НСП 1% : 1.24 [22:42:41]line НДС 12% : 14.87 [22:42:41]line Наличными: 140.00 [22:42:41]line Безнал.: 0.00 [22:42:41]line Место: АЗС № 134 "Партнер Нефть" [22:42:41]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:42:41]line СНО: Общий режим [22:42:41]line Чек 91 29.07.2024 22:42 [22:42:41]line Смена: 434 ФФД: 1.0 [22:42:41]line ЗНМ: 0300000043 [22:42:41]line РНМ: 0000000000092663 [22:42:41]line Версия ККМ: 001 [22:42:41]line ФМ: 0000000000874937 [22:42:41]line ФД: 27188 [22:42:41]line ФПД: 122914082795488 [22:42:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T224247&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27188&fm=122914082795488&tin=02508201610067®Number=0000000000092663&sum=14000 [22:42:41]line 0 [22:42:41]written 0, free lines is 4095 [22:42:41]OFD Sender: Processing packet 27188 [packets to send 9, broken 8] [22:42:41]ProducePacketName [22:42:41]name=ofd_packets/00027188 [22:42:41]OFD Sender: To server: pG, [22:42:41]CommunicateWithHost lk.salyk.kg:30040 [22:42:41]ConnectInit lk.salyk.kg [22:42:41]Write to MH i2c: 01 00 00 7F 26 A5 [22:42:41]Write i2c OK [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: 01 [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: 01 07 00 [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: 01 07 00 7F 26 00 00 00 00 00 F6 0C AE [22:42:41]RasterBufferAndPrint [22:42:41]line [22:42:41]line [22:42:41]line [22:42:41]line [22:42:41]line [22:42:41]written 0, free lines is 3325 [22:42:41]Connected sock=10 [22:42:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 25 01 00 00 BE E0 1D 01 11 8D 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 5B 00 00 00 F4 03 04 00 E7 1A A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 34 6A 00 00 35 04 06 00 6F CA 2A 3E 2F E0 A3 4C 27 C0 30 5E C7 18 [22:42:41]MH_Cut [22:42:41]Write to MH i2c: D1 01 00 86 26 01 7E [22:42:41]Write i2c OK [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: D1 [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: D1 01 00 [22:42:41]MH_I2C_Read... [22:42:41]Read from MH i2c: D1 01 00 86 26 00 7D [22:42:41]Write to MH i2c: 01 00 00 87 26 AD [22:42:41]Write i2c OK [22:42:41]MH_I2C_Read... [22:42:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 5F 7B 47 00 A5 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 34 6A 00 00 F4 03 04 00 36 C1 A7 66 B6 04 01 00 00 45 E7 06 56 51 A5 C2 13 [22:42:41]CommunicateWithHost err = 0 [22:42:41]CheckOFDResponse [22:42:41]1017 (14) - 77093643461234 [22:42:41]1041 (16) - 0000000000874937 [22:42:41]1040 (4) - 27188 [22:42:41]1012 (4) - 29.07.2024 16:20 [22:42:41]1206 (1) - 0 [22:42:41]OFD Sender: Remove packet 27188 [22:42:41]ProducePacketName [22:42:41]name=ofd_packets/00027188 [22:42:41]NVStorageDeleteData [22:42:42]OFD Sender: No OFD packet to send [22:42:42]*** Cut start [22:42:42]*** Partial cut [22:42:42]*** CUTSNS_PIN = 1 [22:42:42]*** CUTSNS_PIN = 0 [22:42:42]*** Brake cut motor [22:42:42]Read from MH i2c: 01 [22:42:42]MH_I2C_Read... [22:42:42]*** Stop cut motor [22:42:42]*** Cut end [22:42:42]Read from MH i2c: 01 07 00 [22:42:42]MH_I2C_Read... [22:42:42]Read from MH i2c: 01 07 00 87 26 00 00 00 00 00 FF 0F C2 [22:42:42]process_action close_receipt done [22:42:42]requested_data is exist [22:42:42]produce_requested_data [22:42:42]requested_item fm.sn is exist - process it [22:42:42]wFMCommunicate request_size=4 [22:42:42]MH_SAM_APDU [22:42:42]CAPDU: 80 11 00 00 [22:42:42]Write to MH i2c: E2 08 00 88 26 80 11 00 00 00 00 00 00 28 [22:42:42]Write i2c OK [22:42:42]MH_I2C_Read... [22:42:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:42:43]Read from MH i2c: E2 [22:42:43]MH_I2C_Read... [22:42:43]Read from MH i2c: E2 17 00 [22:42:43]MH_I2C_Read... [22:42:43]Read from MH i2c: E2 17 00 88 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 81 [22:42:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [22:42:43]wFMCommunicate OK [22:42:43]requested_item fd.num is exist - process it [22:42:43]SAM_PROTO_GetFieldsCounters [22:42:43]wFMCommunicate request_size=4 [22:42:43]MH_SAM_APDU [22:42:43]CAPDU: 80 13 00 00 [22:42:43]Write to MH i2c: E2 08 00 89 26 80 13 00 00 00 00 00 00 2B [22:42:43]Write i2c OK [22:42:43]MH_I2C_Read... [22:42:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:42:43]Read from MH i2c: E2 [22:42:43]MH_I2C_Read... [22:42:43]Read from MH i2c: E2 62 00 [22:42:43]MH_I2C_Read... [22:42:43]Read from MH i2c: E2 62 00 89 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 34 6A 00 00 0E 04 04 00 B2 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 B5 [22:42:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 34 6A 00 00 0E 04 04 00 B2 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 [22:42:43]wFMCommunicate OK [22:42:43]SAM_PROTO_GetFieldsCounters done [22:42:43]requested_item shift.num is exist - process it [22:42:43]requested_item shift.opened is exist - process it [22:42:43]req_shift_opened [22:42:43]FM_GetShiftState [22:42:43]SAM_PROTO_GetShiftState [22:42:43]wFMCommunicate request_size=4 [22:42:43]MH_SAM_APDU [22:42:43]CAPDU: 80 13 01 00 [22:42:43]Write to MH i2c: E2 08 00 8A 26 80 13 01 00 00 00 00 00 2D [22:42:43]Write i2c OK [22:42:43]MH_I2C_Read... [22:42:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:42:43]Read from MH i2c: E2 [22:42:43]MH_I2C_Read... [22:42:43]Read from MH i2c: E2 0E 00 [22:42:43]MH_I2C_Read... [22:42:43]Read from MH i2c: E2 0E 00 8A 26 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 AE [22:42:43]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [22:42:43]wFMCommunicate OK [22:42:43]SAM_PROTO_GetShiftState done [22:42:43]FM_GetShiftState done [22:42:43]req_shift_opened done [22:42:43]requested_item shift.open_date is exist - process it [22:42:43]req_shift_open_date [22:42:43]req_shift_open_date done [22:42:43]produce_requested_data done [22:42:43]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27188,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [22:42:43]process_action_free close_receipt [22:42:43]json_value_free [22:42:43]json_value_free done [22:42:43]process_json_proto returns [22:42:43]Send response to host [22:42:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27188,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [22:42:43]free response buf [22:42:43]execute_script done [22:42:43]execute_script returns [22:42:43]free content buf [22:42:43]Sock 8.Close socket [22:42:43]Sock 8.Thread stoped [22:42:47]OFD Sender: No OFD packet to send [22:42:52]OFD Sender: No OFD packet to send [22:42:57]OFD Sender: No OFD packet to send [22:43:02]OFD Sender: No OFD packet to send [22:43:07]OFD Sender: No OFD packet to send [22:43:12]OFD Sender: No OFD packet to send [22:43:17]OFD Sender: No OFD packet to send [22:43:22]OFD Sender: No OFD packet to send [22:43:27]OFD Sender: No OFD packet to send [22:43:32]OFD Sender: No OFD packet to send [22:43:37]OFD Sender: No OFD packet to send [22:43:42]OFD Sender: No OFD packet to send [22:43:47]OFD Sender: No OFD packet to send [22:43:52]OFD Sender: No OFD packet to send [22:43:57]OFD Sender: No OFD packet to send [22:44:02]OFD Sender: No OFD packet to send [22:44:07]OFD Sender: No OFD packet to send [22:44:12]OFD Sender: No OFD packet to send [22:44:17]OFD Sender: No OFD packet to send [22:44:22]OFD Sender: No OFD packet to send [22:44:27]OFD Sender: No OFD packet to send [22:44:32]OFD Sender: No OFD packet to send [22:44:37]OFD Sender: No OFD packet to send [22:44:42]OFD Sender: No OFD packet to send [22:44:47]OFD Sender: No OFD packet to send [22:44:52]OFD Sender: No OFD packet to send [22:44:57]OFD Sender: No OFD packet to send [22:45:02]OFD Sender: No OFD packet to send [22:45:07]OFD Sender: No OFD packet to send [22:45:12]OFD Sender: No OFD packet to send [22:45:17]OFD Sender: No OFD packet to send [22:45:22]OFD Sender: No OFD packet to send [22:45:27]OFD Sender: No OFD packet to send [22:45:32]OFD Sender: No OFD packet to send [22:45:37]OFD Sender: No OFD packet to send [22:45:42]OFD Sender: No OFD packet to send [22:45:47]OFD Sender: No OFD packet to send [22:45:52]OFD Sender: No OFD packet to send [22:45:57]OFD Sender: No OFD packet to send [22:46:02]OFD Sender: No OFD packet to send [22:46:07]OFD Sender: No OFD packet to send [22:46:12]OFD Sender: No OFD packet to send [22:46:17]OFD Sender: No OFD packet to send [22:46:22]OFD Sender: No OFD packet to send [22:46:27]OFD Sender: No OFD packet to send [22:46:32]OFD Sender: No OFD packet to send [22:46:37]OFD Sender: No OFD packet to send [22:46:42]OFD Sender: No OFD packet to send [22:46:47]OFD Sender: No OFD packet to send [22:46:52]OFD Sender: No OFD packet to send [22:46:57]OFD Sender: No OFD packet to send [22:47:02]OFD Sender: No OFD packet to send [22:47:07]OFD Sender: No OFD packet to send [22:47:12]OFD Sender: No OFD packet to send [22:47:17]OFD Sender: No OFD packet to send [22:47:22]OFD Sender: No OFD packet to send [22:47:27]OFD Sender: No OFD packet to send [22:47:32]OFD Sender: No OFD packet to send [22:47:37]OFD Sender: No OFD packet to send [22:47:42]OFD Sender: No OFD packet to send [22:47:47]OFD Sender: No OFD packet to send [22:47:52]OFD Sender: No OFD packet to send [22:47:57]OFD Sender: No OFD packet to send [22:48:02]OFD Sender: No OFD packet to send [22:48:07]OFD Sender: No OFD packet to send [22:48:12]OFD Sender: No OFD packet to send [22:48:17]OFD Sender: No OFD packet to send [22:48:22]OFD Sender: No OFD packet to send [22:48:27]OFD Sender: No OFD packet to send [22:48:32]OFD Sender: No OFD packet to send [22:48:37]OFD Sender: No OFD packet to send [22:48:42]accept exits with 9 [22:48:42]New connection [22:48:42]New thread 3066785124 created [22:48:42]Thread 3066928484 joined [22:48:42]Waiting for new connection... [22:48:42] Sock 9.Parse request [22:48:42]Sock 9.Check first char [22:48:42]Sock 9.First char is OK [22:48:42]request: POST /json_proto HTTP/1.0 [22:48:42]Method: POST [22:48:42]URL: /json_proto [22:48:42]Method is POST - this is cgi request [22:48:42]url: /json_proto [22:48:42]query_string will be loaded in cgi processing [22:48:42]execute_cgi json_proto POST (null) [22:48:42]execute_cgi path=json_proto method=POST [22:48:42]POST find Content-Length [22:48:42]Host: 172.17.45.8:8080 [22:48:42]Content-Length: 646 [22:48:42]Content-Type: application/json [22:48:42] [22:48:42]POST finish read [22:48:42]Found Content-Length = 646 [22:48:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150587", "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" ] } } [22:48:42]execute_script... [22:48: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)150587", "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" ] } } [22:48:42]POST & json_proto [22:48:42]process_json_proto [22:48:42]json parsed OK: [22:48:42]protocol is kg_v1.0 [22:48:42]action value=close_receipt [22:48:42]process_action close_receipt [22:48:42]cmd_close_receipt [22:48:42]MH_GetDate [22:48:42]Write to MH i2c: F0 00 00 8B 26 A0 [22:48:42]Write i2c OK [22:48:42]MH_I2C_Read... [22:48:42]Read from MH i2c: F0 [22:48:42]MH_I2C_Read... [22:48:42]Read from MH i2c: F0 09 00 [22:48:42]MH_I2C_Read... [22:48:42]Read from MH i2c: F0 09 00 8B 26 00 52 1C A8 66 A6 1F 7F 64 CD [22:48:42]GetLastDocTimeStamp 1722292967 [22:48:42]current date 1722293330 [22:48:42]FM_GetShiftState [22:48:42]SAM_PROTO_GetShiftState [22:48:42]wFMCommunicate request_size=4 [22:48:42]MH_SAM_APDU [22:48:42]CAPDU: 80 13 01 00 [22:48:42]Write to MH i2c: E2 08 00 8C 26 80 13 01 00 00 00 00 00 2F [22:48:42]Write i2c OK [22:48:42]MH_I2C_Read... [22:48:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:42]Read from MH i2c: E2 [22:48:42]MH_I2C_Read... [22:48:42]Read from MH i2c: E2 0E 00 [22:48:42]MH_I2C_Read... [22:48:42]Read from MH i2c: E2 0E 00 8C 26 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 B0 [22:48:42]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [22:48:42]wFMCommunicate OK [22:48:42]SAM_PROTO_GetShiftState done [22:48:42]FM_GetShiftState done [22:48:42]opened in 1722213509 [22:48:42]opened+sec_in_day 1722299909 [22:48:42]quantity*price = 13000 [22:48:42]sum+1 = 13001 [22:48:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 92 29.07.2024 22:48 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27189 ФПД: 94059725962157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T224850&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27189&fm=94059725962157&tin=02508201610067®Number=0000000000092663&sum=13000 0 [22:48:43]StoreToDocumentArchive [22:48:43]shift 434 fd 27189 [22:48:43]save to /storage/0434/doc_00027189 [22:48:43]save last doc name /storage/0434/doc_00027189 to /storage/kkm_last_doc_name [22:48:43]save OK [22:48:43]Clear old archive folders... [22:48:43]ProcessDocumentItem done err = 0, tmpTLVsize=282 [22:48:43]tlvbuf is 001AC870 [22:48:43]SAM_PROTO_ClearQueue [22:48:43]wFMCommunicate request_size=4 [22:48:43]MH_SAM_APDU [22:48:43]CAPDU: 80 09 00 00 [22:48:43]Write to MH i2c: E2 08 00 99 26 80 09 00 00 00 00 00 00 31 [22:48:43]Write i2c OK [22:48:43]MH_I2C_Read... [22:48:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:48:43]Read from MH i2c: E2 [22:48:43]MH_I2C_Read... [22:48:43]Read from MH i2c: E2 03 00 [22:48:43]MH_I2C_Read... [22:48:43]Read from MH i2c: E2 03 00 99 26 00 90 00 33 [22:48:43]RAPDU: 90 00 [22:48:43]wFMCommunicate OK [22:48:43]SAM_PROTO_ClearQueue done [22:48:43]KKMCreateOFDPacket [22:48:43]OFDProtocolAddRootSTLVToBuf [22:48:43]FM_MakeSignedData [22:48:43]FM_MakeSignedData [22:48:43]SAM_PROTO_SignData [22:48:43]wFMCommunicate request_size=4 [22:48:43]MH_SAM_APDU [22:48:43]CAPDU: 80 0D 01 02 [22:48:43]Write to MH i2c: E2 08 00 9A 26 80 0D 01 02 00 00 00 00 39 [22:48:43]Write i2c OK [22:48:43]MH_I2C_Read... [22:48:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:48:43]Read from MH i2c: E2 [22:48:43]MH_I2C_Read... [22:48:43]Read from MH i2c: E2 03 00 [22:48:43]MH_I2C_Read... [22:48:43]Read from MH i2c: E2 03 00 9A 26 00 90 00 34 [22:48:43]RAPDU: 90 00 [22:48:43]wFMCommunicate OK [22:48:43]wFMCommunicate request_size=255 [22:48:43]MH_SAM_APDU [22:48:43]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 5C 00 00 00 F4 03 04 00 52 1C A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 [22:48:43]Write to MH i2c: E2 02 01 9B 26 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 5C 00 00 00 F4 03 04 00 52 1C A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 00 00 D4 [22:48:43]Write i2c OK [22:48:43]MH_I2C_Read... [22:48:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:44]Read from MH i2c: E2 [22:48:44]MH_I2C_Read... [22:48:44]Read from MH i2c: E2 03 00 [22:48:44]MH_I2C_Read... [22:48:44]Read from MH i2c: E2 03 00 9B 26 00 90 00 35 [22:48:44]RAPDU: 90 00 [22:48:44]wFMCommunicate OK [22:48:44]wFMCommunicate request_size=41 [22:48:44]MH_SAM_APDU [22:48:44]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 35 6A 00 00 35 04 06 00 55 8B FC 8D BB AD [22:48:44]Write to MH i2c: E2 2C 00 9C 26 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 35 6A 00 00 35 04 06 00 55 8B FC 8D BB AD 00 00 81 [22:48:44]Write i2c OK [22:48:44]MH_I2C_Read... [22:48:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:44]Read from MH i2c: E2 [22:48:44]MH_I2C_Read... [22:48:44]Read from MH i2c: E2 03 00 [22:48:44]MH_I2C_Read... [22:48:44]Read from MH i2c: E2 03 00 9C 26 00 90 00 36 [22:48:44]RAPDU: 90 00 [22:48:44]wFMCommunicate OK [22:48:44]wFMCommunicate request_size=4 [22:48:44]MH_SAM_APDU [22:48:44]CAPDU: 80 0D 03 02 [22:48:44]Write to MH i2c: E2 08 00 9D 26 80 0D 03 02 00 00 00 00 3E [22:48:44]Write i2c OK [22:48:44]MH_I2C_Read... [22:48:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:48:44]Read from MH i2c: E2 [22:48:44]MH_I2C_Read... [22:48:44]Read from MH i2c: E2 0B 00 [22:48:44]MH_I2C_Read... [22:48:44]Read from MH i2c: E2 0B 00 9D 26 00 D4 1C 21 D3 52 37 E7 58 90 00 EB [22:48:44]RAPDU: D4 1C 21 D3 52 37 E7 58 90 00 [22:48:44]wFMCommunicate OK [22:48:44]SAM_PROTO_SignData done [22:48:44]FM_MakeSignedData done [22:48:44]CreateOFDProtocolMessage [22:48:44]wFMCommunicate request_size=4 [22:48:44]MH_SAM_APDU [22:48:44]CAPDU: 80 11 00 00 [22:48:44]Write to MH i2c: E2 08 00 9E 26 80 11 00 00 00 00 00 00 3E [22:48:44]Write i2c OK [22:48:44]MH_I2C_Read... [22:48:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:44]Read from MH i2c: E2 [22:48:44]MH_I2C_Read... [22:48:44]Read from MH i2c: E2 17 00 [22:48:44]MH_I2C_Read... [22:48:44]Read from MH i2c: E2 17 00 9E 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 97 [22:48:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [22:48:44]wFMCommunicate OK [22:48:44]CreateOFDProtocolMessage done [22:48:44]OFDSenderStorePacket 27189 [22:48:44]StoreOFDPacket docnum=27189 [22:48:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 2E 01 00 00 D4 F6 26 01 09 D6 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 5C 00 00 00 F4 03 04 00 52 1C A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 35 6A 00 00 35 04 06 00 55 8B FC 8D BB AD D4 1C 21 D3 52 37 E7 58 [22:48:44]CheckFolder [22:48:44]dirname=/storage/ofd_packets [22:48:44]CheckFolder done [22:48:44]ProducePacketName [22:48:44]name=ofd_packets/00027189 [22:48:44]NVStorageSaveData ofd_packets/00027189 [22:48:44]File name is /storage/ofd_packets/00027189 [22:48:44]Write 332 bytes [22:48:44]NVStorageSaveData done [22:48:44]OFDSenderStorePacket done [22:48:44]KKMCreateOFDPacket done [22:48:44]NVStorageSaveData kkm_last_timestamp [22:48:44]File name is /storage/kkm_last_timestamp [22:48:44]Write 4 bytes [22:48:44]NVStorageSaveData done [22:48:44]ExternCall_PrintAddStr [22:48:44]wPrintStart [22:48:44]Write to MH i2c: 01 00 00 9F 26 C5 [22:48:44]Write i2c OK [22:48:44]MH_I2C_Read... [22:48:44]Read from MH i2c: 01 [22:48:44]MH_I2C_Read... [22:48:44]Read from MH i2c: 01 07 00 [22:48:44]MH_I2C_Read... [22:48:44]Read from MH i2c: 01 07 00 9F 26 00 00 00 00 00 FF 0F DA [22:48:44]RasterBufferAndPrint [22:48:44]line Счет N : (3)150587 [22:48:44]line ИНН: 02508201610067 [22:48:44]line Контрольно-Кассовый Чек [22:48:44]line ПРОДАЖА [22:48:44]line Товар: 2000036220012 [22:48:44]line Кофе Капучино XL(GABB TRADE) [22:48:44]line 1.000 * 130.00 [22:48:44]line = 130.00 [22:48:44]line НДС 12% НСП 1% [22:48:44]line > о реализуемом товаре [22:48:44]line ИТОГО: 130.00 [22:48:44]line НСП 1% : 1.15 [22:48:44]line НДС 12% : 13.80 [22:48:44]line Наличными: 130.00 [22:48:44]line Безнал.: 0.00 [22:48:44]line Место: АЗС № 134 "Партнер Нефть" [22:48:44]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:48:44]line СНО: Общий режим [22:48:44]line Чек 92 29.07.2024 22:48 [22:48:44]line Смена: 434 ФФД: 1.0 [22:48:44]line ЗНМ: 0300000043 [22:48:44]line РНМ: 0000000000092663 [22:48:44]line Версия ККМ: 001 [22:48:44]line ФМ: 0000000000874937 [22:48:44]line ФД: 27189 [22:48:44]line ФПД: 94059725962157 [22:48:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T224850&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27189&fm=94059725962157&tin=02508201610067®Number=0000000000092663&sum=13000 [22:48:44]OFD Sender: Processing packet 27189 [packets to send 9, broken 8] [22:48:44]ProducePacketName [22:48:44]name=ofd_packets/00027189 [22:48:44]OFD Sender: To server: pG, [22:48:44]CommunicateWithHost lk.salyk.kg:30040 [22:48:44]ConnectInit lk.salyk.kg [22:48:44]line 0 [22:48:44]written 0, free lines is 4095 [22:48:44]Connected sock=10 [22:48:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 2E 01 00 00 D4 F6 26 01 09 D6 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 5C 00 00 00 F4 03 04 00 52 1C A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 35 6A 00 00 35 04 06 00 55 8B FC 8D BB AD D4 1C 21 D3 52 37 E7 58 [22:48:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 C3 84 47 00 FA 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 35 6A 00 00 F4 03 04 00 A1 C2 A7 66 B6 04 01 00 00 3F DF 2C 75 25 CD EA A4 [22:48:44]CommunicateWithHost err = 0 [22:48:44]CheckOFDResponse [22:48:44]1017 (14) - 77093643461234 [22:48:44]1041 (16) - 0000000000874937 [22:48:44]1040 (4) - 27189 [22:48:44]1012 (4) - 29.07.2024 16:26 [22:48:44]1206 (1) - 0 [22:48:44]OFD Sender: Remove packet 27189 [22:48:44]ProducePacketName [22:48:44]name=ofd_packets/00027189 [22:48:44]NVStorageDeleteData [22:48:44]Write to MH i2c: 01 00 00 C7 26 ED [22:48:44]Write i2c OK [22:48:44]MH_I2C_Read... [22:48:44]Read from MH i2c: 01 [22:48:44]MH_I2C_Read... [22:48:44]Read from MH i2c: 01 07 00 [22:48:44]MH_I2C_Read... [22:48:44]Read from MH i2c: 01 07 00 C7 26 00 00 00 00 00 EB 0C EB [22:48:44]RasterBufferAndPrint [22:48:44]line [22:48:44]line [22:48:44]line [22:48:44]line [22:48:44]line [22:48:44]written 0, free lines is 3313 [22:48:44]MH_Cut [22:48:44]Write to MH i2c: D1 01 00 CE 26 01 C6 [22:48:44]Write i2c OK [22:48:44]MH_I2C_Read... [22:48:44]Read from MH i2c: D1 [22:48:44]MH_I2C_Read... [22:48:44]Read from MH i2c: D1 01 00 [22:48:44]MH_I2C_Read... [22:48:44]Read from MH i2c: D1 01 00 CE 26 00 C5 [22:48:44]Write to MH i2c: 01 00 00 CF 26 F5 [22:48:44]Write i2c OK [22:48:44]MH_I2C_Read... [22:48:45]OFD Sender: No OFD packet to send [22:48:45]*** Cut start [22:48:45]*** Partial cut [22:48:45]*** CUTSNS_PIN = 1 [22:48:45]*** CUTSNS_PIN = 0 [22:48:45]*** Brake cut motor [22:48:46]Read from MH i2c: 01 [22:48:46]MH_I2C_Read... [22:48:46]*** Stop cut motor [22:48:46]*** Cut end [22:48:46]Read from MH i2c: 01 07 00 [22:48:46]MH_I2C_Read... [22:48:46]Read from MH i2c: 01 07 00 CF 26 00 00 00 00 00 FF 0F 0A [22:48:46]process_action close_receipt done [22:48:46]requested_data is exist [22:48:46]produce_requested_data [22:48:46]requested_item fm.sn is exist - process it [22:48:46]wFMCommunicate request_size=4 [22:48:46]MH_SAM_APDU [22:48:46]CAPDU: 80 11 00 00 [22:48:46]Write to MH i2c: E2 08 00 D0 26 80 11 00 00 00 00 00 00 70 [22:48:46]Write i2c OK [22:48:46]MH_I2C_Read... [22:48:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:46]Read from MH i2c: E2 [22:48:46]MH_I2C_Read... [22:48:46]Read from MH i2c: E2 17 00 [22:48:46]MH_I2C_Read... [22:48:46]Read from MH i2c: E2 17 00 D0 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 C9 [22:48:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [22:48:46]wFMCommunicate OK [22:48:46]requested_item fd.num is exist - process it [22:48:46]SAM_PROTO_GetFieldsCounters [22:48:46]wFMCommunicate request_size=4 [22:48:46]MH_SAM_APDU [22:48:46]CAPDU: 80 13 00 00 [22:48:46]Write to MH i2c: E2 08 00 D1 26 80 13 00 00 00 00 00 00 73 [22:48:46]Write i2c OK [22:48:46]MH_I2C_Read... [22:48:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:48:46]Read from MH i2c: E2 [22:48:46]MH_I2C_Read... [22:48:46]Read from MH i2c: E2 62 00 [22:48:46]MH_I2C_Read... [22:48:46]Read from MH i2c: E2 62 00 D1 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 35 6A 00 00 0E 04 04 00 B2 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 01 [22:48: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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 35 6A 00 00 0E 04 04 00 B2 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 [22:48:46]wFMCommunicate OK [22:48:46]SAM_PROTO_GetFieldsCounters done [22:48:46]requested_item shift.num is exist - process it [22:48:46]requested_item shift.opened is exist - process it [22:48:46]req_shift_opened [22:48:46]FM_GetShiftState [22:48:46]SAM_PROTO_GetShiftState [22:48:46]wFMCommunicate request_size=4 [22:48:46]MH_SAM_APDU [22:48:46]CAPDU: 80 13 01 00 [22:48:46]Write to MH i2c: E2 08 00 D2 26 80 13 01 00 00 00 00 00 75 [22:48:46]Write i2c OK [22:48:46]MH_I2C_Read... [22:48:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:46]Read from MH i2c: E2 [22:48:46]MH_I2C_Read... [22:48:46]Read from MH i2c: E2 0E 00 [22:48:46]MH_I2C_Read... [22:48:46]Read from MH i2c: E2 0E 00 D2 26 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 F6 [22:48:46]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [22:48:46]wFMCommunicate OK [22:48:46]SAM_PROTO_GetShiftState done [22:48:46]FM_GetShiftState done [22:48:46]req_shift_opened done [22:48:46]requested_item shift.open_date is exist - process it [22:48:46]req_shift_open_date [22:48:46]req_shift_open_date done [22:48:46]produce_requested_data done [22:48:46]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27189,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [22:48:46]process_action_free close_receipt [22:48:46]json_value_free [22:48:46]json_value_free done [22:48:46]process_json_proto returns [22:48:46]Send response to host [22:48:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27189,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [22:48:46]free response buf [22:48:46]execute_script done [22:48:46]execute_script returns [22:48:46]free content buf [22:48:46]Sock 9.Close socket [22:48:46]Sock 9.Thread stoped [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:49:55]accept exits with 8 [22:49:55]New connection [22:49:55]New thread 3066928484 created [22:49:55]Thread 3066785124 joined [22:49:55]Waiting for new connection... [22:49:55] Sock 8.Parse request [22:49:55]Sock 8.Check first char [22:49:55]Sock 8.First char is OK [22:49:55]request: POST /json_proto HTTP/1.0 [22:49:55]Method: POST [22:49:55]URL: /json_proto [22:49:55]Method is POST - this is cgi request [22:49:55]url: /json_proto [22:49:55]query_string will be loaded in cgi processing [22:49:55]execute_cgi json_proto POST (null) [22:49:55]execute_cgi path=json_proto method=POST [22:49:55]POST find Content-Length [22:49:55]Host: 172.17.45.8:8080 [22:49:55]Content-Length: 877 [22:49:55]Content-Type: application/json [22:49:55] [22:49:55]POST finish read [22:49:55]Found Content-Length = 877 [22:49:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150588", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 4.000, "sum" : 400.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\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" : 450.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:49:55]execute_script... [22:49: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 : (3)150588", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 4.000, "sum" : 400.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\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" : 450.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:49:55]POST & json_proto [22:49:55]process_json_proto [22:49:55]json parsed OK: [22:49:55]protocol is kg_v1.0 [22:49:55]action value=close_receipt [22:49:55]process_action close_receipt [22:49:55]cmd_close_receipt [22:49:55]MH_GetDate [22:49:55]Write to MH i2c: F0 00 00 D3 26 E8 [22:49:55]Write i2c OK [22:49:55]MH_I2C_Read... [22:49:55]Read from MH i2c: F0 [22:49:55]MH_I2C_Read... [22:49:55]Read from MH i2c: F0 09 00 [22:49:55]MH_I2C_Read... [22:49:55]Read from MH i2c: F0 09 00 D3 26 00 9B 1C A8 66 A6 1F 7F 64 5E [22:49:55]GetLastDocTimeStamp 1722293330 [22:49:55]current date 1722293403 [22:49:55]FM_GetShiftState [22:49:55]SAM_PROTO_GetShiftState [22:49:55]wFMCommunicate request_size=4 [22:49:55]MH_SAM_APDU [22:49:55]CAPDU: 80 13 01 00 [22:49:55]Write to MH i2c: E2 08 00 D4 26 80 13 01 00 00 00 00 00 77 [22:49:55]Write i2c OK [22:49:55]MH_I2C_Read... [22:49:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:49:55]Read from MH i2c: E2 [22:49:55]MH_I2C_Read... [22:49:55]Read from MH i2c: E2 0E 00 [22:49:55]MH_I2C_Read... [22:49:55]Read from MH i2c: E2 0E 00 D4 26 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 F8 [22:49:55]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [22:49:55]wFMCommunicate OK [22:49:55]SAM_PROTO_GetShiftState done [22:49:55]FM_GetShiftState done [22:49:55]opened in 1722213509 [22:49:55]opened+sec_in_day 1722299909 [22:49:55]quantity*price = 40000 [22:49:55]sum+1 = 40001 [22:49:55]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 450.00 НСП 1% : 3.98 НДС 12% : 47.79 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 93 29.07.2024 22:50 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27190 ФПД: 129209662456637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T225003&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27190&fm=129209662456637&tin=02508201610067®Number=0000000000092663&sum=45000 0 [22:49:56]StoreToDocumentArchive [22:49:56]shift 434 fd 27190 [22:49:56]save to /storage/0434/doc_00027190 [22:49:56]save last doc name /storage/0434/doc_00027190 to /storage/kkm_last_doc_name [22:49:56]save OK [22:49:56]Clear old archive folders... [22:49:56]ProcessDocumentItem done err = 0, tmpTLVsize=369 [22:49:56]tlvbuf is 001A8460 [22:49:56]SAM_PROTO_ClearQueue [22:49:56]wFMCommunicate request_size=4 [22:49:56]MH_SAM_APDU [22:49:56]CAPDU: 80 09 00 00 [22:49:56]Write to MH i2c: E2 08 00 E1 26 80 09 00 00 00 00 00 00 79 [22:49:56]Write i2c OK [22:49:56]MH_I2C_Read... [22:49:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:49:56]Read from MH i2c: E2 [22:49:56]MH_I2C_Read... [22:49:56]Read from MH i2c: E2 03 00 [22:49:56]MH_I2C_Read... [22:49:56]Read from MH i2c: E2 03 00 E1 26 00 90 00 7B [22:49:56]RAPDU: 90 00 [22:49:56]wFMCommunicate OK [22:49:56]SAM_PROTO_ClearQueue done [22:49:56]KKMCreateOFDPacket [22:49:56]OFDProtocolAddRootSTLVToBuf [22:49:56]FM_MakeSignedData [22:49:56]FM_MakeSignedData [22:49:56]SAM_PROTO_SignData [22:49:56]wFMCommunicate request_size=4 [22:49:56]MH_SAM_APDU [22:49:56]CAPDU: 80 0D 01 02 [22:49:56]Write to MH i2c: E2 08 00 E2 26 80 0D 01 02 00 00 00 00 81 [22:49:56]Write i2c OK [22:49:56]MH_I2C_Read... [22:49:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:49:56]Read from MH i2c: E2 [22:49:56]MH_I2C_Read... [22:49:56]Read from MH i2c: E2 03 00 [22:49:56]MH_I2C_Read... [22:49:56]Read from MH i2c: E2 03 00 E2 26 00 90 00 7C [22:49:56]RAPDU: 90 00 [22:49:56]wFMCommunicate OK [22:49:56]wFMCommunicate request_size=255 [22:49:56]MH_SAM_APDU [22:49:56]CAPDU: 80 0D 02 02 FA 03 00 71 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 40 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 [22:49:56]Write to MH i2c: E2 02 01 E3 26 80 0D 02 02 FA 00 03 00 71 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 40 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 00 00 91 [22:49:56]Write i2c OK [22:49:56]MH_I2C_Read... [22:49:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:49:57]Read from MH i2c: E2 [22:49:57]MH_I2C_Read... [22:49:57]Read from MH i2c: E2 03 00 [22:49:57]MH_I2C_Read... [22:49:57]Read from MH i2c: E2 03 00 E3 26 00 90 00 7D [22:49:57]RAPDU: 90 00 [22:49:57]wFMCommunicate OK [22:49:57]wFMCommunicate request_size=128 [22:49:57]MH_SAM_APDU [22:49:57]CAPDU: 80 0D 02 02 7B F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 9B 1C A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 36 6A 00 00 35 04 06 00 75 83 F8 08 43 3D [22:49:57]Write to MH i2c: E2 83 00 E4 26 80 0D 02 02 7B 00 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 9B 1C A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 36 6A 00 00 35 04 06 00 75 83 F8 08 43 3D 00 00 D8 [22:49:57]Write i2c OK [22:49:57]MH_I2C_Read... [22:49:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:49:57]Read from MH i2c: E2 [22:49:57]MH_I2C_Read... [22:49:57]Read from MH i2c: E2 03 00 [22:49:57]MH_I2C_Read... [22:49:57]Read from MH i2c: E2 03 00 E4 26 00 90 00 7E [22:49:57]RAPDU: 90 00 [22:49:57]wFMCommunicate OK [22:49:57]wFMCommunicate request_size=4 [22:49:57]MH_SAM_APDU [22:49:57]CAPDU: 80 0D 03 02 [22:49:57]Write to MH i2c: E2 08 00 E5 26 80 0D 03 02 00 00 00 00 86 [22:49:57]Write i2c OK [22:49:57]MH_I2C_Read... [22:49:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:49:57]Read from MH i2c: E2 [22:49:57]MH_I2C_Read... [22:49:57]Read from MH i2c: E2 0B 00 [22:49:57]MH_I2C_Read... [22:49:57]Read from MH i2c: E2 0B 00 E5 26 00 67 45 52 D9 D8 70 65 C8 90 00 D3 [22:49:57]RAPDU: 67 45 52 D9 D8 70 65 C8 90 00 [22:49:57]wFMCommunicate OK [22:49:57]SAM_PROTO_SignData done [22:49:57]FM_MakeSignedData done [22:49:57]CreateOFDProtocolMessage [22:49:57]wFMCommunicate request_size=4 [22:49:57]MH_SAM_APDU [22:49:57]CAPDU: 80 11 00 00 [22:49:57]Write to MH i2c: E2 08 00 E6 26 80 11 00 00 00 00 00 00 86 [22:49:57]Write i2c OK [22:49:57]MH_I2C_Read... [22:49:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:49:57]Read from MH i2c: E2 [22:49:57]MH_I2C_Read... [22:49:57]Read from MH i2c: E2 17 00 [22:49:57]MH_I2C_Read... [22:49:57]Read from MH i2c: E2 17 00 E6 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 DF [22:49:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [22:49:57]wFMCommunicate OK [22:49:57]CreateOFDProtocolMessage done [22:49:57]OFDSenderStorePacket 27190 [22:49:57]StoreOFDPacket docnum=27190 [22:49:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 85 01 00 00 79 22 7D 01 63 A8 5A 03 01 00 03 00 71 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 40 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 9B 1C A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 36 6A 00 00 35 04 06 00 75 83 F8 08 43 3D 67 45 52 D9 D8 70 65 C8 [22:49:57]CheckFolder [22:49:57]dirname=/storage/ofd_packets [22:49:57]CheckFolder done [22:49:57]ProducePacketName [22:49:57]name=ofd_packets/00027190 [22:49:57]NVStorageSaveData ofd_packets/00027190 [22:49:57]File name is /storage/ofd_packets/00027190 [22:49:57]Write 419 bytes [22:49:57]NVStorageSaveData done [22:49:57]OFDSenderStorePacket done [22:49:57]KKMCreateOFDPacket done [22:49:57]NVStorageSaveData kkm_last_timestamp [22:49:57]File name is /storage/kkm_last_timestamp [22:49:57]Write 4 bytes [22:49:57]NVStorageSaveData done [22:49:57]ExternCall_PrintAddStr [22:49:57]wPrintStart [22:49:57]Write to MH i2c: 01 00 00 E7 26 0D [22:49:57]Write i2c OK [22:49:57]MH_I2C_Read... [22:49:57]Read from MH i2c: 01 [22:49:57]MH_I2C_Read... [22:49:57]Read from MH i2c: 01 07 00 [22:49:57]MH_I2C_Read... [22:49:57]Read from MH i2c: 01 07 00 E7 26 00 00 00 00 00 FF 0F 22 [22:49:57]RasterBufferAndPrint [22:49:57]line Счет N : (3)150588 [22:49:57]line ИНН: 02508201610067 [22:49:57]line Контрольно-Кассовый Чек [22:49:57]line ПРОДАЖА [22:49:57]line Товар: 4700000480814 [22:49:57]line Пиво Живое 0,5 ст [22:49:57]line 4.000 * 100.00 [22:49:57]line = 400.00 [22:49:57]line НДС 12% НСП 1% [22:49:57]line > о реализуемом товаре [22:49:57]line Товар: 4700000160358 [22:49:57]line Вода Легенда 1л [22:49:57]line 1.000 * 50.00 [22:49:57]line = 50.00 [22:49:57]line НДС 12% НСП 1% [22:49:57]line > о реализуемом товаре [22:49:57]line ИТОГО: 450.00 [22:49:57]line НСП 1% : 3.98 [22:49:57]line НДС 12% : 47.79 [22:49:57]line Наличными: 450.00 [22:49:57]line Безнал.: 0.00 [22:49:57]line Место: АЗС № 134 "Партнер Нефть" [22:49:57]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [22:49:57]line СНО: Общий режим [22:49:57]line Чек 93 29.07.2024 22:50 [22:49:57]line Смена: 434 ФФД: 1.0 [22:49:57]line ЗНМ: 0300000043 [22:49:57]line РНМ: 0000000000092663 [22:49:57]line Версия ККМ: 001 [22:49:57]line ФМ: 0000000000874937 [22:49:57]line ФД: 27190 [22:49:57]line ФПД: 129209662456637 [22:49:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T225003&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27190&fm=129209662456637&tin=02508201610067®Number=0000000000092663&sum=45000 [22:49:57]line 0 [22:49:57]OFD Sender: Processing packet 27190 [packets to send 9, broken 8] [22:49:57]ProducePacketName [22:49:57]name=ofd_packets/00027190 [22:49:57]OFD Sender: To server: pG, [22:49:57]CommunicateWithHost lk.salyk.kg:30040 [22:49:57]ConnectInit lk.salyk.kg [22:49:57]written 0, free lines is 4095 [22:49:57]Connected sock=10 [22:49:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 85 01 00 00 79 22 7D 01 63 A8 5A 03 01 00 03 00 71 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 40 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 9B 1C A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 36 6A 00 00 35 04 06 00 75 83 F8 08 43 3D 67 45 52 D9 D8 70 65 C8 [22:49:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 33 33 47 00 6E 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 34 39 33 37 10 04 04 00 36 6A 00 00 F4 03 04 00 EB C2 A7 66 B6 04 01 00 00 06 08 7A B0 8C DA 75 37 [22:49:58]CommunicateWithHost err = 0 [22:49:58]CheckOFDResponse [22:49:58]1017 (14) - 77093643461234 [22:49:58]1041 (16) - 0000000000874937 [22:49:58]1040 (4) - 27190 [22:49:58]1012 (4) - 29.07.2024 16:27 [22:49:58]1206 (1) - 0 [22:49:58]OFD Sender: Remove packet 27190 [22:49:58]ProducePacketName [22:49:58]name=ofd_packets/00027190 [22:49:58]NVStorageDeleteData [22:49:58]Write to MH i2c: 01 00 00 14 27 3B [22:49:58]Write i2c OK [22:49:58]MH_I2C_Read... [22:49:58]Read from MH i2c: 01 [22:49:58]MH_I2C_Read... [22:49:58]Read from MH i2c: 01 07 00 [22:49:58]MH_I2C_Read... [22:49:58]Read from MH i2c: 01 07 00 14 27 00 00 00 00 00 B5 0C 03 [22:49:58]RasterBufferAndPrint [22:49:58]line [22:49:58]line [22:49:58]line [22:49:58]line [22:49:58]line [22:49:58]written 0, free lines is 3260 [22:49:58]MH_Cut [22:49:58]Write to MH i2c: D1 01 00 1B 27 01 14 [22:49:58]Write i2c OK [22:49:58]MH_I2C_Read... [22:49:58]Read from MH i2c: D1 [22:49:58]MH_I2C_Read... [22:49:58]Read from MH i2c: D1 01 00 [22:49:58]MH_I2C_Read... [22:49:58]Read from MH i2c: D1 01 00 1B 27 00 13 [22:49:58]Write to MH i2c: 01 00 00 1C 27 43 [22:49:58]Write i2c OK [22:49:58]MH_I2C_Read... [22:49:58]OFD Sender: No OFD packet to send [22:49:58]*** Cut start [22:49:58]*** Partial cut [22:49:58]*** CUTSNS_PIN = 1 [22:49:59]*** CUTSNS_PIN = 0 [22:49:59]*** Brake cut motor [22:49:59]Read from MH i2c: 01 [22:49:59]MH_I2C_Read... [22:49:59]*** Stop cut motor [22:49:59]*** Cut end [22:49:59]Read from MH i2c: 01 07 00 [22:49:59]MH_I2C_Read... [22:49:59]Read from MH i2c: 01 07 00 1C 27 00 00 00 00 00 FF 0F 58 [22:49:59]process_action close_receipt done [22:49:59]requested_data is exist [22:49:59]produce_requested_data [22:49:59]requested_item fm.sn is exist - process it [22:49:59]wFMCommunicate request_size=4 [22:49:59]MH_SAM_APDU [22:49:59]CAPDU: 80 11 00 00 [22:49:59]Write to MH i2c: E2 08 00 1D 27 80 11 00 00 00 00 00 00 BE [22:49:59]Write i2c OK [22:49:59]MH_I2C_Read... [22:49:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:49:59]Read from MH i2c: E2 [22:49:59]MH_I2C_Read... [22:49:59]Read from MH i2c: E2 17 00 [22:49:59]MH_I2C_Read... [22:49:59]Read from MH i2c: E2 17 00 1D 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 17 [22:49:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [22:49:59]wFMCommunicate OK [22:49:59]requested_item fd.num is exist - process it [22:49:59]SAM_PROTO_GetFieldsCounters [22:49:59]wFMCommunicate request_size=4 [22:49:59]MH_SAM_APDU [22:49:59]CAPDU: 80 13 00 00 [22:49:59]Write to MH i2c: E2 08 00 1E 27 80 13 00 00 00 00 00 00 C1 [22:49:59]Write i2c OK [22:49:59]MH_I2C_Read... [22:49:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:49:59]Read from MH i2c: E2 [22:49:59]MH_I2C_Read... [22:49:59]Read from MH i2c: E2 62 00 [22:49:59]MH_I2C_Read... [22:49:59]Read from MH i2c: E2 62 00 1E 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 36 6A 00 00 0E 04 04 00 B2 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 53 [22:49:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 36 6A 00 00 0E 04 04 00 B2 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 [22:49:59]wFMCommunicate OK [22:49:59]SAM_PROTO_GetFieldsCounters done [22:49:59]requested_item shift.num is exist - process it [22:49:59]requested_item shift.opened is exist - process it [22:49:59]req_shift_opened [22:49:59]FM_GetShiftState [22:49:59]SAM_PROTO_GetShiftState [22:49:59]wFMCommunicate request_size=4 [22:49:59]MH_SAM_APDU [22:49:59]CAPDU: 80 13 01 00 [22:49:59]Write to MH i2c: E2 08 00 1F 27 80 13 01 00 00 00 00 00 C3 [22:49:59]Write i2c OK [22:49:59]MH_I2C_Read... [22:49:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:49:59]Read from MH i2c: E2 [22:49:59]MH_I2C_Read... [22:49:59]Read from MH i2c: E2 0E 00 [22:49:59]MH_I2C_Read... [22:49:59]Read from MH i2c: E2 0E 00 1F 27 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 44 [22:49:59]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [22:49:59]wFMCommunicate OK [22:49:59]SAM_PROTO_GetShiftState done [22:49:59]FM_GetShiftState done [22:49:59]req_shift_opened done [22:49:59]requested_item shift.open_date is exist - process it [22:49:59]req_shift_open_date [22:49:59]req_shift_open_date done [22:49:59]produce_requested_data done [22:49:59]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27190,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [22:49:59]process_action_free close_receipt [22:49:59]json_value_free [22:49:59]json_value_free done [22:49:59]process_json_proto returns [22:49:59]Send response to host [22:49:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27190,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [22:49:59]free response buf [22:49:59]execute_script done [22:49:59]execute_script returns [22:49:59]free content buf [22:49:59]Sock 8.Close socket [22:49:59]Sock 8.Thread stoped [22:50:03]OFD Sender: No OFD packet to send [22:50:08]OFD Sender: No OFD packet to send [22:50:13]OFD Sender: No OFD packet to send [22:50:18]OFD Sender: No OFD packet to send [22:50:23]OFD Sender: No OFD packet to send [22:50:28]OFD Sender: No OFD packet to send [22:50:33]OFD Sender: No OFD packet to send [22:50:38]OFD Sender: No OFD packet to send [22:50:43]OFD Sender: No OFD packet to send [22:50:48]OFD Sender: No OFD packet to send [22:50:53]OFD Sender: No OFD packet to send [22:50:58]OFD Sender: No OFD packet to send [22:51:03]OFD Sender: No OFD packet to send [22:51:08]OFD Sender: No OFD packet to send [22:51:13]OFD Sender: No OFD packet to send [22:51:18]OFD Sender: No OFD packet to send [22:51:23]OFD Sender: No OFD packet to send [22:51:28]OFD Sender: No OFD packet to send [22:51:33]OFD Sender: No OFD packet to send [22:51:38]OFD Sender: No OFD packet to send [22:51:43]OFD Sender: No OFD packet to send [22:51:48]OFD Sender: No OFD packet to send [22:51:53]OFD Sender: No OFD packet to send [22:51:58]OFD Sender: No OFD packet to send [22:52:03]OFD Sender: No OFD packet to send [22:52:08]OFD Sender: No OFD packet to send [22:52:13]OFD Sender: No OFD packet to send [22:52:18]OFD Sender: No OFD packet to send [22:52:23]OFD Sender: No OFD packet to send [22:52:28]OFD Sender: No OFD packet to send [22:52:33]OFD Sender: No OFD packet to send [22:52:38]OFD Sender: No OFD packet to send [22:52:43]OFD Sender: No OFD packet to send [22:52:48]OFD Sender: No OFD packet to send [22:52:53]OFD Sender: No OFD packet to send [22:52:58]OFD Sender: No OFD packet to send [22:53:03]OFD Sender: No OFD packet to send [22:53:08]OFD Sender: No OFD packet to send [22:53:13]OFD Sender: No OFD packet to send [22:53:18]OFD Sender: No OFD packet to send [22:53:23]OFD Sender: No OFD packet to send [22:53:28]OFD Sender: No OFD packet to send [22:53:33]OFD Sender: No OFD packet to send [22:53:38]OFD Sender: No OFD packet to send [22:53:43]OFD Sender: No OFD packet to send [22:53:48]OFD Sender: No OFD packet to send [22:53:53]OFD Sender: No OFD packet to send [22:53:58]OFD Sender: No OFD packet to send [22:54:03]OFD Sender: No OFD packet to send [22:54:08]OFD Sender: No OFD packet to send [22:54:13]OFD Sender: No OFD packet to send [22:54:18]OFD Sender: No OFD packet to send [22:54:23]OFD Sender: No OFD packet to send [22:54:28]OFD Sender: No OFD packet to send [22:54:33]OFD Sender: No OFD packet to send [22:54:38]OFD Sender: No OFD packet to send [22:54:43]OFD Sender: No OFD packet to send [22:54:48]OFD Sender: No OFD packet to send [22:54:53]OFD Sender: No OFD packet to send [22:54:58]OFD Sender: No OFD packet to send [22:55:03]OFD Sender: No OFD packet to send [22:55:08]OFD Sender: No OFD packet to send [22:55:13]OFD Sender: No OFD packet to send [22:55:18]OFD Sender: No OFD packet to send [22:55:23]OFD Sender: No OFD packet to send [22:55:28]OFD Sender: No OFD packet to send [22:55:33]OFD Sender: No OFD packet to send [22:55:38]OFD Sender: No OFD packet to send [22:55:43]OFD Sender: No OFD packet to send [22:55:48]OFD Sender: No OFD packet to send [22:55:53]OFD Sender: No OFD packet to send [22:55:58]OFD Sender: No OFD packet to send [22:56:03]OFD Sender: No OFD packet to send [22:56:08]OFD Sender: No OFD packet to send [22:56:13]OFD Sender: No OFD packet to send [22:56:18]OFD Sender: No OFD packet to send [22:56:23]OFD Sender: No OFD packet to send [22:56:28]OFD Sender: No OFD packet to send [22:56:33]OFD Sender: No OFD packet to send [22:56:38]OFD Sender: No OFD packet to send [22:56:43]OFD Sender: No OFD packet to send [22:56:48]OFD Sender: No OFD packet to send [22:56:53]OFD Sender: No OFD packet to send [22:56:58]OFD Sender: No OFD packet to send [22:57:03]OFD Sender: No OFD packet to send [22:57:08]OFD Sender: No OFD packet to send [22:57:13]OFD Sender: No OFD packet to send [22:57:18]OFD Sender: No OFD packet to send [22:57:23]OFD Sender: No OFD packet to send [22:57:28]OFD Sender: No OFD packet to send [22:57:33]OFD Sender: No OFD packet to send [22:57:38]OFD Sender: No OFD packet to send [22:57:43]OFD Sender: No OFD packet to send [22:57:48]OFD Sender: No OFD packet to send [22:57:53]OFD Sender: No OFD packet to send [22:57:58]OFD Sender: No OFD packet to send [22:58:03]OFD Sender: No OFD packet to send [22:58:08]OFD Sender: No OFD packet to send [22:58:13]OFD Sender: No OFD packet to send [22:58:18]OFD Sender: No OFD packet to send [22:58:23]OFD Sender: No OFD packet to send [22:58:28]OFD Sender: No OFD packet to send [22:58:33]OFD Sender: No OFD packet to send [22:58:38]OFD Sender: No OFD packet to send [22:58:43]OFD Sender: No OFD packet to send [22:58:48]OFD Sender: No OFD packet to send [22:58:53]OFD Sender: No OFD packet to send [22:58:58]OFD Sender: No OFD packet to send [22:59:03]OFD Sender: No OFD packet to send [22:59:08]OFD Sender: No OFD packet to send [22:59:13]OFD Sender: No OFD packet to send [22:59:18]OFD Sender: No OFD packet to send [22:59:23]OFD Sender: No OFD packet to send [22:59:28]OFD Sender: No OFD packet to send [22:59:33]OFD Sender: No OFD packet to send [22:59:38]OFD Sender: No OFD packet to send [22:59:43]OFD Sender: No OFD packet to send [22:59:48]OFD Sender: No OFD packet to send [22:59:53]OFD Sender: No OFD packet to send [22:59:59]OFD Sender: No OFD packet to send [23:00:04]OFD Sender: No OFD packet to send [23:00:09]OFD Sender: No OFD packet to send [23:00:14]OFD Sender: No OFD packet to send [23:00:19]OFD Sender: No OFD packet to send [23:00:24]OFD Sender: No OFD packet to send [23:00:29]OFD Sender: No OFD packet to send [23:00:34]OFD Sender: No OFD packet to send [23:00:39]OFD Sender: No OFD packet to send [23:00:44]OFD Sender: No OFD packet to send [23:00:49]OFD Sender: No OFD packet to send [23:00:54]OFD Sender: No OFD packet to send [23:00:59]OFD Sender: No OFD packet to send [23:01:04]OFD Sender: No OFD packet to send [23:01:09]OFD Sender: No OFD packet to send [23:01:14]OFD Sender: No OFD packet to send [23:01:19]OFD Sender: No OFD packet to send [23:01:24]OFD Sender: No OFD packet to send [23:01:29]OFD Sender: No OFD packet to send [23:01:34]OFD Sender: No OFD packet to send [23:01:39]OFD Sender: No OFD packet to send [23:01:44]OFD Sender: No OFD packet to send [23:01:49]OFD Sender: No OFD packet to send [23:01:54]OFD Sender: No OFD packet to send [23:01:59]OFD Sender: No OFD packet to send [23:02:04]OFD Sender: No OFD packet to send [23:02:09]OFD Sender: No OFD packet to send [23:02:14]OFD Sender: No OFD packet to send [23:02:19]OFD Sender: No OFD packet to send [23:02:24]OFD Sender: No OFD packet to send [23:02:29]OFD Sender: No OFD packet to send [23:02:34]OFD Sender: No OFD packet to send [23:02:39]OFD Sender: No OFD packet to send [23:02:44]OFD Sender: No OFD packet to send [23:02:49]OFD Sender: No OFD packet to send [23:02:54]OFD Sender: No OFD packet to send [23:02:59]OFD Sender: No OFD packet to send [23:03:04]OFD Sender: No OFD packet to send [23:03:09]OFD Sender: No OFD packet to send [23:03:14]OFD Sender: No OFD packet to send [23:03:19]OFD Sender: No OFD packet to send [23:03:24]OFD Sender: No OFD packet to send [23:03:29]OFD Sender: No OFD packet to send [23:03:34]OFD Sender: No OFD packet to send [23:03:39]OFD Sender: No OFD packet to send [23:03:44]OFD Sender: No OFD packet to send [23:03:49]OFD Sender: No OFD packet to send [23:03:54]OFD Sender: No OFD packet to send [23:03:59]OFD Sender: No OFD packet to send [23:04:04]OFD Sender: No OFD packet to send [23:04:09]OFD Sender: No OFD packet to send [23:04:14]OFD Sender: No OFD packet to send [23:04:19]OFD Sender: No OFD packet to send [23:04:24]OFD Sender: No OFD packet to send [23:04:29]OFD Sender: No OFD packet to send [23:04:34]OFD Sender: No OFD packet to send [23:04:39]OFD Sender: No OFD packet to send [23:04:44]OFD Sender: No OFD packet to send [23:04:49]OFD Sender: No OFD packet to send [23:04:54]OFD Sender: No OFD packet to send [23:04:59]OFD Sender: No OFD packet to send [23:05:04]OFD Sender: No OFD packet to send [23:05:09]OFD Sender: No OFD packet to send [23:05:13]accept exits with 9 [23:05:13]New connection [23:05:13]New thread 3066785124 created [23:05:13]Thread 3066928484 joined [23:05:13]Waiting for new connection... [23:05:13] Sock 9.Parse request [23:05:13]Sock 9.Check first char [23:05:13]Sock 9.First char is OK [23:05:13]request: POST /json_proto HTTP/1.0 [23:05:13]Method: POST [23:05:13]URL: /json_proto [23:05:13]Method is POST - this is cgi request [23:05:13]url: /json_proto [23:05:13]query_string will be loaded in cgi processing [23:05:13]execute_cgi json_proto POST (null) [23:05:13]execute_cgi path=json_proto method=POST [23:05:13]POST find Content-Length [23:05:13]Host: 172.17.45.8:8080 [23:05:13]Content-Length: 838 [23:05:13]Content-Type: application/json [23:05:13] [23:05:13]POST finish read [23:05:13]Found Content-Length = 838 [23:05:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150589", "tax_sys" : 0, "items" : [ { "code": "46141538", "name": "\u0420/\u0436 Orbit Bubblemint 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\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" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:05:13]execute_script... [23:05: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)150589", "tax_sys" : 0, "items" : [ { "code": "46141538", "name": "\u0420/\u0436 Orbit Bubblemint 13,6\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\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" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:05:13]POST & json_proto [23:05:13]process_json_proto [23:05:13]json parsed OK: [23:05:13]protocol is kg_v1.0 [23:05:13]action value=close_receipt [23:05:13]process_action close_receipt [23:05:13]cmd_close_receipt [23:05:13]MH_GetDate [23:05:13]Write to MH i2c: F0 00 00 20 27 36 [23:05:13]Write i2c OK [23:05:13]MH_I2C_Read... [23:05:13]Read from MH i2c: F0 [23:05:13]MH_I2C_Read... [23:05:13]Read from MH i2c: F0 09 00 [23:05:13]MH_I2C_Read... [23:05:13]Read from MH i2c: F0 09 00 20 27 00 31 20 A8 66 A6 1F 7F 64 46 [23:05:13]GetLastDocTimeStamp 1722293403 [23:05:13]current date 1722294321 [23:05:13]FM_GetShiftState [23:05:13]SAM_PROTO_GetShiftState [23:05:13]wFMCommunicate request_size=4 [23:05:13]MH_SAM_APDU [23:05:13]CAPDU: 80 13 01 00 [23:05:13]Write to MH i2c: E2 08 00 21 27 80 13 01 00 00 00 00 00 C5 [23:05:13]Write i2c OK [23:05:13]MH_I2C_Read... [23:05:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:13]Read from MH i2c: E2 [23:05:13]MH_I2C_Read... [23:05:13]Read from MH i2c: E2 0E 00 [23:05:13]MH_I2C_Read... [23:05:13]Read from MH i2c: E2 0E 00 21 27 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 46 [23:05:13]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [23:05:13]wFMCommunicate OK [23:05:13]SAM_PROTO_GetShiftState done [23:05:13]FM_GetShiftState done [23:05:13]opened in 1722213509 [23:05:13]opened+sec_in_day 1722299909 [23:05:13]quantity*price = 4500 [23:05:13]sum+1 = 4501 [23:05:13]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 94 29.07.2024 23:05 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27191 ФПД: 122321320886439 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T230521&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27191&fm=122321320886439&tin=02508201610067®Number=0000000000092663&sum=9500 0 [23:05:14]StoreToDocumentArchive [23:05:14]shift 434 fd 27191 [23:05:14]save to /storage/0434/doc_00027191 [23:05:14]save last doc name /storage/0434/doc_00027191 to /storage/kkm_last_doc_name [23:05:14]save OK [23:05:14]Clear old archive folders... [23:05:14]ProcessDocumentItem done err = 0, tmpTLVsize=365 [23:05:14]tlvbuf is 0021B7C0 [23:05:14]SAM_PROTO_ClearQueue [23:05:14]wFMCommunicate request_size=4 [23:05:14]MH_SAM_APDU [23:05:14]CAPDU: 80 09 00 00 [23:05:14]Write to MH i2c: E2 08 00 2E 27 80 09 00 00 00 00 00 00 C7 [23:05:14]Write i2c OK [23:05:14]MH_I2C_Read... [23:05:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:05:14]Read from MH i2c: E2 [23:05:14]MH_I2C_Read... [23:05:14]Read from MH i2c: E2 03 00 [23:05:14]MH_I2C_Read... [23:05:14]Read from MH i2c: E2 03 00 2E 27 00 90 00 C9 [23:05:14]RAPDU: 90 00 [23:05:14]wFMCommunicate OK [23:05:14]SAM_PROTO_ClearQueue done [23:05:14]KKMCreateOFDPacket [23:05:14]OFDProtocolAddRootSTLVToBuf [23:05:14]FM_MakeSignedData [23:05:14]FM_MakeSignedData [23:05:14]SAM_PROTO_SignData [23:05:14]wFMCommunicate request_size=4 [23:05:14]MH_SAM_APDU [23:05:14]CAPDU: 80 0D 01 02 [23:05:14]Write to MH i2c: E2 08 00 2F 27 80 0D 01 02 00 00 00 00 CF [23:05:14]Write i2c OK [23:05:14]MH_I2C_Read... [23:05:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:05:14]Read from MH i2c: E2 [23:05:14]MH_I2C_Read... [23:05:14]Read from MH i2c: E2 03 00 [23:05:14]MH_I2C_Read... [23:05:14]Read from MH i2c: E2 03 00 2F 27 00 90 00 CA [23:05:14]RAPDU: 90 00 [23:05:14]wFMCommunicate OK [23:05:14]wFMCommunicate request_size=255 [23:05:14]MH_SAM_APDU [23:05:14]CAPDU: 80 0D 02 02 FA 03 00 6D 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 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 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 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 [23:05:14]Write to MH i2c: E2 02 01 30 27 80 0D 02 02 FA 00 03 00 6D 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 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 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 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 00 00 8F [23:05:14]Write i2c OK [23:05:14]MH_I2C_Read... [23:05:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:15]Read from MH i2c: E2 [23:05:15]MH_I2C_Read... [23:05:15]Read from MH i2c: E2 03 00 [23:05:15]MH_I2C_Read... [23:05:15]Read from MH i2c: E2 03 00 30 27 00 90 00 CB [23:05:15]RAPDU: 90 00 [23:05:15]wFMCommunicate OK [23:05:15]wFMCommunicate request_size=124 [23:05:15]MH_SAM_APDU [23:05:15]CAPDU: 80 0D 02 02 77 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 5E 00 00 00 F4 03 04 00 31 20 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 37 6A 00 00 35 04 06 00 6F 40 26 E1 40 A7 [23:05:15]Write to MH i2c: E2 7F 00 31 27 80 0D 02 02 77 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 5E 00 00 00 F4 03 04 00 31 20 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 37 6A 00 00 35 04 06 00 6F 40 26 E1 40 A7 00 00 E4 [23:05:15]Write i2c OK [23:05:15]MH_I2C_Read... [23:05:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:15]Read from MH i2c: E2 [23:05:15]MH_I2C_Read... [23:05:15]Read from MH i2c: E2 03 00 [23:05:15]MH_I2C_Read... [23:05:15]Read from MH i2c: E2 03 00 31 27 00 90 00 CC [23:05:15]RAPDU: 90 00 [23:05:15]wFMCommunicate OK [23:05:15]wFMCommunicate request_size=4 [23:05:15]MH_SAM_APDU [23:05:15]CAPDU: 80 0D 03 02 [23:05:15]Write to MH i2c: E2 08 00 32 27 80 0D 03 02 00 00 00 00 D4 [23:05:15]Write i2c OK [23:05:15]MH_I2C_Read... [23:05:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:05:15]Read from MH i2c: E2 [23:05:15]MH_I2C_Read... [23:05:15]Read from MH i2c: E2 0B 00 [23:05:15]MH_I2C_Read... [23:05:15]Read from MH i2c: E2 0B 00 32 27 00 D7 CD C1 3C D0 36 EE B0 90 00 1A [23:05:15]RAPDU: D7 CD C1 3C D0 36 EE B0 90 00 [23:05:15]wFMCommunicate OK [23:05:15]SAM_PROTO_SignData done [23:05:15]FM_MakeSignedData done [23:05:15]CreateOFDProtocolMessage [23:05:15]wFMCommunicate request_size=4 [23:05:15]MH_SAM_APDU [23:05:15]CAPDU: 80 11 00 00 [23:05:15]Write to MH i2c: E2 08 00 33 27 80 11 00 00 00 00 00 00 D4 [23:05:15]Write i2c OK [23:05:15]MH_I2C_Read... [23:05:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:15]Read from MH i2c: E2 [23:05:15]MH_I2C_Read... [23:05:15]Read from MH i2c: E2 17 00 [23:05:15]MH_I2C_Read... [23:05:15]Read from MH i2c: E2 17 00 33 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 2D [23:05:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [23:05:15]wFMCommunicate OK [23:05:15]CreateOFDProtocolMessage done [23:05:15]OFDSenderStorePacket 27191 [23:05:15]StoreOFDPacket docnum=27191 [23:05:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 81 01 00 00 38 2C 79 01 C0 E0 5A 03 01 00 03 00 6D 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 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 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 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 5E 00 00 00 F4 03 04 00 31 20 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 37 6A 00 00 35 04 06 00 6F 40 26 E1 40 A7 D7 CD C1 3C D0 36 EE B0 [23:05:15]CheckFolder [23:05:15]dirname=/storage/ofd_packets [23:05:15]CheckFolder done [23:05:15]ProducePacketName [23:05:15]name=ofd_packets/00027191 [23:05:15]NVStorageSaveData ofd_packets/00027191 [23:05:15]File name is /storage/ofd_packets/00027191 [23:05:15]Write 415 bytes [23:05:15]NVStorageSaveData done [23:05:15]OFDSenderStorePacket done [23:05:15]KKMCreateOFDPacket done [23:05:15]NVStorageSaveData kkm_last_timestamp [23:05:15]File name is /storage/kkm_last_timestamp [23:05:15]Write 4 bytes [23:05:15]NVStorageSaveData done [23:05:15]ExternCall_PrintAddStr [23:05:15]wPrintStart [23:05:15]Write to MH i2c: 01 00 00 34 27 5B [23:05:15]Write i2c OK [23:05:15]MH_I2C_Read... [23:05:15]Read from MH i2c: 01 [23:05:15]MH_I2C_Read... [23:05:15]Read from MH i2c: 01 07 00 [23:05:15]MH_I2C_Read... [23:05:15]Read from MH i2c: 01 07 00 34 27 00 00 00 00 00 FF 0F 70 [23:05:15]RasterBufferAndPrint [23:05:15]line Счет N : (3)150589 [23:05:15]line ИНН: 02508201610067 [23:05:15]line Контрольно-Кассовый Чек [23:05:15]line ПРОДАЖА [23:05:15]line Товар: 46141538 [23:05:15]line Р/ж Orbit Bubblemint 13,6г [23:05:15]line 1.000 * 45.00 [23:05:15]line = 45.00 [23:05:15]line НДС 12% НСП 1% [23:05:15]line > о реализуемом товаре [23:05:15]line Товар: 4700000160358 [23:05:15]line Вода Легенда 1л [23:05:15]line 1.000 * 50.00 [23:05:15]line = 50.00 [23:05:15]line НДС 12% НСП 1% [23:05:15]line > о реализуемом товаре [23:05:15]line ИТОГО: 95.00 [23:05:15]line НСП 1% : 0.84 [23:05:15]line НДС 12% : 10.09 [23:05:15]line Наличными: 95.00 [23:05:15]line Безнал.: 0.00 [23:05:15]line Место: АЗС № 134 "Партнер Нефть" [23:05:15]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:05:15]line СНО: Общий режим [23:05:15]line Чек 94 29.07.2024 23:05 [23:05:15]line Смена: 434 ФФД: 1.0 [23:05:15]line ЗНМ: 0300000043 [23:05:15]line РНМ: 0000000000092663 [23:05:15]line Версия ККМ: 001 [23:05:15]line ФМ: 0000000000874937 [23:05:15]line ФД: 27191 [23:05:15]line ФПД: 122321320886439 [23:05:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T230521&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27191&fm=122321320886439&tin=02508201610067®Number=0000000000092663&sum=9500 [23:05:15]line 0 [23:05:15]OFD Sender: Processing packet 27191 [packets to send 9, broken 8] [23:05:15]ProducePacketName [23:05:15]name=ofd_packets/00027191 [23:05:15]OFD Sender: To server: pG, [23:05:15]CommunicateWithHost lk.salyk.kg:30040 [23:05:15]ConnectInit lk.salyk.kg [23:05:15]written 0, free lines is 4095 [23:05:15]Connected sock=10 [23:05:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 81 01 00 00 38 2C 79 01 C0 E0 5A 03 01 00 03 00 6D 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 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 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 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 5E 00 00 00 F4 03 04 00 31 20 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 37 6A 00 00 35 04 06 00 6F 40 26 E1 40 A7 D7 CD C1 3C D0 36 EE B0 [23:05:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 DC FB 47 00 4E 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 37 6A 00 00 F4 03 04 00 81 C6 A7 66 B6 04 01 00 00 45 2B F6 BD 8A 99 B0 2F [23:05:16]CommunicateWithHost err = 0 [23:05:16]CheckOFDResponse [23:05:16]1017 (14) - 77093643461234 [23:05:16]1041 (16) - 0000000000874937 [23:05:16]1040 (4) - 27191 [23:05:16]1012 (4) - 29.07.2024 16:42 [23:05:16]1206 (1) - 0 [23:05:16]OFD Sender: Remove packet 27191 [23:05:16]ProducePacketName [23:05:16]name=ofd_packets/00027191 [23:05:16]NVStorageDeleteData [23:05:16]Write to MH i2c: 01 00 00 61 27 88 [23:05:16]Write i2c OK [23:05:16]MH_I2C_Read... [23:05:16]Read from MH i2c: 01 [23:05:16]MH_I2C_Read... [23:05:16]Read from MH i2c: 01 07 00 [23:05:16]MH_I2C_Read... [23:05:16]Read from MH i2c: 01 07 00 61 27 00 00 00 00 00 9F 0C 3A [23:05:16]RasterBufferAndPrint [23:05:16]line [23:05:16]line [23:05:16]line [23:05:16]line [23:05:16]line [23:05:16]written 0, free lines is 3238 [23:05:16]MH_Cut [23:05:16]Write to MH i2c: D1 01 00 68 27 01 61 [23:05:16]Write i2c OK [23:05:16]MH_I2C_Read... [23:05:16]Read from MH i2c: D1 [23:05:16]MH_I2C_Read... [23:05:16]Read from MH i2c: D1 01 00 [23:05:16]MH_I2C_Read... [23:05:16]Read from MH i2c: D1 01 00 68 27 00 60 [23:05:16]Write to MH i2c: 01 00 00 69 27 90 [23:05:16]Write i2c OK [23:05:16]MH_I2C_Read... [23:05:16]OFD Sender: No OFD packet to send [23:05:17]*** Cut start [23:05:17]*** Partial cut [23:05:17]*** CUTSNS_PIN = 1 [23:05:17]*** CUTSNS_PIN = 0 [23:05:17]*** Brake cut motor [23:05:17]Read from MH i2c: 01 [23:05:17]MH_I2C_Read... [23:05:17]*** Stop cut motor [23:05:17]*** Cut end [23:05:17]Read from MH i2c: 01 07 00 [23:05:17]MH_I2C_Read... [23:05:17]Read from MH i2c: 01 07 00 69 27 00 00 00 00 00 FF 0F A5 [23:05:17]process_action close_receipt done [23:05:17]requested_data is exist [23:05:17]produce_requested_data [23:05:17]requested_item fm.sn is exist - process it [23:05:17]wFMCommunicate request_size=4 [23:05:17]MH_SAM_APDU [23:05:17]CAPDU: 80 11 00 00 [23:05:17]Write to MH i2c: E2 08 00 6A 27 80 11 00 00 00 00 00 00 0B [23:05:17]Write i2c OK [23:05:17]MH_I2C_Read... [23:05:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:17]Read from MH i2c: E2 [23:05:17]MH_I2C_Read... [23:05:17]Read from MH i2c: E2 17 00 [23:05:17]MH_I2C_Read... [23:05:17]Read from MH i2c: E2 17 00 6A 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 64 [23:05:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [23:05:17]wFMCommunicate OK [23:05:17]requested_item fd.num is exist - process it [23:05:17]SAM_PROTO_GetFieldsCounters [23:05:17]wFMCommunicate request_size=4 [23:05:17]MH_SAM_APDU [23:05:17]CAPDU: 80 13 00 00 [23:05:17]Write to MH i2c: E2 08 00 6B 27 80 13 00 00 00 00 00 00 0E [23:05:17]Write i2c OK [23:05:17]MH_I2C_Read... [23:05:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:05:17]Read from MH i2c: E2 [23:05:17]MH_I2C_Read... [23:05:17]Read from MH i2c: E2 62 00 [23:05:17]MH_I2C_Read... [23:05:17]Read from MH i2c: E2 62 00 6B 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 37 6A 00 00 0E 04 04 00 B2 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 A4 [23:05:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 37 6A 00 00 0E 04 04 00 B2 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 [23:05:17]wFMCommunicate OK [23:05:17]SAM_PROTO_GetFieldsCounters done [23:05:17]requested_item shift.num is exist - process it [23:05:17]requested_item shift.opened is exist - process it [23:05:17]req_shift_opened [23:05:17]FM_GetShiftState [23:05:17]SAM_PROTO_GetShiftState [23:05:17]wFMCommunicate request_size=4 [23:05:17]MH_SAM_APDU [23:05:17]CAPDU: 80 13 01 00 [23:05:17]Write to MH i2c: E2 08 00 6C 27 80 13 01 00 00 00 00 00 10 [23:05:17]Write i2c OK [23:05:17]MH_I2C_Read... [23:05:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:17]Read from MH i2c: E2 [23:05:17]MH_I2C_Read... [23:05:17]Read from MH i2c: E2 0E 00 [23:05:17]MH_I2C_Read... [23:05:17]Read from MH i2c: E2 0E 00 6C 27 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 91 [23:05:17]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [23:05:17]wFMCommunicate OK [23:05:17]SAM_PROTO_GetShiftState done [23:05:17]FM_GetShiftState done [23:05:17]req_shift_opened done [23:05:17]requested_item shift.open_date is exist - process it [23:05:17]req_shift_open_date [23:05:17]req_shift_open_date done [23:05:17]produce_requested_data done [23:05:17]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27191,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [23:05:17]process_action_free close_receipt [23:05:17]json_value_free [23:05:17]json_value_free done [23:05:17]process_json_proto returns [23:05:17]Send response to host [23:05:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27191,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [23:05:17]free response buf [23:05:17]execute_script done [23:05:17]execute_script returns [23:05:17]free content buf [23:05:17]Sock 9.Close socket [23:05:17]Sock 9.Thread stoped [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:16]OFD Sender: No OFD packet to send [23:11:21]OFD Sender: No OFD packet to send [23:11:26]OFD Sender: No OFD packet to send [23:11:31]OFD Sender: No OFD packet to send [23:11:36]OFD Sender: No OFD packet to send [23:11:41]OFD Sender: No OFD packet to send [23:11:46]OFD Sender: No OFD packet to send [23:11:51]OFD Sender: No OFD packet to send [23:11:56]OFD Sender: No OFD packet to send [23:12:01]OFD Sender: No OFD packet to send [23:12:06]OFD Sender: No OFD packet to send [23:12:11]OFD Sender: No OFD packet to send [23:12:16]OFD Sender: No OFD packet to send [23:12:21]OFD Sender: No OFD packet to send [23:12:26]OFD Sender: No OFD packet to send [23:12:31]OFD Sender: No OFD packet to send [23:12:36]OFD Sender: No OFD packet to send [23:12:41]OFD Sender: No OFD packet to send [23:12:46]OFD Sender: No OFD packet to send [23:12:51]OFD Sender: No OFD packet to send [23:12:56]OFD Sender: No OFD packet to send [23:13:01]OFD Sender: No OFD packet to send [23:13:06]OFD Sender: No OFD packet to send [23:13:11]OFD Sender: No OFD packet to send [23:13:16]OFD Sender: No OFD packet to send [23:13:21]OFD Sender: No OFD packet to send [23:13:26]OFD Sender: No OFD packet to send [23:13:31]OFD Sender: No OFD packet to send [23:13: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:21:57]accept exits with 8 [23:21:57]New connection [23:21:57]New thread 3066928484 created [23:21:57]Thread 3066785124 joined [23:21:57]Waiting for new connection... [23:21:57] Sock 8.Parse request [23:21:57]Sock 8.Check first char [23:21:57]Sock 8.First char is OK [23:21:57]request: POST /json_proto HTTP/1.0 [23:21:57]Method: POST [23:21:57]URL: /json_proto [23:21:57]Method is POST - this is cgi request [23:21:57]url: /json_proto [23:21:57]query_string will be loaded in cgi processing [23:21:57]execute_cgi json_proto POST (null) [23:21:57]execute_cgi path=json_proto method=POST [23:21:57]POST find Content-Length [23:21:57]Host: 172.17.45.8:8080 [23:21:57]Content-Length: 873 [23:21:57]Content-Type: application/json [23:21:57] [23:21:57]POST finish read [23:21:57]Found Content-Length = 873 [23:21:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150590", "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 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\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" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:21:57]execute_script... [23:21: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)150590", "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 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\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" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:21:57]POST & json_proto [23:21:57]process_json_proto [23:21:57]json parsed OK: [23:21:57]protocol is kg_v1.0 [23:21:57]action value=close_receipt [23:21:57]process_action close_receipt [23:21:57]cmd_close_receipt [23:21:57]MH_GetDate [23:21:57]Write to MH i2c: F0 00 00 6D 27 83 [23:21:57]Write i2c OK [23:21:57]MH_I2C_Read... [23:21:57]Read from MH i2c: F0 [23:21:57]MH_I2C_Read... [23:21:57]Read from MH i2c: F0 09 00 [23:21:57]MH_I2C_Read... [23:21:57]Read from MH i2c: F0 09 00 6D 27 00 1D 24 A8 66 A6 1F 7F 64 83 [23:21:57]GetLastDocTimeStamp 1722294321 [23:21:57]current date 1722295325 [23:21:57]FM_GetShiftState [23:21:57]SAM_PROTO_GetShiftState [23:21:57]wFMCommunicate request_size=4 [23:21:57]MH_SAM_APDU [23:21:57]CAPDU: 80 13 01 00 [23:21:57]Write to MH i2c: E2 08 00 6E 27 80 13 01 00 00 00 00 00 12 [23:21:57]Write i2c OK [23:21:57]MH_I2C_Read... [23:21:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:21:57]Read from MH i2c: E2 [23:21:57]MH_I2C_Read... [23:21:57]Read from MH i2c: E2 0E 00 [23:21:57]MH_I2C_Read... [23:21:57]Read from MH i2c: E2 0E 00 6E 27 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 93 [23:21:57]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [23:21:57]wFMCommunicate OK [23:21:57]SAM_PROTO_GetShiftState done [23:21:57]FM_GetShiftState done [23:21:57]opened in 1722213509 [23:21:57]opened+sec_in_day 1722299909 [23:21:57]quantity*price = 13500 [23:21:57]sum+1 = 13501 [23:21:57]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 185.00 НСП 1% : 1.63 НДС 12% : 19.65 Наличными: 185.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 95 29.07.2024 23:22 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27192 ФПД: 28109796449158 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T232205&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27192&fm=28109796449158&tin=02508201610067®Number=0000000000092663&sum=18500 0 [23:21:58]StoreToDocumentArchive [23:21:58]shift 434 fd 27192 [23:21:58]save to /storage/0434/doc_00027192 [23:21:58]save last doc name /storage/0434/doc_00027192 to /storage/kkm_last_doc_name [23:21:58]save OK [23:21:58]Clear old archive folders... [23:21:58]ProcessDocumentItem done err = 0, tmpTLVsize=377 [23:21:58]tlvbuf is 00247020 [23:21:58]SAM_PROTO_ClearQueue [23:21:58]wFMCommunicate request_size=4 [23:21:58]MH_SAM_APDU [23:21:58]CAPDU: 80 09 00 00 [23:21:58]Write to MH i2c: E2 08 00 7B 27 80 09 00 00 00 00 00 00 14 [23:21:58]Write i2c OK [23:21:58]MH_I2C_Read... [23:21:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:21:58]Read from MH i2c: E2 [23:21:58]MH_I2C_Read... [23:21:58]Read from MH i2c: E2 03 00 [23:21:58]MH_I2C_Read... [23:21:58]Read from MH i2c: E2 03 00 7B 27 00 90 00 16 [23:21:58]RAPDU: 90 00 [23:21:58]wFMCommunicate OK [23:21:58]SAM_PROTO_ClearQueue done [23:21:58]KKMCreateOFDPacket [23:21:58]OFDProtocolAddRootSTLVToBuf [23:21:58]FM_MakeSignedData [23:21:58]FM_MakeSignedData [23:21:58]SAM_PROTO_SignData [23:21:58]wFMCommunicate request_size=4 [23:21:58]MH_SAM_APDU [23:21:58]CAPDU: 80 0D 01 02 [23:21:58]Write to MH i2c: E2 08 00 7C 27 80 0D 01 02 00 00 00 00 1C [23:21:58]Write i2c OK [23:21:58]MH_I2C_Read... [23:21:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:21:58]Read from MH i2c: E2 [23:21:58]MH_I2C_Read... [23:21:58]Read from MH i2c: E2 03 00 [23:21:58]MH_I2C_Read... [23:21:58]Read from MH i2c: E2 03 00 7C 27 00 90 00 17 [23:21:58]RAPDU: 90 00 [23:21:58]wFMCommunicate OK [23:21:58]wFMCommunicate request_size=255 [23:21:58]MH_SAM_APDU [23:21:58]CAPDU: 80 0D 02 02 FA 03 00 79 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE [23:21:58]Write to MH i2c: E2 02 01 7D 27 80 0D 02 02 FA 00 03 00 79 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 00 00 EB [23:21:58]Write i2c OK [23:21:58]MH_I2C_Read... [23:21:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:21:59]Read from MH i2c: E2 [23:21:59]MH_I2C_Read... [23:21:59]Read from MH i2c: E2 03 00 [23:21:59]MH_I2C_Read... [23:21:59]Read from MH i2c: E2 03 00 7D 27 00 90 00 18 [23:21:59]RAPDU: 90 00 [23:21:59]wFMCommunicate OK [23:21:59]wFMCommunicate request_size=136 [23:21:59]MH_SAM_APDU [23:21:59]CAPDU: 80 0D 02 02 83 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 1D 24 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 38 6A 00 00 35 04 06 00 19 90 D2 6E 9B 86 [23:21:59]Write to MH i2c: E2 8B 00 7E 27 80 0D 02 02 83 00 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 1D 24 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 38 6A 00 00 35 04 06 00 19 90 D2 6E 9B 86 00 00 B8 [23:21:59]Write i2c OK [23:21:59]MH_I2C_Read... [23:21:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:21:59]Read from MH i2c: E2 [23:21:59]MH_I2C_Read... [23:21:59]Read from MH i2c: E2 03 00 [23:21:59]MH_I2C_Read... [23:21:59]Read from MH i2c: E2 03 00 7E 27 00 90 00 19 [23:21:59]RAPDU: 90 00 [23:21:59]wFMCommunicate OK [23:21:59]wFMCommunicate request_size=4 [23:21:59]MH_SAM_APDU [23:21:59]CAPDU: 80 0D 03 02 [23:21:59]Write to MH i2c: E2 08 00 7F 27 80 0D 03 02 00 00 00 00 21 [23:21:59]Write i2c OK [23:21:59]MH_I2C_Read... [23:21:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:21:59]Read from MH i2c: E2 [23:21:59]MH_I2C_Read... [23:21:59]Read from MH i2c: E2 0B 00 [23:21:59]MH_I2C_Read... [23:21:59]Read from MH i2c: E2 0B 00 7F 27 00 96 68 83 D8 2A 5B 53 E2 90 00 35 [23:21:59]RAPDU: 96 68 83 D8 2A 5B 53 E2 90 00 [23:21:59]wFMCommunicate OK [23:21:59]SAM_PROTO_SignData done [23:21:59]FM_MakeSignedData done [23:21:59]CreateOFDProtocolMessage [23:21:59]wFMCommunicate request_size=4 [23:21:59]MH_SAM_APDU [23:21:59]CAPDU: 80 11 00 00 [23:21:59]Write to MH i2c: E2 08 00 80 27 80 11 00 00 00 00 00 00 21 [23:21:59]Write i2c OK [23:21:59]MH_I2C_Read... [23:21:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:21:59]Read from MH i2c: E2 [23:21:59]MH_I2C_Read... [23:21:59]Read from MH i2c: E2 17 00 [23:21:59]MH_I2C_Read... [23:21:59]Read from MH i2c: E2 17 00 80 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 7A [23:21:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [23:21:59]wFMCommunicate OK [23:21:59]CreateOFDProtocolMessage done [23:21:59]OFDSenderStorePacket 27192 [23:21:59]StoreOFDPacket docnum=27192 [23:21:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 8D 01 00 00 68 8F 85 01 9A 0F 5A 03 01 00 03 00 79 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 1D 24 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 38 6A 00 00 35 04 06 00 19 90 D2 6E 9B 86 96 68 83 D8 2A 5B 53 E2 [23:21:59]CheckFolder [23:21:59]dirname=/storage/ofd_packets [23:21:59]CheckFolder done [23:21:59]ProducePacketName [23:21:59]name=ofd_packets/00027192 [23:21:59]NVStorageSaveData ofd_packets/00027192 [23:21:59]File name is /storage/ofd_packets/00027192 [23:21:59]Write 427 bytes [23:21:59]NVStorageSaveData done [23:21:59]OFDSenderStorePacket done [23:21:59]KKMCreateOFDPacket done [23:21:59]NVStorageSaveData kkm_last_timestamp [23:21:59]File name is /storage/kkm_last_timestamp [23:21:59]Write 4 bytes [23:21:59]NVStorageSaveData done [23:21:59]ExternCall_PrintAddStr [23:21:59]wPrintStart [23:21:59]Write to MH i2c: 01 00 00 81 27 A8 [23:21:59]Write i2c OK [23:21:59]MH_I2C_Read... [23:21:59]Read from MH i2c: 01 [23:21:59]MH_I2C_Read... [23:21:59]Read from MH i2c: 01 07 00 [23:21:59]MH_I2C_Read... [23:21:59]OFD Sender: Processing packet 27192 [packets to send 9, broken 8] [23:21:59]ProducePacketName [23:21:59]name=ofd_packets/00027192 [23:21:59]Read from MH i2c: 01 07 00 81 27 00 00 00 00 00 FF 0F BD [23:21:59]RasterBufferAndPrint [23:21:59]line Счет N : (3)150590 [23:21:59]line ИНН: 02508201610067 [23:21:59]line Контрольно-Кассовый Чек [23:21:59]line ПРОДАЖА [23:21:59]line Товар: 48741224 [23:21:59]line Сигареты Winston Super Slims Blue [23:21:59]line 1.000 * 135.00 [23:21:59]line = 135.00 [23:21:59]line НДС 12% НСП 1% [23:21:59]line > о реализуемом товаре [23:21:59]line Товар: 4700000160358 [23:21:59]line Вода Легенда 1л [23:21:59]line 1.000 * 50.00 [23:21:59]line = 50.00 [23:21:59]line НДС 12% НСП 1% [23:21:59]line > о реализуемом товаре [23:21:59]line ИТОГО: 185.00 [23:21:59]line НСП 1% : 1.63 [23:21:59]line НДС 12% : 19.65 [23:21:59]line Наличными: 185.00 [23:21:59]line Безнал.: 0.00 [23:21:59]line Место: АЗС № 134 "Партнер Нефть" [23:21:59]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:21:59]line СНО: Общий режим [23:21:59]line Чек 95 29.07.2024 23:22 [23:21:59]line Смена: 434 ФФД: 1.0 [23:21:59]line ЗНМ: 0300000043 [23:21:59]line РНМ: 0000000000092663 [23:21:59]line Версия ККМ: 001 [23:21:59]line ФМ: 0000000000874937 [23:21:59]line ФД: 27192 [23:21:59]line ФПД: 28109796449158 [23:21:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T232205&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27192&fm=28109796449158&tin=02508201610067®Number=0000000000092663&sum=18500 [23:21:59]line 0 [23:21:59]OFD Sender: To server: pG, [23:21:59]CommunicateWithHost lk.salyk.kg:30040 [23:21:59]ConnectInit lk.salyk.kg [23:21:59]written 0, free lines is 4095 [23:21:59]Connected sock=10 [23:21:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 8D 01 00 00 68 8F 85 01 9A 0F 5A 03 01 00 03 00 79 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 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 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 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 1D 24 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 38 6A 00 00 35 04 06 00 19 90 D2 6E 9B 86 96 68 83 D8 2A 5B 53 E2 [23:21:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 A1 45 47 00 06 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 34 39 33 37 10 04 04 00 38 6A 00 00 F4 03 04 00 6C CA A7 66 B6 04 01 00 00 FF 00 2A 5C 9C 4F 83 F8 [23:21:59]CommunicateWithHost err = 0 [23:21:59]CheckOFDResponse [23:21:59]1017 (14) - 77093643461234 [23:21:59]1041 (16) - 0000000000874937 [23:21:59]1040 (4) - 27192 [23:21:59]1012 (4) - 29.07.2024 16:59 [23:21:59]1206 (1) - 0 [23:21:59]OFD Sender: Remove packet 27192 [23:21:59]ProducePacketName [23:21:59]name=ofd_packets/00027192 [23:21:59]NVStorageDeleteData [23:22:00]Write to MH i2c: 01 00 00 AF 27 D6 [23:22:00]Write i2c OK [23:22:00]MH_I2C_Read... [23:22:00]Read from MH i2c: 01 [23:22:00]MH_I2C_Read... [23:22:00]Read from MH i2c: 01 07 00 [23:22:00]MH_I2C_Read... [23:22:00]Read from MH i2c: 01 07 00 AF 27 00 00 00 00 00 82 0C 6B [23:22:00]RasterBufferAndPrint [23:22:00]line [23:22:00]line [23:22:00]line [23:22:00]line [23:22:00]line [23:22:00]written 0, free lines is 3208 [23:22:00]MH_Cut [23:22:00]Write to MH i2c: D1 01 00 B6 27 01 AF [23:22:00]Write i2c OK [23:22:00]MH_I2C_Read... [23:22:00]Read from MH i2c: D1 [23:22:00]MH_I2C_Read... [23:22:00]Read from MH i2c: D1 01 00 [23:22:00]MH_I2C_Read... [23:22:00]Read from MH i2c: D1 01 00 B6 27 00 AE [23:22:00]Write to MH i2c: 01 00 00 B7 27 DE [23:22:00]Write i2c OK [23:22:00]MH_I2C_Read... [23:22:00]OFD Sender: No OFD packet to send [23:22:00]*** Cut start [23:22:00]*** Partial cut [23:22:00]*** CUTSNS_PIN = 1 [23:22:00]*** CUTSNS_PIN = 0 [23:22:01]*** Brake cut motor [23:22:01]Read from MH i2c: 01 [23:22:01]MH_I2C_Read... [23:22:01]*** Stop cut motor [23:22:01]*** Cut end [23:22:01]Read from MH i2c: 01 07 00 [23:22:01]MH_I2C_Read... [23:22:01]Read from MH i2c: 01 07 00 B7 27 00 00 00 00 00 FF 0F F3 [23:22:01]process_action close_receipt done [23:22:01]requested_data is exist [23:22:01]produce_requested_data [23:22:01]requested_item fm.sn is exist - process it [23:22:01]wFMCommunicate request_size=4 [23:22:01]MH_SAM_APDU [23:22:01]CAPDU: 80 11 00 00 [23:22:01]Write to MH i2c: E2 08 00 B8 27 80 11 00 00 00 00 00 00 59 [23:22:01]Write i2c OK [23:22:01]MH_I2C_Read... [23:22:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:22:01]Read from MH i2c: E2 [23:22:01]MH_I2C_Read... [23:22:01]Read from MH i2c: E2 17 00 [23:22:01]MH_I2C_Read... [23:22:01]Read from MH i2c: E2 17 00 B8 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 B2 [23:22:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [23:22:01]wFMCommunicate OK [23:22:01]requested_item fd.num is exist - process it [23:22:01]SAM_PROTO_GetFieldsCounters [23:22:01]wFMCommunicate request_size=4 [23:22:01]MH_SAM_APDU [23:22:01]CAPDU: 80 13 00 00 [23:22:01]Write to MH i2c: E2 08 00 B9 27 80 13 00 00 00 00 00 00 5C [23:22:01]Write i2c OK [23:22:01]MH_I2C_Read... [23:22:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:22:01]Read from MH i2c: E2 [23:22:01]MH_I2C_Read... [23:22:01]Read from MH i2c: E2 62 00 [23:22:01]MH_I2C_Read... [23:22:01]Read from MH i2c: E2 62 00 B9 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 38 6A 00 00 0E 04 04 00 B2 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 F6 [23:22:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 38 6A 00 00 0E 04 04 00 B2 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 [23:22:01]wFMCommunicate OK [23:22:01]SAM_PROTO_GetFieldsCounters done [23:22:01]requested_item shift.num is exist - process it [23:22:01]requested_item shift.opened is exist - process it [23:22:01]req_shift_opened [23:22:01]FM_GetShiftState [23:22:01]SAM_PROTO_GetShiftState [23:22:01]wFMCommunicate request_size=4 [23:22:01]MH_SAM_APDU [23:22:01]CAPDU: 80 13 01 00 [23:22:01]Write to MH i2c: E2 08 00 BA 27 80 13 01 00 00 00 00 00 5E [23:22:01]Write i2c OK [23:22:01]MH_I2C_Read... [23:22:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:22:01]Read from MH i2c: E2 [23:22:01]MH_I2C_Read... [23:22:01]Read from MH i2c: E2 0E 00 [23:22:01]MH_I2C_Read... [23:22:01]Read from MH i2c: E2 0E 00 BA 27 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 DF [23:22:01]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [23:22:01]wFMCommunicate OK [23:22:01]SAM_PROTO_GetShiftState done [23:22:01]FM_GetShiftState done [23:22:01]req_shift_opened done [23:22:01]requested_item shift.open_date is exist - process it [23:22:01]req_shift_open_date [23:22:01]req_shift_open_date done [23:22:01]produce_requested_data done [23:22:01]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27192,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [23:22:01]process_action_free close_receipt [23:22:01]json_value_free [23:22:01]json_value_free done [23:22:01]process_json_proto returns [23:22:01]Send response to host [23:22:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27192,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [23:22:01]free response buf [23:22:01]execute_script done [23:22:01]execute_script returns [23:22:01]free content buf [23:22:01]Sock 8.Close socket [23:22:01]Sock 8.Thread stoped [23:22:05]OFD Sender: No OFD packet to send [23:22:10]OFD Sender: No OFD packet to send [23:22:15]OFD Sender: No OFD packet to send [23:22:20]OFD Sender: No OFD packet to send [23:22:25]OFD Sender: No OFD packet to send [23:22:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:45]OFD Sender: No OFD packet to send [23:22:50]OFD Sender: No OFD packet to send [23:22:55]OFD Sender: No OFD packet to send [23:23:00]OFD Sender: No OFD packet to send [23:23:05]OFD Sender: No OFD packet to send [23:23:06]accept exits with 9 [23:23:06]New connection [23:23:06]New thread 3066785124 created [23:23:06]Thread 3066928484 joined [23:23:06]Waiting for new connection... [23:23:06] Sock 9.Parse request [23:23:06]Sock 9.Check first char [23:23:06]Sock 9.First char is OK [23:23:06]request: POST /json_proto HTTP/1.0 [23:23:06]Method: POST [23:23:06]URL: /json_proto [23:23:06]Method is POST - this is cgi request [23:23:06]url: /json_proto [23:23:06]query_string will be loaded in cgi processing [23:23:06]execute_cgi json_proto POST (null) [23:23:06]execute_cgi path=json_proto method=POST [23:23:06]POST find Content-Length [23:23:06]Host: 172.17.45.8:8080 [23:23:06]Content-Length: 915 [23:23:06]Content-Type: application/json [23:23:06] [23:23:06]POST finish read [23:23:06]Found Content-Length = 915 [23:23:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150591", "tax_sys" : 0, "items" : [ { "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 257.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:06]execute_script... [23:23: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)150591", "tax_sys" : 0, "items" : [ { "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 257.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:06]POST & json_proto [23:23:06]process_json_proto [23:23:06]json parsed OK: [23:23:06]protocol is kg_v1.0 [23:23:06]action value=close_receipt [23:23:06]process_action close_receipt [23:23:06]cmd_close_receipt [23:23:06]MH_GetDate [23:23:06]Write to MH i2c: F0 00 00 BB 27 D1 [23:23:06]Write i2c OK [23:23:06]MH_I2C_Read... [23:23:06]Read from MH i2c: F0 [23:23:06]MH_I2C_Read... [23:23:06]Read from MH i2c: F0 09 00 [23:23:06]MH_I2C_Read... [23:23:06]Read from MH i2c: F0 09 00 BB 27 00 62 24 A8 66 A6 1F 7F 64 16 [23:23:06]GetLastDocTimeStamp 1722295325 [23:23:06]current date 1722295394 [23:23:06]FM_GetShiftState [23:23:06]SAM_PROTO_GetShiftState [23:23:06]wFMCommunicate request_size=4 [23:23:06]MH_SAM_APDU [23:23:06]CAPDU: 80 13 01 00 [23:23:06]Write to MH i2c: E2 08 00 BC 27 80 13 01 00 00 00 00 00 60 [23:23:06]Write i2c OK [23:23:06]MH_I2C_Read... [23:23:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:06]Read from MH i2c: E2 [23:23:06]MH_I2C_Read... [23:23:06]Read from MH i2c: E2 0E 00 [23:23:06]MH_I2C_Read... [23:23:06]Read from MH i2c: E2 0E 00 BC 27 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 E1 [23:23:06]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [23:23:06]wFMCommunicate OK [23:23:06]SAM_PROTO_GetShiftState done [23:23:06]FM_GetShiftState done [23:23:06]opened in 1722213509 [23:23:06]opened+sec_in_day 1722299909 [23:23:06]quantity*price = 15000 [23:23:06]sum+1 = 15001 [23:23:06]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189332 Холодный чай Fuse персик 1л 1.000 * 107.00 = 107.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 257.00 НСП 1% : 2.28 НДС 12% : 27.29 Наличными: 257.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 96 29.07.2024 23:23 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27193 ФПД: 72773199224609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T232314&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27193&fm=72773199224609&tin=02508201610067®Number=0000000000092663&sum=25700 0 [23:23:07]StoreToDocumentArchive [23:23:07]shift 434 fd 27193 [23:23:07]save to /storage/0434/doc_00027193 [23:23:07]save last doc name /storage/0434/doc_00027193 to /storage/kkm_last_doc_name [23:23:07]save OK [23:23:07]Clear old archive folders... [23:23:07]ProcessDocumentItem done err = 0, tmpTLVsize=385 [23:23:07]tlvbuf is 00204D90 [23:23:07]SAM_PROTO_ClearQueue [23:23:07]wFMCommunicate request_size=4 [23:23:07]MH_SAM_APDU [23:23:07]CAPDU: 80 09 00 00 [23:23:07]Write to MH i2c: E2 08 00 C9 27 80 09 00 00 00 00 00 00 62 [23:23:07]Write i2c OK [23:23:07]MH_I2C_Read... [23:23:07]Read from MH i2c: E2 [23:23:07]MH_I2C_Read... [23:23:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:23:07]Read from MH i2c: E2 03 00 [23:23:07]MH_I2C_Read... [23:23:07]Read from MH i2c: E2 03 00 C9 27 00 90 00 64 [23:23:07]RAPDU: 90 00 [23:23:07]wFMCommunicate OK [23:23:07]SAM_PROTO_ClearQueue done [23:23:07]KKMCreateOFDPacket [23:23:07]OFDProtocolAddRootSTLVToBuf [23:23:07]FM_MakeSignedData [23:23:07]FM_MakeSignedData [23:23:07]SAM_PROTO_SignData [23:23:07]wFMCommunicate request_size=4 [23:23:07]MH_SAM_APDU [23:23:07]CAPDU: 80 0D 01 02 [23:23:07]Write to MH i2c: E2 08 00 CA 27 80 0D 01 02 00 00 00 00 6A [23:23:07]Write i2c OK [23:23:07]MH_I2C_Read... [23:23:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:23:07]Read from MH i2c: E2 [23:23:07]MH_I2C_Read... [23:23:07]Read from MH i2c: E2 03 00 [23:23:07]MH_I2C_Read... [23:23:07]Read from MH i2c: E2 03 00 CA 27 00 90 00 65 [23:23:07]RAPDU: 90 00 [23:23:07]wFMCommunicate OK [23:23:07]wFMCommunicate request_size=255 [23:23:07]MH_SAM_APDU [23:23:07]CAPDU: 80 0D 02 02 FA 03 00 81 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 [23:23:07]Write to MH i2c: E2 02 01 CB 27 80 0D 02 02 FA 00 03 00 81 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 C5 [23:23:07]Write i2c OK [23:23:07]MH_I2C_Read... [23:23:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:08]Read from MH i2c: E2 [23:23:08]MH_I2C_Read... [23:23:08]Read from MH i2c: E2 03 00 [23:23:08]MH_I2C_Read... [23:23:08]Read from MH i2c: E2 03 00 CB 27 00 90 00 66 [23:23:08]RAPDU: 90 00 [23:23:08]wFMCommunicate OK [23:23:08]wFMCommunicate request_size=144 [23:23:08]MH_SAM_APDU [23:23:08]CAPDU: 80 0D 02 02 8B 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0A 00 00 00 00 07 04 06 00 64 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 62 24 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 39 6A 00 00 35 04 06 00 42 2F D4 B0 5F 21 [23:23:08]Write to MH i2c: E2 93 00 CC 27 80 0D 02 02 8B 00 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0A 00 00 00 00 07 04 06 00 64 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 62 24 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 39 6A 00 00 35 04 06 00 42 2F D4 B0 5F 21 00 00 D5 [23:23:08]Write i2c OK [23:23:08]MH_I2C_Read... [23:23:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:08]Read from MH i2c: E2 [23:23:08]MH_I2C_Read... [23:23:08]Read from MH i2c: E2 03 00 [23:23:08]MH_I2C_Read... [23:23:08]Read from MH i2c: E2 03 00 CC 27 00 90 00 67 [23:23:08]RAPDU: 90 00 [23:23:08]wFMCommunicate OK [23:23:08]wFMCommunicate request_size=4 [23:23:08]MH_SAM_APDU [23:23:08]CAPDU: 80 0D 03 02 [23:23:08]Write to MH i2c: E2 08 00 CD 27 80 0D 03 02 00 00 00 00 6F [23:23:08]Write i2c OK [23:23:08]MH_I2C_Read... [23:23:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:23:08]Read from MH i2c: E2 [23:23:08]MH_I2C_Read... [23:23:08]Read from MH i2c: E2 0B 00 [23:23:08]MH_I2C_Read... [23:23:08]Read from MH i2c: E2 0B 00 CD 27 00 69 70 51 D0 E6 17 02 13 90 00 7C [23:23:08]RAPDU: 69 70 51 D0 E6 17 02 13 90 00 [23:23:08]wFMCommunicate OK [23:23:08]SAM_PROTO_SignData done [23:23:08]FM_MakeSignedData done [23:23:08]CreateOFDProtocolMessage [23:23:08]wFMCommunicate request_size=4 [23:23:08]MH_SAM_APDU [23:23:08]CAPDU: 80 11 00 00 [23:23:08]Write to MH i2c: E2 08 00 CE 27 80 11 00 00 00 00 00 00 6F [23:23:08]Write i2c OK [23:23:08]MH_I2C_Read... [23:23:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:08]Read from MH i2c: E2 [23:23:08]MH_I2C_Read... [23:23:08]Read from MH i2c: E2 17 00 [23:23:08]MH_I2C_Read... [23:23:08]Read from MH i2c: E2 17 00 CE 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 C8 [23:23:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [23:23:08]wFMCommunicate OK [23:23:08]CreateOFDProtocolMessage done [23:23:08]OFDSenderStorePacket 27193 [23:23:08]StoreOFDPacket docnum=27193 [23:23:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 95 01 00 00 04 BF 8D 01 60 9E 5A 03 01 00 03 00 81 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0A 00 00 00 00 07 04 06 00 64 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 62 24 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 39 6A 00 00 35 04 06 00 42 2F D4 B0 5F 21 69 70 51 D0 E6 17 02 13 [23:23:08]CheckFolder [23:23:08]dirname=/storage/ofd_packets [23:23:08]CheckFolder done [23:23:08]ProducePacketName [23:23:08]name=ofd_packets/00027193 [23:23:08]NVStorageSaveData ofd_packets/00027193 [23:23:08]File name is /storage/ofd_packets/00027193 [23:23:08]Write 435 bytes [23:23:08]NVStorageSaveData done [23:23:08]OFDSenderStorePacket done [23:23:08]KKMCreateOFDPacket done [23:23:08]NVStorageSaveData kkm_last_timestamp [23:23:08]File name is /storage/kkm_last_timestamp [23:23:08]Write 4 bytes [23:23:08]NVStorageSaveData done [23:23:08]ExternCall_PrintAddStr [23:23:08]wPrintStart [23:23:08]Write to MH i2c: 01 00 00 CF 27 F6 [23:23:08]Write i2c OK [23:23:08]MH_I2C_Read... [23:23:08]Read from MH i2c: 01 [23:23:08]MH_I2C_Read... [23:23:08]Read from MH i2c: 01 07 00 [23:23:08]MH_I2C_Read... [23:23:08]Read from MH i2c: 01 07 00 CF 27 00 00 00 00 00 FF 0F 0B [23:23:08]RasterBufferAndPrint [23:23:08]line Счет N : (3)150591 [23:23:08]line ИНН: 02508201610067 [23:23:08]line Контрольно-Кассовый Чек [23:23:08]line ПРОДАЖА [23:23:08]line Товар: 4600721021627 [23:23:08]line Пиво БАД 0,5л ст [23:23:08]line 1.000 * 150.00 [23:23:08]line = 150.00 [23:23:08]line НДС 12% НСП 1% [23:23:08]line > о реализуемом товаре [23:23:08]line Товар: 5449000189332 [23:23:08]line Холодный чай Fuse персик 1л [23:23:08]line 1.000 * 107.00 [23:23:08]line = 107.00 [23:23:08]line НДС 12% НСП 1% [23:23:08]line > о реализуемом товаре [23:23:08]line ИТОГО: 257.00 [23:23:08]line НСП 1% : 2.28 [23:23:08]line НДС 12% : 27.29 [23:23:08]line Наличными: 257.00 [23:23:08]line Безнал.: 0.00 [23:23:08]line Место: АЗС № 134 "Партнер Нефть" [23:23:08]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:23:08]line СНО: Общий режим [23:23:08]line Чек 96 29.07.2024 23:23 [23:23:08]line Смена: 434 ФФД: 1.0 [23:23:08]line ЗНМ: 0300000043 [23:23:08]line РНМ: 0000000000092663 [23:23:08]line Версия ККМ: 001 [23:23:08]line ФМ: 0000000000874937 [23:23:08]line ФД: 27193 [23:23:08]line ФПД: 72773199224609 [23:23:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T232314&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27193&fm=72773199224609&tin=02508201610067®Number=0000000000092663&sum=25700 [23:23:08]OFD Sender: Processing packet 27193 [packets to send 9, broken 8] [23:23:08]ProducePacketName [23:23:08]name=ofd_packets/00027193 [23:23:08]OFD Sender: To server: pG, [23:23:08]CommunicateWithHost lk.salyk.kg:30040 [23:23:08]ConnectInit lk.salyk.kg [23:23:08]line 0 [23:23:08]written 0, free lines is 4095 [23:23:08]Connected sock=10 [23:23:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 95 01 00 00 04 BF 8D 01 60 9E 5A 03 01 00 03 00 81 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC 29 00 00 00 00 13 04 06 00 CC 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 64 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 0A 00 00 00 00 07 04 06 00 64 64 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 62 24 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 39 6A 00 00 35 04 06 00 42 2F D4 B0 5F 21 69 70 51 D0 E6 17 02 13 [23:23:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 65 8B 47 00 DD 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 39 6A 00 00 F4 03 04 00 B2 CA A7 66 B6 04 01 00 00 06 34 61 CF 28 D0 79 E0 [23:23:09]CommunicateWithHost err = 0 [23:23:09]CheckOFDResponse [23:23:09]1017 (14) - 77093643461234 [23:23:09]1041 (16) - 0000000000874937 [23:23:09]1040 (4) - 27193 [23:23:09]1012 (4) - 29.07.2024 17:00 [23:23:09]1206 (1) - 0 [23:23:09]OFD Sender: Remove packet 27193 [23:23:09]ProducePacketName [23:23:09]name=ofd_packets/00027193 [23:23:09]NVStorageDeleteData [23:23:09]Write to MH i2c: 01 00 00 FC 27 23 [23:23:09]Write i2c OK [23:23:09]MH_I2C_Read... [23:23:09]Read from MH i2c: 01 [23:23:09]MH_I2C_Read... [23:23:09]Read from MH i2c: 01 07 00 [23:23:09]MH_I2C_Read... [23:23:09]Read from MH i2c: 01 07 00 FC 27 00 00 00 00 00 AA 0C E0 [23:23:09]RasterBufferAndPrint [23:23:09]line [23:23:09]line [23:23:09]line [23:23:09]line [23:23:09]line [23:23:09]written 0, free lines is 3248 [23:23:09]MH_Cut [23:23:09]Write to MH i2c: D1 01 00 03 28 01 FD [23:23:09]Write i2c OK [23:23:09]MH_I2C_Read... [23:23:09]Read from MH i2c: D1 [23:23:09]MH_I2C_Read... [23:23:09]Read from MH i2c: D1 01 00 [23:23:09]MH_I2C_Read... [23:23:09]Read from MH i2c: D1 01 00 03 28 00 FC [23:23:09]Write to MH i2c: 01 00 00 04 28 2C [23:23:09]Write i2c OK [23:23:09]MH_I2C_Read... [23:23:09]OFD Sender: No OFD packet to send [23:23:09]*** Cut start [23:23:09]*** Partial cut [23:23:09]*** CUTSNS_PIN = 1 [23:23:10]*** CUTSNS_PIN = 0 [23:23:10]*** Brake cut motor [23:23:10]Read from MH i2c: 01 [23:23:10]MH_I2C_Read... [23:23:10]*** Stop cut motor [23:23:10]*** Cut end [23:23:10]Read from MH i2c: 01 07 00 [23:23:10]MH_I2C_Read... [23:23:10]Read from MH i2c: 01 07 00 04 28 00 00 00 00 00 FF 0F 41 [23:23:10]process_action close_receipt done [23:23:10]requested_data is exist [23:23:10]produce_requested_data [23:23:10]requested_item fm.sn is exist - process it [23:23:10]wFMCommunicate request_size=4 [23:23:10]MH_SAM_APDU [23:23:10]CAPDU: 80 11 00 00 [23:23:10]Write to MH i2c: E2 08 00 05 28 80 11 00 00 00 00 00 00 A7 [23:23:10]Write i2c OK [23:23:10]MH_I2C_Read... [23:23:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:10]Read from MH i2c: E2 [23:23:10]MH_I2C_Read... [23:23:10]Read from MH i2c: E2 17 00 [23:23:10]MH_I2C_Read... [23:23:10]Read from MH i2c: E2 17 00 05 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 00 [23:23:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [23:23:10]wFMCommunicate OK [23:23:10]requested_item fd.num is exist - process it [23:23:10]SAM_PROTO_GetFieldsCounters [23:23:10]wFMCommunicate request_size=4 [23:23:10]MH_SAM_APDU [23:23:10]CAPDU: 80 13 00 00 [23:23:10]Write to MH i2c: E2 08 00 06 28 80 13 00 00 00 00 00 00 AA [23:23:10]Write i2c OK [23:23:10]MH_I2C_Read... [23:23:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:23:10]Read from MH i2c: E2 [23:23:10]MH_I2C_Read... [23:23:10]Read from MH i2c: E2 62 00 [23:23:10]MH_I2C_Read... [23:23:10]Read from MH i2c: E2 62 00 06 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 39 6A 00 00 0E 04 04 00 B2 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 48 [23:23:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 39 6A 00 00 0E 04 04 00 B2 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 [23:23:10]wFMCommunicate OK [23:23:10]SAM_PROTO_GetFieldsCounters done [23:23:10]requested_item shift.num is exist - process it [23:23:10]requested_item shift.opened is exist - process it [23:23:10]req_shift_opened [23:23:10]FM_GetShiftState [23:23:10]SAM_PROTO_GetShiftState [23:23:10]wFMCommunicate request_size=4 [23:23:10]MH_SAM_APDU [23:23:10]CAPDU: 80 13 01 00 [23:23:10]Write to MH i2c: E2 08 00 07 28 80 13 01 00 00 00 00 00 AC [23:23:10]Write i2c OK [23:23:10]MH_I2C_Read... [23:23:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:10]Read from MH i2c: E2 [23:23:10]MH_I2C_Read... [23:23:10]Read from MH i2c: E2 0E 00 [23:23:10]MH_I2C_Read... [23:23:10]Read from MH i2c: E2 0E 00 07 28 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 2D [23:23:10]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [23:23:10]wFMCommunicate OK [23:23:10]SAM_PROTO_GetShiftState done [23:23:10]FM_GetShiftState done [23:23:10]req_shift_opened done [23:23:10]requested_item shift.open_date is exist - process it [23:23:10]req_shift_open_date [23:23:10]req_shift_open_date done [23:23:10]produce_requested_data done [23:23:10]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27193,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [23:23:10]process_action_free close_receipt [23:23:10]json_value_free [23:23:10]json_value_free done [23:23:10]process_json_proto returns [23:23:10]Send response to host [23:23:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27193,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [23:23:10]free response buf [23:23:10]execute_script done [23:23:10]execute_script returns [23:23:10]free content buf [23:23:10]Sock 9.Close socket [23:23:10]Sock 9.Thread stoped [23:23:14]OFD Sender: No OFD packet to send [23:23:19]OFD Sender: No OFD packet to send [23:23:24]OFD Sender: No OFD packet to send [23:23:29]OFD Sender: No OFD packet to send [23:23:34]OFD Sender: No OFD packet to send [23:23:39]OFD Sender: No OFD packet to send [23:23:44]OFD Sender: No OFD packet to send [23:23:49]OFD Sender: No OFD packet to send [23:23:54]OFD Sender: No OFD packet to send [23:23:59]OFD Sender: No OFD packet to send [23:24:04]OFD Sender: No OFD packet to send [23:24:09]OFD Sender: No OFD packet to send [23:24:14]OFD Sender: No OFD packet to send [23:24:19]OFD Sender: No OFD packet to send [23:24:24]OFD Sender: No OFD packet to send [23:24:29]OFD Sender: No OFD packet to send [23:24:34]OFD Sender: No OFD packet to send [23:24:39]OFD Sender: No OFD packet to send [23:24:44]OFD Sender: No OFD packet to send [23:24:49]OFD Sender: No OFD packet to send [23:24:54]OFD Sender: No OFD packet to send [23:24:59]OFD Sender: No OFD packet to send [23:25:04]OFD Sender: No OFD packet to send [23:25:09]OFD Sender: No OFD packet to send [23:25:14]OFD Sender: No OFD packet to send [23:25:19]OFD Sender: No OFD packet to send [23:25:24]OFD Sender: No OFD packet to send [23:25:29]OFD Sender: No OFD packet to send [23:25:34]OFD Sender: No OFD packet to send [23:25:39]OFD Sender: No OFD packet to send [23:25:44]OFD Sender: No OFD packet to send [23:25:49]OFD Sender: No OFD packet to send [23:25:54]OFD Sender: No OFD packet to send [23:25:59]OFD Sender: No OFD packet to send [23:26:04]OFD Sender: No OFD packet to send [23:26:09]OFD Sender: No OFD packet to send [23:26:14]OFD Sender: No OFD packet to send [23:26:19]OFD Sender: No OFD packet to send [23:26:24]OFD Sender: No OFD packet to send [23:26:29]OFD Sender: No OFD packet to send [23:26:34]OFD Sender: No OFD packet to send [23:26:39]OFD Sender: No OFD packet to send [23:26:44]OFD Sender: No OFD packet to send [23:26:49]OFD Sender: No OFD packet to send [23:26:54]OFD Sender: No OFD packet to send [23:26:59]OFD Sender: No OFD packet to send [23:27:04]OFD Sender: No OFD packet to send [23:27:09]OFD Sender: No OFD packet to send [23:27:14]OFD Sender: No OFD packet to send [23:27:19]OFD Sender: No OFD packet to send [23:27:24]OFD Sender: No OFD packet to send [23:27:29]OFD Sender: No OFD packet to send [23:27:34]OFD Sender: No OFD packet to send [23:27:39]OFD Sender: No OFD packet to send [23:27:44]OFD Sender: No OFD packet to send [23:27:49]OFD Sender: No OFD packet to send [23:27:54]OFD Sender: No OFD packet to send [23:27:59]OFD Sender: No OFD packet to send [23:28:04]OFD Sender: No OFD packet to send [23:28:09]OFD Sender: No OFD packet to send [23:28:14]OFD Sender: No OFD packet to send [23:28:19]OFD Sender: No OFD packet to send [23:28:24]OFD Sender: No OFD packet to send [23:28:29]OFD Sender: No OFD packet to send [23:28:34]OFD Sender: No OFD packet to send [23:28:39]OFD Sender: No OFD packet to send [23:28:44]OFD Sender: No OFD packet to send [23:28:49]OFD Sender: No OFD packet to send [23:28:54]OFD Sender: No OFD packet to send [23:28:59]OFD Sender: No OFD packet to send [23:29:04]OFD Sender: No OFD packet to send [23:29:09]OFD Sender: No OFD packet to send [23:29:14]OFD Sender: No OFD packet to send [23:29:19]OFD Sender: No OFD packet to send [23:29:24]OFD Sender: No OFD packet to send [23:29:29]OFD Sender: No OFD packet to send [23:29:34]OFD Sender: No OFD packet to send [23:29:39]OFD Sender: No OFD packet to send [23:29:44]OFD Sender: No OFD packet to send [23:29:49]OFD Sender: No OFD packet to send [23:29:54]OFD Sender: No OFD packet to send [23:29:59]OFD Sender: No OFD packet to send [23:30:04]OFD Sender: No OFD packet to send [23:30:09]OFD Sender: No OFD packet to send [23:30:14]OFD Sender: No OFD packet to send [23:30:19]OFD Sender: No OFD packet to send [23:30:24]OFD Sender: No OFD packet to send [23:30:29]OFD Sender: No OFD packet to send [23:30:34]OFD Sender: No OFD packet to send [23:30:39]OFD Sender: No OFD packet to send [23:30:44]OFD Sender: No OFD packet to send [23:30:49]OFD Sender: No OFD packet to send [23:30:54]OFD Sender: No OFD packet to send [23:30:59]OFD Sender: No OFD packet to send [23:31:04]OFD Sender: No OFD packet to send [23:31:09]OFD Sender: No OFD packet to send [23:31:14]OFD Sender: No OFD packet to send [23:31:19]OFD Sender: No OFD packet to send [23:31:24]OFD Sender: No OFD packet to send [23:31:29]OFD Sender: No OFD packet to send [23:31:34]OFD Sender: No OFD packet to send [23:31:39]OFD Sender: No OFD packet to send [23:31:44]OFD Sender: No OFD packet to send [23:31:49]OFD Sender: No OFD packet to send [23:31:54]OFD Sender: No OFD packet to send [23:31:59]OFD Sender: No OFD packet to send [23:32:04]OFD Sender: No OFD packet to send [23:32:09]OFD Sender: No OFD packet to send [23:32:14]OFD Sender: No OFD packet to send [23:32:19]OFD Sender: No OFD packet to send [23:32:24]OFD Sender: No OFD packet to send [23:32:29]OFD Sender: No OFD packet to send [23:32:34]OFD Sender: No OFD packet to send [23:32:39]OFD Sender: No OFD packet to send [23:32:44]OFD Sender: No OFD packet to send [23:32:49]OFD Sender: No OFD packet to send [23:32:54]OFD Sender: No OFD packet to send [23:32:59]OFD Sender: No OFD packet to send [23:33:04]OFD Sender: No OFD packet to send [23:33:09]OFD Sender: No OFD packet to send [23:33:15]OFD Sender: No OFD packet to send [23:33:20]OFD Sender: No OFD packet to send [23:33:25]OFD Sender: No OFD packet to send [23:33:30]OFD Sender: No OFD packet to send [23:33:35]OFD Sender: No OFD packet to send [23:33:40]OFD Sender: No OFD packet to send [23:33:45]OFD Sender: No OFD packet to send [23:33:50]OFD Sender: No OFD packet to send [23:33:55]OFD Sender: No OFD packet to send [23:34:00]OFD Sender: No OFD packet to send [23:34:05]OFD Sender: No OFD packet to send [23:34:10]OFD Sender: No OFD packet to send [23:34:15]OFD Sender: No OFD packet to send [23:34:20]OFD Sender: No OFD packet to send [23:34:25]OFD Sender: No OFD packet to send [23:34:30]OFD Sender: No OFD packet to send [23:34:35]OFD Sender: No OFD packet to send [23:34:40]OFD Sender: No OFD packet to send [23:34:45]OFD Sender: No OFD packet to send [23:34:50]OFD Sender: No OFD packet to send [23:34:55]OFD Sender: No OFD packet to send [23:35:00]OFD Sender: No OFD packet to send [23:35:05]OFD Sender: No OFD packet to send [23:35:10]OFD Sender: No OFD packet to send [23:35:15]OFD Sender: No OFD packet to send [23:35:20]OFD Sender: No OFD packet to send [23:35:25]OFD Sender: No OFD packet to send [23:35:30]OFD Sender: No OFD packet to send [23:35:35]OFD Sender: No OFD packet to send [23:35:40]OFD Sender: No OFD packet to send [23:35:45]OFD Sender: No OFD packet to send [23:35:49]int [23:35:49]Write to MH i2c: 01 00 00 08 28 30 [23:35:49]*** FLAG_PRN_PAP1 set [23:35:49]Write i2c OK [23:35:49]MH_I2C_Read... [23:35:49]Read from MH i2c: 01 [23:35:49]MH_I2C_Read... [23:35:49]Read from MH i2c: 01 07 00 [23:35:49]MH_I2C_Read... [23:35:49]Read from MH i2c: 01 07 00 08 28 00 01 00 00 00 FF 0F 46 [23:35:49]state=0 [23:35:49]No paper [23:35:50]OFD Sender: No OFD packet to send [23:35:55]OFD Sender: No OFD packet to send [23:36:00]OFD Sender: No OFD packet to send [23:36:05]OFD Sender: No OFD packet to send [23:36:10]OFD Sender: No OFD packet to send [23:36:14]int [23:36:14]Write to MH i2c: 01 00 00 09 28 31 [23:36:14]*** FLAG_PRN_PAP1 reset [23:36:14]Write i2c OK [23:36:14]MH_I2C_Read... [23:36:14]Read from MH i2c: 01 [23:36:14]MH_I2C_Read... [23:36:14]Read from MH i2c: 01 07 00 [23:36:14]MH_I2C_Read... [23:36:14]Read from MH i2c: 01 07 00 09 28 00 00 00 00 00 FF 0F 46 [23:36:14]state=0 [23:36:15]OFD Sender: No OFD packet to send [23:36:20]OFD Sender: No OFD packet to send [23:36:25]OFD Sender: No OFD packet to send [23:36:30]OFD Sender: No OFD packet to send [23:36:35]OFD Sender: No OFD packet to send [23:36:40]OFD Sender: No OFD packet to send [23:36:45]OFD Sender: No OFD packet to send [23:36:50]OFD Sender: No OFD packet to send [23:36:55]OFD Sender: No OFD packet to send [23:37:00]OFD Sender: No OFD packet to send [23:37:05]OFD Sender: No OFD packet to send [23:37:10]OFD Sender: No OFD packet to send [23:37:15]OFD Sender: No OFD packet to send [23:37:20]OFD Sender: No OFD packet to send [23:37:22]accept exits with 8 [23:37:22]New connection [23:37:22]New thread 3066928484 created [23:37:22]Thread 3066785124 joined [23:37:22]Waiting for new connection... [23:37:22] Sock 8.Parse request [23:37:22]Sock 8.Check first char [23:37:22]Sock 8.First char is OK [23:37:22]request: POST /json_proto HTTP/1.0 [23:37:22]Method: POST [23:37:22]URL: /json_proto [23:37:22]Method is POST - this is cgi request [23:37:22]url: /json_proto [23:37:22]query_string will be loaded in cgi processing [23:37:22]execute_cgi json_proto POST (null) [23:37:22]execute_cgi path=json_proto method=POST [23:37:22]POST find Content-Length [23:37:22]Host: 172.17.45.8:8080 [23:37:22]Content-Length: 630 [23:37:22]Content-Type: application/json [23:37:22] [23:37:22]POST finish read [23:37:22]Found Content-Length = 630 [23:37:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150592", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:22]execute_script... [23:37: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)150592", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:22]POST & json_proto [23:37:22]process_json_proto [23:37:22]json parsed OK: [23:37:22]protocol is kg_v1.0 [23:37:22]action value=close_receipt [23:37:22]process_action close_receipt [23:37:22]cmd_close_receipt [23:37:22]MH_GetDate [23:37:22]Write to MH i2c: F0 00 00 0A 28 21 [23:37:22]Write i2c OK [23:37:22]MH_I2C_Read... [23:37:22]Read from MH i2c: F0 [23:37:22]MH_I2C_Read... [23:37:22]Read from MH i2c: F0 09 00 [23:37:22]MH_I2C_Read... [23:37:22]Read from MH i2c: F0 09 00 0A 28 00 BA 27 A8 66 A6 1F 7F 64 C1 [23:37:22]GetLastDocTimeStamp 1722295394 [23:37:22]current date 1722296250 [23:37:22]FM_GetShiftState [23:37:22]SAM_PROTO_GetShiftState [23:37:22]wFMCommunicate request_size=4 [23:37:22]MH_SAM_APDU [23:37:22]CAPDU: 80 13 01 00 [23:37:22]Write to MH i2c: E2 08 00 0B 28 80 13 01 00 00 00 00 00 B0 [23:37:22]Write i2c OK [23:37:22]MH_I2C_Read... [23:37:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:22]Read from MH i2c: E2 [23:37:22]MH_I2C_Read... [23:37:22]Read from MH i2c: E2 0E 00 [23:37:22]MH_I2C_Read... [23:37:22]Read from MH i2c: E2 0E 00 0B 28 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 31 [23:37:22]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [23:37:22]wFMCommunicate OK [23:37:22]SAM_PROTO_GetShiftState done [23:37:22]FM_GetShiftState done [23:37:22]opened in 1722213509 [23:37:22]opened+sec_in_day 1722299909 [23:37:22]quantity*price = 10000 [23:37:22]sum+1 = 10001 [23:37:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 97 29.07.2024 23:37 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27194 ФПД: 208392643841418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T233730&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27194&fm=208392643841418&tin=02508201610067®Number=0000000000092663&sum=10000 0 [23:37:23]StoreToDocumentArchive [23:37:23]shift 434 fd 27194 [23:37:23]save to /storage/0434/doc_00027194 [23:37:23]save last doc name /storage/0434/doc_00027194 to /storage/kkm_last_doc_name [23:37:23]save OK [23:37:23]Clear old archive folders... [23:37:23]ProcessDocumentItem done err = 0, tmpTLVsize=270 [23:37:23]tlvbuf is 001F9750 [23:37:23]SAM_PROTO_ClearQueue [23:37:23]wFMCommunicate request_size=4 [23:37:23]MH_SAM_APDU [23:37:23]CAPDU: 80 09 00 00 [23:37:23]Write to MH i2c: E2 08 00 18 28 80 09 00 00 00 00 00 00 B2 [23:37:23]Write i2c OK [23:37:23]MH_I2C_Read... [23:37:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:37:23]Read from MH i2c: E2 [23:37:23]MH_I2C_Read... [23:37:23]Read from MH i2c: E2 03 00 [23:37:23]MH_I2C_Read... [23:37:23]Read from MH i2c: E2 03 00 18 28 00 90 00 B4 [23:37:23]RAPDU: 90 00 [23:37:23]wFMCommunicate OK [23:37:23]SAM_PROTO_ClearQueue done [23:37:23]KKMCreateOFDPacket [23:37:23]OFDProtocolAddRootSTLVToBuf [23:37:23]FM_MakeSignedData [23:37:23]FM_MakeSignedData [23:37:23]SAM_PROTO_SignData [23:37:23]wFMCommunicate request_size=4 [23:37:23]MH_SAM_APDU [23:37:23]CAPDU: 80 0D 01 02 [23:37:23]Write to MH i2c: E2 08 00 19 28 80 0D 01 02 00 00 00 00 BA [23:37:23]Write i2c OK [23:37:23]MH_I2C_Read... [23:37:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:37:23]Read from MH i2c: E2 [23:37:23]MH_I2C_Read... [23:37:23]Read from MH i2c: E2 03 00 [23:37:23]MH_I2C_Read... [23:37:23]Read from MH i2c: E2 03 00 19 28 00 90 00 B5 [23:37:23]RAPDU: 90 00 [23:37:23]wFMCommunicate OK [23:37:23]wFMCommunicate request_size=255 [23:37:23]MH_SAM_APDU [23:37:23]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 BA 27 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [23:37:23]Write to MH i2c: E2 02 01 1A 28 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 BA 27 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 FA [23:37:23]Write i2c OK [23:37:23]MH_I2C_Read... [23:37:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:23]Read from MH i2c: E2 [23:37:23]MH_I2C_Read... [23:37:23]Read from MH i2c: E2 03 00 [23:37:23]MH_I2C_Read... [23:37:23]Read from MH i2c: E2 03 00 1A 28 00 90 00 B6 [23:37:23]RAPDU: 90 00 [23:37:23]wFMCommunicate OK [23:37:23]wFMCommunicate request_size=29 [23:37:23]MH_SAM_APDU [23:37:23]CAPDU: 80 0D 02 02 18 38 37 34 39 33 37 10 04 04 00 3A 6A 00 00 35 04 06 00 BD 88 31 82 8D 8A [23:37:23]Write to MH i2c: E2 20 00 1B 28 80 0D 02 02 18 00 38 37 34 39 33 37 10 04 04 00 3A 6A 00 00 35 04 06 00 BD 88 31 82 8D 8A 00 00 3D [23:37:23]Write i2c OK [23:37:23]MH_I2C_Read... [23:37:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:23]Read from MH i2c: E2 [23:37:23]MH_I2C_Read... [23:37:23]Read from MH i2c: E2 03 00 [23:37:23]MH_I2C_Read... [23:37:23]Read from MH i2c: E2 03 00 1B 28 00 90 00 B7 [23:37:23]RAPDU: 90 00 [23:37:23]wFMCommunicate OK [23:37:23]wFMCommunicate request_size=4 [23:37:23]MH_SAM_APDU [23:37:23]CAPDU: 80 0D 03 02 [23:37:23]Write to MH i2c: E2 08 00 1C 28 80 0D 03 02 00 00 00 00 BF [23:37:23]Write i2c OK [23:37:23]MH_I2C_Read... [23:37:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:37:23]Read from MH i2c: E2 [23:37:23]MH_I2C_Read... [23:37:23]Read from MH i2c: E2 0B 00 [23:37:23]MH_I2C_Read... [23:37:23]Read from MH i2c: E2 0B 00 1C 28 00 EC 7C 2B E8 CE C2 90 FC 90 00 57 [23:37:23]RAPDU: EC 7C 2B E8 CE C2 90 FC 90 00 [23:37:23]wFMCommunicate OK [23:37:23]SAM_PROTO_SignData done [23:37:23]FM_MakeSignedData done [23:37:23]CreateOFDProtocolMessage [23:37:23]wFMCommunicate request_size=4 [23:37:23]MH_SAM_APDU [23:37:23]CAPDU: 80 11 00 00 [23:37:23]Write to MH i2c: E2 08 00 1D 28 80 11 00 00 00 00 00 00 BF [23:37:23]Write i2c OK [23:37:23]MH_I2C_Read... [23:37:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:23]Read from MH i2c: E2 [23:37:23]MH_I2C_Read... [23:37:23]Read from MH i2c: E2 17 00 [23:37:23]MH_I2C_Read... [23:37:23]Read from MH i2c: E2 17 00 1D 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 18 [23:37:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [23:37:23]wFMCommunicate OK [23:37:23]CreateOFDProtocolMessage done [23:37:23]OFDSenderStorePacket 27194 [23:37:23]StoreOFDPacket docnum=27194 [23:37:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 22 01 00 00 98 C8 1A 01 A9 80 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 BA 27 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 3A 6A 00 00 35 04 06 00 BD 88 31 82 8D 8A EC 7C 2B E8 CE C2 90 FC [23:37:23]CheckFolder [23:37:23]dirname=/storage/ofd_packets [23:37:23]CheckFolder done [23:37:23]ProducePacketName [23:37:23]name=ofd_packets/00027194 [23:37:23]NVStorageSaveData ofd_packets/00027194 [23:37:23]File name is /storage/ofd_packets/00027194 [23:37:23]Write 320 bytes [23:37:23]NVStorageSaveData done [23:37:23]OFDSenderStorePacket done [23:37:23]KKMCreateOFDPacket done [23:37:23]NVStorageSaveData kkm_last_timestamp [23:37:23]File name is /storage/kkm_last_timestamp [23:37:23]Write 4 bytes [23:37:23]NVStorageSaveData done [23:37:23]ExternCall_PrintAddStr [23:37:23]wPrintStart [23:37:23]Write to MH i2c: 01 00 00 1E 28 46 [23:37:23]OFD Sender: Processing packet 27194 [packets to send 9, broken 8] [23:37:23]ProducePacketName [23:37:23]name=ofd_packets/00027194 [23:37:23]OFD Sender: To server: pG, [23:37:23]CommunicateWithHost lk.salyk.kg:30040 [23:37:23]ConnectInit lk.salyk.kg [23:37:23]Write i2c OK [23:37:23]MH_I2C_Read... [23:37:23]Read from MH i2c: 01 [23:37:23]MH_I2C_Read... [23:37:23]Read from MH i2c: 01 07 00 [23:37:23]MH_I2C_Read... [23:37:23]Read from MH i2c: 01 07 00 1E 28 00 00 00 00 00 FF 0F 5B [23:37:23]RasterBufferAndPrint [23:37:23]line Счет N : (3)150592 [23:37:23]line ИНН: 02508201610067 [23:37:23]line Контрольно-Кассовый Чек [23:37:23]line ПРОДАЖА [23:37:23]line Товар: 4700000480814 [23:37:23]line Пиво Живое 0,5 ст [23:37:23]line 1.000 * 100.00 [23:37:23]line = 100.00 [23:37:23]line НДС 12% НСП 1% [23:37:23]line > о реализуемом товаре [23:37:23]line ИТОГО: 100.00 [23:37:23]line НСП 1% : 0.88 [23:37:23]line НДС 12% : 10.62 [23:37:23]line Наличными: 100.00 [23:37:23]line Безнал.: 0.00 [23:37:23]line Место: АЗС № 134 "Партнер Нефть" [23:37:23]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:37:23]line СНО: Общий режим [23:37:23]line Чек 97 29.07.2024 23:37 [23:37:23]line Смена: 434 ФФД: 1.0 [23:37:23]line ЗНМ: 0300000043 [23:37:23]line РНМ: 0000000000092663 [23:37:23]line Версия ККМ: 001 [23:37:23]line ФМ: 0000000000874937 [23:37:23]line ФД: 27194 [23:37:23]line ФПД: 208392643841418 [23:37:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T233730&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27194&fm=208392643841418&tin=02508201610067®Number=0000000000092663&sum=10000 [23:37:23]line 0 [23:37:23]written 0, free lines is 4095 [23:37:24]Connected sock=10 [23:37:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 22 01 00 00 98 C8 1A 01 A9 80 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 BA 27 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 3A 6A 00 00 35 04 06 00 BD 88 31 82 8D 8A EC 7C 2B E8 CE C2 90 FC [23:37:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 1C 52 47 00 79 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 34 39 33 37 10 04 04 00 3A 6A 00 00 F4 03 04 00 09 CE A7 66 B6 04 01 00 00 18 53 AF 6F 0D 7F 76 85 [23:37:24]CommunicateWithHost err = 0 [23:37:24]CheckOFDResponse [23:37:24]1017 (14) - 77093643461234 [23:37:24]1041 (16) - 0000000000874937 [23:37:24]1040 (4) - 27194 [23:37:24]1012 (4) - 29.07.2024 17:14 [23:37:24]1206 (1) - 0 [23:37:24]OFD Sender: Remove packet 27194 [23:37:24]ProducePacketName [23:37:24]name=ofd_packets/00027194 [23:37:24]NVStorageDeleteData [23:37:24]Write to MH i2c: 01 00 00 45 28 6D [23:37:24]Write i2c OK [23:37:24]MH_I2C_Read... [23:37:24]Read from MH i2c: 01 [23:37:24]MH_I2C_Read... [23:37:24]Read from MH i2c: 01 07 00 [23:37:24]MH_I2C_Read... [23:37:24]Read from MH i2c: 01 07 00 45 28 00 00 00 00 00 FA 0C 7A [23:37:24]RasterBufferAndPrint [23:37:24]line [23:37:24]line [23:37:24]line [23:37:24]line [23:37:24]line [23:37:24]written 0, free lines is 3329 [23:37:24]MH_Cut [23:37:24]Write to MH i2c: D1 01 00 4C 28 01 46 [23:37:24]Write i2c OK [23:37:24]MH_I2C_Read... [23:37:24]Read from MH i2c: D1 [23:37:24]MH_I2C_Read... [23:37:24]Read from MH i2c: D1 01 00 [23:37:24]MH_I2C_Read... [23:37:24]Read from MH i2c: D1 01 00 4C 28 00 45 [23:37:24]Write to MH i2c: 01 00 00 4D 28 75 [23:37:24]Write i2c OK [23:37:24]MH_I2C_Read... [23:37:24]OFD Sender: No OFD packet to send [23:37:25]*** Cut start [23:37:25]*** Partial cut [23:37:25]*** CUTSNS_PIN = 1 [23:37:25]*** CUTSNS_PIN = 0 [23:37:25]*** Brake cut motor [23:37:25]Read from MH i2c: 01 [23:37:25]MH_I2C_Read... [23:37:25]*** Stop cut motor [23:37:25]*** Cut end [23:37:25]Read from MH i2c: 01 07 00 [23:37:25]MH_I2C_Read... [23:37:25]Read from MH i2c: 01 07 00 4D 28 00 00 00 00 00 FF 0F 8A [23:37:25]process_action close_receipt done [23:37:25]requested_data is exist [23:37:25]produce_requested_data [23:37:25]requested_item fm.sn is exist - process it [23:37:25]wFMCommunicate request_size=4 [23:37:25]MH_SAM_APDU [23:37:25]CAPDU: 80 11 00 00 [23:37:25]Write to MH i2c: E2 08 00 4E 28 80 11 00 00 00 00 00 00 F0 [23:37:25]Write i2c OK [23:37:25]MH_I2C_Read... [23:37:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:25]Read from MH i2c: E2 [23:37:25]MH_I2C_Read... [23:37:25]Read from MH i2c: E2 17 00 [23:37:25]MH_I2C_Read... [23:37:25]Read from MH i2c: E2 17 00 4E 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 49 [23:37:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [23:37:25]wFMCommunicate OK [23:37:25]requested_item fd.num is exist - process it [23:37:25]SAM_PROTO_GetFieldsCounters [23:37:25]wFMCommunicate request_size=4 [23:37:25]MH_SAM_APDU [23:37:25]CAPDU: 80 13 00 00 [23:37:25]Write to MH i2c: E2 08 00 4F 28 80 13 00 00 00 00 00 00 F3 [23:37:25]Write i2c OK [23:37:25]MH_I2C_Read... [23:37:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:37:25]Read from MH i2c: E2 [23:37:25]MH_I2C_Read... [23:37:25]Read from MH i2c: E2 62 00 [23:37:25]MH_I2C_Read... [23:37:25]Read from MH i2c: E2 62 00 4F 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 3A 6A 00 00 0E 04 04 00 B2 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 95 [23:37:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 3A 6A 00 00 0E 04 04 00 B2 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 [23:37:25]wFMCommunicate OK [23:37:25]SAM_PROTO_GetFieldsCounters done [23:37:25]requested_item shift.num is exist - process it [23:37:25]requested_item shift.opened is exist - process it [23:37:25]req_shift_opened [23:37:25]FM_GetShiftState [23:37:25]SAM_PROTO_GetShiftState [23:37:25]wFMCommunicate request_size=4 [23:37:25]MH_SAM_APDU [23:37:25]CAPDU: 80 13 01 00 [23:37:25]Write to MH i2c: E2 08 00 50 28 80 13 01 00 00 00 00 00 F5 [23:37:25]Write i2c OK [23:37:25]MH_I2C_Read... [23:37:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:25]Read from MH i2c: E2 [23:37:26]MH_I2C_Read... [23:37:26]Read from MH i2c: E2 0E 00 [23:37:26]MH_I2C_Read... [23:37:26]Read from MH i2c: E2 0E 00 50 28 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 76 [23:37:26]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [23:37:26]wFMCommunicate OK [23:37:26]SAM_PROTO_GetShiftState done [23:37:26]FM_GetShiftState done [23:37:26]req_shift_opened done [23:37:26]requested_item shift.open_date is exist - process it [23:37:26]req_shift_open_date [23:37:26]req_shift_open_date done [23:37:26]produce_requested_data done [23:37:26]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27194,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [23:37:26]process_action_free close_receipt [23:37:26]json_value_free [23:37:26]json_value_free done [23:37:26]process_json_proto returns [23:37:26]Send response to host [23:37:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27194,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [23:37:26]free response buf [23:37:26]execute_script done [23:37:26]execute_script returns [23:37:26]free content buf [23:37:26]Sock 8.Close socket [23:37:26]Sock 8.Thread stoped [23:37:29]OFD Sender: No OFD packet to send [23:37:34]OFD Sender: No OFD packet to send [23:37:39]OFD Sender: No OFD packet to send [23:37:44]OFD Sender: No OFD packet to send [23:37:49]OFD Sender: No OFD packet to send [23:37:54]OFD Sender: No OFD packet to send [23:37:59]OFD Sender: No OFD packet to send [23:38:04]OFD Sender: No OFD packet to send [23:38:09]OFD Sender: No OFD packet to send [23:38:14]OFD Sender: No OFD packet to send [23:38:19]OFD Sender: No OFD packet to send [23:38:24]OFD Sender: No OFD packet to send [23:38:29]OFD Sender: No OFD packet to send [23:38:34]OFD Sender: No OFD packet to send [23:38:39]OFD Sender: No OFD packet to send [23:38:44]OFD Sender: No OFD packet to send [23:38:49]OFD Sender: No OFD packet to send [23:38:54]OFD Sender: No OFD packet to send [23:38:59]OFD Sender: No OFD packet to send [23:39:04]OFD Sender: No OFD packet to send [23:39:09]OFD Sender: No OFD packet to send [23:39:14]OFD Sender: No OFD packet to send [23:39:19]OFD Sender: No OFD packet to send [23:39:24]OFD Sender: No OFD packet to send [23:39:29]OFD Sender: No OFD packet to send [23:39:34]OFD Sender: No OFD packet to send [23:39:39]OFD Sender: No OFD packet to send [23:39:44]OFD Sender: No OFD packet to send [23:39:49]OFD Sender: No OFD packet to send [23:39:54]OFD Sender: No OFD packet to send [23:39:59]OFD Sender: No OFD packet to send [23:40:04]OFD Sender: No OFD packet to send [23:40:09]OFD Sender: No OFD packet to send [23:40:14]OFD Sender: No OFD packet to send [23:40:19]OFD Sender: No OFD packet to send [23:40:24]OFD Sender: No OFD packet to send [23:40:29]OFD Sender: No OFD packet to send [23:40:34]OFD Sender: No OFD packet to send [23:40:39]OFD Sender: No OFD packet to send [23:40:44]OFD Sender: No OFD packet to send [23:40:49]OFD Sender: No OFD packet to send [23:40:54]OFD Sender: No OFD packet to send [23:40:59]OFD Sender: No OFD packet to send [23:41:04]OFD Sender: No OFD packet to send [23:41:09]OFD Sender: No OFD packet to send [23:41:14]OFD Sender: No OFD packet to send [23:41:19]OFD Sender: No OFD packet to send [23:41:24]OFD Sender: No OFD packet to send [23:41:29]accept exits with 9 [23:41:29]New connection [23:41:29]New thread 3066785124 created [23:41:29]Thread 3066928484 joined [23:41:29]Waiting for new connection... [23:41:29] Sock 9.Parse request [23:41:29]Sock 9.Check first char [23:41:29]Sock 9.First char is OK [23:41:29]request: POST /json_proto HTTP/1.0 [23:41:29]Method: POST [23:41:29]URL: /json_proto [23:41:29]Method is POST - this is cgi request [23:41:29]url: /json_proto [23:41:29]query_string will be loaded in cgi processing [23:41:29]execute_cgi json_proto POST (null) [23:41:29]execute_cgi path=json_proto method=POST [23:41:29]POST find Content-Length [23:41:29]Host: 172.17.45.8:8080 [23:41:29]Content-Length: 640 [23:41:29]Content-Type: application/json [23:41:29] [23:41:29]POST finish read [23:41:29]Found Content-Length = 640 [23:41:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150593", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 180.00, "quantity" : 3.000, "sum" : 540.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 540.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:29]execute_script... [23:41: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)150593", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 180.00, "quantity" : 3.000, "sum" : 540.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 540.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:29]POST & json_proto [23:41:29]process_json_proto [23:41:29]json parsed OK: [23:41:29]protocol is kg_v1.0 [23:41:29]action value=close_receipt [23:41:29]process_action close_receipt [23:41:29]cmd_close_receipt [23:41:29]MH_GetDate [23:41:29]Write to MH i2c: F0 00 00 51 28 68 [23:41:29]Write i2c OK [23:41:29]MH_I2C_Read... [23:41:29]Read from MH i2c: F0 [23:41:29]MH_I2C_Read... [23:41:29]Read from MH i2c: F0 09 00 [23:41:29]MH_I2C_Read... [23:41:29]Read from MH i2c: F0 09 00 51 28 00 B1 28 A8 66 A6 1F 7F 64 00 [23:41:29]GetLastDocTimeStamp 1722296250 [23:41:29]current date 1722296497 [23:41:29]FM_GetShiftState [23:41:29]SAM_PROTO_GetShiftState [23:41:29]wFMCommunicate request_size=4 [23:41:29]MH_SAM_APDU [23:41:29]CAPDU: 80 13 01 00 [23:41:29]Write to MH i2c: E2 08 00 52 28 80 13 01 00 00 00 00 00 F7 [23:41:29]Write i2c OK [23:41:29]MH_I2C_Read... [23:41:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:29]Read from MH i2c: E2 [23:41:29]MH_I2C_Read... [23:41:29]Read from MH i2c: E2 0E 00 [23:41:29]MH_I2C_Read... [23:41:29]Read from MH i2c: E2 0E 00 52 28 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 78 [23:41:29]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [23:41:29]wFMCommunicate OK [23:41:29]SAM_PROTO_GetShiftState done [23:41:29]FM_GetShiftState done [23:41:29]opened in 1722213509 [23:41:29]opened+sec_in_day 1722299909 [23:41:29]quantity*price = 54000 [23:41:29]sum+1 = 54001 [23:41:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 540.00 НСП 1% : 4.78 НДС 12% : 57.34 Наличными: 540.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 98 29.07.2024 23:41 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27195 ФПД: 234783076599546 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T234137&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27195&fm=234783076599546&tin=02508201610067®Number=0000000000092663&sum=54000 0 [23:41:30]StoreToDocumentArchive [23:41:30]shift 434 fd 27195 [23:41:30]save to /storage/0434/doc_00027195 [23:41:30]save last doc name /storage/0434/doc_00027195 to /storage/kkm_last_doc_name [23:41:30]save OK [23:41:30]Clear old archive folders... [23:41:30]ProcessDocumentItem done err = 0, tmpTLVsize=272 [23:41:30]tlvbuf is B6DA2A40 [23:41:30]SAM_PROTO_ClearQueue [23:41:30]wFMCommunicate request_size=4 [23:41:30]MH_SAM_APDU [23:41:30]CAPDU: 80 09 00 00 [23:41:30]Write to MH i2c: E2 08 00 5F 28 80 09 00 00 00 00 00 00 F9 [23:41:30]Write i2c OK [23:41:30]MH_I2C_Read... [23:41:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:41:30]Read from MH i2c: E2 [23:41:30]MH_I2C_Read... [23:41:30]Read from MH i2c: E2 03 00 [23:41:30]MH_I2C_Read... [23:41:30]Read from MH i2c: E2 03 00 5F 28 00 90 00 FB [23:41:30]RAPDU: 90 00 [23:41:30]wFMCommunicate OK [23:41:30]SAM_PROTO_ClearQueue done [23:41:30]KKMCreateOFDPacket [23:41:30]OFDProtocolAddRootSTLVToBuf [23:41:30]FM_MakeSignedData [23:41:30]FM_MakeSignedData [23:41:30]SAM_PROTO_SignData [23:41:30]wFMCommunicate request_size=4 [23:41:30]MH_SAM_APDU [23:41:30]CAPDU: 80 0D 01 02 [23:41:30]Write to MH i2c: E2 08 00 60 28 80 0D 01 02 00 00 00 00 01 [23:41:30]Write i2c OK [23:41:30]MH_I2C_Read... [23:41:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:41:30]Read from MH i2c: E2 [23:41:30]MH_I2C_Read... [23:41:30]Read from MH i2c: E2 03 00 [23:41:30]MH_I2C_Read... [23:41:30]Read from MH i2c: E2 03 00 60 28 00 90 00 FC [23:41:30]RAPDU: 90 00 [23:41:30]wFMCommunicate OK [23:41:30]wFMCommunicate request_size=255 [23:41:30]MH_SAM_APDU [23:41:30]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 F0 D2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 B1 28 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 [23:41:30]Write to MH i2c: E2 02 01 61 28 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 F0 D2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 B1 28 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 00 00 75 [23:41:30]Write i2c OK [23:41:30]MH_I2C_Read... [23:41:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:30]Read from MH i2c: E2 [23:41:30]MH_I2C_Read... [23:41:30]Read from MH i2c: E2 03 00 [23:41:30]MH_I2C_Read... [23:41:30]Read from MH i2c: E2 03 00 61 28 00 90 00 FD [23:41:30]RAPDU: 90 00 [23:41:30]wFMCommunicate OK [23:41:30]wFMCommunicate request_size=31 [23:41:30]MH_SAM_APDU [23:41:30]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 39 33 37 10 04 04 00 3B 6A 00 00 35 04 06 00 D5 88 B1 E1 46 FA [23:41:30]Write to MH i2c: E2 22 00 62 28 80 0D 02 02 1A 00 30 30 38 37 34 39 33 37 10 04 04 00 3B 6A 00 00 35 04 06 00 D5 88 B1 E1 46 FA 00 00 09 [23:41:30]Write i2c OK [23:41:30]MH_I2C_Read... [23:41:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:41:30]Read from MH i2c: E2 [23:41:30]MH_I2C_Read... [23:41:30]Read from MH i2c: E2 03 00 [23:41:30]MH_I2C_Read... [23:41:30]Read from MH i2c: E2 03 00 62 28 00 90 00 FE [23:41:30]RAPDU: 90 00 [23:41:30]wFMCommunicate OK [23:41:30]wFMCommunicate request_size=4 [23:41:30]MH_SAM_APDU [23:41:30]CAPDU: 80 0D 03 02 [23:41:30]Write to MH i2c: E2 08 00 63 28 80 0D 03 02 00 00 00 00 06 [23:41:30]Write i2c OK [23:41:30]MH_I2C_Read... [23:41:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:41:30]Read from MH i2c: E2 [23:41:30]MH_I2C_Read... [23:41:30]Read from MH i2c: E2 0B 00 [23:41:30]MH_I2C_Read... [23:41:30]Read from MH i2c: E2 0B 00 63 28 00 2D 4B 4F 37 D6 0D CA 73 90 00 25 [23:41:30]RAPDU: 2D 4B 4F 37 D6 0D CA 73 90 00 [23:41:30]wFMCommunicate OK [23:41:30]SAM_PROTO_SignData done [23:41:30]FM_MakeSignedData done [23:41:30]CreateOFDProtocolMessage [23:41:30]wFMCommunicate request_size=4 [23:41:30]MH_SAM_APDU [23:41:30]CAPDU: 80 11 00 00 [23:41:30]Write to MH i2c: E2 08 00 64 28 80 11 00 00 00 00 00 00 06 [23:41:30]Write i2c OK [23:41:30]MH_I2C_Read... [23:41:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:30]Read from MH i2c: E2 [23:41:30]MH_I2C_Read... [23:41:30]Read from MH i2c: E2 17 00 [23:41:30]MH_I2C_Read... [23:41:30]Read from MH i2c: E2 17 00 64 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 5F [23:41:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [23:41:30]wFMCommunicate OK [23:41:30]CreateOFDProtocolMessage done [23:41:30]OFDSenderStorePacket 27195 [23:41:30]StoreOFDPacket docnum=27195 [23:41:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 24 01 00 00 C7 BA 1C 01 00 BE 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 F0 D2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 B1 28 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 3B 6A 00 00 35 04 06 00 D5 88 B1 E1 46 FA 2D 4B 4F 37 D6 0D CA 73 [23:41:30]CheckFolder [23:41:30]dirname=/storage/ofd_packets [23:41:30]CheckFolder done [23:41:30]ProducePacketName [23:41:30]name=ofd_packets/00027195 [23:41:30]NVStorageSaveData ofd_packets/00027195 [23:41:30]File name is /storage/ofd_packets/00027195 [23:41:30]Write 322 bytes [23:41:30]NVStorageSaveData done [23:41:30]OFDSenderStorePacket done [23:41:30]KKMCreateOFDPacket done [23:41:30]NVStorageSaveData kkm_last_timestamp [23:41:30]File name is /storage/kkm_last_timestamp [23:41:30]Write 4 bytes [23:41:30]NVStorageSaveData done [23:41:30]ExternCall_PrintAddStr [23:41:30]wPrintStart [23:41:30]Write to MH i2c: 01 00 00 65 28 8D [23:41:30]Write i2c OK [23:41:30]MH_I2C_Read... [23:41:30]Read from MH i2c: 01 [23:41:30]MH_I2C_Read... [23:41:30]Read from MH i2c: 01 07 00 [23:41:30]MH_I2C_Read... [23:41:30]Read from MH i2c: 01 07 00 65 28 00 00 00 00 00 FF 0F A2 [23:41:30]RasterBufferAndPrint [23:41:30]line Счет N : (3)150593 [23:41:30]line ИНН: 02508201610067 [23:41:30]line Контрольно-Кассовый Чек [23:41:30]line ПРОДАЖА [23:41:30]line Товар: 4700000480517 [23:41:30]line Пиво Живое 1л ПЭТ [23:41:30]line 3.000 * 180.00 [23:41:30]line = 540.00 [23:41:30]line НДС 12% НСП 1% [23:41:30]line > о реализуемом товаре [23:41:30]line ИТОГО: 540.00 [23:41:30]line НСП 1% : 4.78 [23:41:30]line НДС 12% : 57.34 [23:41:30]line Наличными: 540.00 [23:41:30]line Безнал.: 0.00 [23:41:30]line Место: АЗС № 134 "Партнер Нефть" [23:41:30]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:41:30]line СНО: Общий режим [23:41:30]line Чек 98 29.07.2024 23:41 [23:41:30]line Смена: 434 ФФД: 1.0 [23:41:30]line ЗНМ: 0300000043 [23:41:30]line РНМ: 0000000000092663 [23:41:30]line Версия ККМ: 001 [23:41:30]line ФМ: 0000000000874937 [23:41:30]line ФД: 27195 [23:41:30]line ФПД: 234783076599546 [23:41:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T234137&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27195&fm=234783076599546&tin=02508201610067®Number=0000000000092663&sum=54000 [23:41:31]OFD Sender: Processing packet 27195 [packets to send 9, broken 8] [23:41:31]ProducePacketName [23:41:31]name=ofd_packets/00027195 [23:41:31]OFD Sender: To server: pG, [23:41:31]CommunicateWithHost lk.salyk.kg:30040 [23:41:31]ConnectInit lk.salyk.kg [23:41:31]line 0 [23:41:31]written 0, free lines is 4095 [23:41:31]Connected sock=10 [23:41:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 24 01 00 00 C7 BA 1C 01 00 BE 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 F0 D2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 16 00 00 00 00 07 04 06 00 F0 D2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 B1 28 A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 3B 6A 00 00 35 04 06 00 D5 88 B1 E1 46 FA 2D 4B 4F 37 D6 0D CA 73 [23:41:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 59 84 47 00 BB 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 3B 6A 00 00 F4 03 04 00 00 CF A7 66 B6 04 01 00 00 43 46 02 F0 7F 0E 4C D4 [23:41:31]CommunicateWithHost err = 0 [23:41:31]CheckOFDResponse [23:41:31]1017 (14) - 77093643461234 [23:41:31]1041 (16) - 0000000000874937 [23:41:31]1040 (4) - 27195 [23:41:31]1012 (4) - 29.07.2024 17:18 [23:41:31]1206 (1) - 0 [23:41:31]OFD Sender: Remove packet 27195 [23:41:31]ProducePacketName [23:41:31]name=ofd_packets/00027195 [23:41:31]NVStorageDeleteData [23:41:31]Write to MH i2c: 01 00 00 8C 28 B4 [23:41:31]Write i2c OK [23:41:31]MH_I2C_Read... [23:41:31]Read from MH i2c: 01 [23:41:31]MH_I2C_Read... [23:41:31]Read from MH i2c: 01 07 00 [23:41:31]MH_I2C_Read... [23:41:31]Read from MH i2c: 01 07 00 8C 28 00 00 00 00 00 04 0D CC [23:41:31]RasterBufferAndPrint [23:41:31]line [23:41:31]line [23:41:31]line [23:41:31]line [23:41:31]line [23:41:31]written 0, free lines is 3339 [23:41:31]MH_Cut [23:41:31]Write to MH i2c: D1 01 00 93 28 01 8D [23:41:31]Write i2c OK [23:41:31]MH_I2C_Read... [23:41:31]Read from MH i2c: D1 [23:41:31]MH_I2C_Read... [23:41:31]Read from MH i2c: D1 01 00 [23:41:31]MH_I2C_Read... [23:41:31]Read from MH i2c: D1 01 00 93 28 00 8C [23:41:31]Write to MH i2c: 01 00 00 94 28 BC [23:41:31]Write i2c OK [23:41:31]MH_I2C_Read... [23:41:32]OFD Sender: No OFD packet to send [23:41:32]*** Cut start [23:41:32]*** Partial cut [23:41:32]*** CUTSNS_PIN = 1 [23:41:32]*** CUTSNS_PIN = 0 [23:41:32]*** Brake cut motor [23:41:33]Read from MH i2c: 01 [23:41:33]MH_I2C_Read... [23:41:33]*** Stop cut motor [23:41:33]*** Cut end [23:41:33]Read from MH i2c: 01 07 00 [23:41:33]MH_I2C_Read... [23:41:33]Read from MH i2c: 01 07 00 94 28 00 00 00 00 00 FF 0F D1 [23:41:33]process_action close_receipt done [23:41:33]requested_data is exist [23:41:33]produce_requested_data [23:41:33]requested_item fm.sn is exist - process it [23:41:33]wFMCommunicate request_size=4 [23:41:33]MH_SAM_APDU [23:41:33]CAPDU: 80 11 00 00 [23:41:33]Write to MH i2c: E2 08 00 95 28 80 11 00 00 00 00 00 00 37 [23:41:33]Write i2c OK [23:41:33]MH_I2C_Read... [23:41:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:33]Read from MH i2c: E2 [23:41:33]MH_I2C_Read... [23:41:33]Read from MH i2c: E2 17 00 [23:41:33]MH_I2C_Read... [23:41:33]Read from MH i2c: E2 17 00 95 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 90 [23:41:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [23:41:33]wFMCommunicate OK [23:41:33]requested_item fd.num is exist - process it [23:41:33]SAM_PROTO_GetFieldsCounters [23:41:33]wFMCommunicate request_size=4 [23:41:33]MH_SAM_APDU [23:41:33]CAPDU: 80 13 00 00 [23:41:33]Write to MH i2c: E2 08 00 96 28 80 13 00 00 00 00 00 00 3A [23:41:33]Write i2c OK [23:41:33]MH_I2C_Read... [23:41:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:41:33]Read from MH i2c: E2 [23:41:33]MH_I2C_Read... [23:41:33]Read from MH i2c: E2 62 00 [23:41:33]MH_I2C_Read... [23:41:33]Read from MH i2c: E2 62 00 96 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 3B 6A 00 00 0E 04 04 00 B2 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 E0 [23:41:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 3B 6A 00 00 0E 04 04 00 B2 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 [23:41:33]wFMCommunicate OK [23:41:33]SAM_PROTO_GetFieldsCounters done [23:41:33]requested_item shift.num is exist - process it [23:41:33]requested_item shift.opened is exist - process it [23:41:33]req_shift_opened [23:41:33]FM_GetShiftState [23:41:33]SAM_PROTO_GetShiftState [23:41:33]wFMCommunicate request_size=4 [23:41:33]MH_SAM_APDU [23:41:33]CAPDU: 80 13 01 00 [23:41:33]Write to MH i2c: E2 08 00 97 28 80 13 01 00 00 00 00 00 3C [23:41:33]Write i2c OK [23:41:33]MH_I2C_Read... [23:41:33]Read from MH i2c: E2 [23:41:33]MH_I2C_Read... [23:41:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:33]Read from MH i2c: E2 0E 00 [23:41:33]MH_I2C_Read... [23:41:33]Read from MH i2c: E2 0E 00 97 28 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 BD [23:41:33]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [23:41:33]wFMCommunicate OK [23:41:33]SAM_PROTO_GetShiftState done [23:41:33]FM_GetShiftState done [23:41:33]req_shift_opened done [23:41:33]requested_item shift.open_date is exist - process it [23:41:33]req_shift_open_date [23:41:33]req_shift_open_date done [23:41:33]produce_requested_data done [23:41:33]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27195,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [23:41:33]process_action_free close_receipt [23:41:33]json_value_free [23:41:33]json_value_free done [23:41:33]process_json_proto returns [23:41:33]Send response to host [23:41:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27195,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [23:41:33]free response buf [23:41:33]execute_script done [23:41:33]execute_script returns [23:41:33]free content buf [23:41:33]Sock 9.Close socket [23:41:33]Sock 9.Thread stoped [23:41:37]OFD Sender: No OFD packet to send [23:41:42]OFD Sender: No OFD packet to send [23:41:47]OFD Sender: No OFD packet to send [23:41:52]OFD Sender: No OFD packet to send [23:41:57]OFD Sender: No OFD packet to send [23:42:02]OFD Sender: No OFD packet to send [23:42:07]OFD Sender: No OFD packet to send [23:42:12]OFD Sender: No OFD packet to send [23:42:17]OFD Sender: No OFD packet to send [23:42:22]OFD Sender: No OFD packet to send [23:42:27]OFD Sender: No OFD packet to send [23:42:32]OFD Sender: No OFD packet to send [23:42:37]OFD Sender: No OFD packet to send [23:42:42]OFD Sender: No OFD packet to send [23:42:47]OFD Sender: No OFD packet to send [23:42:52]OFD Sender: No OFD packet to send [23:42:57]OFD Sender: No OFD packet to send [23:43:02]OFD Sender: No OFD packet to send [23:43:07]OFD Sender: No OFD packet to send [23:43:12]OFD Sender: No OFD packet to send [23:43:17]OFD Sender: No OFD packet to send [23:43:22]OFD Sender: No OFD packet to send [23:43:27]OFD Sender: No OFD packet to send [23:43:32]OFD Sender: No OFD packet to send [23:43:37]OFD Sender: No OFD packet to send [23:43:42]OFD Sender: No OFD packet to send [23:43:47]OFD Sender: No OFD packet to send [23:43:52]OFD Sender: No OFD packet to send [23:43:57]OFD Sender: No OFD packet to send [23:44:02]OFD Sender: No OFD packet to send [23:44:07]OFD Sender: No OFD packet to send [23:44:12]OFD Sender: No OFD packet to send [23:44:17]OFD Sender: No OFD packet to send [23:44:22]OFD Sender: No OFD packet to send [23:44:27]OFD Sender: No OFD packet to send [23:44:32]OFD Sender: No OFD packet to send [23:44:37]OFD Sender: No OFD packet to send [23:44:42]OFD Sender: No OFD packet to send [23:44:47]OFD Sender: No OFD packet to send [23:44:52]OFD Sender: No OFD packet to send [23:44:57]OFD Sender: No OFD packet to send [23:45:02]OFD Sender: No OFD packet to send [23:45:07]OFD Sender: No OFD packet to send [23:45:12]OFD Sender: No OFD packet to send [23:45:17]OFD Sender: No OFD packet to send [23:45:22]OFD Sender: No OFD packet to send [23:45:27]OFD Sender: No OFD packet to send [23:45:32]OFD Sender: No OFD packet to send [23:45:37]OFD Sender: No OFD packet to send [23:45:42]OFD Sender: No OFD packet to send [23:45:47]OFD Sender: No OFD packet to send [23:45:52]OFD Sender: No OFD packet to send [23:45:57]OFD Sender: No OFD packet to send [23:46:02]OFD Sender: No OFD packet to send [23:46:07]OFD Sender: No OFD packet to send [23:46:12]OFD Sender: No OFD packet to send [23:46:17]OFD Sender: No OFD packet to send [23:46:22]OFD Sender: No OFD packet to send [23:46:27]OFD Sender: No OFD packet to send [23:46:32]OFD Sender: No OFD packet to send [23:46:37]OFD Sender: No OFD packet to send [23:46:42]OFD Sender: No OFD packet to send [23:46:47]OFD Sender: No OFD packet to send [23:46:52]OFD Sender: No OFD packet to send [23:46:57]OFD Sender: No OFD packet to send [23:47:02]OFD Sender: No OFD packet to send [23:47:07]OFD Sender: No OFD packet to send [23:47:12]OFD Sender: No OFD packet to send [23:47:17]OFD Sender: No OFD packet to send [23:47:22]OFD Sender: No OFD packet to send [23:47:27]OFD Sender: No OFD packet to send [23:47:32]OFD Sender: No OFD packet to send [23:47:37]OFD Sender: No OFD packet to send [23:47:42]OFD Sender: No OFD packet to send [23:47:47]OFD Sender: No OFD packet to send [23:47:52]OFD Sender: No OFD packet to send [23:47:57]OFD Sender: No OFD packet to send [23:48:02]OFD Sender: No OFD packet to send [23:48:07]OFD Sender: No OFD packet to send [23:48:12]OFD Sender: No OFD packet to send [23:48:17]OFD Sender: No OFD packet to send [23:48:22]OFD Sender: No OFD packet to send [23:48:27]OFD Sender: No OFD packet to send [23:48:32]OFD Sender: No OFD packet to send [23:48:37]OFD Sender: No OFD packet to send [23:48:41]accept exits with 8 [23:48:41]New connection [23:48:41]New thread 3066928484 created [23:48:41]Thread 3066785124 joined [23:48:41]Waiting for new connection... [23:48:41] Sock 8.Parse request [23:48:41]Sock 8.Check first char [23:48:41]Sock 8.First char is OK [23:48:41]request: POST /json_proto HTTP/1.0 [23:48:41]Method: POST [23:48:41]URL: /json_proto [23:48:41]Method is POST - this is cgi request [23:48:41]url: /json_proto [23:48:41]query_string will be loaded in cgi processing [23:48:41]execute_cgi json_proto POST (null) [23:48:41]execute_cgi path=json_proto method=POST [23:48:41]POST find Content-Length [23:48:41]Host: 172.17.45.8:8080 [23:48:41]Content-Length: 630 [23:48:41]Content-Type: application/json [23:48:41] [23:48:41]POST finish read [23:48:41]Found Content-Length = 630 [23:48:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150594", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 5.000, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:41]execute_script... [23:48: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)150594", "tax_sys" : 0, "items" : [ { "code": "4700000480814", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 0,5 \u0441\u0442", "price" : 100.00, "quantity" : 5.000, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:41]POST & json_proto [23:48:41]process_json_proto [23:48:41]json parsed OK: [23:48:41]protocol is kg_v1.0 [23:48:41]action value=close_receipt [23:48:41]process_action close_receipt [23:48:41]cmd_close_receipt [23:48:41]MH_GetDate [23:48:41]Write to MH i2c: F0 00 00 98 28 AF [23:48:41]Write i2c OK [23:48:41]MH_I2C_Read... [23:48:41]Read from MH i2c: F0 [23:48:41]MH_I2C_Read... [23:48:41]Read from MH i2c: F0 09 00 [23:48:41]MH_I2C_Read... [23:48:41]Read from MH i2c: F0 09 00 98 28 00 61 2A A8 66 A6 1F 7F 64 F9 [23:48:41]GetLastDocTimeStamp 1722296497 [23:48:41]current date 1722296929 [23:48:41]FM_GetShiftState [23:48:41]SAM_PROTO_GetShiftState [23:48:41]wFMCommunicate request_size=4 [23:48:41]MH_SAM_APDU [23:48:41]CAPDU: 80 13 01 00 [23:48:41]Write to MH i2c: E2 08 00 99 28 80 13 01 00 00 00 00 00 3E [23:48:41]Write i2c OK [23:48:41]MH_I2C_Read... [23:48:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:41]Read from MH i2c: E2 [23:48:41]MH_I2C_Read... [23:48:41]Read from MH i2c: E2 0E 00 [23:48:41]MH_I2C_Read... [23:48:41]Read from MH i2c: E2 0E 00 99 28 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 BF [23:48:41]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [23:48:41]wFMCommunicate OK [23:48:41]SAM_PROTO_GetShiftState done [23:48:41]FM_GetShiftState done [23:48:41]opened in 1722213509 [23:48:41]opened+sec_in_day 1722299909 [23:48:41]quantity*price = 50000 [23:48:41]sum+1 = 50001 [23:48:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 99 29.07.2024 23:48 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27196 ФПД: 89500243706439 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T234849&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27196&fm=89500243706439&tin=02508201610067®Number=0000000000092663&sum=50000 0 [23:48:42]StoreToDocumentArchive [23:48:42]shift 434 fd 27196 [23:48:42]save to /storage/0434/doc_00027196 [23:48:42]save last doc name /storage/0434/doc_00027196 to /storage/kkm_last_doc_name [23:48:42]save OK [23:48:42]Clear old archive folders... [23:48:42]ProcessDocumentItem done err = 0, tmpTLVsize=270 [23:48:42]tlvbuf is B6F4F010 [23:48:42]SAM_PROTO_ClearQueue [23:48:42]wFMCommunicate request_size=4 [23:48:42]MH_SAM_APDU [23:48:42]CAPDU: 80 09 00 00 [23:48:42]Write to MH i2c: E2 08 00 A6 28 80 09 00 00 00 00 00 00 40 [23:48:42]Write i2c OK [23:48:42]MH_I2C_Read... [23:48:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:48:42]Read from MH i2c: E2 [23:48:42]MH_I2C_Read... [23:48:42]Read from MH i2c: E2 03 00 [23:48:42]MH_I2C_Read... [23:48:42]Read from MH i2c: E2 03 00 A6 28 00 90 00 42 [23:48:42]RAPDU: 90 00 [23:48:42]wFMCommunicate OK [23:48:42]SAM_PROTO_ClearQueue done [23:48:42]KKMCreateOFDPacket [23:48:42]OFDProtocolAddRootSTLVToBuf [23:48:42]FM_MakeSignedData [23:48:42]FM_MakeSignedData [23:48:42]SAM_PROTO_SignData [23:48:42]wFMCommunicate request_size=4 [23:48:42]MH_SAM_APDU [23:48:42]CAPDU: 80 0D 01 02 [23:48:42]Write to MH i2c: E2 08 00 A7 28 80 0D 01 02 00 00 00 00 48 [23:48:42]Write i2c OK [23:48:42]MH_I2C_Read... [23:48:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:48:42]Read from MH i2c: E2 [23:48:42]MH_I2C_Read... [23:48:42]Read from MH i2c: E2 03 00 [23:48:42]MH_I2C_Read... [23:48:42]Read from MH i2c: E2 03 00 A7 28 00 90 00 43 [23:48:42]RAPDU: 90 00 [23:48:42]wFMCommunicate OK [23:48:42]wFMCommunicate request_size=255 [23:48:42]MH_SAM_APDU [23:48:42]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 61 2A A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [23:48:42]Write to MH i2c: E2 02 01 A8 28 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 61 2A A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 83 [23:48:42]OFD Sender: No OFD packet to send [23:48:42]Write i2c OK [23:48:42]MH_I2C_Read... [23:48:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:42]Read from MH i2c: E2 [23:48:42]MH_I2C_Read... [23:48:42]Read from MH i2c: E2 03 00 [23:48:42]MH_I2C_Read... [23:48:42]Read from MH i2c: E2 03 00 A8 28 00 90 00 44 [23:48:42]RAPDU: 90 00 [23:48:42]wFMCommunicate OK [23:48:42]wFMCommunicate request_size=29 [23:48:42]MH_SAM_APDU [23:48:42]CAPDU: 80 0D 02 02 18 38 37 34 39 33 37 10 04 04 00 3C 6A 00 00 35 04 06 00 51 66 66 3B C2 47 [23:48:42]Write to MH i2c: E2 20 00 A9 28 80 0D 02 02 18 00 38 37 34 39 33 37 10 04 04 00 3C 6A 00 00 35 04 06 00 51 66 66 3B C2 47 00 00 1F [23:48:42]Write i2c OK [23:48:42]MH_I2C_Read... [23:48:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:42]Read from MH i2c: E2 [23:48:42]MH_I2C_Read... [23:48:42]Read from MH i2c: E2 03 00 [23:48:42]MH_I2C_Read... [23:48:42]Read from MH i2c: E2 03 00 A9 28 00 90 00 45 [23:48:42]RAPDU: 90 00 [23:48:42]wFMCommunicate OK [23:48:42]wFMCommunicate request_size=4 [23:48:42]MH_SAM_APDU [23:48:42]CAPDU: 80 0D 03 02 [23:48:42]Write to MH i2c: E2 08 00 AA 28 80 0D 03 02 00 00 00 00 4D [23:48:42]Write i2c OK [23:48:42]MH_I2C_Read... [23:48:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:48:42]Read from MH i2c: E2 [23:48:42]MH_I2C_Read... [23:48:42]Read from MH i2c: E2 0B 00 [23:48:42]MH_I2C_Read... [23:48:42]Read from MH i2c: E2 0B 00 AA 28 00 DA 79 C1 EE 2C 67 CA A0 90 00 4D [23:48:42]RAPDU: DA 79 C1 EE 2C 67 CA A0 90 00 [23:48:42]wFMCommunicate OK [23:48:42]SAM_PROTO_SignData done [23:48:42]FM_MakeSignedData done [23:48:42]CreateOFDProtocolMessage [23:48:42]wFMCommunicate request_size=4 [23:48:42]MH_SAM_APDU [23:48:42]CAPDU: 80 11 00 00 [23:48:42]Write to MH i2c: E2 08 00 AB 28 80 11 00 00 00 00 00 00 4D [23:48:42]Write i2c OK [23:48:42]MH_I2C_Read... [23:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:42]Read from MH i2c: E2 [23:48:42]MH_I2C_Read... [23:48:42]Read from MH i2c: E2 17 00 [23:48:42]MH_I2C_Read... [23:48:42]Read from MH i2c: E2 17 00 AB 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 A6 [23:48:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [23:48:42]wFMCommunicate OK [23:48:42]CreateOFDProtocolMessage done [23:48:42]OFDSenderStorePacket 27196 [23:48:42]StoreOFDPacket docnum=27196 [23:48:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 22 01 00 00 41 6F 1A 01 5C 14 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 61 2A A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 3C 6A 00 00 35 04 06 00 51 66 66 3B C2 47 DA 79 C1 EE 2C 67 CA A0 [23:48:42]CheckFolder [23:48:42]dirname=/storage/ofd_packets [23:48:42]CheckFolder done [23:48:42]ProducePacketName [23:48:42]name=ofd_packets/00027196 [23:48:42]NVStorageSaveData ofd_packets/00027196 [23:48:42]File name is /storage/ofd_packets/00027196 [23:48:42]Write 320 bytes [23:48:42]NVStorageSaveData done [23:48:42]OFDSenderStorePacket done [23:48:42]KKMCreateOFDPacket done [23:48:42]NVStorageSaveData kkm_last_timestamp [23:48:42]File name is /storage/kkm_last_timestamp [23:48:42]Write 4 bytes [23:48:42]NVStorageSaveData done [23:48:42]ExternCall_PrintAddStr [23:48:42]wPrintStart [23:48:42]Write to MH i2c: 01 00 00 AC 28 D4 [23:48:42]Write i2c OK [23:48:42]MH_I2C_Read... [23:48:42]Read from MH i2c: 01 [23:48:42]MH_I2C_Read... [23:48:42]Read from MH i2c: 01 07 00 [23:48:42]MH_I2C_Read... [23:48:42]Read from MH i2c: 01 07 00 AC 28 00 00 00 00 00 FF 0F E9 [23:48:42]RasterBufferAndPrint [23:48:42]line Счет N : (3)150594 [23:48:42]line ИНН: 02508201610067 [23:48:42]line Контрольно-Кассовый Чек [23:48:42]line ПРОДАЖА [23:48:42]line Товар: 4700000480814 [23:48:42]line Пиво Живое 0,5 ст [23:48:42]line 5.000 * 100.00 [23:48:42]line = 500.00 [23:48:42]line НДС 12% НСП 1% [23:48:42]line > о реализуемом товаре [23:48:42]line ИТОГО: 500.00 [23:48:42]line НСП 1% : 4.42 [23:48:42]line НДС 12% : 53.10 [23:48:42]line Наличными: 500.00 [23:48:42]line Безнал.: 0.00 [23:48:42]line Место: АЗС № 134 "Партнер Нефть" [23:48:42]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:48:42]line СНО: Общий режим [23:48:42]line Чек 99 29.07.2024 23:48 [23:48:42]line Смена: 434 ФФД: 1.0 [23:48:42]line ЗНМ: 0300000043 [23:48:42]line РНМ: 0000000000092663 [23:48:42]line Версия ККМ: 001 [23:48:42]line ФМ: 0000000000874937 [23:48:42]line ФД: 27196 [23:48:42]line ФПД: 89500243706439 [23:48:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T234849&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27196&fm=89500243706439&tin=02508201610067®Number=0000000000092663&sum=50000 [23:48:43]line 0 [23:48:43]OFD Sender: Processing packet 27196 [packets to send 9, broken 8] [23:48:43]ProducePacketName [23:48:43]name=ofd_packets/00027196 [23:48:43]OFD Sender: To server: pG, [23:48:43]CommunicateWithHost lk.salyk.kg:30040 [23:48:43]ConnectInit lk.salyk.kg [23:48:43]written 0, free lines is 4095 [23:48:43]Connected sock=10 [23:48:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 22 01 00 00 41 6F 1A 01 5C 14 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 38 31 34 06 04 1C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 30 2C 35 20 D1 81 D1 82 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 61 2A A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 3C 6A 00 00 35 04 06 00 51 66 66 3B C2 47 DA 79 C1 EE 2C 67 CA A0 [23:48:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 25 3B 47 00 A6 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 34 39 33 37 10 04 04 00 3C 6A 00 00 F4 03 04 00 B0 D0 A7 66 B6 04 01 00 00 4A D9 5B FE 78 4D 0A 51 [23:48:43]CommunicateWithHost err = 0 [23:48:43]CheckOFDResponse [23:48:43]1017 (14) - 77093643461234 [23:48:43]1041 (16) - 0000000000874937 [23:48:43]1040 (4) - 27196 [23:48:43]1012 (4) - 29.07.2024 17:26 [23:48:43]1206 (1) - 0 [23:48:43]OFD Sender: Remove packet 27196 [23:48:43]ProducePacketName [23:48:43]name=ofd_packets/00027196 [23:48:43]NVStorageDeleteData [23:48:43]Write to MH i2c: 01 00 00 D3 28 FB [23:48:43]Write i2c OK [23:48:43]MH_I2C_Read... [23:48:43]Read from MH i2c: 01 [23:48:43]MH_I2C_Read... [23:48:43]Read from MH i2c: 01 07 00 [23:48:43]MH_I2C_Read... [23:48:43]Read from MH i2c: 01 07 00 D3 28 00 00 00 00 00 F6 0C 04 [23:48:43]RasterBufferAndPrint [23:48:43]line [23:48:43]line [23:48:43]line [23:48:43]line [23:48:43]line [23:48:43]written 0, free lines is 3324 [23:48:43]MH_Cut [23:48:43]Write to MH i2c: D1 01 00 DA 28 01 D4 [23:48:43]Write i2c OK [23:48:43]MH_I2C_Read... [23:48:43]Read from MH i2c: D1 [23:48:43]MH_I2C_Read... [23:48:43]Read from MH i2c: D1 01 00 [23:48:43]MH_I2C_Read... [23:48:43]Read from MH i2c: D1 01 00 DA 28 00 D3 [23:48:43]Write to MH i2c: 01 00 00 DB 28 03 [23:48:43]Write i2c OK [23:48:43]MH_I2C_Read... [23:48:44]OFD Sender: No OFD packet to send [23:48:44]*** Cut start [23:48:44]*** Partial cut [23:48:44]*** CUTSNS_PIN = 1 [23:48:44]*** CUTSNS_PIN = 0 [23:48:44]*** Brake cut motor [23:48:44]Read from MH i2c: 01 [23:48:44]MH_I2C_Read... [23:48:44]*** Stop cut motor [23:48:44]*** Cut end [23:48:44]Read from MH i2c: 01 07 00 [23:48:44]MH_I2C_Read... [23:48:44]Read from MH i2c: 01 07 00 DB 28 00 00 00 00 00 FF 0F 18 [23:48:44]process_action close_receipt done [23:48:44]requested_data is exist [23:48:44]produce_requested_data [23:48:44]requested_item fm.sn is exist - process it [23:48:44]wFMCommunicate request_size=4 [23:48:44]MH_SAM_APDU [23:48:44]CAPDU: 80 11 00 00 [23:48:44]Write to MH i2c: E2 08 00 DC 28 80 11 00 00 00 00 00 00 7E [23:48:45]Write i2c OK [23:48:45]MH_I2C_Read... [23:48:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:45]Read from MH i2c: E2 [23:48:45]MH_I2C_Read... [23:48:45]Read from MH i2c: E2 17 00 [23:48:45]MH_I2C_Read... [23:48:45]Read from MH i2c: E2 17 00 DC 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 D7 [23:48:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [23:48:45]wFMCommunicate OK [23:48:45]requested_item fd.num is exist - process it [23:48:45]SAM_PROTO_GetFieldsCounters [23:48:45]wFMCommunicate request_size=4 [23:48:45]MH_SAM_APDU [23:48:45]CAPDU: 80 13 00 00 [23:48:45]Write to MH i2c: E2 08 00 DD 28 80 13 00 00 00 00 00 00 81 [23:48:45]Write i2c OK [23:48:45]MH_I2C_Read... [23:48:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:48:45]Read from MH i2c: E2 [23:48:45]MH_I2C_Read... [23:48:45]Read from MH i2c: E2 62 00 [23:48:45]MH_I2C_Read... [23:48:45]Read from MH i2c: E2 62 00 DD 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 3C 6A 00 00 0E 04 04 00 B2 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 2B [23:48:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 3C 6A 00 00 0E 04 04 00 B2 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 [23:48:45]wFMCommunicate OK [23:48:45]SAM_PROTO_GetFieldsCounters done [23:48:45]requested_item shift.num is exist - process it [23:48:45]requested_item shift.opened is exist - process it [23:48:45]req_shift_opened [23:48:45]FM_GetShiftState [23:48:45]SAM_PROTO_GetShiftState [23:48:45]wFMCommunicate request_size=4 [23:48:45]MH_SAM_APDU [23:48:45]CAPDU: 80 13 01 00 [23:48:45]Write to MH i2c: E2 08 00 DE 28 80 13 01 00 00 00 00 00 83 [23:48:45]Write i2c OK [23:48:45]MH_I2C_Read... [23:48:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:45]Read from MH i2c: E2 [23:48:45]MH_I2C_Read... [23:48:45]Read from MH i2c: E2 0E 00 [23:48:45]MH_I2C_Read... [23:48:45]Read from MH i2c: E2 0E 00 DE 28 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 04 [23:48:45]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [23:48:45]wFMCommunicate OK [23:48:45]SAM_PROTO_GetShiftState done [23:48:45]FM_GetShiftState done [23:48:45]req_shift_opened done [23:48:45]requested_item shift.open_date is exist - process it [23:48:45]req_shift_open_date [23:48:45]req_shift_open_date done [23:48:45]produce_requested_data done [23:48:45]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27196,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [23:48:45]process_action_free close_receipt [23:48:45]json_value_free [23:48:45]json_value_free done [23:48:45]process_json_proto returns [23:48:45]Send response to host [23:48:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27196,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [23:48:45]free response buf [23:48:45]execute_script done [23:48:45]execute_script returns [23:48:45]free content buf [23:48:45]Sock 8.Close socket [23:48:45]Sock 8.Thread stoped [23:48:49]OFD Sender: No OFD packet to send [23:48:54]OFD Sender: No OFD packet to send [23:48:59]OFD Sender: No OFD packet to send [23:49:04]OFD Sender: No OFD packet to send [23:49:09]OFD Sender: No OFD packet to send [23:49:14]OFD Sender: No OFD packet to send [23:49:19]OFD Sender: No OFD packet to send [23:49:24]OFD Sender: No OFD packet to send [23:49:29]OFD Sender: No OFD packet to send [23:49:34]OFD Sender: No OFD packet to send [23:49:39]OFD Sender: No OFD packet to send [23:49:44]OFD Sender: No OFD packet to send [23:49:49]OFD Sender: No OFD packet to send [23:49:54]OFD Sender: No OFD packet to send [23:49:59]OFD Sender: No OFD packet to send [23:50:04]OFD Sender: No OFD packet to send [23:50:09]OFD Sender: No OFD packet to send [23:50:14]OFD Sender: No OFD packet to send [23:50:19]OFD Sender: No OFD packet to send [23:50:24]OFD Sender: No OFD packet to send [23:50:29]OFD Sender: No OFD packet to send [23:50:34]OFD Sender: No OFD packet to send [23:50:39]OFD Sender: No OFD packet to send [23:50:44]OFD Sender: No OFD packet to send [23:50:49]OFD Sender: No OFD packet to send [23:50:54]OFD Sender: No OFD packet to send [23:50:59]OFD Sender: No OFD packet to send [23:51:04]OFD Sender: No OFD packet to send [23:51:09]OFD Sender: No OFD packet to send [23:51:14]OFD Sender: No OFD packet to send [23:51:19]OFD Sender: No OFD packet to send [23:51:24]OFD Sender: No OFD packet to send [23:51:29]OFD Sender: No OFD packet to send [23:51:34]OFD Sender: No OFD packet to send [23:51:39]OFD Sender: No OFD packet to send [23:51:44]OFD Sender: No OFD packet to send [23:51:49]OFD Sender: No OFD packet to send [23:51:54]OFD Sender: No OFD packet to send [23:51:59]OFD Sender: No OFD packet to send [23:52:04]OFD Sender: No OFD packet to send [23:52:09]OFD Sender: No OFD packet to send [23:52:14]OFD Sender: No OFD packet to send [23:52:19]OFD Sender: No OFD packet to send [23:52:24]OFD Sender: No OFD packet to send [23:52:29]OFD Sender: No OFD packet to send [23:52:34]OFD Sender: No OFD packet to send [23:52:39]OFD Sender: No OFD packet to send [23:52:44]OFD Sender: No OFD packet to send [23:52:49]OFD Sender: No OFD packet to send [23:52:54]OFD Sender: No OFD packet to send [23:52:59]OFD Sender: No OFD packet to send [23:53:04]OFD Sender: No OFD packet to send [23:53:09]OFD Sender: No OFD packet to send [23:53:14]OFD Sender: No OFD packet to send [23:53:19]OFD Sender: No OFD packet to send [23:53:24]OFD Sender: No OFD packet to send [23:53:29]OFD Sender: No OFD packet to send [23:53:34]OFD Sender: No OFD packet to send [23:53:39]OFD Sender: No OFD packet to send [23:53:44]OFD Sender: No OFD packet to send [23:53:49]OFD Sender: No OFD packet to send [23:53:54]OFD Sender: No OFD packet to send [23:53:59]OFD Sender: No OFD packet to send [23:54:04]OFD Sender: No OFD packet to send [23:54:05]accept exits with 9 [23:54:05]New connection [23:54:05]New thread 3066785124 created [23:54:05]Thread 3066928484 joined [23:54:05]Waiting for new connection... [23:54:05] Sock 9.Parse request [23:54:05]Sock 9.Check first char [23:54:05]Sock 9.First char is OK [23:54:05]request: POST /json_proto HTTP/1.0 [23:54:05]Method: POST [23:54:05]URL: /json_proto [23:54:05]Method is POST - this is cgi request [23:54:05]url: /json_proto [23:54:05]query_string will be loaded in cgi processing [23:54:05]execute_cgi json_proto POST (null) [23:54:05]execute_cgi path=json_proto method=POST [23:54:05]POST find Content-Length [23:54:05]Host: 172.17.45.8:8080 [23:54:05]Content-Length: 1233 [23:54:05]Content-Type: application/json [23:54:05] [23:54:05]POST finish read [23:54:05]Found Content-Length = 1233 [23:54:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150595", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 180.00, "quantity" : 2.000, "sum" : 360.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 510.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:05]execute_script... [23: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)150595", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 180.00, "quantity" : 2.000, "sum" : 360.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 510.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:05]POST & json_proto [23:54:05]process_json_proto [23:54:05]json parsed OK: [23:54:05]protocol is kg_v1.0 [23:54:05]action value=close_receipt [23:54:05]process_action close_receipt [23:54:05]cmd_close_receipt [23:54:05]MH_GetDate [23:54:05]Write to MH i2c: F0 00 00 DF 28 F6 [23:54:05]Write i2c OK [23:54:05]MH_I2C_Read... [23:54:05]Read from MH i2c: F0 [23:54:05]MH_I2C_Read... [23:54:05]Read from MH i2c: F0 09 00 [23:54:05]MH_I2C_Read... [23:54:05]Read from MH i2c: F0 09 00 DF 28 00 A5 2B A8 66 A6 1F 7F 64 85 [23:54:05]GetLastDocTimeStamp 1722296929 [23:54:05]current date 1722297253 [23:54:05]FM_GetShiftState [23:54:05]SAM_PROTO_GetShiftState [23:54:05]wFMCommunicate request_size=4 [23:54:05]MH_SAM_APDU [23:54:05]CAPDU: 80 13 01 00 [23:54:05]Write to MH i2c: E2 08 00 E0 28 80 13 01 00 00 00 00 00 85 [23:54:05]Write i2c OK [23:54:05]MH_I2C_Read... [23:54:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:05]Read from MH i2c: E2 [23:54:05]MH_I2C_Read... [23:54:05]Read from MH i2c: E2 0E 00 [23:54:05]MH_I2C_Read... [23:54:05]Read from MH i2c: E2 0E 00 E0 28 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 06 [23:54:05]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [23:54:05]wFMCommunicate OK [23:54:05]SAM_PROTO_GetShiftState done [23:54:05]FM_GetShiftState done [23:54:05]opened in 1722213509 [23:54:05]opened+sec_in_day 1722299909 [23:54:05]quantity*price = 36000 [23:54:05]sum+1 = 36001 [23:54:05]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310043 Вода Жалалабат 27 1л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870235681086 Grizzly волнистые Сыр с халапеньо 55 гр 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 510.00 НСП 1% : 4.52 НДС 12% : 54.16 Наличными: 510.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 100 29.07.2024 23:54 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27197 ФПД: 205613280059865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T235414&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27197&fm=205613280059865&tin=02508201610067®Number=0000000000092663&sum=51000 0 [23:54:06]StoreToDocumentArchive [23:54:06]shift 434 fd 27197 [23:54:06]save to /storage/0434/doc_00027197 [23:54:06]save last doc name /storage/0434/doc_00027197 to /storage/kkm_last_doc_name [23:54:06]save OK [23:54:06]Clear old archive folders... [23:54:06]ProcessDocumentItem done err = 0, tmpTLVsize=513 [23:54:06]tlvbuf is 00194830 [23:54:06]SAM_PROTO_ClearQueue [23:54:06]wFMCommunicate request_size=4 [23:54:06]MH_SAM_APDU [23:54:06]CAPDU: 80 09 00 00 [23:54:06]Write to MH i2c: E2 08 00 ED 28 80 09 00 00 00 00 00 00 87 [23:54:06]Write i2c OK [23:54:06]MH_I2C_Read... [23:54:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:54:06]Read from MH i2c: E2 [23:54:06]MH_I2C_Read... [23:54:06]Read from MH i2c: E2 03 00 [23:54:06]MH_I2C_Read... [23:54:06]Read from MH i2c: E2 03 00 ED 28 00 90 00 89 [23:54:06]RAPDU: 90 00 [23:54:06]wFMCommunicate OK [23:54:06]SAM_PROTO_ClearQueue done [23:54:06]KKMCreateOFDPacket [23:54:06]OFDProtocolAddRootSTLVToBuf [23:54:06]FM_MakeSignedData [23:54:06]FM_MakeSignedData [23:54:06]SAM_PROTO_SignData [23:54:06]wFMCommunicate request_size=4 [23:54:06]MH_SAM_APDU [23:54:06]CAPDU: 80 0D 01 02 [23:54:06]Write to MH i2c: E2 08 00 EE 28 80 0D 01 02 00 00 00 00 8F [23:54:06]Write i2c OK [23:54:06]MH_I2C_Read... [23:54:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:54:06]Read from MH i2c: E2 [23:54:06]MH_I2C_Read... [23:54:06]Read from MH i2c: E2 03 00 [23:54:06]MH_I2C_Read... [23:54:06]Read from MH i2c: E2 03 00 EE 28 00 90 00 8A [23:54:06]RAPDU: 90 00 [23:54:06]wFMCommunicate OK [23:54:06]wFMCommunicate request_size=255 [23:54:06]MH_SAM_APDU [23:54:06]CAPDU: 80 0D 02 02 FA 03 00 01 02 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 50 46 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 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 [23:54:07]Write to MH i2c: E2 02 01 EF 28 80 0D 02 02 FA 00 03 00 01 02 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 50 46 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 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 00 00 5A [23:54:07]Write i2c OK [23:54:07]MH_I2C_Read... [23:54:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:07]Read from MH i2c: E2 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 03 00 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 03 00 EF 28 00 90 00 8B [23:54:07]RAPDU: 90 00 [23:54:07]wFMCommunicate OK [23:54:07]wFMCommunicate request_size=255 [23:54:07]MH_SAM_APDU [23:54:07]CAPDU: 80 0D 02 02 FA 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 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 38 C7 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 A6 2B A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 [23:54:07]Write to MH i2c: E2 02 01 F0 28 80 0D 02 02 FA 00 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 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 38 C7 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 A6 2B A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 00 00 10 [23:54:07]Write i2c OK [23:54:07]MH_I2C_Read... [23:54:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:07]Read from MH i2c: E2 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 03 00 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 03 00 F0 28 00 90 00 8C [23:54:07]RAPDU: 90 00 [23:54:07]wFMCommunicate OK [23:54:07]wFMCommunicate request_size=22 [23:54:07]MH_SAM_APDU [23:54:07]CAPDU: 80 0D 02 02 11 04 04 00 3D 6A 00 00 35 04 06 00 BB 01 12 84 E1 D9 [23:54:07]Write to MH i2c: E2 19 00 F1 28 80 0D 02 02 11 00 04 04 00 3D 6A 00 00 35 04 06 00 BB 01 12 84 E1 D9 00 00 AF [23:54:07]Write i2c OK [23:54:07]MH_I2C_Read... [23:54:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:07]Read from MH i2c: E2 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 03 00 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 03 00 F1 28 00 90 00 8D [23:54:07]RAPDU: 90 00 [23:54:07]wFMCommunicate OK [23:54:07]wFMCommunicate request_size=4 [23:54:07]MH_SAM_APDU [23:54:07]CAPDU: 80 0D 03 02 [23:54:07]Write to MH i2c: E2 08 00 F2 28 80 0D 03 02 00 00 00 00 95 [23:54:07]Write i2c OK [23:54:07]MH_I2C_Read... [23:54:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:54:07]Read from MH i2c: E2 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 0B 00 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 0B 00 F2 28 00 CD 16 7A 5B 98 09 0F FD 90 00 FB [23:54:07]RAPDU: CD 16 7A 5B 98 09 0F FD 90 00 [23:54:07]wFMCommunicate OK [23:54:07]SAM_PROTO_SignData done [23:54:07]FM_MakeSignedData done [23:54:07]CreateOFDProtocolMessage [23:54:07]wFMCommunicate request_size=4 [23:54:07]MH_SAM_APDU [23:54:07]CAPDU: 80 11 00 00 [23:54:07]Write to MH i2c: E2 08 00 F3 28 80 11 00 00 00 00 00 00 95 [23:54:07]Write i2c OK [23:54:07]MH_I2C_Read... [23:54:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:07]Read from MH i2c: E2 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 17 00 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 17 00 F3 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 EE [23:54:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [23:54:07]wFMCommunicate OK [23:54:07]CreateOFDProtocolMessage done [23:54:07]OFDSenderStorePacket 27197 [23:54:07]StoreOFDPacket docnum=27197 [23:54:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 15 02 00 00 4A 69 0D 02 D1 FA 5A 03 01 00 03 00 01 02 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 50 46 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 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 38 C7 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 A6 2B A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 3D 6A 00 00 35 04 06 00 BB 01 12 84 E1 D9 CD 16 7A 5B 98 09 0F FD [23:54:07]CheckFolder [23:54:07]dirname=/storage/ofd_packets [23:54:07]CheckFolder done [23:54:07]ProducePacketName [23:54:07]name=ofd_packets/00027197 [23:54:07]NVStorageSaveData ofd_packets/00027197 [23:54:07]File name is /storage/ofd_packets/00027197 [23:54:07]Write 563 bytes [23:54:07]NVStorageSaveData done [23:54:07]OFDSenderStorePacket done [23:54:07]KKMCreateOFDPacket done [23:54:07]NVStorageSaveData kkm_last_timestamp [23:54:07]File name is /storage/kkm_last_timestamp [23:54:07]Write 4 bytes [23:54:07]NVStorageSaveData done [23:54:07]ExternCall_PrintAddStr [23:54:07]wPrintStart [23:54:07]Write to MH i2c: 01 00 00 F4 28 1C [23:54:07]Write i2c OK [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: 01 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: 01 07 00 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: 01 07 00 F4 28 00 00 00 00 00 FF 0F 31 [23:54:07]RasterBufferAndPrint [23:54:07]line Счет N : (3)150595 [23:54:07]line ИНН: 02508201610067 [23:54:07]line Контрольно-Кассовый Чек [23:54:07]line ПРОДАЖА [23:54:07]line Товар: 4700000480517 [23:54:07]line Пиво Живое 1л ПЭТ [23:54:07]line 2.000 * 180.00 [23:54:07]line = 360.00 [23:54:07]line НДС 12% НСП 1% [23:54:07]line > о реализуемом товаре [23:54:07]line Товар: 4700000310043 [23:54:07]line Вода Жалалабат 27 1л [23:54:07]line 1.000 * 60.00 [23:54:07]line = 60.00 [23:54:07]line НДС 12% НСП 1% [23:54:07]line > о реализуемом товаре [23:54:07]line Товар: 4870235681086 [23:54:07]line Grizzly волнистые Сыр с халапеньо 55 гр [23:54:07]line 1.000 * 90.00 [23:54:07]line = 90.00 [23:54:07]line НДС 12% НСП 1% [23:54:07]line > о реализуемом товаре [23:54:07]line ИТОГО: 510.00 [23:54:07]line НСП 1% : 4.52 [23:54:07]line НДС 12% : 54.16 [23:54:07]line Наличными: 510.00 [23:54:07]line Безнал.: 0.00 [23:54:07]line Место: АЗС № 134 "Партнер Нефть" [23:54:07]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:54:07]line СНО: Общий режим [23:54:07]line Чек 100 29.07.2024 23:54 [23:54:07]line Смена: 434 ФФД: 1.0 [23:54:07]line ЗНМ: 0300000043 [23:54:07]line РНМ: 0000000000092663 [23:54:07]line Версия ККМ: 001 [23:54:07]line ФМ: 0000000000874937 [23:54:07]line ФД: 27197 [23:54:07]line ФПД: 205613280059865 [23:54:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T235414&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27197&fm=205613280059865&tin=02508201610067®Number=0000000000092663&sum=51000 [23:54:07]line 0 [23:54:07]written 0, free lines is 4095 [23:54:07]OFD Sender: Processing packet 27197 [packets to send 9, broken 8] [23:54:07]ProducePacketName [23:54:07]name=ofd_packets/00027197 [23:54:07]OFD Sender: To server: pG, [23:54:07]CommunicateWithHost lk.salyk.kg:30040 [23:54:07]ConnectInit lk.salyk.kg [23:54:08]Connected sock=10 [23: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 34 39 33 37 15 02 00 00 4A 69 0D 02 D1 FA 5A 03 01 00 03 00 01 02 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 50 46 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 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 38 C7 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 A6 2B A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 3D 6A 00 00 35 04 06 00 BB 01 12 84 E1 D9 CD 16 7A 5B 98 09 0F FD [23:54:08]Write to MH i2c: 01 00 00 28 29 51 [23:54:08]Write i2c OK [23:54:08]MH_I2C_Read... [23:54:08]Read from MH i2c: 01 [23:54:08]MH_I2C_Read... [23:54:08]Read from MH i2c: 01 07 00 [23:54:08]MH_I2C_Read... [23:54:08]Read from MH i2c: 01 07 00 28 29 00 00 00 00 00 43 0C A7 [23:54:08]RasterBufferAndPrint [23:54:08]line [23:54:08]line [23:54:08]line [23:54:08]line [23:54:08]line [23:54:08]written 0, free lines is 3145 [23:54:08]MH_Cut [23:54:08]Write to MH i2c: D1 01 00 2F 29 01 2A [23:54:08]Write i2c OK [23:54:08]MH_I2C_Read... [23:54:08]Read from MH i2c: D1 [23:54:08]MH_I2C_Read... [23:54:08]Read from MH i2c: D1 01 00 [23:54:08]MH_I2C_Read... [23:54:08]Read from MH i2c: D1 01 00 2F 29 00 29 [23:54:08]Write to MH i2c: 01 00 00 30 29 59 [23:54:08]Write i2c OK [23:54:08]MH_I2C_Read... [23:54:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 C0 5A 47 00 76 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 3D 6A 00 00 F4 03 04 00 F5 D1 A7 66 B6 04 01 00 00 BA 72 D3 B3 40 74 29 0C [23:54:08]CommunicateWithHost err = 0 [23:54:08]CheckOFDResponse [23:54:08]1017 (14) - 77093643461234 [23:54:08]1041 (16) - 0000000000874937 [23:54:08]1040 (4) - 27197 [23:54:08]1012 (4) - 29.07.2024 17:31 [23:54:08]1206 (1) - 0 [23:54:08]OFD Sender: Remove packet 27197 [23:54:08]ProducePacketName [23:54:08]name=ofd_packets/00027197 [23:54:08]NVStorageDeleteData [23:54:09]OFD Sender: No OFD packet to send [23:54:09]*** Cut start [23:54:09]*** Partial cut [23:54:09]*** CUTSNS_PIN = 1 [23:54:09]*** CUTSNS_PIN = 0 [23:54:09]*** Brake cut motor [23:54:10]Read from MH i2c: 01 [23:54:10]MH_I2C_Read... [23:54:10]*** Stop cut motor [23:54:10]*** Cut end [23:54:10]Read from MH i2c: 01 07 00 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: 01 07 00 30 29 00 00 00 00 00 FF 0F 6E [23:54:10]process_action close_receipt done [23:54:10]requested_data is exist [23:54:10]produce_requested_data [23:54:10]requested_item fm.sn is exist - process it [23:54:10]wFMCommunicate request_size=4 [23:54:10]MH_SAM_APDU [23:54:10]CAPDU: 80 11 00 00 [23:54:10]Write to MH i2c: E2 08 00 31 29 80 11 00 00 00 00 00 00 D4 [23:54:10]Write i2c OK [23:54:10]MH_I2C_Read... [23:54:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:10]Read from MH i2c: E2 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 17 00 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 17 00 31 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 2D [23:54:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [23:54:10]wFMCommunicate OK [23:54:10]requested_item fd.num is exist - process it [23:54:10]SAM_PROTO_GetFieldsCounters [23:54:10]wFMCommunicate request_size=4 [23:54:10]MH_SAM_APDU [23:54:10]CAPDU: 80 13 00 00 [23:54:10]Write to MH i2c: E2 08 00 32 29 80 13 00 00 00 00 00 00 D7 [23:54:10]Write i2c OK [23:54:10]MH_I2C_Read... [23:54:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:10]Read from MH i2c: E2 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 62 00 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 62 00 32 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 3D 6A 00 00 0E 04 04 00 B2 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 85 [23:54:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 3D 6A 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:54:10]wFMCommunicate OK [23:54:10]SAM_PROTO_GetFieldsCounters done [23:54:10]requested_item shift.num is exist - process it [23:54:10]requested_item shift.opened is exist - process it [23:54:10]req_shift_opened [23:54:10]FM_GetShiftState [23:54:10]SAM_PROTO_GetShiftState [23:54:10]wFMCommunicate request_size=4 [23:54:10]MH_SAM_APDU [23:54:10]CAPDU: 80 13 01 00 [23:54:10]Write to MH i2c: E2 08 00 33 29 80 13 01 00 00 00 00 00 D9 [23:54:10]Write i2c OK [23:54:10]MH_I2C_Read... [23:54:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:10]Read from MH i2c: E2 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 0E 00 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: E2 0E 00 33 29 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 5A [23:54:10]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [23:54:10]wFMCommunicate OK [23:54:10]SAM_PROTO_GetShiftState done [23:54:10]FM_GetShiftState done [23:54:10]req_shift_opened done [23:54:10]requested_item shift.open_date is exist - process it [23:54:10]req_shift_open_date [23:54:10]req_shift_open_date done [23:54:10]produce_requested_data done [23:54:10]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27197,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [23:54:10]process_action_free close_receipt [23:54:10]json_value_free [23:54:10]json_value_free done [23:54:10]process_json_proto returns [23:54:10]Send response to host [23:54:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27197,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [23:54:10]free response buf [23:54:10]execute_script done [23:54:10]execute_script returns [23:54:10]free content buf [23:54:10]Sock 9.Close socket [23:54:10]Sock 9.Thread stoped [23:54:14]OFD Sender: No OFD packet to send [23:54:19]OFD Sender: No OFD packet to send [23:54:24]OFD Sender: No OFD packet to send [23:54:29]OFD Sender: No OFD packet to send [23:54:34]OFD Sender: No OFD packet to send [23:54:39]OFD Sender: No OFD packet to send [23:54:44]OFD Sender: No OFD packet to send [23:54:49]OFD Sender: No OFD packet to send [23:54:54]OFD Sender: No OFD packet to send [23:54:59]OFD Sender: No OFD packet to send [23:55:04]OFD Sender: No OFD packet to send [23:55:09]OFD Sender: No OFD packet to send [23:55:14]OFD Sender: No OFD packet to send [23:55:18]accept exits with 8 [23:55:18]New connection [23:55:18]New thread 3066928484 created [23:55:18]Thread 3066785124 joined [23:55:18]Waiting for new connection... [23:55:18] Sock 8.Parse request [23:55:18]Sock 8.Check first char [23:55:18]Sock 8.First char is OK [23:55:18]request: POST /json_proto HTTP/1.0 [23:55:18]Method: POST [23:55:18]URL: /json_proto [23:55:18]Method is POST - this is cgi request [23:55:18]url: /json_proto [23:55:18]query_string will be loaded in cgi processing [23:55:18]execute_cgi json_proto POST (null) [23:55:18]execute_cgi path=json_proto method=POST [23:55:18]POST find Content-Length [23:55:18]Host: 172.17.45.8:8080 [23:55:18]Content-Length: 952 [23:55:18]Content-Type: application/json [23:55:18] [23:55:18]POST finish read [23:55:18]Found Content-Length = 952 [23:55:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150596", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:18]execute_script... [23:55: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)150596", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:18]POST & json_proto [23:55:18]process_json_proto [23:55:18]json parsed OK: [23:55:18]protocol is kg_v1.0 [23:55:18]action value=close_receipt [23:55:18]process_action close_receipt [23:55:18]cmd_close_receipt [23:55:18]MH_GetDate [23:55:18]Write to MH i2c: F0 00 00 34 29 4C [23:55:18]Write i2c OK [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: F0 [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: F0 09 00 [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: F0 09 00 34 29 00 EE 2B A8 66 A6 1F 7F 64 24 [23:55:18]GetLastDocTimeStamp 1722297254 [23:55:18]current date 1722297326 [23:55:18]FM_GetShiftState [23:55:18]SAM_PROTO_GetShiftState [23:55:18]wFMCommunicate request_size=4 [23:55:18]MH_SAM_APDU [23:55:18]CAPDU: 80 13 01 00 [23:55:18]Write to MH i2c: E2 08 00 35 29 80 13 01 00 00 00 00 00 DB [23:55:18]Write i2c OK [23:55:18]MH_I2C_Read... [23:55:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:18]Read from MH i2c: E2 [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: E2 0E 00 [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: E2 0E 00 35 29 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 5C [23:55:18]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [23:55:18]wFMCommunicate OK [23:55:18]SAM_PROTO_GetShiftState done [23:55:18]FM_GetShiftState done [23:55:18]opened in 1722213509 [23:55:18]opened+sec_in_day 1722299909 [23:55:18]quantity*price = 18000 [23:55:18]sum+1 = 18001 [23:55:18]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870209743574 Арахис BIG BOB Вяленая конина 50 гр 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 240.00 НСП 1% : 2.12 НДС 12% : 25.48 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 101 29.07.2024 23:55 Смена: 434 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27198 ФПД: 128005044979450 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T235526&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27198&fm=128005044979450&tin=02508201610067®Number=0000000000092663&sum=24000 0 [23:55:19]StoreToDocumentArchive [23:55:19]shift 434 fd 27198 [23:55:19]save to /storage/0434/doc_00027198 [23:55:19]save last doc name /storage/0434/doc_00027198 to /storage/kkm_last_doc_name [23:55:19]save OK [23:55:19]Clear old archive folders... [23:55:19]ProcessDocumentItem done err = 0, tmpTLVsize=400 [23:55:19]tlvbuf is 00266B00 [23:55:19]SAM_PROTO_ClearQueue [23:55:19]wFMCommunicate request_size=4 [23:55:19]MH_SAM_APDU [23:55:19]CAPDU: 80 09 00 00 [23:55:19]Write to MH i2c: E2 08 00 42 29 80 09 00 00 00 00 00 00 DD [23:55:19]Write i2c OK [23:55:19]MH_I2C_Read... [23:55:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:55:19]Read from MH i2c: E2 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: E2 03 00 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: E2 03 00 42 29 00 90 00 DF [23:55:19]RAPDU: 90 00 [23:55:19]wFMCommunicate OK [23:55:19]SAM_PROTO_ClearQueue done [23:55:19]KKMCreateOFDPacket [23:55:19]OFDProtocolAddRootSTLVToBuf [23:55:19]FM_MakeSignedData [23:55:19]FM_MakeSignedData [23:55:19]SAM_PROTO_SignData [23:55:19]wFMCommunicate request_size=4 [23:55:19]MH_SAM_APDU [23:55:19]CAPDU: 80 0D 01 02 [23:55:19]Write to MH i2c: E2 08 00 43 29 80 0D 01 02 00 00 00 00 E5 [23:55:19]Write i2c OK [23:55:19]MH_I2C_Read... [23:55:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:55:19]Read from MH i2c: E2 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: E2 03 00 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: E2 03 00 43 29 00 90 00 E0 [23:55:19]RAPDU: 90 00 [23:55:19]wFMCommunicate OK [23:55:19]wFMCommunicate request_size=255 [23:55:19]MH_SAM_APDU [23:55:19]CAPDU: 80 0D 02 02 FA 03 00 90 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 FC 03 06 00 C0 5D 00 00 00 00 EB [23:55:19]Write to MH i2c: E2 02 01 44 29 80 0D 02 02 FA 00 03 00 90 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 FC 03 06 00 C0 5D 00 00 00 00 EB 00 00 77 [23:55:19]Write i2c OK [23:55:19]MH_I2C_Read... [23:55:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:20]Read from MH i2c: E2 [23:55:20]MH_I2C_Read... [23:55:20]Read from MH i2c: E2 03 00 [23:55:20]MH_I2C_Read... [23:55:20]Read from MH i2c: E2 03 00 44 29 00 90 00 E1 [23:55:20]RAPDU: 90 00 [23:55:20]wFMCommunicate OK [23:55:20]wFMCommunicate request_size=159 [23:55:20]MH_SAM_APDU [23:55:20]CAPDU: 80 0D 02 02 9A 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 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 65 00 00 00 F4 03 04 00 EE 2B A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 3E 6A 00 00 35 04 06 00 74 6B 7F 3C 46 FA [23:55:20]Write to MH i2c: E2 A2 00 45 29 80 0D 02 02 9A 00 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 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 65 00 00 00 F4 03 04 00 EE 2B A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 3E 6A 00 00 35 04 06 00 74 6B 7F 3C 46 FA 00 00 24 [23:55:20]Write i2c OK [23:55:20]MH_I2C_Read... [23:55:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:20]Read from MH i2c: E2 [23:55:20]MH_I2C_Read... [23:55:20]Read from MH i2c: E2 03 00 [23:55:20]MH_I2C_Read... [23:55:20]Read from MH i2c: E2 03 00 45 29 00 90 00 E2 [23:55:20]RAPDU: 90 00 [23:55:20]wFMCommunicate OK [23:55:20]wFMCommunicate request_size=4 [23:55:20]MH_SAM_APDU [23:55:20]CAPDU: 80 0D 03 02 [23:55:20]Write to MH i2c: E2 08 00 46 29 80 0D 03 02 00 00 00 00 EA [23:55:20]Write i2c OK [23:55:20]MH_I2C_Read... [23:55:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:55:20]Read from MH i2c: E2 [23:55:20]MH_I2C_Read... [23:55:20]Read from MH i2c: E2 0B 00 [23:55:20]MH_I2C_Read... [23:55:20]Read from MH i2c: E2 0B 00 46 29 00 47 79 57 38 1B 62 AF AB 90 00 11 [23:55:20]RAPDU: 47 79 57 38 1B 62 AF AB 90 00 [23:55:20]wFMCommunicate OK [23:55:20]SAM_PROTO_SignData done [23:55:20]FM_MakeSignedData done [23:55:20]CreateOFDProtocolMessage [23:55:20]wFMCommunicate request_size=4 [23:55:20]MH_SAM_APDU [23:55:20]CAPDU: 80 11 00 00 [23:55:20]Write to MH i2c: E2 08 00 47 29 80 11 00 00 00 00 00 00 EA [23:55:20]Write i2c OK [23:55:20]MH_I2C_Read... [23:55:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:20]Read from MH i2c: E2 [23:55:20]MH_I2C_Read... [23:55:20]Read from MH i2c: E2 17 00 [23:55:20]MH_I2C_Read... [23:55:20]Read from MH i2c: E2 17 00 47 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 43 [23:55:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [23:55:20]wFMCommunicate OK [23:55:20]CreateOFDProtocolMessage done [23:55:20]OFDSenderStorePacket 27198 [23:55:20]StoreOFDPacket docnum=27198 [23:55:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 A4 01 00 00 B6 3A 9C 01 46 45 5A 03 01 00 03 00 90 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 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 65 00 00 00 F4 03 04 00 EE 2B A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 3E 6A 00 00 35 04 06 00 74 6B 7F 3C 46 FA 47 79 57 38 1B 62 AF AB [23:55:20]CheckFolder [23:55:20]dirname=/storage/ofd_packets [23:55:20]CheckFolder done [23:55:20]ProducePacketName [23:55:20]name=ofd_packets/00027198 [23:55:20]NVStorageSaveData ofd_packets/00027198 [23:55:20]File name is /storage/ofd_packets/00027198 [23:55:20]Write 450 bytes [23:55:20]NVStorageSaveData done [23:55:20]OFDSenderStorePacket done [23:55:20]KKMCreateOFDPacket done [23:55:20]NVStorageSaveData kkm_last_timestamp [23:55:20]File name is /storage/kkm_last_timestamp [23:55:20]Write 4 bytes [23:55:20]NVStorageSaveData done [23:55:20]ExternCall_PrintAddStr [23:55:20]wPrintStart [23:55:20]Write to MH i2c: 01 00 00 48 29 71 [23:55:20]Write i2c OK [23:55:20]MH_I2C_Read... [23:55:20]Read from MH i2c: 01 [23:55:20]MH_I2C_Read... [23:55:20]Read from MH i2c: 01 07 00 [23:55:20]MH_I2C_Read... [23:55:20]OFD Sender: Processing packet 27198 [packets to send 9, broken 8] [23:55:20]ProducePacketName [23:55:20]name=ofd_packets/00027198 [23:55:20]Read from MH i2c: 01 OFD Sender: To server: pG, [23:55:20]07 CommunicateWithHost lk.salyk.kg:30040 [23:55:20]00 ConnectInit lk.salyk.kg [23:55:20]48 29 00 00 00 00 00 FF 0F 86 [23:55:20]RasterBufferAndPrint [23:55:20]line Счет N : (3)150596 [23:55:20]line ИНН: 02508201610067 [23:55:20]line Контрольно-Кассовый Чек [23:55:20]line ПРОДАЖА [23:55:20]line Товар: 4700000480517 [23:55:20]line Пиво Живое 1л ПЭТ [23:55:20]line 1.000 * 180.00 [23:55:20]line = 180.00 [23:55:20]line НДС 12% НСП 1% [23:55:20]line > о реализуемом товаре [23:55:20]line Товар: 4870209743574 [23:55:20]line Арахис BIG BOB Вяленая конина 50 гр [23:55:20]line 1.000 * 60.00 [23:55:20]line = 60.00 [23:55:20]line НДС 12% НСП 1% [23:55:20]line > о реализуемом товаре [23:55:20]line ИТОГО: 240.00 [23:55:20]line НСП 1% : 2.12 [23:55:20]line НДС 12% : 25.48 [23:55:20]line Наличными: 240.00 [23:55:20]line Безнал.: 0.00 [23:55:20]line Место: АЗС № 134 "Партнер Нефть" [23:55:20]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [23:55:20]line СНО: Общий режим [23:55:20]line Чек 101 29.07.2024 23:55 [23:55:20]line Смена: 434 ФФД: 1.0 [23:55:20]line ЗНМ: 0300000043 [23:55:20]line РНМ: 0000000000092663 [23:55:20]line Версия ККМ: 001 [23:55:20]line ФМ: 0000000000874937 [23:55:20]line ФД: 27198 [23:55:20]line ФПД: 128005044979450 [23:55:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240729T235526&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27198&fm=128005044979450&tin=02508201610067®Number=0000000000092663&sum=24000 [23:55:20]line 0 [23:55:20]written 0, free lines is 4095 [23:55:20]Connected sock=10 [23:55:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 A4 01 00 00 B6 3A 9C 01 46 45 5A 03 01 00 03 00 90 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 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 65 00 00 00 F4 03 04 00 EE 2B A8 66 0E 04 04 00 B2 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 3E 6A 00 00 35 04 06 00 74 6B 7F 3C 46 FA 47 79 57 38 1B 62 AF AB [23:55:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 A5 06 47 00 ED 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 34 39 33 37 10 04 04 00 3E 6A 00 00 F4 03 04 00 3E D2 A7 66 B6 04 01 00 00 55 9F E7 C1 97 24 9F 6B [23:55:20]CommunicateWithHost err = 0 [23:55:20]CheckOFDResponse [23:55:20]1017 (14) - 77093643461234 [23:55:20]1041 (16) - 0000000000874937 [23:55:20]1040 (4) - 27198 [23:55:20]1012 (4) - 29.07.2024 17:32 [23:55:20]1206 (1) - 0 [23:55:20]OFD Sender: Remove packet 27198 [23:55:20]ProducePacketName [23:55:20]name=ofd_packets/00027198 [23:55:20]NVStorageDeleteData [23:55:21]Write to MH i2c: 01 00 00 76 29 9F [23:55:21]Write i2c OK [23:55:21]MH_I2C_Read... [23:55:21]Read from MH i2c: 01 [23:55:21]MH_I2C_Read... [23:55:21]Read from MH i2c: 01 07 00 [23:55:21]MH_I2C_Read... [23:55:21]Read from MH i2c: 01 07 00 76 29 00 00 00 00 00 8D 0C 3F [23:55:21]RasterBufferAndPrint [23:55:21]line [23:55:21]line [23:55:21]line [23:55:21]line [23:55:21]line [23:55:21]written 0, free lines is 3222 [23:55:21]MH_Cut [23:55:21]Write to MH i2c: D1 01 00 7D 29 01 78 [23:55:21]Write i2c OK [23:55:21]MH_I2C_Read... [23:55:21]Read from MH i2c: D1 [23:55:21]MH_I2C_Read... [23:55:21]Read from MH i2c: D1 01 00 [23:55:21]MH_I2C_Read... [23:55:21]Read from MH i2c: D1 01 00 7D 29 00 77 [23:55:21]Write to MH i2c: 01 00 00 7E 29 A7 [23:55:21]Write i2c OK [23:55:21]MH_I2C_Read... [23:55:21]OFD Sender: No OFD packet to send [23:55:21]*** Cut start [23:55:21]*** Partial cut [23:55:21]*** CUTSNS_PIN = 1 [23:55:21]*** CUTSNS_PIN = 0 [23:55:22]*** Brake cut motor [23:55:22]Read from MH i2c: 01 [23:55:22]MH_I2C_Read... [23:55:22]*** Stop cut motor [23:55:22]*** Cut end [23:55:22]Read from MH i2c: 01 07 00 [23:55:22]MH_I2C_Read... [23:55:22]Read from MH i2c: 01 07 00 7E 29 00 00 00 00 00 FF 0F BC [23:55:22]process_action close_receipt done [23:55:22]requested_data is exist [23:55:22]produce_requested_data [23:55:22]requested_item fm.sn is exist - process it [23:55:22]wFMCommunicate request_size=4 [23:55:22]MH_SAM_APDU [23:55:22]CAPDU: 80 11 00 00 [23:55:22]Write to MH i2c: E2 08 00 7F 29 80 11 00 00 00 00 00 00 22 [23:55:22]Write i2c OK [23:55:22]MH_I2C_Read... [23:55:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:22]Read from MH i2c: E2 [23:55:22]MH_I2C_Read... [23:55:22]Read from MH i2c: E2 17 00 [23:55:22]MH_I2C_Read... [23:55:22]Read from MH i2c: E2 17 00 7F 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 7B [23:55:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [23:55:22]wFMCommunicate OK [23:55:22]requested_item fd.num is exist - process it [23:55:22]SAM_PROTO_GetFieldsCounters [23:55:22]wFMCommunicate request_size=4 [23:55:22]MH_SAM_APDU [23:55:22]CAPDU: 80 13 00 00 [23:55:22]Write to MH i2c: E2 08 00 80 29 80 13 00 00 00 00 00 00 25 [23:55:22]Write i2c OK [23:55:22]MH_I2C_Read... [23:55:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:55:22]Read from MH i2c: E2 [23:55:22]MH_I2C_Read... [23:55:22]Read from MH i2c: E2 62 00 [23:55:22]MH_I2C_Read... [23:55:22]Read from MH i2c: E2 62 00 80 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 3E 6A 00 00 0E 04 04 00 B2 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 D7 [23:55: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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 3E 6A 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:55:22]wFMCommunicate OK [23:55:22]SAM_PROTO_GetFieldsCounters done [23:55:22]requested_item shift.num is exist - process it [23:55:22]requested_item shift.opened is exist - process it [23:55:22]req_shift_opened [23:55:22]FM_GetShiftState [23:55:22]SAM_PROTO_GetShiftState [23:55:22]wFMCommunicate request_size=4 [23:55:22]MH_SAM_APDU [23:55:22]CAPDU: 80 13 01 00 [23:55:22]Write to MH i2c: E2 08 00 81 29 80 13 01 00 00 00 00 00 27 [23:55:22]Write i2c OK [23:55:22]MH_I2C_Read... [23:55:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:22]Read from MH i2c: E2 [23:55:22]MH_I2C_Read... [23:55:22]Read from MH i2c: E2 0E 00 [23:55:22]MH_I2C_Read... [23:55:22]Read from MH i2c: E2 0E 00 81 29 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 A8 [23:55:22]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [23:55:22]wFMCommunicate OK [23:55:22]SAM_PROTO_GetShiftState done [23:55:22]FM_GetShiftState done [23:55:22]req_shift_opened done [23:55:22]requested_item shift.open_date is exist - process it [23:55:22]req_shift_open_date [23:55:22]req_shift_open_date done [23:55:22]produce_requested_data done [23:55:22]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27198,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [23:55:22]process_action_free close_receipt [23:55:22]json_value_free [23:55:22]json_value_free done [23:55:22]process_json_proto returns [23:55:22]Send response to host [23:55:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27198,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [23:55:22]free response buf [23:55:22]execute_script done [23:55:22]execute_script returns [23:55:22]free content buf [23:55:22]Sock 8.Close socket [23:55:22]Sock 8.Thread stoped [23:55:26]OFD Sender: No OFD packet to send [23:55:31]OFD Sender: No OFD packet to send [23:55:36]OFD Sender: No OFD packet to send [23:55:41]OFD Sender: No OFD packet to send [23:55:46]OFD Sender: No OFD packet to send [23:55:51]OFD Sender: No OFD packet to send [23:55:56]OFD Sender: No OFD packet to send [23:56:01]OFD Sender: No OFD packet to send [23:56:06]OFD Sender: No OFD packet to send [23:56:11]OFD Sender: No OFD packet to send [23:56:16]OFD Sender: No OFD packet to send [23:56:21]OFD Sender: No OFD packet to send [23:56:26]OFD Sender: No OFD packet to send [23:56:31]OFD Sender: No OFD packet to send [23:56:36]OFD Sender: No OFD packet to send [23:56:41]OFD Sender: No OFD packet to send [23:56:46]OFD Sender: No OFD packet to send [23:56:51]OFD Sender: No OFD packet to send [23:56:56]OFD Sender: No OFD packet to send [23:57:01]OFD Sender: No OFD packet to send [23:57:06]OFD Sender: No OFD packet to send [23:57:11]OFD Sender: No OFD packet to send [23:57:16]OFD Sender: No OFD packet to send [23:57:21]OFD Sender: No OFD packet to send [23:57:26]OFD Sender: No OFD packet to send [23:57:31]OFD Sender: No OFD packet to send [23:57:36]OFD Sender: No OFD packet to send [23:57:41]OFD Sender: No OFD packet to send [23:57:46]OFD Sender: No OFD packet to send [23:57:51]OFD Sender: No OFD packet to send [23:57:56]OFD Sender: No OFD packet to send [23:58:01]OFD Sender: No OFD packet to send [23:58:06]OFD Sender: No OFD packet to send [23:58:11]OFD Sender: No OFD packet to send [23:58:16]OFD Sender: No OFD packet to send [23:58:21]OFD Sender: No OFD packet to send [23:58:26]OFD Sender: No OFD packet to send [23:58:31]OFD Sender: No OFD packet to send [23:58:36]OFD Sender: No OFD packet to send [23:58:41]OFD Sender: No OFD packet to send [23:58:46]OFD Sender: No OFD packet to send [23:58:51]OFD Sender: No OFD packet to send [23:58:56]OFD Sender: No OFD packet to send [23:59:01]OFD Sender: No OFD packet to send [23:59:06]OFD Sender: No OFD packet to send [23:59:11]OFD Sender: No OFD packet to send [23:59:16]OFD Sender: No OFD packet to send [23:59:21]OFD Sender: No OFD packet to send [23:59:26]OFD Sender: No OFD packet to send [23:59:31]OFD Sender: No OFD packet to send [23:59:36]OFD Sender: No OFD packet to send [23:59:41]OFD Sender: No OFD packet to send [23:59:46]OFD Sender: No OFD packet to send [23:59:51]OFD Sender: No OFD packet to send [23:59:56]OFD Sender: No OFD packet to send [00:00:01]OFD Sender: No OFD packet to send [00:00:06]OFD Sender: No OFD packet to send [00:00:11]OFD Sender: No OFD packet to send [00:00:16]OFD Sender: No OFD packet to send [00:00:21]OFD Sender: No OFD packet to send [00:00:26]OFD Sender: No OFD packet to send [00:00:31]OFD Sender: No OFD packet to send [00:00:36]OFD Sender: No OFD packet to send [00:00:41]OFD Sender: No OFD packet to send [00:00:46]OFD Sender: No OFD packet to send [00:00:51]OFD Sender: No OFD packet to send [00:00:56]OFD Sender: No OFD packet to send [00:01:01]OFD Sender: No OFD packet to send [00:01:06]OFD Sender: No OFD packet to send [00:01:11]OFD Sender: No OFD packet to send [00:01:16]OFD Sender: No OFD packet to send [00:01:21]OFD Sender: No OFD packet to send [00:01:26]OFD Sender: No OFD packet to send [00:01:31]OFD Sender: No OFD packet to send [00:01:36]OFD Sender: No OFD packet to send [00:01:41]OFD Sender: No OFD packet to send [00:01:46]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:02]OFD Sender: No OFD packet to send [00:07:07]OFD Sender: No OFD packet to send [00:07:12]OFD Sender: No OFD packet to send [00:07:17]OFD Sender: No OFD packet to send [00:07:22]OFD Sender: No OFD packet to send [00:07:27]OFD Sender: No OFD packet to send [00:07:32]OFD Sender: No OFD packet to send [00:07:37]OFD Sender: No OFD packet to send [00:07:42]OFD Sender: No OFD packet to send [00:07:47]OFD Sender: No OFD packet to send [00:07:52]OFD Sender: No OFD packet to send [00:07:57]OFD Sender: No OFD packet to send [00:08:02]OFD Sender: No OFD packet to send [00:08:07]OFD Sender: No OFD packet to send [00:08:12]OFD Sender: No OFD packet to send [00:08:17]OFD Sender: No OFD packet to send [00:08:22]OFD Sender: No OFD packet to send [00:08:27]OFD Sender: No OFD packet to send [00:08:32]OFD Sender: No OFD packet to send [00:08:37]OFD Sender: No OFD packet to send [00:08:42]OFD Sender: No OFD packet to send [00:08:47]OFD Sender: No OFD packet to send [00:08:52]OFD Sender: No OFD packet to send [00:08:57]OFD Sender: No OFD packet to send [00:09:02]OFD Sender: No OFD packet to send [00:09:07]OFD Sender: No OFD packet to send [00:09:12]OFD Sender: No OFD packet to send [00:09:17]OFD Sender: No OFD packet to send [00:09:22]OFD Sender: No OFD packet to send [00:09:27]OFD Sender: No OFD packet to send [00:09:32]OFD Sender: No OFD packet to send [00:09:37]OFD Sender: No OFD packet to send [00:09:42]OFD Sender: No OFD packet to send [00:09:47]OFD Sender: No OFD packet to send [00:09:52]OFD Sender: No OFD packet to send [00:09:57]OFD Sender: No OFD packet to send [00:10:02]OFD Sender: No OFD packet to send [00:10:07]OFD Sender: No OFD packet to send [00:10:12]OFD Sender: No OFD packet to send [00:10:17]OFD Sender: No OFD packet to send [00:10:22]OFD Sender: No OFD packet to send [00:10:27]OFD Sender: No OFD packet to send [00:10:32]OFD Sender: No OFD packet to send [00:10:37]OFD Sender: No OFD packet to send [00:10:42]OFD Sender: No OFD packet to send [00:10:47]OFD Sender: No OFD packet to send [00:10:52]OFD Sender: No OFD packet to send [00:10:57]OFD Sender: No OFD packet to send [00:11:02]OFD Sender: No OFD packet to send [00:11:07]OFD Sender: No OFD packet to send [00:11:12]OFD Sender: No OFD packet to send [00:11:17]OFD Sender: No OFD packet to send [00:11:22]OFD Sender: No OFD packet to send [00:11:27]OFD Sender: No OFD packet to send [00:11:32]OFD Sender: No OFD packet to send [00:11:37]OFD Sender: No OFD packet to send [00:11:42]OFD Sender: No OFD packet to send [00:11:47]OFD Sender: No OFD packet to send [00:11:52]OFD Sender: No OFD packet to send [00:11:57]OFD Sender: No OFD packet to send [00:12:02]OFD Sender: No OFD packet to send [00:12:07]OFD Sender: No OFD packet to send [00:12:12]OFD Sender: No OFD packet to send [00:12:17]OFD Sender: No OFD packet to send [00:12:22]OFD Sender: No OFD packet to send [00:12:27]OFD Sender: No OFD packet to send [00:12:32]OFD Sender: No OFD packet to send [00:12:37]OFD Sender: No OFD packet to send [00:12:42]OFD Sender: No OFD packet to send [00:12:47]OFD Sender: No OFD packet to send [00:12:52]OFD Sender: No OFD packet to send [00:12:57]OFD Sender: No OFD packet to send [00:13:02]OFD Sender: No OFD packet to send [00:13:07]OFD Sender: No OFD packet to send [00:13:12]OFD Sender: No OFD packet to send [00:13:17]OFD Sender: No OFD packet to send [00:13:22]OFD Sender: No OFD packet to send [00:13:27]OFD Sender: No OFD packet to send [00:13:32]OFD Sender: No OFD packet to send [00:13:37]OFD Sender: No OFD packet to send [00:13:42]OFD Sender: No OFD packet to send [00:13:47]OFD Sender: No OFD packet to send [00:13:52]OFD Sender: No OFD packet to send [00:13:57]OFD Sender: No OFD packet to send [00:14:02]OFD Sender: No OFD packet to send [00:14:07]OFD Sender: No OFD packet to send [00:14:12]OFD Sender: No OFD packet to send [00:14:17]OFD Sender: No OFD packet to send [00:14:22]OFD Sender: No OFD packet to send [00:14:27]OFD Sender: No OFD packet to send [00:14:32]OFD Sender: No OFD packet to send [00:14:37]OFD Sender: No OFD packet to send [00:14:42]OFD Sender: No OFD packet to send [00:14:47]OFD Sender: No OFD packet to send [00:14:52]OFD Sender: No OFD packet to send [00:14:57]OFD Sender: No OFD packet to send [00:15:02]OFD Sender: No OFD packet to send [00:15:07]OFD Sender: No OFD packet to send [00:15:12]OFD Sender: No OFD packet to send [00:15:17]OFD Sender: No OFD packet to send [00:15:22]OFD Sender: No OFD packet to send [00:15:27]OFD Sender: No OFD packet to send [00:15:32]OFD Sender: No OFD packet to send [00:15:37]OFD Sender: No OFD packet to send [00:15:42]OFD Sender: No OFD packet to send [00:15:47]OFD Sender: No OFD packet to send [00:15:52]OFD Sender: No OFD packet to send [00:15:57]OFD Sender: No OFD packet to send [00:16:02]OFD Sender: No OFD packet to send [00:16:07]OFD Sender: No OFD packet to send [00:16:12]OFD Sender: No OFD packet to send [00:16:17]OFD Sender: No OFD packet to send [00:16:22]OFD Sender: No OFD packet to send [00:16:27]OFD Sender: No OFD packet to send [00:16:32]OFD Sender: No OFD packet to send [00:16:36]accept exits with 9 [00:16:36]New connection [00:16:36]New thread 3066785124 created [00:16:36]Thread 3066928484 joined [00:16:36]Waiting for new connection... [00:16:36] Sock 9.Parse request [00:16:36]Sock 9.Check first char [00:16:36]Sock 9.First char is OK [00:16:36]request: POST /json_proto HTTP/1.0 [00:16:36]Method: POST [00:16:36]URL: /json_proto [00:16:36]Method is POST - this is cgi request [00:16:36]url: /json_proto [00:16:36]query_string will be loaded in cgi processing [00:16:36]execute_cgi json_proto POST (null) [00:16:36]execute_cgi path=json_proto method=POST [00:16:36]POST find Content-Length [00:16:36]Host: 172.17.45.8:8080 [00:16:36]Content-Length: 215 [00:16:36]Content-Type: application/json [00:16:36] [00:16:36]POST finish read [00:16:36]Found Content-Length = 215 [00:16:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:16:36]execute_script... [00:16:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:16:36]POST & json_proto [00:16:36]process_json_proto [00:16:36]json parsed OK: [00:16:36]protocol is kg_v1.0 [00:16:36]action value=get_value [00:16:36]process_action get_value [00:16:36]cmd_get_value [00:16:36]process_action get_value done [00:16:36]requested_data is exist [00:16:36]produce_requested_data [00:16:36]requested_item kkm.sn is exist - process it [00:16:36]requested_item kkm.ver is exist - process it [00:16:36]requested_item fm.sn is exist - process it [00:16:36]wFMCommunicate request_size=4 [00:16:36]MH_SAM_APDU [00:16:36]CAPDU: 80 11 00 00 [00:16:36]Write to MH i2c: E2 08 00 82 29 80 11 00 00 00 00 00 00 25 [00:16:36]Write i2c OK [00:16:36]MH_I2C_Read... [00:16:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:16:36]Read from MH i2c: E2 [00:16:36]MH_I2C_Read... [00:16:36]Read from MH i2c: E2 17 00 [00:16:36]MH_I2C_Read... [00:16:36]Read from MH i2c: E2 17 00 82 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 7E [00:16:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [00:16:36]wFMCommunicate OK [00:16:36]requested_item fd.num is exist - process it [00:16:36]SAM_PROTO_GetFieldsCounters [00:16:36]wFMCommunicate request_size=4 [00:16:36]MH_SAM_APDU [00:16:36]CAPDU: 80 13 00 00 [00:16:36]Write to MH i2c: E2 08 00 83 29 80 13 00 00 00 00 00 00 28 [00:16:36]Write i2c OK [00:16:36]MH_I2C_Read... [00:16:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:16:37]Read from MH i2c: E2 [00:16:37]MH_I2C_Read... [00:16:37]Read from MH i2c: E2 62 00 [00:16:37]MH_I2C_Read... [00:16:37]Read from MH i2c: E2 62 00 83 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 3E 6A 00 00 0E 04 04 00 B2 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 DA [00:16:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 3E 6A 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:16:37]wFMCommunicate OK [00:16:37]SAM_PROTO_GetFieldsCounters done [00:16:37]requested_item shift.num is exist - process it [00:16:37]requested_item shift.opened is exist - process it [00:16:37]req_shift_opened [00:16:37]FM_GetShiftState [00:16:37]SAM_PROTO_GetShiftState [00:16:37]wFMCommunicate request_size=4 [00:16:37]MH_SAM_APDU [00:16:37]CAPDU: 80 13 01 00 [00:16:37]Write to MH i2c: E2 08 00 84 29 80 13 01 00 00 00 00 00 2A [00:16:37]Write i2c OK [00:16:37]MH_I2C_Read... [00:16:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:16:37]Read from MH i2c: E2 [00:16:37]MH_I2C_Read... [00:16:37]Read from MH i2c: E2 0E 00 [00:16:37]MH_I2C_Read... [00:16:37]Read from MH i2c: E2 0E 00 84 29 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 AB [00:16:37]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [00:16:37]wFMCommunicate OK [00:16:37]SAM_PROTO_GetShiftState done [00:16:37]FM_GetShiftState done [00:16:37]req_shift_opened done [00:16:37]requested_item shift.open_date is exist - process it [00:16:37]req_shift_open_date [00:16:37]req_shift_open_date done [00:16:37]produce_requested_data done [00:16:37]produce_requested_data return {"kkm.sn":"0300000043","kkm.ver":"001","fm.sn":"0000000000874937","fd.num":27198,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [00:16:37]process_action_free get_value [00:16:37]json_value_free [00:16:37]json_value_free done [00:16:37]process_json_proto returns [00:16:37]Send response to host [00:16:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000043","kkm.ver":"001","fm.sn":"0000000000874937","fd.num":27198,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [00:16:37]free response buf [00:16:37]execute_script done [00:16:37]execute_script returns [00:16:37]free content buf [00:16:37]Sock 9.Close socket [00:16:37]Sock 9.Thread stoped [00:16:37]accept exits with 8 [00:16:37]New connection [00:16:37]New thread 3066928484 created [00:16:37]Thread 3066785124 joined [00:16:37]Waiting for new connection... [00:16:37] Sock 8.Parse request [00:16:37]Sock 8.Check first char [00:16:37]Sock 8.First char is OK [00:16:37]request: POST /json_proto HTTP/1.0 [00:16:37]Method: POST [00:16:37]URL: /json_proto [00:16:37]Method is POST - this is cgi request [00:16:37]url: /json_proto [00:16:37]query_string will be loaded in cgi processing [00:16:37]execute_cgi json_proto POST (null) [00:16:37]execute_cgi path=json_proto method=POST [00:16:37]POST find Content-Length [00:16:37]Host: 172.17.45.8:8080 [00:16:37]Content-Length: 331 [00:16:37]Content-Type: application/json [00:16:37] [00:16:37]POST finish read [00:16:37]Found Content-Length = 331 [00:16: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" ] } } [00:16:37]execute_script... [00:16: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" ] } } [00:16:37]POST & json_proto [00:16:37]process_json_proto [00:16:37]json parsed OK: [00:16:37]protocol is kg_v1.0 [00:16:37]action value=get_value [00:16:37]process_action get_value [00:16:37]cmd_get_value [00:16:37]process_action get_value done [00:16:37]requested_data is exist [00:16:37]produce_requested_data [00:16:37]requested_item fm.sale.total is exist - process it [00:16:37]SAM_PROTO_GetFMData [00:16:37]wFMCommunicate request_size=4 [00:16:37]MH_SAM_APDU [00:16:37]CAPDU: 80 13 03 00 [00:16:37]Write to MH i2c: E2 08 00 85 29 80 13 03 00 00 00 00 00 2D [00:16:37]Write i2c OK [00:16:37]MH_I2C_Read... [00:16:37]OFD Sender: No OFD packet to send [00:16:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:16:37]Read from MH i2c: E2 [00:16:37]MH_I2C_Read... [00:16:37]Read from MH i2c: E2 FD 00 [00:16:37]MH_I2C_Read... [00:16:37]Read from MH i2c: E2 FD 00 85 29 00 C1 04 85 04 BD 04 6E 04 04 00 DA 66 00 00 69 04 A0 00 6F 04 04 00 AC 66 00 00 B1 04 04 00 78 59 97 23 70 04 04 00 AC 7C 41 22 72 04 04 00 CC DC 55 01 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 80 89 C7 03 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 09 95 50 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 2E 00 00 00 B1 04 03 00 D4 A7 1A 70 04 03 00 04 A5 15 72 04 03 00 D0 02 05 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 AB D4 02 EF 03 09 00 F6 03 90 00 36 [00:16:37]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 DA 66 00 00 69 04 A0 00 6F 04 04 00 AC 66 00 00 B1 04 04 00 78 59 97 23 70 04 04 00 AC 7C 41 22 72 04 04 00 CC DC 55 01 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 80 89 C7 03 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 09 95 50 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 2E 00 00 00 B1 04 03 00 D4 A7 1A 70 04 03 00 04 A5 15 72 04 03 00 D0 02 05 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 AB D4 02 EF 03 09 00 F6 03 90 00 [00:16:37]wFMCommunicate OK [00:16:37]wFMCommunicate request_size=4 [00:16:37]MH_SAM_APDU [00:16:37]CAPDU: 80 17 00 00 [00:16:37]Write to MH i2c: E2 08 00 86 29 80 17 00 00 00 00 00 00 2F [00:16:37]Write i2c OK [00:16:37]MH_I2C_Read... [00:16:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:38]Read from MH i2c: E2 [00:16:38]MH_I2C_Read... [00:16:38]Read from MH i2c: E2 FD 00 [00:16:38]MH_I2C_Read... [00:16:38]Read from MH i2c: E2 FD 00 86 29 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 FC [00:16:38]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:16:38]wFMCommunicate OK [00:16:38]wFMCommunicate request_size=4 [00:16:38]MH_SAM_APDU [00:16:38]CAPDU: 80 17 00 00 [00:16:38]Write to MH i2c: E2 08 00 87 29 80 17 00 00 00 00 00 00 30 [00:16:38]Write i2c OK [00:16:38]MH_I2C_Read... [00:16:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:38]Read from MH i2c: E2 [00:16:38]MH_I2C_Read... [00:16:38]Read from MH i2c: E2 FD 00 [00:16:38]MH_I2C_Read... [00:16:38]Read from MH i2c: E2 FD 00 87 29 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 D0 [00:16:38]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:16:38]wFMCommunicate OK [00:16:38]wFMCommunicate request_size=4 [00:16:38]MH_SAM_APDU [00:16:38]CAPDU: 80 17 00 00 [00:16:38]Write to MH i2c: E2 08 00 88 29 80 17 00 00 00 00 00 00 31 [00:16:38]Write i2c OK [00:16:38]MH_I2C_Read... [00:16:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:38]Read from MH i2c: E2 [00:16:38]MH_I2C_Read... [00:16:38]Read from MH i2c: E2 FD 00 [00:16:38]MH_I2C_Read... [00:16:38]Read from MH i2c: E2 FD 00 88 29 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 B6 [00:16:38]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:16:38]wFMCommunicate OK [00:16:38]wFMCommunicate request_size=4 [00:16:38]MH_SAM_APDU [00:16:38]CAPDU: 80 17 00 00 [00:16:38]Write to MH i2c: E2 08 00 89 29 80 17 00 00 00 00 00 00 32 [00:16:38]Write i2c OK [00:16:38]MH_I2C_Read... [00:16:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:16:38]Read from MH i2c: E2 [00:16:38]MH_I2C_Read... [00:16:38]Read from MH i2c: E2 DE 00 [00:16:38]MH_I2C_Read... [00:16:38]Read from MH i2c: E2 DE 00 89 29 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 11 [00:16:38]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:16:38]wFMCommunicate OK [00:16:38]SAM_PROTO_GetFMData done [00:16:38]requested_item fm.sale_refund.total is exist - process it [00:16:38]requested_item fm.buy.total is exist - process it [00:16:38]requested_item shift.sale.total is exist - process it [00:16:38]SAM_PROTO_GetShiftData [00:16:38]wFMCommunicate request_size=4 [00:16:38]MH_SAM_APDU [00:16:38]CAPDU: 80 13 02 00 [00:16:38]Write to MH i2c: E2 08 00 8A 29 80 13 02 00 00 00 00 00 31 [00:16:38]Write i2c OK [00:16:38]MH_I2C_Read... [00:16:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:16:39]Read from MH i2c: E2 [00:16:39]MH_I2C_Read... [00:16:39]Read from MH i2c: E2 FD 00 [00:16:39]MH_I2C_Read... [00:16:39]Read from MH i2c: E2 FD 00 8A 29 00 AE 04 AA 04 AA 04 6E 04 04 00 65 00 00 00 69 04 9B 00 6F 04 04 00 65 00 00 00 B1 04 03 00 A4 07 1D 70 04 03 00 B4 6C 1B 72 04 03 00 F0 9A 01 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 33 15 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 B2 41 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 88 [00:16:39]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 65 00 00 00 69 04 9B 00 6F 04 04 00 65 00 00 00 B1 04 03 00 A4 07 1D 70 04 03 00 B4 6C 1B 72 04 03 00 F0 9A 01 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 33 15 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 B2 41 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:16:39]wFMCommunicate OK [00:16:39]wFMCommunicate request_size=4 [00:16:39]MH_SAM_APDU [00:16:39]CAPDU: 80 17 00 00 [00:16:39]Write to MH i2c: E2 08 00 8B 29 80 17 00 00 00 00 00 00 34 [00:16:39]Write i2c OK [00:16:39]MH_I2C_Read... [00:16:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:39]Read from MH i2c: E2 [00:16:39]MH_I2C_Read... [00:16:39]Read from MH i2c: E2 FD 00 [00:16:39]MH_I2C_Read... [00:16:39]Read from MH i2c: E2 FD 00 8B 29 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 56 [00:16: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 [00:16:39]wFMCommunicate OK [00:16:39]wFMCommunicate request_size=4 [00:16:39]MH_SAM_APDU [00:16:39]CAPDU: 80 17 00 00 [00:16:39]Write to MH i2c: E2 08 00 8C 29 80 17 00 00 00 00 00 00 35 [00:16:39]Write i2c OK [00:16:39]MH_I2C_Read... [00:16:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:39]Read from MH i2c: E2 [00:16:39]MH_I2C_Read... [00:16:39]Read from MH i2c: E2 FD 00 [00:16:39]MH_I2C_Read... [00:16:39]Read from MH i2c: E2 FD 00 8C 29 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EC [00:16: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 [00:16:40]wFMCommunicate OK [00:16:40]wFMCommunicate request_size=4 [00:16:40]MH_SAM_APDU [00:16:40]CAPDU: 80 17 00 00 [00:16:40]Write to MH i2c: E2 08 00 8D 29 80 17 00 00 00 00 00 00 36 [00:16:40]Write i2c OK [00:16:40]MH_I2C_Read... [00:16:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:16:40]Read from MH i2c: E2 [00:16:40]MH_I2C_Read... [00:16:40]Read from MH i2c: E2 FD 00 [00:16:40]MH_I2C_Read... [00:16:40]Read from MH i2c: E2 FD 00 8D 29 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 A8 [00:16: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 [00:16:40]wFMCommunicate OK [00:16:40]wFMCommunicate request_size=4 [00:16:40]MH_SAM_APDU [00:16:40]CAPDU: 80 17 00 00 [00:16:40]Write to MH i2c: E2 08 00 8E 29 80 17 00 00 00 00 00 00 37 [00:16:40]Write i2c OK [00:16:40]MH_I2C_Read... [00:16:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:16:40]Read from MH i2c: E2 [00:16:40]MH_I2C_Read... [00:16:40]Read from MH i2c: E2 CB 00 [00:16:40]MH_I2C_Read... [00:16:40]Read from MH i2c: E2 CB 00 8E 29 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 20 [00:16: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 [00:16:40]wFMCommunicate OK [00:16:40]SAM_PROTO_GetShiftData done [00:16:40]requested_item shift.sale.total_cash is exist - process it [00:16:40]requested_item shift.sale_refund.total is exist - process it [00:16:40]requested_item shift.sale_refund.total_cash is exist - process it [00:16:40]requested_item shift.buy.total is exist - process it [00:16:40]requested_item shift.buy.total_cash is exist - process it [00:16:40]produce_requested_data done [00:16:40]produce_requested_data return {"fm.sale.total":5971214.00,"fm.sale_refund.total":17469.00,"fm.buy.total":0.00,"shift.sale.total":19025.00,"shift.sale.total_cash":17973.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:16:40]process_action_free get_value [00:16:40]json_value_free [00:16:40]json_value_free done [00:16:40]process_json_proto returns [00:16:40]Send response to host [00:16:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":5971214.00,"fm.sale_refund.total":17469.00,"fm.buy.total":0.00,"shift.sale.total":19025.00,"shift.sale.total_cash":17973.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:16:40]free response buf [00:16:40]execute_script done [00:16:40]execute_script returns [00:16:40]free content buf [00:16:40]Sock 8.Close socket [00:16:40]Sock 8.Thread stoped [00:16:42]OFD Sender: No OFD packet to send [00:16:47]OFD Sender: No OFD packet to send [00:16:52]OFD Sender: No OFD packet to send [00:16:57]OFD Sender: No OFD packet to send [00:17:02]OFD Sender: No OFD packet to send [00:17:07]OFD Sender: No OFD packet to send [00:17:12]OFD Sender: No OFD packet to send [00:17:17]OFD Sender: No OFD packet to send [00:17:22]OFD Sender: No OFD packet to send [00:17:27]OFD Sender: No OFD packet to send [00:17:32]OFD Sender: No OFD packet to send [00:17:37]OFD Sender: No OFD packet to send [00:17:42]OFD Sender: No OFD packet to send [00:17:47]OFD Sender: No OFD packet to send [00:17:52]OFD Sender: No OFD packet to send [00:17:57]OFD Sender: No OFD packet to send [00:18:02]OFD Sender: No OFD packet to send [00:18:07]OFD Sender: No OFD packet to send [00:18:12]OFD Sender: No OFD packet to send [00:18:17]OFD Sender: No OFD packet to send [00:18:22]OFD Sender: No OFD packet to send [00:18:27]OFD Sender: No OFD packet to send [00:18:32]OFD Sender: No OFD packet to send [00:18:34]accept exits with 9 [00:18:34]New connection [00:18:34]New thread 3066785124 created [00:18:34]Thread 3066928484 joined [00:18:34]Waiting for new connection... [00:18:34] Sock 9.Parse request [00:18:34]Sock 9.Check first char [00:18:34]Sock 9.First char is OK [00:18:34]request: POST /json_proto HTTP/1.0 [00:18:34]Method: POST [00:18:34]URL: /json_proto [00:18:34]Method is POST - this is cgi request [00:18:34]url: /json_proto [00:18:34]query_string will be loaded in cgi processing [00:18:34]execute_cgi json_proto POST (null) [00:18:34]execute_cgi path=json_proto method=POST [00:18:34]POST find Content-Length [00:18:34]Host: 172.17.45.8:8080 [00:18:34]Content-Length: 215 [00:18:34]Content-Type: application/json [00:18:34] [00:18:34]POST finish read [00:18:34]Found Content-Length = 215 [00:18:34]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:18:34]execute_script... [00:18:34]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:18:34]POST & json_proto [00:18:34]process_json_proto [00:18:34]json parsed OK: [00:18:34]protocol is kg_v1.0 [00:18:34]action value=get_value [00:18:34]process_action get_value [00:18:34]cmd_get_value [00:18:34]process_action get_value done [00:18:34]requested_data is exist [00:18:34]produce_requested_data [00:18:34]requested_item kkm.sn is exist - process it [00:18:34]requested_item kkm.ver is exist - process it [00:18:34]requested_item fm.sn is exist - process it [00:18:34]wFMCommunicate request_size=4 [00:18:34]MH_SAM_APDU [00:18:34]CAPDU: 80 11 00 00 [00:18:34]Write to MH i2c: E2 08 00 8F 29 80 11 00 00 00 00 00 00 32 [00:18:34]Write i2c OK [00:18:34]MH_I2C_Read... [00:18:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:18:34]Read from MH i2c: E2 [00:18:34]MH_I2C_Read... [00:18:34]Read from MH i2c: E2 17 00 [00:18:34]MH_I2C_Read... [00:18:34]Read from MH i2c: E2 17 00 8F 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 8B [00:18:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [00:18:34]wFMCommunicate OK [00:18:34]requested_item fd.num is exist - process it [00:18:34]SAM_PROTO_GetFieldsCounters [00:18:34]wFMCommunicate request_size=4 [00:18:34]MH_SAM_APDU [00:18:34]CAPDU: 80 13 00 00 [00:18:34]Write to MH i2c: E2 08 00 90 29 80 13 00 00 00 00 00 00 35 [00:18:34]Write i2c OK [00:18:34]MH_I2C_Read... [00:18:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:18:34]Read from MH i2c: E2 [00:18:34]MH_I2C_Read... [00:18:34]Read from MH i2c: E2 62 00 [00:18:34]MH_I2C_Read... [00:18:34]Read from MH i2c: E2 62 00 90 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 3E 6A 00 00 0E 04 04 00 B2 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 E7 [00:18:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 3E 6A 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:18:34]wFMCommunicate OK [00:18:34]SAM_PROTO_GetFieldsCounters done [00:18:34]requested_item shift.num is exist - process it [00:18:34]requested_item shift.opened is exist - process it [00:18:34]req_shift_opened [00:18:34]FM_GetShiftState [00:18:34]SAM_PROTO_GetShiftState [00:18:34]wFMCommunicate request_size=4 [00:18:34]MH_SAM_APDU [00:18:34]CAPDU: 80 13 01 00 [00:18:34]Write to MH i2c: E2 08 00 91 29 80 13 01 00 00 00 00 00 37 [00:18:34]Write i2c OK [00:18:34]MH_I2C_Read... [00:18:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:34]Read from MH i2c: E2 [00:18:34]MH_I2C_Read... [00:18:34]Read from MH i2c: E2 0E 00 [00:18:34]MH_I2C_Read... [00:18:34]Read from MH i2c: E2 0E 00 91 29 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 B8 [00:18:34]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [00:18:34]wFMCommunicate OK [00:18:34]SAM_PROTO_GetShiftState done [00:18:34]FM_GetShiftState done [00:18:34]req_shift_opened done [00:18:34]requested_item shift.open_date is exist - process it [00:18:34]req_shift_open_date [00:18:34]req_shift_open_date done [00:18:34]produce_requested_data done [00:18:34]produce_requested_data return {"kkm.sn":"0300000043","kkm.ver":"001","fm.sn":"0000000000874937","fd.num":27198,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [00:18:34]process_action_free get_value [00:18:34]json_value_free [00:18:34]json_value_free done [00:18:34]process_json_proto returns [00:18:34]Send response to host [00:18:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000043","kkm.ver":"001","fm.sn":"0000000000874937","fd.num":27198,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [00:18:34]free response buf [00:18:34]execute_script done [00:18:34]execute_script returns [00:18:34]free content buf [00:18:34]Sock 9.Close socket [00:18:34]Sock 9.Thread stoped [00:18:34]accept exits with 8 [00:18:34]New connection [00:18:34]New thread 3066928484 created [00:18:34]Thread 3066785124 joined [00:18:34]Waiting for new connection... [00:18:34] Sock 8.Parse request [00:18:34]Sock 8.Check first char [00:18:34]Sock 8.First char is OK [00:18:34]request: POST /json_proto HTTP/1.0 [00:18:34]Method: POST [00:18:34]URL: /json_proto [00:18:34]Method is POST - this is cgi request [00:18:34]url: /json_proto [00:18:34]query_string will be loaded in cgi processing [00:18:34]execute_cgi json_proto POST (null) [00:18:34]execute_cgi path=json_proto method=POST [00:18:34]POST find Content-Length [00:18:34]Host: 172.17.45.8:8080 [00:18:34]Content-Length: 331 [00:18:34]Content-Type: application/json [00:18:34] [00:18:34]POST finish read [00:18:34]Found Content-Length = 331 [00:18:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:18:34]execute_script... [00:18:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:18:34]POST & json_proto [00:18:34]process_json_proto [00:18:34]json parsed OK: [00:18:34]protocol is kg_v1.0 [00:18:34]action value=get_value [00:18:34]process_action get_value [00:18:34]cmd_get_value [00:18:34]process_action get_value done [00:18:34]requested_data is exist [00:18:34]produce_requested_data [00:18:34]requested_item fm.sale.total is exist - process it [00:18:34]SAM_PROTO_GetFMData [00:18:34]wFMCommunicate request_size=4 [00:18:34]MH_SAM_APDU [00:18:34]CAPDU: 80 13 03 00 [00:18:34]Write to MH i2c: E2 08 00 92 29 80 13 03 00 00 00 00 00 3A [00:18:34]Write i2c OK [00:18:34]MH_I2C_Read... [00:18:35]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:18:35]Read from MH i2c: E2 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: E2 FD 00 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: E2 FD 00 92 29 00 C1 04 85 04 BD 04 6E 04 04 00 DA 66 00 00 69 04 A0 00 6F 04 04 00 AC 66 00 00 B1 04 04 00 78 59 97 23 70 04 04 00 AC 7C 41 22 72 04 04 00 CC DC 55 01 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 80 89 C7 03 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 09 95 50 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 2E 00 00 00 B1 04 03 00 D4 A7 1A 70 04 03 00 04 A5 15 72 04 03 00 D0 02 05 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 AB D4 02 EF 03 09 00 F6 03 90 00 43 [00:18:35]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 DA 66 00 00 69 04 A0 00 6F 04 04 00 AC 66 00 00 B1 04 04 00 78 59 97 23 70 04 04 00 AC 7C 41 22 72 04 04 00 CC DC 55 01 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 80 89 C7 03 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 09 95 50 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 2E 00 00 00 B1 04 03 00 D4 A7 1A 70 04 03 00 04 A5 15 72 04 03 00 D0 02 05 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 AB D4 02 EF 03 09 00 F6 03 90 00 [00:18:35]wFMCommunicate OK [00:18:35]wFMCommunicate request_size=4 [00:18:35]MH_SAM_APDU [00:18:35]CAPDU: 80 17 00 00 [00:18:35]Write to MH i2c: E2 08 00 93 29 80 17 00 00 00 00 00 00 3C [00:18:35]Write i2c OK [00:18:35]MH_I2C_Read... [00:18:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:35]Read from MH i2c: E2 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: E2 FD 00 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: E2 FD 00 93 29 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 09 [00:18:35]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:18:35]wFMCommunicate OK [00:18:35]wFMCommunicate request_size=4 [00:18:35]MH_SAM_APDU [00:18:35]CAPDU: 80 17 00 00 [00:18:35]Write to MH i2c: E2 08 00 94 29 80 17 00 00 00 00 00 00 3D [00:18:35]Write i2c OK [00:18:35]MH_I2C_Read... [00:18:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:35]Read from MH i2c: E2 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: E2 FD 00 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: E2 FD 00 94 29 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 DD [00:18:35]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:18:35]wFMCommunicate OK [00:18:35]wFMCommunicate request_size=4 [00:18:35]MH_SAM_APDU [00:18:35]CAPDU: 80 17 00 00 [00:18:35]Write to MH i2c: E2 08 00 95 29 80 17 00 00 00 00 00 00 3E [00:18:35]Write i2c OK [00:18:35]MH_I2C_Read... [00:18:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:35]Read from MH i2c: E2 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: E2 FD 00 [00:18:35]MH_I2C_Read... [00:18:35]Read from MH i2c: E2 FD 00 95 29 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 C3 [00:18:35]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:18:35]wFMCommunicate OK [00:18:35]wFMCommunicate request_size=4 [00:18:35]MH_SAM_APDU [00:18:35]CAPDU: 80 17 00 00 [00:18:35]Write to MH i2c: E2 08 00 96 29 80 17 00 00 00 00 00 00 3F [00:18:35]Write i2c OK [00:18:35]MH_I2C_Read... [00:18:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:18:36]Read from MH i2c: E2 [00:18:36]MH_I2C_Read... [00:18:36]Read from MH i2c: E2 DE 00 [00:18:36]MH_I2C_Read... [00:18:36]Read from MH i2c: E2 DE 00 96 29 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1E [00:18:36]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:18:36]wFMCommunicate OK [00:18:36]SAM_PROTO_GetFMData done [00:18:36]requested_item fm.sale_refund.total is exist - process it [00:18:36]requested_item fm.buy.total is exist - process it [00:18:36]requested_item shift.sale.total is exist - process it [00:18:36]SAM_PROTO_GetShiftData [00:18:36]wFMCommunicate request_size=4 [00:18:36]MH_SAM_APDU [00:18:36]CAPDU: 80 13 02 00 [00:18:36]Write to MH i2c: E2 08 00 97 29 80 13 02 00 00 00 00 00 3E [00:18:36]Write i2c OK [00:18:36]MH_I2C_Read... [00:18:36]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:18:36]Read from MH i2c: E2 [00:18:36]MH_I2C_Read... [00:18:36]Read from MH i2c: E2 FD 00 [00:18:36]MH_I2C_Read... [00:18:36]Read from MH i2c: E2 FD 00 97 29 00 AE 04 AA 04 AA 04 6E 04 04 00 65 00 00 00 69 04 9B 00 6F 04 04 00 65 00 00 00 B1 04 03 00 A4 07 1D 70 04 03 00 B4 6C 1B 72 04 03 00 F0 9A 01 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 33 15 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 B2 41 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:18:36]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 65 00 00 00 69 04 9B 00 6F 04 04 00 65 00 00 00 B1 04 03 00 A4 07 1D 70 04 03 00 B4 6C 1B 72 04 03 00 F0 9A 01 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 33 15 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 B2 41 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:18:36]wFMCommunicate OK [00:18:36]wFMCommunicate request_size=4 [00:18:36]MH_SAM_APDU [00:18:36]CAPDU: 80 17 00 00 [00:18:36]Write to MH i2c: E2 08 00 98 29 80 17 00 00 00 00 00 00 41 [00:18:36]Write i2c OK [00:18:36]MH_I2C_Read... [00:18:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:36]Read from MH i2c: E2 [00:18:36]MH_I2C_Read... [00:18:36]Read from MH i2c: E2 FD 00 [00:18:36]MH_I2C_Read... [00:18:36]Read from MH i2c: E2 FD 00 98 29 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 63 [00:18:36]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:18:36]wFMCommunicate OK [00:18:36]wFMCommunicate request_size=4 [00:18:36]MH_SAM_APDU [00:18:36]CAPDU: 80 17 00 00 [00:18:36]Write to MH i2c: E2 08 00 99 29 80 17 00 00 00 00 00 00 42 [00:18:36]Write i2c OK [00:18:36]MH_I2C_Read... [00:18:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:37]Read from MH i2c: E2 [00:18:37]MH_I2C_Read... [00:18:37]Read from MH i2c: E2 FD 00 [00:18:37]MH_I2C_Read... [00:18:37]Read from MH i2c: E2 FD 00 99 29 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F9 [00:18:37]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:18:37]wFMCommunicate OK [00:18:37]wFMCommunicate request_size=4 [00:18:37]MH_SAM_APDU [00:18:37]CAPDU: 80 17 00 00 [00:18:37]Write to MH i2c: E2 08 00 9A 29 80 17 00 00 00 00 00 00 43 [00:18:37]Write i2c OK [00:18:37]MH_I2C_Read... [00:18:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:37]Read from MH i2c: E2 [00:18:37]MH_I2C_Read... [00:18:37]Read from MH i2c: E2 FD 00 [00:18:37]MH_I2C_Read... [00:18:37]Read from MH i2c: E2 FD 00 9A 29 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 B5 [00:18:37]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:18:37]wFMCommunicate OK [00:18:37]wFMCommunicate request_size=4 [00:18:37]MH_SAM_APDU [00:18:37]CAPDU: 80 17 00 00 [00:18:37]Write to MH i2c: E2 08 00 9B 29 80 17 00 00 00 00 00 00 44 [00:18:37]Write i2c OK [00:18:37]MH_I2C_Read... [00:18:37]OFD Sender: No OFD packet to send [00:18:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:18:37]Read from MH i2c: E2 [00:18:37]MH_I2C_Read... [00:18:37]Read from MH i2c: E2 CB 00 [00:18:37]MH_I2C_Read... [00:18:37]Read from MH i2c: E2 CB 00 9B 29 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 2D [00:18:37]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:18:37]wFMCommunicate OK [00:18:37]SAM_PROTO_GetShiftData done [00:18:37]requested_item shift.sale.total_cash is exist - process it [00:18:37]requested_item shift.sale_refund.total is exist - process it [00:18:37]requested_item shift.sale_refund.total_cash is exist - process it [00:18:37]requested_item shift.buy.total is exist - process it [00:18:37]requested_item shift.buy.total_cash is exist - process it [00:18:37]produce_requested_data done [00:18:37]produce_requested_data return {"fm.sale.total":5971214.00,"fm.sale_refund.total":17469.00,"fm.buy.total":0.00,"shift.sale.total":19025.00,"shift.sale.total_cash":17973.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:18:37]process_action_free get_value [00:18:37]json_value_free [00:18:37]json_value_free done [00:18:37]process_json_proto returns [00:18:37]Send response to host [00:18:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":5971214.00,"fm.sale_refund.total":17469.00,"fm.buy.total":0.00,"shift.sale.total":19025.00,"shift.sale.total_cash":17973.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:18:37]free response buf [00:18:37]execute_script done [00:18:37]execute_script returns [00:18:37]free content buf [00:18:37]Sock 8.Close socket [00:18:37]Sock 8.Thread stoped [00:18:37]accept exits with 9 [00:18:37]New connection [00:18:37]New thread 3066785124 created [00:18:37]Thread 3066928484 joined [00:18:37]Waiting for new connection... [00:18:37] Sock 9.Parse request [00:18:37]Sock 9.Check first char [00:18:37]Sock 9.First char is OK [00:18:37]request: POST /json_proto HTTP/1.0 [00:18:37]Method: POST [00:18:37]URL: /json_proto [00:18:37]Method is POST - this is cgi request [00:18:37]url: /json_proto [00:18:37]query_string will be loaded in cgi processing [00:18:37]execute_cgi json_proto POST (null) [00:18:37]execute_cgi path=json_proto method=POST [00:18:37]POST find Content-Length [00:18:37]Host: 172.17.45.8:8080 [00:18:37]Content-Length: 331 [00:18:37]Content-Type: application/json [00:18:37] [00:18:37]POST finish read [00:18:37]Found Content-Length = 331 [00:18: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" ] } } [00:18:37]execute_script... [00:18: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" ] } } [00:18:37]POST & json_proto [00:18:37]process_json_proto [00:18:37]json parsed OK: [00:18:37]protocol is kg_v1.0 [00:18:37]action value=get_value [00:18:37]process_action get_value [00:18:37]cmd_get_value [00:18:37]process_action get_value done [00:18:37]requested_data is exist [00:18:37]produce_requested_data [00:18:37]requested_item fm.sale.total is exist - process it [00:18:37]SAM_PROTO_GetFMData [00:18:37]wFMCommunicate request_size=4 [00:18:37]MH_SAM_APDU [00:18:37]CAPDU: 80 13 03 00 [00:18:37]Write to MH i2c: E2 08 00 9C 29 80 13 03 00 00 00 00 00 44 [00:18:37]Write i2c OK [00:18:37]MH_I2C_Read... [00:18:38]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:18:38]Read from MH i2c: E2 [00:18:38]MH_I2C_Read... [00:18:38]Read from MH i2c: E2 FD 00 [00:18:38]MH_I2C_Read... [00:18:38]Read from MH i2c: E2 FD 00 9C 29 00 C1 04 85 04 BD 04 6E 04 04 00 DA 66 00 00 69 04 A0 00 6F 04 04 00 AC 66 00 00 B1 04 04 00 78 59 97 23 70 04 04 00 AC 7C 41 22 72 04 04 00 CC DC 55 01 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 80 89 C7 03 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 09 95 50 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 2E 00 00 00 B1 04 03 00 D4 A7 1A 70 04 03 00 04 A5 15 72 04 03 00 D0 02 05 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 AB D4 02 EF 03 09 00 F6 03 90 00 4D [00:18:38]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 DA 66 00 00 69 04 A0 00 6F 04 04 00 AC 66 00 00 B1 04 04 00 78 59 97 23 70 04 04 00 AC 7C 41 22 72 04 04 00 CC DC 55 01 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 80 89 C7 03 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 09 95 50 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 2E 00 00 00 B1 04 03 00 D4 A7 1A 70 04 03 00 04 A5 15 72 04 03 00 D0 02 05 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 AB D4 02 EF 03 09 00 F6 03 90 00 [00:18:38]wFMCommunicate OK [00:18:38]wFMCommunicate request_size=4 [00:18:38]MH_SAM_APDU [00:18:38]CAPDU: 80 17 00 00 [00:18:38]Write to MH i2c: E2 08 00 9D 29 80 17 00 00 00 00 00 00 46 [00:18:38]Write i2c OK [00:18:38]MH_I2C_Read... [00:18:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:38]Read from MH i2c: E2 [00:18:38]MH_I2C_Read... [00:18:38]Read from MH i2c: E2 FD 00 [00:18:38]MH_I2C_Read... [00:18:38]Read from MH i2c: E2 FD 00 9D 29 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 13 [00:18:38]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:18:38]wFMCommunicate OK [00:18:38]wFMCommunicate request_size=4 [00:18:38]MH_SAM_APDU [00:18:38]CAPDU: 80 17 00 00 [00:18:38]Write to MH i2c: E2 08 00 9E 29 80 17 00 00 00 00 00 00 47 [00:18:38]Write i2c OK [00:18:38]MH_I2C_Read... [00:18:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:39]Read from MH i2c: E2 [00:18:39]MH_I2C_Read... [00:18:39]Read from MH i2c: E2 FD 00 [00:18:39]MH_I2C_Read... [00:18:39]Read from MH i2c: E2 FD 00 9E 29 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 E7 [00:18:39]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:18:39]wFMCommunicate OK [00:18:39]wFMCommunicate request_size=4 [00:18:39]MH_SAM_APDU [00:18:39]CAPDU: 80 17 00 00 [00:18:39]Write to MH i2c: E2 08 00 9F 29 80 17 00 00 00 00 00 00 48 [00:18:39]Write i2c OK [00:18:39]MH_I2C_Read... [00:18:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:39]Read from MH i2c: E2 [00:18:39]MH_I2C_Read... [00:18:39]Read from MH i2c: E2 FD 00 [00:18:39]MH_I2C_Read... [00:18:39]Read from MH i2c: E2 FD 00 9F 29 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 CD [00:18:39]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:18:39]wFMCommunicate OK [00:18:39]wFMCommunicate request_size=4 [00:18:39]MH_SAM_APDU [00:18:39]CAPDU: 80 17 00 00 [00:18:39]Write to MH i2c: E2 08 00 A0 29 80 17 00 00 00 00 00 00 49 [00:18:39]Write i2c OK [00:18:39]MH_I2C_Read... [00:18:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:18:39]Read from MH i2c: E2 [00:18:39]MH_I2C_Read... [00:18:39]Read from MH i2c: E2 DE 00 [00:18:39]MH_I2C_Read... [00:18:39]Read from MH i2c: E2 DE 00 A0 29 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 28 [00:18:39]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:18:39]wFMCommunicate OK [00:18:39]SAM_PROTO_GetFMData done [00:18:39]requested_item fm.sale_refund.total is exist - process it [00:18:39]requested_item fm.buy.total is exist - process it [00:18:39]requested_item shift.sale.total is exist - process it [00:18:39]SAM_PROTO_GetShiftData [00:18:39]wFMCommunicate request_size=4 [00:18:39]MH_SAM_APDU [00:18:39]CAPDU: 80 13 02 00 [00:18:39]Write to MH i2c: E2 08 00 A1 29 80 13 02 00 00 00 00 00 48 [00:18:39]Write i2c OK [00:18:39]MH_I2C_Read... [00:18:40]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:18:40]Read from MH i2c: E2 [00:18:40]MH_I2C_Read... [00:18:40]Read from MH i2c: E2 FD 00 [00:18:40]MH_I2C_Read... [00:18:40]Read from MH i2c: E2 FD 00 A1 29 00 AE 04 AA 04 AA 04 6E 04 04 00 65 00 00 00 69 04 9B 00 6F 04 04 00 65 00 00 00 B1 04 03 00 A4 07 1D 70 04 03 00 B4 6C 1B 72 04 03 00 F0 9A 01 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 33 15 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 B2 41 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F [00:18:40]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 65 00 00 00 69 04 9B 00 6F 04 04 00 65 00 00 00 B1 04 03 00 A4 07 1D 70 04 03 00 B4 6C 1B 72 04 03 00 F0 9A 01 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 33 15 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 B2 41 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:18:40]wFMCommunicate OK [00:18:40]wFMCommunicate request_size=4 [00:18:40]MH_SAM_APDU [00:18:40]CAPDU: 80 17 00 00 [00:18:40]Write to MH i2c: E2 08 00 A2 29 80 17 00 00 00 00 00 00 4B [00:18:40]Write i2c OK [00:18:40]MH_I2C_Read... [00:18:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:40]Read from MH i2c: E2 [00:18:40]MH_I2C_Read... [00:18:40]Read from MH i2c: E2 FD 00 [00:18:40]MH_I2C_Read... [00:18:40]Read from MH i2c: E2 FD 00 A2 29 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 6D [00:18:40]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [00:18:40]wFMCommunicate OK [00:18:40]wFMCommunicate request_size=4 [00:18:40]MH_SAM_APDU [00:18:40]CAPDU: 80 17 00 00 [00:18:40]Write to MH i2c: E2 08 00 A3 29 80 17 00 00 00 00 00 00 4C [00:18:40]Write i2c OK [00:18:40]MH_I2C_Read... [00:18:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:41]Read from MH i2c: E2 [00:18:41]MH_I2C_Read... [00:18:41]Read from MH i2c: E2 FD 00 [00:18:41]MH_I2C_Read... [00:18:41]Read from MH i2c: E2 FD 00 A3 29 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 03 [00:18:41]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [00:18:41]wFMCommunicate OK [00:18:41]wFMCommunicate request_size=4 [00:18:41]MH_SAM_APDU [00:18:41]CAPDU: 80 17 00 00 [00:18:41]Write to MH i2c: E2 08 00 A4 29 80 17 00 00 00 00 00 00 4D [00:18:41]Write i2c OK [00:18:41]MH_I2C_Read... [00:18:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:41]Read from MH i2c: E2 [00:18:41]MH_I2C_Read... [00:18:41]Read from MH i2c: E2 FD 00 [00:18:41]MH_I2C_Read... [00:18:41]Read from MH i2c: E2 FD 00 A4 29 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 BF [00:18:41]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [00:18:41]wFMCommunicate OK [00:18:41]wFMCommunicate request_size=4 [00:18:41]MH_SAM_APDU [00:18:41]CAPDU: 80 17 00 00 [00:18:41]Write to MH i2c: E2 08 00 A5 29 80 17 00 00 00 00 00 00 4E [00:18:41]Write i2c OK [00:18:41]MH_I2C_Read... [00:18:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:18:42]Read from MH i2c: E2 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: E2 CB 00 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: E2 CB 00 A5 29 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 37 [00:18:42]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:18:42]wFMCommunicate OK [00:18:42]SAM_PROTO_GetShiftData done [00:18:42]requested_item shift.sale.total_cash is exist - process it [00:18:42]requested_item shift.sale_refund.total is exist - process it [00:18:42]requested_item shift.sale_refund.total_cash is exist - process it [00:18:42]requested_item shift.buy.total is exist - process it [00:18:42]requested_item shift.buy.total_cash is exist - process it [00:18:42]produce_requested_data done [00:18:42]produce_requested_data return {"fm.sale.total":5971214.00,"fm.sale_refund.total":17469.00,"fm.buy.total":0.00,"shift.sale.total":19025.00,"shift.sale.total_cash":17973.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:18:42]process_action_free get_value [00:18:42]json_value_free [00:18:42]json_value_free done [00:18:42]process_json_proto returns [00:18:42]Send response to host [00:18:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":5971214.00,"fm.sale_refund.total":17469.00,"fm.buy.total":0.00,"shift.sale.total":19025.00,"shift.sale.total_cash":17973.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:18:42]free response buf [00:18:42]execute_script done [00:18:42]execute_script returns [00:18:42]free content buf [00:18:42]Sock 9.Close socket [00:18:42]Sock 9.Thread stoped [00:18:42]accept exits with 8 [00:18:42]New connection [00:18:42]New thread 3066928484 created [00:18:42]Thread 3066785124 joined [00:18:42]Waiting for new connection... [00:18:42] Sock 8.Parse request [00:18:42]Sock 8.Check first char [00:18:42]Sock 8.First char is OK [00:18:42]request: POST /json_proto HTTP/1.0 [00:18:42]Method: POST [00:18:42]URL: /json_proto [00:18:42]Method is POST - this is cgi request [00:18:42]url: /json_proto [00:18:42]query_string will be loaded in cgi processing [00:18:42]execute_cgi json_proto POST (null) [00:18:42]execute_cgi path=json_proto method=POST [00:18:42]POST find Content-Length [00:18:42]Host: 172.17.45.8:8080 [00:18:42]Content-Length: 251 [00:18:42]Content-Type: application/json [00:18:42] [00:18:42]POST finish read [00:18:42]Found Content-Length = 251 [00:18:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:42]execute_script... [00:18:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:42]POST & json_proto [00:18:42]process_json_proto [00:18:42]json parsed OK: [00:18:42]protocol is kg_v1.0 [00:18:42]action value=x_report [00:18:42]process_action x_report [00:18:42]cmd_x_report [00:18:42]MH_GetDate [00:18:42]Write to MH i2c: F0 00 00 A6 29 BE [00:18:42]Write i2c OK [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: F0 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: F0 09 00 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: F0 09 00 A6 29 00 6A 31 A8 66 A6 1F 7F 64 18 [00:18:42]GetLastDocTimeStamp 1722297326 [00:18:42]current date 1722298730 [00:18:42]FM_GetShiftState [00:18:42]SAM_PROTO_GetShiftState [00:18:42]wFMCommunicate request_size=4 [00:18:42]MH_SAM_APDU [00:18:42]CAPDU: 80 13 01 00 [00:18:42]Write to MH i2c: E2 08 00 A7 29 80 13 01 00 00 00 00 00 4D [00:18:42]Write i2c OK [00:18:42]MH_I2C_Read... [00:18:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:42]Read from MH i2c: E2 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: E2 0E 00 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: E2 0E 00 A7 29 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 CE [00:18:42]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [00:18:42]wFMCommunicate OK [00:18:42]SAM_PROTO_GetShiftState done [00:18:42]FM_GetShiftState done [00:18:42]KKMCreateXReportDocument [00:18:42]Load OK [00:18:42]Malloc new data [00:18:42]MH_GetDate [00:18:42]Write to MH i2c: F0 00 00 A8 29 C0 [00:18:42]Write i2c OK [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: F0 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: F0 09 00 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: F0 09 00 A8 29 00 6A 31 A8 66 A6 1F 7F 64 1A [00:18:42]Malloc new data [00:18:42]Malloc new data [00:18:42]wFMCommunicate request_size=4 [00:18:42]MH_SAM_APDU [00:18:42]CAPDU: 80 11 00 00 [00:18:42]Write to MH i2c: E2 08 00 A9 29 80 11 00 00 00 00 00 00 4C [00:18:42]Write i2c OK [00:18:42]MH_I2C_Read... [00:18:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:18:42]Read from MH i2c: E2 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: E2 17 00 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: E2 17 00 A9 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 A5 [00:18:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [00:18:42]wFMCommunicate OK [00:18:42]SAM_PROTO_GetFieldsCounters [00:18:42]wFMCommunicate request_size=4 [00:18:42]MH_SAM_APDU [00:18:42]CAPDU: 80 13 00 00 [00:18:42]Write to MH i2c: E2 08 00 AA 29 80 13 00 00 00 00 00 00 4F [00:18:42]Write i2c OK [00:18:42]MH_I2C_Read... [00:18:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:18:42]Read from MH i2c: E2 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: E2 62 00 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: E2 62 00 AA 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 3E 6A 00 00 0E 04 04 00 B2 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 01 [00:18:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 3E 6A 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:18:42]wFMCommunicate OK [00:18:42]SAM_PROTO_GetFieldsCounters done [00:18:42]Malloc new data [00:18:42]Malloc new data [00:18:42]Malloc new data [00:18:42]KKMCreateXReportDocument OK [00:18:42]KKMSetXReportData OK [00:18:42]KKMPrepareXReportFMData [00:18:42]SAM_PROTO_GetShiftData [00:18:42]wFMCommunicate request_size=4 [00:18:42]MH_SAM_APDU [00:18:42]CAPDU: 80 13 02 00 [00:18:42]Write to MH i2c: E2 08 00 AB 29 80 13 02 00 00 00 00 00 52 [00:18:42]Write i2c OK [00:18:42]MH_I2C_Read... [00:18:42]OFD Sender: No OFD packet to send [00:18:42]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:18:42]Read from MH i2c: E2 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: E2 FD 00 [00:18:42]MH_I2C_Read... [00:18:42]Read from MH i2c: E2 FD 00 AB 29 00 AE 04 AA 04 AA 04 6E 04 04 00 65 00 00 00 69 04 9B 00 6F 04 04 00 65 00 00 00 B1 04 03 00 A4 07 1D 70 04 03 00 B4 6C 1B 72 04 03 00 F0 9A 01 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 33 15 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 B2 41 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A9 [00:18:43]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 65 00 00 00 69 04 9B 00 6F 04 04 00 65 00 00 00 B1 04 03 00 A4 07 1D 70 04 03 00 B4 6C 1B 72 04 03 00 F0 9A 01 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 33 15 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 B2 41 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:18:43]wFMCommunicate OK [00:18:43]wFMCommunicate request_size=4 [00:18:43]MH_SAM_APDU [00:18:43]CAPDU: 80 17 00 00 [00:18:43]Write to MH i2c: E2 08 00 AC 29 80 17 00 00 00 00 00 00 55 [00:18:43]Write i2c OK [00:18:43]MH_I2C_Read... [00:18:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:43]Read from MH i2c: E2 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: E2 FD 00 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: E2 FD 00 AC 29 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 77 [00:18: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 [00:18:43]wFMCommunicate OK [00:18:43]wFMCommunicate request_size=4 [00:18:43]MH_SAM_APDU [00:18:43]CAPDU: 80 17 00 00 [00:18:43]Write to MH i2c: E2 08 00 AD 29 80 17 00 00 00 00 00 00 56 [00:18:43]Write i2c OK [00:18:43]MH_I2C_Read... [00:18:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:43]Read from MH i2c: E2 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: E2 FD 00 [00:18:43]MH_I2C_Read... [00:18:43]Read from MH i2c: E2 FD 00 AD 29 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0D [00:18: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 [00:18:44]wFMCommunicate OK [00:18:44]wFMCommunicate request_size=4 [00:18:44]MH_SAM_APDU [00:18:44]CAPDU: 80 17 00 00 [00:18:44]Write to MH i2c: E2 08 00 AE 29 80 17 00 00 00 00 00 00 57 [00:18:44]Write i2c OK [00:18:44]MH_I2C_Read... [00:18:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:44]Read from MH i2c: E2 [00:18:44]MH_I2C_Read... [00:18:44]Read from MH i2c: E2 FD 00 [00:18:44]MH_I2C_Read... [00:18:44]Read from MH i2c: E2 FD 00 AE 29 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 C9 [00:18: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 [00:18:44]wFMCommunicate OK [00:18:44]wFMCommunicate request_size=4 [00:18:44]MH_SAM_APDU [00:18:44]CAPDU: 80 17 00 00 [00:18:44]Write to MH i2c: E2 08 00 AF 29 80 17 00 00 00 00 00 00 58 [00:18:44]Write i2c OK [00:18:44]MH_I2C_Read... [00:18:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:18:44]Read from MH i2c: E2 [00:18:44]MH_I2C_Read... [00:18:44]Read from MH i2c: E2 CB 00 [00:18:44]MH_I2C_Read... [00:18:44]Read from MH i2c: E2 CB 00 AF 29 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 41 [00:18: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 [00:18:44]wFMCommunicate OK [00:18:44]SAM_PROTO_GetShiftData done [00:18:44]1194 (1194) - счетчики итогов смены [00:18:44] 1134 (4) - 101 - количество чеков со всеми признаками расчетов [00:18:44] 1129 (155) - счетчики операций «приход» [00:18:44] 1135 (4) - 101 - количество чеков по признаку расчетов [00:18:44] 1201 (3) - 19025.00 - общая итоговая сумма в чеках [00:18:44] 1136 (3) - 17973.00 - итоговая сумма в чеках наличными [00:18:44] 1138 (3) - 1052.00 - итоговая сумма в чеках безналичными [00:18:44] 1024 (122) - суммы налогов [00:18:44] 1006 (9) - суммы НДС [00:18:44] 1010 (1) - 0% - код ставки НДС [00:18:44] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:44] 1006 (12) - суммы НДС [00:18:44] 1010 (1) - 12% - код ставки НДС [00:18:44] 1011 (3) - 2020.35 - сумма НДС по ставке [00:18:44] 1007 (9) - суммы НСП [00:18:44] 1014 (1) - 0% - код ставки НСП [00:18:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:44] 1007 (11) - суммы НСП [00:18:44] 1014 (1) - 1% - код ставки НСП [00:18:44] 1015 (2) - 168.18 - сумма НСП по ставке [00:18:44] 1007 (9) - суммы НСП [00:18:44] 1014 (1) - 2% - код ставки НСП [00:18:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:44] 1007 (9) - суммы НСП [00:18:44] 1014 (1) - 3% - код ставки НСП [00:18:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:44] 1007 (9) - суммы НСП [00:18:44] 1014 (1) - 5% - код ставки НСП [00:18:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:44] 1007 (9) - суммы НСП [00:18:44] 1014 (1) - 0,50% - код ставки НСП [00:18:44] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:45] 1007 (9) - суммы НСП [00:18:45] 1014 (1) - 1,50% - код ставки НСП [00:18:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:45] 1130 (141) - счетчики операций «возврат прихода» [00:18:45] 1135 (4) - 0 - количество чеков по признаку расчетов [00:18:45] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:18:45] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:18:45] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:18:45] 1024 (117) - суммы налогов [00:18:45] 1006 (9) - суммы НДС [00:18:45] 1010 (1) - 0% - код ставки НДС [00:18:45] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:45] 1006 (9) - суммы НДС [00:18:45] 1010 (1) - 12% - код ставки НДС [00:18:45] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:45] 1007 (9) - суммы НСП [00:18:45] 1014 (1) - 0% - код ставки НСП [00:18:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:45] 1007 (9) - суммы НСП [00:18:45] 1014 (1) - 1% - код ставки НСП [00:18:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:45] 1007 (9) - суммы НСП [00:18:45] 1014 (1) - 2% - код ставки НСП [00:18:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:45] 1007 (9) - суммы НСП [00:18:45] 1014 (1) - 3% - код ставки НСП [00:18:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:45] 1007 (9) - суммы НСП [00:18:45] 1014 (1) - 5% - код ставки НСП [00:18:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:45] 1007 (9) - суммы НСП [00:18:45] 1014 (1) - 0,50% - код ставки НСП [00:18:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:45] 1007 (9) - суммы НСП [00:18:45] 1014 (1) - 1,50% - код ставки НСП [00:18:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:45] 1131 (141) - счетчики операций «расход» [00:18:45] 1135 (4) - 0 - количество чеков по признаку расчетов [00:18:45] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:18:45] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:18:45] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:18:45] 1024 (117) - суммы налогов [00:18:45] 1006 (9) - суммы НДС [00:18:45] 1010 (1) - 0% - код ставки НДС [00:18:45] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:45] 1006 (9) - суммы НДС [00:18:45] 1010 (1) - 12% - код ставки НДС [00:18:45] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:45] 1007 (9) - суммы НСП [00:18:45] 1014 (1) - 0% - код ставки НСП [00:18:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:45] 1007 (9) - суммы НСП [00:18:45] 1014 (1) - 1% - код ставки НСП [00:18:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:45] 1007 (9) - суммы НСП [00:18:45] 1014 (1) - 2% - код ставки НСП [00:18:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:45] 1007 (9) - суммы НСП [00:18:45] 1014 (1) - 3% - код ставки НСП [00:18:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:45] 1007 (9) - суммы НСП [00:18:45] 1014 (1) - 5% - код ставки НСП [00:18:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:45] 1007 (9) - суммы НСП [00:18:45] 1014 (1) - 0,50% - код ставки НСП [00:18:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:45] 1007 (9) - суммы НСП [00:18:45] 1014 (1) - 1,50% - код ставки НСП [00:18:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:45] 1132 (141) - счетчики операций «возврат расхода» [00:18:45] 1135 (4) - 0 - количество чеков по признаку расчетов [00:18:45] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:18:45] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:18:45] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:18:45] 1024 (117) - суммы налогов [00:18:45] 1006 (9) - суммы НДС [00:18:45] 1010 (1) - 0% - код ставки НДС [00:18:45] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:45] 1006 (9) - суммы НДС [00:18:45] 1010 (1) - 12% - код ставки НДС [00:18:45] 1011 (0) - 0.00 - сумма НДС по ставке [00:18:45] 1007 (9) - суммы НСП [00:18:45] 1014 (1) - 0% - код ставки НСП [00:18:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:45] 1007 (9) - суммы НСП [00:18:45] 1014 (1) - 1% - код ставки НСП [00:18:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:45] 1007 (9) - суммы НСП [00:18:45] 1014 (1) - 2% - код ставки НСП [00:18:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:45] 1007 (9) - суммы НСП [00:18:45] 1014 (1) - 3% - код ставки НСП [00:18:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:45] 1007 (9) - суммы НСП [00:18:45] 1014 (1) - 5% - код ставки НСП [00:18:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:45] 1007 (9) - суммы НСП [00:18:45] 1014 (1) - 0,50% - код ставки НСП [00:18:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:45] 1007 (9) - суммы НСП [00:18:45] 1014 (1) - 1,50% - код ставки НСП [00:18:45] 1015 (0) - 0.00 - сумма НСП по ставке [00:18:45] 1133 (588) - - счетчики коррекции - не используются [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1194 (04AA) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1134 (046E) [00:18:45]Malloc new data [00:18:45]Processing tag 1129 (0469) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1135 (046F) [00:18:45]Malloc new data [00:18:45]Processing tag 1201 (04B1) [00:18:45]Malloc new data [00:18:45]Processing tag 1136 (0470) [00:18:45]Malloc new data [00:18:45]Processing tag 1138 (0472) [00:18:45]Malloc new data [00:18:45]Processing tag 1024 (0400) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1006 (03EE) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1010 (03F2) [00:18:45]Malloc new data [00:18:45]Processing tag 1011 (03F3) [00:18:45]Malloc new data [00:18:45]SetTLVBufToDocument err=0 [00:18:45]Processing tag 1006 (03EE) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1010 (03F2) [00:18:45]Malloc new data [00:18:45]Processing tag 1011 (03F3) [00:18:45]Malloc new data [00:18:45]SetTLVBufToDocument err=0 [00:18:45]Processing tag 1007 (03EF) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1014 (03F6) [00:18:45]Malloc new data [00:18:45]Processing tag 1015 (03F7) [00:18:45]Malloc new data [00:18:45]SetTLVBufToDocument err=0 [00:18:45]Processing tag 1007 (03EF) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1014 (03F6) [00:18:45]Malloc new data [00:18:45]Processing tag 1015 (03F7) [00:18:45]Malloc new data [00:18:45]SetTLVBufToDocument err=0 [00:18:45]Processing tag 1007 (03EF) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1014 (03F6) [00:18:45]Malloc new data [00:18:45]Processing tag 1015 (03F7) [00:18:45]Malloc new data [00:18:45]SetTLVBufToDocument err=0 [00:18:45]Processing tag 1007 (03EF) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1014 (03F6) [00:18:45]Malloc new data [00:18:45]Processing tag 1015 (03F7) [00:18:45]Malloc new data [00:18:45]SetTLVBufToDocument err=0 [00:18:45]Processing tag 1007 (03EF) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1014 (03F6) [00:18:45]Malloc new data [00:18:45]Processing tag 1015 (03F7) [00:18:45]Malloc new data [00:18:45]SetTLVBufToDocument err=0 [00:18:45]Processing tag 1007 (03EF) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1014 (03F6) [00:18:45]Malloc new data [00:18:45]Processing tag 1015 (03F7) [00:18:45]Malloc new data [00:18:45]SetTLVBufToDocument err=0 [00:18:45]Processing tag 1007 (03EF) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1014 (03F6) [00:18:45]Malloc new data [00:18:45]Processing tag 1015 (03F7) [00:18:45]Malloc new data [00:18:45]SetTLVBufToDocument err=0 [00:18:45]SetTLVBufToDocument err=0 [00:18:45]SetTLVBufToDocument err=0 [00:18:45]Processing tag 1130 (046A) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1135 (046F) [00:18:45]Malloc new data [00:18:45]Processing tag 1201 (04B1) [00:18:45]Malloc new data [00:18:45]Processing tag 1136 (0470) [00:18:45]Malloc new data [00:18:45]Processing tag 1138 (0472) [00:18:45]Malloc new data [00:18:45]Processing tag 1024 (0400) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1006 (03EE) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1010 (03F2) [00:18:45]Malloc new data [00:18:45]Processing tag 1011 (03F3) [00:18:45]Malloc new data [00:18:45]SetTLVBufToDocument err=0 [00:18:45]Processing tag 1006 (03EE) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1010 (03F2) [00:18:45]Malloc new data [00:18:45]Processing tag 1011 (03F3) [00:18:45]Malloc new data [00:18:45]SetTLVBufToDocument err=0 [00:18:45]Processing tag 1007 (03EF) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1014 (03F6) [00:18:45]Malloc new data [00:18:45]Processing tag 1015 (03F7) [00:18:45]Malloc new data [00:18:45]SetTLVBufToDocument err=0 [00:18:45]Processing tag 1007 (03EF) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1014 (03F6) [00:18:45]Malloc new data [00:18:45]Processing tag 1015 (03F7) [00:18:45]Malloc new data [00:18:45]SetTLVBufToDocument err=0 [00:18:45]Processing tag 1007 (03EF) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1014 (03F6) [00:18:45]Malloc new data [00:18:45]Processing tag 1015 (03F7) [00:18:45]Malloc new data [00:18:45]SetTLVBufToDocument err=0 [00:18:45]Processing tag 1007 (03EF) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1014 (03F6) [00:18:45]Malloc new data [00:18:45]Processing tag 1015 (03F7) [00:18:45]Malloc new data [00:18:45]SetTLVBufToDocument err=0 [00:18:45]Processing tag 1007 (03EF) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1014 (03F6) [00:18:45]Malloc new data [00:18:45]Processing tag 1015 (03F7) [00:18:45]Malloc new data [00:18:45]SetTLVBufToDocument err=0 [00:18:45]Processing tag 1007 (03EF) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1014 (03F6) [00:18:45]Malloc new data [00:18:45]Processing tag 1015 (03F7) [00:18:45]Malloc new data [00:18:45]SetTLVBufToDocument err=0 [00:18:45]Processing tag 1007 (03EF) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1014 (03F6) [00:18:45]Malloc new data [00:18:45]Processing tag 1015 (03F7) [00:18:45]Malloc new data [00:18:45]SetTLVBufToDocument err=0 [00:18:45]SetTLVBufToDocument err=0 [00:18:45]SetTLVBufToDocument err=0 [00:18:45]Processing tag 1131 (046B) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1135 (046F) [00:18:45]Malloc new data [00:18:45]Processing tag 1201 (04B1) [00:18:45]Malloc new data [00:18:45]Processing tag 1136 (0470) [00:18:45]Malloc new data [00:18:45]Processing tag 1138 (0472) [00:18:45]Malloc new data [00:18:45]Processing tag 1024 (0400) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1006 (03EE) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1010 (03F2) [00:18:45]Malloc new data [00:18:45]Processing tag 1011 (03F3) [00:18:45]Malloc new data [00:18:45]SetTLVBufToDocument err=0 [00:18:45]Processing tag 1006 (03EE) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1010 (03F2) [00:18:45]Malloc new data [00:18:45]Processing tag 1011 (03F3) [00:18:45]Malloc new data [00:18:45]SetTLVBufToDocument err=0 [00:18:45]Processing tag 1007 (03EF) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1014 (03F6) [00:18:45]Malloc new data [00:18:45]Processing tag 1015 (03F7) [00:18:45]Malloc new data [00:18:45]SetTLVBufToDocument err=0 [00:18:45]Processing tag 1007 (03EF) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1014 (03F6) [00:18:45]Malloc new data [00:18:45]Processing tag 1015 (03F7) [00:18:45]Malloc new data [00:18:45]SetTLVBufToDocument err=0 [00:18:45]Processing tag 1007 (03EF) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1014 (03F6) [00:18:45]Malloc new data [00:18:45]Processing tag 1015 (03F7) [00:18:45]Malloc new data [00:18:45]SetTLVBufToDocument err=0 [00:18:45]Processing tag 1007 (03EF) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1014 (03F6) [00:18:45]Malloc new data [00:18:45]Processing tag 1015 (03F7) [00:18:45]Malloc new data [00:18:45]SetTLVBufToDocument err=0 [00:18:45]Processing tag 1007 (03EF) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1014 (03F6) [00:18:45]Malloc new data [00:18:45]Processing tag 1015 (03F7) [00:18:45]Malloc new data [00:18:45]SetTLVBufToDocument err=0 [00:18:45]Processing tag 1007 (03EF) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1014 (03F6) [00:18:45]Malloc new data [00:18:45]Processing tag 1015 (03F7) [00:18:45]Malloc new data [00:18:45]SetTLVBufToDocument err=0 [00:18:45]Processing tag 1007 (03EF) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1014 (03F6) [00:18:45]Malloc new data [00:18:45]Processing tag 1015 (03F7) [00:18:45]Malloc new data [00:18:45]SetTLVBufToDocument err=0 [00:18:45]SetTLVBufToDocument err=0 [00:18:45]SetTLVBufToDocument err=0 [00:18:45]Processing tag 1132 (046C) [00:18:45]Load OK [00:18:45]SetTLVBufToDocument [00:18:45]Processing tag 1135 (046F) [00:18:45]Malloc new data [00:18:46]Processing tag 1201 (04B1) [00:18:46]Malloc new data [00:18:46]Processing tag 1136 (0470) [00:18:46]Malloc new data [00:18:46]Processing tag 1138 (0472) [00:18:46]Malloc new data [00:18:46]Processing tag 1024 (0400) [00:18:46]Load OK [00:18:46]SetTLVBufToDocument [00:18:46]Processing tag 1006 (03EE) [00:18:46]Load OK [00:18:46]SetTLVBufToDocument [00:18:46]Processing tag 1010 (03F2) [00:18:46]Malloc new data [00:18:46]Processing tag 1011 (03F3) [00:18:46]Malloc new data [00:18:46]SetTLVBufToDocument err=0 [00:18:46]Processing tag 1006 (03EE) [00:18:46]Load OK [00:18:46]SetTLVBufToDocument [00:18:46]Processing tag 1010 (03F2) [00:18:46]Malloc new data [00:18:46]Processing tag 1011 (03F3) [00:18:46]Malloc new data [00:18:46]SetTLVBufToDocument err=0 [00:18:46]Processing tag 1007 (03EF) [00:18:46]Load OK [00:18:46]SetTLVBufToDocument [00:18:46]Processing tag 1014 (03F6) [00:18:46]Malloc new data [00:18:46]Processing tag 1015 (03F7) [00:18:46]Malloc new data [00:18:46]SetTLVBufToDocument err=0 [00:18:46]Processing tag 1007 (03EF) [00:18:46]Load OK [00:18:46]SetTLVBufToDocument [00:18:46]Processing tag 1014 (03F6) [00:18:46]Malloc new data [00:18:46]Processing tag 1015 (03F7) [00:18:46]Malloc new data [00:18:46]SetTLVBufToDocument err=0 [00:18:46]Processing tag 1007 (03EF) [00:18:46]Load OK [00:18:46]SetTLVBufToDocument [00:18:46]Processing tag 1014 (03F6) [00:18:46]Malloc new data [00:18:46]Processing tag 1015 (03F7) [00:18:46]Malloc new data [00:18:46]SetTLVBufToDocument err=0 [00:18:46]Processing tag 1007 (03EF) [00:18:46]Load OK [00:18:46]SetTLVBufToDocument [00:18:46]Processing tag 1014 (03F6) [00:18:46]Malloc new data [00:18:46]Processing tag 1015 (03F7) [00:18:46]Malloc new data [00:18:46]SetTLVBufToDocument err=0 [00:18:46]Processing tag 1007 (03EF) [00:18:46]Load OK [00:18:46]SetTLVBufToDocument [00:18:46]Processing tag 1014 (03F6) [00:18:46]Malloc new data [00:18:46]Processing tag 1015 (03F7) [00:18:46]Malloc new data [00:18:46]SetTLVBufToDocument err=0 [00:18:46]Processing tag 1007 (03EF) [00:18:46]Load OK [00:18:46]SetTLVBufToDocument [00:18:46]Processing tag 1014 (03F6) [00:18:46]Malloc new data [00:18:46]Processing tag 1015 (03F7) [00:18:46]Malloc new data [00:18:46]SetTLVBufToDocument err=0 [00:18:46]Processing tag 1007 (03EF) [00:18:46]Load OK [00:18:46]SetTLVBufToDocument [00:18:46]Processing tag 1014 (03F6) [00:18:46]Malloc new data [00:18:46]Processing tag 1015 (03F7) [00:18:46]Malloc new data [00:18:46]SetTLVBufToDocument err=0 [00:18:46]SetTLVBufToDocument err=0 [00:18:46]SetTLVBufToDocument err=0 [00:18:46]Processing tag 1133 (046D) [00:18:46]Malloc new data [00:18:46]SetTLVBufToDocument err=0 [00:18:46]SetTLVBufToDocument err=0 [00:18:46]Malloc new data [00:18:46]SAM_PROTO_GetFMData [00:18:46]wFMCommunicate request_size=4 [00:18:46]MH_SAM_APDU [00:18:46]CAPDU: 80 13 03 00 [00:18:46]Write to MH i2c: E2 08 00 B0 29 80 13 03 00 00 00 00 00 58 [00:18:46]Write i2c OK [00:18:46]MH_I2C_Read... [00:18:46]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:18:46]Read from MH i2c: E2 [00:18:46]MH_I2C_Read... [00:18:46]Read from MH i2c: E2 FD 00 [00:18:46]MH_I2C_Read... [00:18:46]Read from MH i2c: E2 FD 00 B0 29 00 C1 04 85 04 BD 04 6E 04 04 00 DA 66 00 00 69 04 A0 00 6F 04 04 00 AC 66 00 00 B1 04 04 00 78 59 97 23 70 04 04 00 AC 7C 41 22 72 04 04 00 CC DC 55 01 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 80 89 C7 03 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 09 95 50 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 2E 00 00 00 B1 04 03 00 D4 A7 1A 70 04 03 00 04 A5 15 72 04 03 00 D0 02 05 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 AB D4 02 EF 03 09 00 F6 03 90 00 61 [00:18:46]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 DA 66 00 00 69 04 A0 00 6F 04 04 00 AC 66 00 00 B1 04 04 00 78 59 97 23 70 04 04 00 AC 7C 41 22 72 04 04 00 CC DC 55 01 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 80 89 C7 03 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 09 95 50 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 2E 00 00 00 B1 04 03 00 D4 A7 1A 70 04 03 00 04 A5 15 72 04 03 00 D0 02 05 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 AB D4 02 EF 03 09 00 F6 03 90 00 [00:18:46]wFMCommunicate OK [00:18:46]wFMCommunicate request_size=4 [00:18:46]MH_SAM_APDU [00:18:46]CAPDU: 80 17 00 00 [00:18:46]Write to MH i2c: E2 08 00 B1 29 80 17 00 00 00 00 00 00 5A [00:18:46]Write i2c OK [00:18:46]MH_I2C_Read... [00:18:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:47]Read from MH i2c: E2 [00:18:47]MH_I2C_Read... [00:18:47]Read from MH i2c: E2 FD 00 [00:18:47]MH_I2C_Read... [00:18:47]Read from MH i2c: E2 FD 00 B1 29 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 27 [00:18:47]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:18:47]wFMCommunicate OK [00:18:47]wFMCommunicate request_size=4 [00:18:47]MH_SAM_APDU [00:18:47]CAPDU: 80 17 00 00 [00:18:47]Write to MH i2c: E2 08 00 B2 29 80 17 00 00 00 00 00 00 5B [00:18:47]Write i2c OK [00:18:47]MH_I2C_Read... [00:18:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:47]Read from MH i2c: E2 [00:18:47]MH_I2C_Read... [00:18:47]Read from MH i2c: E2 FD 00 [00:18:47]MH_I2C_Read... [00:18:47]Read from MH i2c: E2 FD 00 B2 29 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 FB [00:18:47]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:18:47]wFMCommunicate OK [00:18:47]wFMCommunicate request_size=4 [00:18:47]MH_SAM_APDU [00:18:47]CAPDU: 80 17 00 00 [00:18:47]Write to MH i2c: E2 08 00 B3 29 80 17 00 00 00 00 00 00 5C [00:18:47]Write i2c OK [00:18:47]MH_I2C_Read... [00:18:47]OFD Sender: No OFD packet to send [00:18:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:18:48]Read from MH i2c: E2 [00:18:48]MH_I2C_Read... [00:18:48]Read from MH i2c: E2 FD 00 [00:18:48]MH_I2C_Read... [00:18:48]Read from MH i2c: E2 FD 00 B3 29 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 E1 [00:18:48]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:18:48]wFMCommunicate OK [00:18:48]wFMCommunicate request_size=4 [00:18:48]MH_SAM_APDU [00:18:48]CAPDU: 80 17 00 00 [00:18:48]Write to MH i2c: E2 08 00 B4 29 80 17 00 00 00 00 00 00 5D [00:18:48]Write i2c OK [00:18:48]MH_I2C_Read... [00:18:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:18:48]Read from MH i2c: E2 [00:18:48]MH_I2C_Read... [00:18:48]Read from MH i2c: E2 DE 00 [00:18:48]MH_I2C_Read... [00:18:48]Read from MH i2c: E2 DE 00 B4 29 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3C [00:18:48]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:18:48]wFMCommunicate OK [00:18:48]SAM_PROTO_GetFMData done [00:18:48]FM_GetFMData:85 04 BD 04 6E 04 04 00 DA 66 00 00 69 04 A0 00 6F 04 04 00 AC 66 00 00 B1 04 04 00 78 59 97 23 70 04 04 00 AC 7C 41 22 72 04 04 00 CC DC 55 01 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 80 89 C7 03 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 09 95 50 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 2E 00 00 00 B1 04 03 00 D4 A7 1A 70 04 03 00 04 A5 15 72 04 03 00 D0 02 05 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 AB D4 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:18:49]oper:6F 04 04 00 AC 66 00 00 B1 04 04 00 78 59 97 23 70 04 04 00 AC 7C 41 22 72 04 04 00 CC DC 55 01 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 80 89 C7 03 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 09 95 50 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:18:49]total:78 59 97 23 [00:18:49]Malloc new data [00:18:49]oper:6F 04 04 00 2E 00 00 00 B1 04 03 00 D4 A7 1A 70 04 03 00 04 A5 15 72 04 03 00 D0 02 05 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 AB D4 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:18:49]total:D4 A7 1A [00:18:49]Malloc new data [00:18:49]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:18:49]total: [00:18:49]Malloc new data [00:18:49]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:18:49]total: [00:18:49]Malloc new data [00:18:49]KKMPrepareXReportFMData err=0 [00:18:49]Х отчет ИНН: 02508201610067 Кассир: Казаков Ч. 30.07.2024 00:18 Смена: 266 РНМ: 0000000000092663 ЗНМ: 0300000043 СНО: Общий режим Всего чеков: 101 ИТОГИ ПРИХОД Чеков: 101 Общий итог: 19025.00 Итого наличными: 17973.00 Итого безнал.: 1052.00 НДС 0% : 0.00 НДС 12% : 2020.35 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 168.18 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 17973.00 НС Приход: 5971214.00 НС Возвр.Прихода: 17469.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874937 [00:18:49]StoreToDocumentArchive [00:18:49]MH_GetDate [00:18:49]Write to MH i2c: F0 00 00 B5 29 CD [00:18:49]Write i2c OK [00:18:49]MH_I2C_Read... [00:18:49]Read from MH i2c: F0 [00:18:49]MH_I2C_Read... [00:18:49]Read from MH i2c: F0 09 00 [00:18:49]MH_I2C_Read... [00:18:49]Read from MH i2c: F0 09 00 B5 29 00 71 31 A8 66 A6 1F 7F 64 2E [00:18:49]shift 266 fd 1722298737 [00:18:49]Create dir for shift 0266 [00:18:49]save to /storage/0266/doc_1722298737 [00:18:49]save last doc name /storage/0266/doc_1722298737 to /storage/kkm_last_doc_name [00:18:49]save OK [00:18:49]Clear old archive folders... [00:18:49]NVStorageSaveData kkm_last_timestamp [00:18:49]File name is /storage/kkm_last_timestamp [00:18:49]Write 4 bytes [00:18:49]NVStorageSaveData done [00:18:49]ExternCall_PrintAddStr [00:18:49]wPrintStart [00:18:49]Write to MH i2c: 01 00 00 B6 29 DF [00:18:49]Write i2c OK [00:18:49]MH_I2C_Read... [00:18:49]Read from MH i2c: 01 [00:18:49]MH_I2C_Read... [00:18:49]Read from MH i2c: 01 07 00 [00:18:49]MH_I2C_Read... [00:18:49]Read from MH i2c: 01 07 00 B6 29 00 00 00 00 00 FF 0F F4 [00:18:49]RasterBufferAndPrint [00:18:49]line Х отчет [00:18:49]line ИНН: 02508201610067 [00:18:49]line Кассир: Казаков Ч. [00:18:49]line 30.07.2024 00:18 [00:18:49]line Смена: 266 [00:18:49]line РНМ: 0000000000092663 [00:18:49]line ЗНМ: 0300000043 [00:18:49]line СНО: Общий режим [00:18:49]line Всего чеков: 101 [00:18:49]line ИТОГИ ПРИХОД [00:18:49]line Чеков: 101 [00:18:49]line Общий итог: 19025.00 [00:18:49]line Итого наличными: 17973.00 [00:18:49]line Итого безнал.: 1052.00 [00:18:49]line НДС 0% : 0.00 [00:18:49]line НДС 12% : 2020.35 [00:18:49]line НСП 0% : 0.00 [00:18:49]line НСП 1,50% : 0.00 [00:18:49]line НСП 0,50% : 0.00 [00:18:49]line НСП 5% : 0.00 [00:18:49]line НСП 3% : 0.00 [00:18:49]line НСП 2% : 0.00 [00:18:49]line НСП 1% : 168.18 [00:18:49]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:18:49]line Чеков: 0 [00:18:49]line Общий итог: 0.00 [00:18:49]line Итого наличными: 0.00 [00:18:49]line Итого безнал.: 0.00 [00:18:49]line НДС 0% : 0.00 [00:18:49]line НДС 12% : 0.00 [00:18:49]line НСП 0% : 0.00 [00:18:49]line НСП 1,50% : 0.00 [00:18:49]line НСП 0,50% : 0.00 [00:18:49]line НСП 5% : 0.00 [00:18:49]line НСП 3% : 0.00 [00:18:49]line НСП 2% : 0.00 [00:18:49]line НСП 1% : 0.00 [00:18:49]line ИТОГИ РАСХОД [00:18:49]line Чеков: 0 [00:18:49]line Общий итог: 0.00 [00:18:49]line Итого наличными: 0.00 [00:18:49]line Итого безнал.: 0.00 [00:18:49]line НДС 0% : 0.00 [00:18:49]line НДС 12% : 0.00 [00:18:49]line НСП 0% : 0.00 [00:18:49]line НСП 1,50% : 0.00 [00:18:49]line НСП 0,50% : 0.00 [00:18:49]line НСП 5% : 0.00 [00:18:49]line НСП 3% : 0.00 [00:18:49]line НСП 2% : 0.00 [00:18:49]line НСП 1% : 0.00 [00:18:49]line ИТОГИ ВОЗВРАТ РАСХОДА [00:18:49]line Чеков: 0 [00:18:49]line Общий итог: 0.00 [00:18:49]line Итого наличными: 0.00 [00:18:49]line Итого безнал.: 0.00 [00:18:49]line НДС 0% : 0.00 [00:18:49]line НДС 12% : 0.00 [00:18:49]line НСП 0% : 0.00 [00:18:49]line НСП 1,50% : 0.00 [00:18:49]line НСП 0,50% : 0.00 [00:18:49]line НСП 5% : 0.00 [00:18:49]line НСП 3% : 0.00 [00:18:49]line НСП 2% : 0.00 [00:18:49]line НСП 1% : 0.00 [00:18:49]line Сумма внесений: 0.00 [00:18:49]line Сумма выплат: 0.00 [00:18:49]line Нал. в кассе: 17973.00 [00:18:49]line НС Приход: 5971214.00 [00:18:49]line НС Возвр.Прихода: 17469.00 [00:18:49]line НС Расход: 0.00 [00:18:49]line НС Возвр.Расхода: 0.00 [00:18:49]line ФМ: 0000000000874937 [00:18:49]written 0, free lines is 4095 [00:18:50]Write to MH i2c: 01 00 00 01 2A 2B [00:18:50]Write i2c OK [00:18:50]MH_I2C_Read... [00:18:50]Read from MH i2c: 01 [00:18:50]MH_I2C_Read... [00:18:50]Read from MH i2c: 01 07 00 [00:18:50]MH_I2C_Read... [00:18:50]Read from MH i2c: 01 07 00 01 2A 00 00 00 00 00 C8 0A 04 [00:18:50]RasterBufferAndPrint [00:18:50]line [00:18:50]line [00:18:50]line [00:18:50]line [00:18:50]line [00:18:50]written 0, free lines is 2795 [00:18:50]MH_Cut [00:18:50]Write to MH i2c: D1 01 00 08 2A 01 04 [00:18:50]Write i2c OK [00:18:50]MH_I2C_Read... [00:18:50]Read from MH i2c: D1 [00:18:50]MH_I2C_Read... [00:18:50]Read from MH i2c: D1 01 00 [00:18:50]MH_I2C_Read... [00:18:50]Read from MH i2c: D1 01 00 08 2A 00 03 [00:18:50]Write to MH i2c: 01 00 00 09 2A 33 [00:18:50]Write i2c OK [00:18:50]MH_I2C_Read... [00:18:51]*** Cut start [00:18:51]*** Partial cut [00:18:51]*** CUTSNS_PIN = 1 [00:18:51]*** CUTSNS_PIN = 0 [00:18:52]*** Brake cut motor [00:18:52]Read from MH i2c: 01 [00:18:52]MH_I2C_Read... [00:18:52]*** Stop cut motor [00:18:52]*** Cut end [00:18:52]Read from MH i2c: 01 07 00 [00:18:52]MH_I2C_Read... [00:18:52]Read from MH i2c: 01 07 00 09 2A 00 00 00 00 00 FF 0F 48 [00:18:52]process_action x_report done [00:18:52]requested_data is exist [00:18:52]produce_requested_data [00:18:52]requested_item fd.num is exist - process it [00:18:52]SAM_PROTO_GetFieldsCounters [00:18:52]wFMCommunicate request_size=4 [00:18:52]MH_SAM_APDU [00:18:52]CAPDU: 80 13 00 00 [00:18:52]Write to MH i2c: E2 08 00 0A 2A 80 13 00 00 00 00 00 00 B0 [00:18:52]Write i2c OK [00:18:52]MH_I2C_Read... [00:18:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:18:52]Read from MH i2c: E2 [00:18:52]MH_I2C_Read... [00:18:52]Read from MH i2c: E2 62 00 [00:18:52]MH_I2C_Read... [00:18:52]Read from MH i2c: E2 62 00 0A 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 3E 6A 00 00 0E 04 04 00 B2 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 62 [00:18:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 3E 6A 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:18:52]wFMCommunicate OK [00:18:52]SAM_PROTO_GetFieldsCounters done [00:18:52]requested_item shift.num is exist - process it [00:18:52]requested_item shift.opened is exist - process it [00:18:52]req_shift_opened [00:18:52]FM_GetShiftState [00:18:52]SAM_PROTO_GetShiftState [00:18:52]wFMCommunicate request_size=4 [00:18:52]MH_SAM_APDU [00:18:52]CAPDU: 80 13 01 00 [00:18:52]Write to MH i2c: E2 08 00 0B 2A 80 13 01 00 00 00 00 00 B2 [00:18:52]Write i2c OK [00:18:52]MH_I2C_Read... [00:18:52]Read from MH i2c: E2 [00:18:52]MH_I2C_Read... [00:18:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:52]Read from MH i2c: E2 0E 00 [00:18:52]MH_I2C_Read... [00:18:52]Read from MH i2c: E2 0E 00 0B 2A 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 33 [00:18:52]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [00:18:52]wFMCommunicate OK [00:18:52]SAM_PROTO_GetShiftState done [00:18:52]FM_GetShiftState done [00:18:52]req_shift_opened done [00:18:52]requested_item shift.open_date is exist - process it [00:18:52]req_shift_open_date [00:18:52]req_shift_open_date done [00:18:52]produce_requested_data done [00:18:52]produce_requested_data return {"fd.num":27198,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [00:18:52]process_action_free x_report [00:18:52]json_value_free [00:18:52]json_value_free done [00:18:52]process_json_proto returns [00:18:52]Send response to host [00:18:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":27198,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [00:18:52]free response buf [00:18:52]execute_script done [00:18:52]execute_script returns [00:18:52]free content buf [00:18:52]Sock 8.Close socket [00:18:52]Sock 8.Thread stoped [00:18:52]OFD Sender: No OFD packet to send [00:18:57]OFD Sender: No OFD packet to send [00:19:02]OFD Sender: No OFD packet to send [00:19:07]OFD Sender: No OFD packet to send [00:19:12]OFD Sender: No OFD packet to send [00:19:17]OFD Sender: No OFD packet to send [00:19:22]OFD Sender: No OFD packet to send [00:19:27]OFD Sender: No OFD packet to send [00:19:31]accept exits with 9 [00:19:31]New connection [00:19:31]New thread 3066785124 created [00:19:31]Thread 3066928484 joined [00:19:31]Waiting for new connection... [00:19:31] Sock 9.Parse request [00:19:31]Sock 9.Check first char [00:19:31]Sock 9.First char is OK [00:19:31]request: POST /json_proto HTTP/1.0 [00:19:31]Method: POST [00:19:31]URL: /json_proto [00:19:31]Method is POST - this is cgi request [00:19:31]url: /json_proto [00:19:31]query_string will be loaded in cgi processing [00:19:31]execute_cgi json_proto POST (null) [00:19:31]execute_cgi path=json_proto method=POST [00:19:31]POST find Content-Length [00:19:31]Host: 172.17.45.8:8080 [00:19:31]Content-Length: 215 [00:19:31]Content-Type: application/json [00:19:31] [00:19:31]POST finish read [00:19:31]Found Content-Length = 215 [00:19: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" ] } } [00:19:31]execute_script... [00:19: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" ] } } [00:19:31]POST & json_proto [00:19:31]process_json_proto [00:19:31]json parsed OK: [00:19:31]protocol is kg_v1.0 [00:19:31]action value=get_value [00:19:31]process_action get_value [00:19:31]cmd_get_value [00:19:31]process_action get_value done [00:19:31]requested_data is exist [00:19:31]produce_requested_data [00:19:31]requested_item kkm.sn is exist - process it [00:19:31]requested_item kkm.ver is exist - process it [00:19:31]requested_item fm.sn is exist - process it [00:19:31]wFMCommunicate request_size=4 [00:19:31]MH_SAM_APDU [00:19:31]CAPDU: 80 11 00 00 [00:19:31]Write to MH i2c: E2 08 00 0C 2A 80 11 00 00 00 00 00 00 B0 [00:19:31]Write i2c OK [00:19:31]MH_I2C_Read... [00:19:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:31]Read from MH i2c: E2 [00:19:31]MH_I2C_Read... [00:19:31]Read from MH i2c: E2 17 00 [00:19:31]MH_I2C_Read... [00:19:31]Read from MH i2c: E2 17 00 0C 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 09 [00:19:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [00:19:31]wFMCommunicate OK [00:19:31]requested_item fd.num is exist - process it [00:19:31]SAM_PROTO_GetFieldsCounters [00:19:31]wFMCommunicate request_size=4 [00:19:31]MH_SAM_APDU [00:19:31]CAPDU: 80 13 00 00 [00:19:31]Write to MH i2c: E2 08 00 0D 2A 80 13 00 00 00 00 00 00 B3 [00:19:31]Write i2c OK [00:19:31]MH_I2C_Read... [00:19:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:31]Read from MH i2c: E2 [00:19:31]MH_I2C_Read... [00:19:31]Read from MH i2c: E2 62 00 [00:19:31]MH_I2C_Read... [00:19:31]Read from MH i2c: E2 62 00 0D 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 3E 6A 00 00 0E 04 04 00 B2 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 65 [00:19:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 3E 6A 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:31]wFMCommunicate OK [00:19:31]SAM_PROTO_GetFieldsCounters done [00:19:31]requested_item shift.num is exist - process it [00:19:31]requested_item shift.opened is exist - process it [00:19:31]req_shift_opened [00:19:31]FM_GetShiftState [00:19:31]SAM_PROTO_GetShiftState [00:19:31]wFMCommunicate request_size=4 [00:19:31]MH_SAM_APDU [00:19:31]CAPDU: 80 13 01 00 [00:19:31]Write to MH i2c: E2 08 00 0E 2A 80 13 01 00 00 00 00 00 B5 [00:19:31]Write i2c OK [00:19:31]MH_I2C_Read... [00:19:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:31]Read from MH i2c: E2 [00:19:31]MH_I2C_Read... [00:19:31]Read from MH i2c: E2 0E 00 [00:19:31]MH_I2C_Read... [00:19:31]Read from MH i2c: E2 0E 00 0E 2A 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 36 [00:19:31]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [00:19:31]wFMCommunicate OK [00:19:31]SAM_PROTO_GetShiftState done [00:19:31]FM_GetShiftState done [00:19:31]req_shift_opened done [00:19:31]requested_item shift.open_date is exist - process it [00:19:31]req_shift_open_date [00:19:31]req_shift_open_date done [00:19:31]produce_requested_data done [00:19:31]produce_requested_data return {"kkm.sn":"0300000043","kkm.ver":"001","fm.sn":"0000000000874937","fd.num":27198,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509} [00:19:31]process_action_free get_value [00:19:31]json_value_free [00:19:31]json_value_free done [00:19:31]process_json_proto returns [00:19:31]Send response to host [00:19:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000043","kkm.ver":"001","fm.sn":"0000000000874937","fd.num":27198,"shift.num":434,"shift.opened":1,"shift.open_date":1722213509}}} [00:19:31]free response buf [00:19:31]execute_script done [00:19:31]execute_script returns [00:19:31]free content buf [00:19:31]Sock 9.Close socket [00:19:31]Sock 9.Thread stoped [00:19:31]accept exits with 8 [00:19:31]New connection [00:19:31]New thread 3066928484 created [00:19:31]Thread 3066785124 joined [00:19:31]Waiting for new connection... [00:19:31] Sock 8.Parse request [00:19:31]Sock 8.Check first char [00:19:31]Sock 8.First char is OK [00:19:31]request: POST /json_proto HTTP/1.0 [00:19:31]Method: POST [00:19:31]URL: /json_proto [00:19:31]Method is POST - this is cgi request [00:19:31]url: /json_proto [00:19:31]query_string will be loaded in cgi processing [00:19:31]execute_cgi json_proto POST (null) [00:19:31]execute_cgi path=json_proto method=POST [00:19:31]POST find Content-Length [00:19:31]Host: 172.17.45.8:8080 [00:19:31]Content-Length: 331 [00:19:31]Content-Type: application/json [00:19:31] [00:19:31]POST finish read [00:19:31]Found Content-Length = 331 [00:19:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:19:31]execute_script... [00:19:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:19:31]POST & json_proto [00:19:31]process_json_proto [00:19:31]json parsed OK: [00:19:31]protocol is kg_v1.0 [00:19:31]action value=get_value [00:19:32]process_action get_value [00:19:32]cmd_get_value [00:19:32]process_action get_value done [00:19:32]requested_data is exist [00:19:32]produce_requested_data [00:19:32]requested_item fm.sale.total is exist - process it [00:19:32]SAM_PROTO_GetFMData [00:19:32]wFMCommunicate request_size=4 [00:19:32]MH_SAM_APDU [00:19:32]CAPDU: 80 13 03 00 [00:19:32]Write to MH i2c: E2 08 00 0F 2A 80 13 03 00 00 00 00 00 B8 [00:19:32]Write i2c OK [00:19:32]MH_I2C_Read... [00:19:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:32]Read from MH i2c: E2 [00:19:32]MH_I2C_Read... [00:19:32]Read from MH i2c: E2 FD 00 [00:19:32]MH_I2C_Read... [00:19:32]Read from MH i2c: E2 FD 00 0F 2A 00 C1 04 85 04 BD 04 6E 04 04 00 DA 66 00 00 69 04 A0 00 6F 04 04 00 AC 66 00 00 B1 04 04 00 78 59 97 23 70 04 04 00 AC 7C 41 22 72 04 04 00 CC DC 55 01 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 80 89 C7 03 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 09 95 50 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 2E 00 00 00 B1 04 03 00 D4 A7 1A 70 04 03 00 04 A5 15 72 04 03 00 D0 02 05 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 AB D4 02 EF 03 09 00 F6 03 90 00 C1 [00:19:32]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 DA 66 00 00 69 04 A0 00 6F 04 04 00 AC 66 00 00 B1 04 04 00 78 59 97 23 70 04 04 00 AC 7C 41 22 72 04 04 00 CC DC 55 01 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 80 89 C7 03 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 09 95 50 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 2E 00 00 00 B1 04 03 00 D4 A7 1A 70 04 03 00 04 A5 15 72 04 03 00 D0 02 05 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 AB D4 02 EF 03 09 00 F6 03 90 00 [00:19:32]wFMCommunicate OK [00:19:32]wFMCommunicate request_size=4 [00:19:32]MH_SAM_APDU [00:19:32]CAPDU: 80 17 00 00 [00:19:32]Write to MH i2c: E2 08 00 10 2A 80 17 00 00 00 00 00 00 BA [00:19:32]Write i2c OK [00:19:32]MH_I2C_Read... [00:19:32]OFD Sender: No OFD packet to send [00:19:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:32]Read from MH i2c: E2 [00:19:32]MH_I2C_Read... [00:19:32]Read from MH i2c: E2 FD 00 [00:19:32]MH_I2C_Read... [00:19:33]Read from MH i2c: E2 FD 00 10 2A 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 87 [00:19:33]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:19:33]wFMCommunicate OK [00:19:33]wFMCommunicate request_size=4 [00:19:33]MH_SAM_APDU [00:19:33]CAPDU: 80 17 00 00 [00:19:33]Write to MH i2c: E2 08 00 11 2A 80 17 00 00 00 00 00 00 BB [00:19:33]Write i2c OK [00:19:33]MH_I2C_Read... [00:19:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:33]Read from MH i2c: E2 [00:19:33]MH_I2C_Read... [00:19:33]Read from MH i2c: E2 FD 00 [00:19:33]MH_I2C_Read... [00:19:33]Read from MH i2c: E2 FD 00 11 2A 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 5B [00:19:33]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:19:33]wFMCommunicate OK [00:19:33]wFMCommunicate request_size=4 [00:19:33]MH_SAM_APDU [00:19:33]CAPDU: 80 17 00 00 [00:19:33]Write to MH i2c: E2 08 00 12 2A 80 17 00 00 00 00 00 00 BC [00:19:33]Write i2c OK [00:19:33]MH_I2C_Read... [00:19:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:33]Read from MH i2c: E2 [00:19:33]MH_I2C_Read... [00:19:33]Read from MH i2c: E2 FD 00 [00:19:33]MH_I2C_Read... [00:19:33]Read from MH i2c: E2 FD 00 12 2A 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 41 [00:19:33]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:19:33]wFMCommunicate OK [00:19:33]wFMCommunicate request_size=4 [00:19:33]MH_SAM_APDU [00:19:33]CAPDU: 80 17 00 00 [00:19:33]Write to MH i2c: E2 08 00 13 2A 80 17 00 00 00 00 00 00 BD [00:19:33]Write i2c OK [00:19:33]MH_I2C_Read... [00:19:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:19:33]Read from MH i2c: E2 [00:19:33]MH_I2C_Read... [00:19:33]Read from MH i2c: E2 DE 00 [00:19:33]MH_I2C_Read... [00:19:33]Read from MH i2c: E2 DE 00 13 2A 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C [00:19:33]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:19:33]wFMCommunicate OK [00:19:33]SAM_PROTO_GetFMData done [00:19:33]requested_item fm.sale_refund.total is exist - process it [00:19:33]requested_item fm.buy.total is exist - process it [00:19:33]requested_item shift.sale.total is exist - process it [00:19:33]SAM_PROTO_GetShiftData [00:19:33]wFMCommunicate request_size=4 [00:19:33]MH_SAM_APDU [00:19:33]CAPDU: 80 13 02 00 [00:19:33]Write to MH i2c: E2 08 00 14 2A 80 13 02 00 00 00 00 00 BC [00:19:33]Write i2c OK [00:19:33]MH_I2C_Read... [00:19:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:19:34]Read from MH i2c: E2 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 FD 00 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 FD 00 14 2A 00 AE 04 AA 04 AA 04 6E 04 04 00 65 00 00 00 69 04 9B 00 6F 04 04 00 65 00 00 00 B1 04 03 00 A4 07 1D 70 04 03 00 B4 6C 1B 72 04 03 00 F0 9A 01 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 33 15 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 B2 41 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 13 [00:19:34]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 65 00 00 00 69 04 9B 00 6F 04 04 00 65 00 00 00 B1 04 03 00 A4 07 1D 70 04 03 00 B4 6C 1B 72 04 03 00 F0 9A 01 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 33 15 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 B2 41 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:34]wFMCommunicate OK [00:19:34]wFMCommunicate request_size=4 [00:19:34]MH_SAM_APDU [00:19:34]CAPDU: 80 17 00 00 [00:19:34]Write to MH i2c: E2 08 00 15 2A 80 17 00 00 00 00 00 00 BF [00:19:34]Write i2c OK [00:19:34]MH_I2C_Read... [00:19:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:34]Read from MH i2c: E2 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 FD 00 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 FD 00 15 2A 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 E1 [00:19: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 [00:19:34]wFMCommunicate OK [00:19:34]wFMCommunicate request_size=4 [00:19:34]MH_SAM_APDU [00:19:34]CAPDU: 80 17 00 00 [00:19:34]Write to MH i2c: E2 08 00 16 2A 80 17 00 00 00 00 00 00 C0 [00:19:34]Write i2c OK [00:19:34]MH_I2C_Read... [00:19:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:34]Read from MH i2c: E2 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 FD 00 [00:19:34]MH_I2C_Read... [00:19:34]Read from MH i2c: E2 FD 00 16 2A 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 77 [00:19:34]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:19:34]wFMCommunicate OK [00:19:34]wFMCommunicate request_size=4 [00:19:34]MH_SAM_APDU [00:19:34]CAPDU: 80 17 00 00 [00:19:34]Write to MH i2c: E2 08 00 17 2A 80 17 00 00 00 00 00 00 C1 [00:19:34]Write i2c OK [00:19:34]MH_I2C_Read... [00:19:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:35]Read from MH i2c: E2 [00:19:35]MH_I2C_Read... [00:19:35]Read from MH i2c: E2 FD 00 [00:19:35]MH_I2C_Read... [00:19:35]Read from MH i2c: E2 FD 00 17 2A 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 33 [00:19: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 [00:19:35]wFMCommunicate OK [00:19:35]wFMCommunicate request_size=4 [00:19:35]MH_SAM_APDU [00:19:35]CAPDU: 80 17 00 00 [00:19:35]Write to MH i2c: E2 08 00 18 2A 80 17 00 00 00 00 00 00 C2 [00:19:35]Write i2c OK [00:19:35]MH_I2C_Read... [00:19:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:19:35]Read from MH i2c: E2 [00:19:35]MH_I2C_Read... [00:19:35]Read from MH i2c: E2 CB 00 [00:19:35]MH_I2C_Read... [00:19:35]Read from MH i2c: E2 CB 00 18 2A 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 AB [00:19: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 [00:19:35]wFMCommunicate OK [00:19:35]SAM_PROTO_GetShiftData done [00:19:35]requested_item shift.sale.total_cash is exist - process it [00:19:35]requested_item shift.sale_refund.total is exist - process it [00:19:35]requested_item shift.sale_refund.total_cash is exist - process it [00:19:35]requested_item shift.buy.total is exist - process it [00:19:35]requested_item shift.buy.total_cash is exist - process it [00:19:35]produce_requested_data done [00:19:35]produce_requested_data return {"fm.sale.total":5971214.00,"fm.sale_refund.total":17469.00,"fm.buy.total":0.00,"shift.sale.total":19025.00,"shift.sale.total_cash":17973.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:19:35]process_action_free get_value [00:19:35]json_value_free [00:19:35]json_value_free done [00:19:35]process_json_proto returns [00:19:35]Send response to host [00:19:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":5971214.00,"fm.sale_refund.total":17469.00,"fm.buy.total":0.00,"shift.sale.total":19025.00,"shift.sale.total_cash":17973.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:19:35]free response buf [00:19:35]execute_script done [00:19:35]execute_script returns [00:19:35]free content buf [00:19:35]Sock 8.Close socket [00:19:35]Sock 8.Thread stoped [00:19:35]accept exits with 9 [00:19:35]New connection [00:19:35]New thread 3066785124 created [00:19:35]Thread 3066928484 joined [00:19:35]Waiting for new connection... [00:19:35] Sock 9.Parse request [00:19:35]Sock 9.Check first char [00:19:35]Sock 9.First char is OK [00:19:35]request: POST /json_proto HTTP/1.0 [00:19:35]Method: POST [00:19:35]URL: /json_proto [00:19:35]Method is POST - this is cgi request [00:19:35]url: /json_proto [00:19:35]query_string will be loaded in cgi processing [00:19:35]execute_cgi json_proto POST (null) [00:19:35]execute_cgi path=json_proto method=POST [00:19:35]POST find Content-Length [00:19:35]Host: 172.17.45.8:8080 [00:19:35]Content-Length: 331 [00:19:35]Content-Type: application/json [00:19:35] [00:19:35]POST finish read [00:19:35]Found Content-Length = 331 [00:19: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" ] } } [00:19:35]execute_script... [00:19: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" ] } } [00:19:35]POST & json_proto [00:19:35]process_json_proto [00:19:35]json parsed OK: [00:19:35]protocol is kg_v1.0 [00:19:35]action value=get_value [00:19:35]process_action get_value [00:19:35]cmd_get_value [00:19:35]process_action get_value done [00:19:35]requested_data is exist [00:19:35]produce_requested_data [00:19:35]requested_item fm.sale.total is exist - process it [00:19:35]SAM_PROTO_GetFMData [00:19:35]wFMCommunicate request_size=4 [00:19:35]MH_SAM_APDU [00:19:35]CAPDU: 80 13 03 00 [00:19:35]Write to MH i2c: E2 08 00 19 2A 80 13 03 00 00 00 00 00 C2 [00:19:35]Write i2c OK [00:19:35]MH_I2C_Read... [00:19:36]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:36]Read from MH i2c: E2 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 FD 00 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 FD 00 19 2A 00 C1 04 85 04 BD 04 6E 04 04 00 DA 66 00 00 69 04 A0 00 6F 04 04 00 AC 66 00 00 B1 04 04 00 78 59 97 23 70 04 04 00 AC 7C 41 22 72 04 04 00 CC DC 55 01 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 80 89 C7 03 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 09 95 50 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 2E 00 00 00 B1 04 03 00 D4 A7 1A 70 04 03 00 04 A5 15 72 04 03 00 D0 02 05 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 AB D4 02 EF 03 09 00 F6 03 90 00 CB [00:19:36]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 DA 66 00 00 69 04 A0 00 6F 04 04 00 AC 66 00 00 B1 04 04 00 78 59 97 23 70 04 04 00 AC 7C 41 22 72 04 04 00 CC DC 55 01 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 80 89 C7 03 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 09 95 50 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 2E 00 00 00 B1 04 03 00 D4 A7 1A 70 04 03 00 04 A5 15 72 04 03 00 D0 02 05 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 AB D4 02 EF 03 09 00 F6 03 90 00 [00:19:36]wFMCommunicate OK [00:19:36]wFMCommunicate request_size=4 [00:19:36]MH_SAM_APDU [00:19:36]CAPDU: 80 17 00 00 [00:19:36]Write to MH i2c: E2 08 00 1A 2A 80 17 00 00 00 00 00 00 C4 [00:19:36]Write i2c OK [00:19:36]MH_I2C_Read... [00:19:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:36]Read from MH i2c: E2 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 FD 00 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 FD 00 1A 2A 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 91 [00:19:36]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:19:36]wFMCommunicate OK [00:19:36]wFMCommunicate request_size=4 [00:19:36]MH_SAM_APDU [00:19:36]CAPDU: 80 17 00 00 [00:19:36]Write to MH i2c: E2 08 00 1B 2A 80 17 00 00 00 00 00 00 C5 [00:19:36]Write i2c OK [00:19:36]MH_I2C_Read... [00:19:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:36]Read from MH i2c: E2 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 FD 00 [00:19:36]MH_I2C_Read... [00:19:36]Read from MH i2c: E2 FD 00 1B 2A 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 65 [00:19:36]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:19:37]wFMCommunicate OK [00:19:37]wFMCommunicate request_size=4 [00:19:37]MH_SAM_APDU [00:19:37]CAPDU: 80 17 00 00 [00:19:37]Write to MH i2c: E2 08 00 1C 2A 80 17 00 00 00 00 00 00 C6 [00:19:37]Write i2c OK [00:19:37]MH_I2C_Read... [00:19:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:37]Read from MH i2c: E2 [00:19:37]MH_I2C_Read... [00:19:37]Read from MH i2c: E2 FD 00 [00:19:37]MH_I2C_Read... [00:19:37]Read from MH i2c: E2 FD 00 1C 2A 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 4B [00:19:37]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:19:37]wFMCommunicate OK [00:19:37]wFMCommunicate request_size=4 [00:19:37]MH_SAM_APDU [00:19:37]CAPDU: 80 17 00 00 [00:19:37]Write to MH i2c: E2 08 00 1D 2A 80 17 00 00 00 00 00 00 C7 [00:19:37]Write i2c OK [00:19:37]MH_I2C_Read... [00:19:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:19:37]Read from MH i2c: E2 [00:19:37]MH_I2C_Read... [00:19:37]Read from MH i2c: E2 DE 00 [00:19:37]MH_I2C_Read... [00:19:37]Read from MH i2c: E2 DE 00 1D 2A 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A6 [00:19:37]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:19:37]wFMCommunicate OK [00:19:37]SAM_PROTO_GetFMData done [00:19:37]requested_item fm.sale_refund.total is exist - process it [00:19:37]requested_item fm.buy.total is exist - process it [00:19:37]requested_item shift.sale.total is exist - process it [00:19:37]SAM_PROTO_GetShiftData [00:19:37]wFMCommunicate request_size=4 [00:19:37]MH_SAM_APDU [00:19:37]CAPDU: 80 13 02 00 [00:19:37]Write to MH i2c: E2 08 00 1E 2A 80 13 02 00 00 00 00 00 C6 [00:19:37]Write i2c OK [00:19:37]MH_I2C_Read... [00:19:38]OFD Sender: No OFD packet to send [00:19:38]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:19:38]Read from MH i2c: E2 [00:19:38]MH_I2C_Read... [00:19:38]Read from MH i2c: E2 FD 00 [00:19:38]MH_I2C_Read... [00:19:38]Read from MH i2c: E2 FD 00 1E 2A 00 AE 04 AA 04 AA 04 6E 04 04 00 65 00 00 00 69 04 9B 00 6F 04 04 00 65 00 00 00 B1 04 03 00 A4 07 1D 70 04 03 00 B4 6C 1B 72 04 03 00 F0 9A 01 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 33 15 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 B2 41 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1D [00:19:38]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 65 00 00 00 69 04 9B 00 6F 04 04 00 65 00 00 00 B1 04 03 00 A4 07 1D 70 04 03 00 B4 6C 1B 72 04 03 00 F0 9A 01 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 33 15 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 B2 41 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:38]wFMCommunicate OK [00:19:38]wFMCommunicate request_size=4 [00:19:38]MH_SAM_APDU [00:19:38]CAPDU: 80 17 00 00 [00:19:38]Write to MH i2c: E2 08 00 1F 2A 80 17 00 00 00 00 00 00 C9 [00:19:38]Write i2c OK [00:19:38]MH_I2C_Read... [00:19:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:38]Read from MH i2c: E2 [00:19:38]MH_I2C_Read... [00:19:38]Read from MH i2c: E2 FD 00 [00:19:38]MH_I2C_Read... [00:19:38]Read from MH i2c: E2 FD 00 1F 2A 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 EB [00:19:38]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:19:38]wFMCommunicate OK [00:19:38]wFMCommunicate request_size=4 [00:19:38]MH_SAM_APDU [00:19:38]CAPDU: 80 17 00 00 [00:19:38]Write to MH i2c: E2 08 00 20 2A 80 17 00 00 00 00 00 00 CA [00:19:38]Write i2c OK [00:19:38]MH_I2C_Read... [00:19:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:39]Read from MH i2c: E2 [00:19:39]MH_I2C_Read... [00:19:39]Read from MH i2c: E2 FD 00 [00:19:39]MH_I2C_Read... [00:19:39]Read from MH i2c: E2 FD 00 20 2A 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 81 [00:19: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 [00:19:39]wFMCommunicate OK [00:19:39]wFMCommunicate request_size=4 [00:19:39]MH_SAM_APDU [00:19:39]CAPDU: 80 17 00 00 [00:19:39]Write to MH i2c: E2 08 00 21 2A 80 17 00 00 00 00 00 00 CB [00:19:39]Write i2c OK [00:19:39]MH_I2C_Read... [00:19:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:39]Read from MH i2c: E2 [00:19:39]MH_I2C_Read... [00:19:39]Read from MH i2c: E2 FD 00 [00:19:39]MH_I2C_Read... [00:19:39]Read from MH i2c: E2 FD 00 21 2A 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 3D [00:19:39]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:19:39]wFMCommunicate OK [00:19:39]wFMCommunicate request_size=4 [00:19:39]MH_SAM_APDU [00:19:39]CAPDU: 80 17 00 00 [00:19:39]Write to MH i2c: E2 08 00 22 2A 80 17 00 00 00 00 00 00 CC [00:19:39]Write i2c OK [00:19:39]MH_I2C_Read... [00:19:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:19:40]Read from MH i2c: E2 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 CB 00 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 CB 00 22 2A 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 B5 [00:19: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 [00:19:40]wFMCommunicate OK [00:19:40]SAM_PROTO_GetShiftData done [00:19:40]requested_item shift.sale.total_cash is exist - process it [00:19:40]requested_item shift.sale_refund.total is exist - process it [00:19:40]requested_item shift.sale_refund.total_cash is exist - process it [00:19:40]requested_item shift.buy.total is exist - process it [00:19:40]requested_item shift.buy.total_cash is exist - process it [00:19:40]produce_requested_data done [00:19:40]produce_requested_data return {"fm.sale.total":5971214.00,"fm.sale_refund.total":17469.00,"fm.buy.total":0.00,"shift.sale.total":19025.00,"shift.sale.total_cash":17973.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:19:40]process_action_free get_value [00:19:40]json_value_free [00:19:40]json_value_free done [00:19:40]process_json_proto returns [00:19:40]Send response to host [00:19:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":5971214.00,"fm.sale_refund.total":17469.00,"fm.buy.total":0.00,"shift.sale.total":19025.00,"shift.sale.total_cash":17973.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:19:40]free response buf [00:19:40]execute_script done [00:19:40]execute_script returns [00:19:40]free content buf [00:19:40]Sock 9.Close socket [00:19:40]Sock 9.Thread stoped [00:19:40]accept exits with 8 [00:19:40]New connection [00:19:40]New thread 3066928484 created [00:19:40]Thread 3066785124 joined [00:19:40]Waiting for new connection... [00:19:40] Sock 8.Parse request [00:19:40]Sock 8.Check first char [00:19:40]Sock 8.First char is OK [00:19:40]request: POST /json_proto HTTP/1.0 [00:19:40]Method: POST [00:19:40]URL: /json_proto [00:19:40]Method is POST - this is cgi request [00:19:40]url: /json_proto [00:19:40]query_string will be loaded in cgi processing [00:19:40]execute_cgi json_proto POST (null) [00:19:40]execute_cgi path=json_proto method=POST [00:19:40]POST find Content-Length [00:19:40]Host: 172.17.45.8:8080 [00:19:40]Content-Length: 254 [00:19:40]Content-Type: application/json [00:19:40] [00:19:40]POST finish read [00:19:40]Found Content-Length = 254 [00:19:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:40]execute_script... [00:19:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u0430\u0437\u0430\u043A\u043E\u0432 \u0427. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:19:40]POST & json_proto [00:19:40]process_json_proto [00:19:40]json parsed OK: [00:19:40]protocol is kg_v1.0 [00:19:40]action value=close_shift [00:19:40]process_action close_shift [00:19:40]cmd_close_shift [00:19:40]MH_GetDate [00:19:40]Write to MH i2c: F0 00 00 23 2A 3C [00:19:40]Write i2c OK [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: F0 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: F0 09 00 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: F0 09 00 23 2A 00 A4 31 A8 66 A6 1F 7F 64 D0 [00:19:40]GetLastDocTimeStamp 1722298730 [00:19:40]current date 1722298788 [00:19:40]FM_GetShiftState [00:19:40]SAM_PROTO_GetShiftState [00:19:40]wFMCommunicate request_size=4 [00:19:40]MH_SAM_APDU [00:19:40]CAPDU: 80 13 01 00 [00:19:40]Write to MH i2c: E2 08 00 24 2A 80 13 01 00 00 00 00 00 CB [00:19:40]Write i2c OK [00:19:40]MH_I2C_Read... [00:19:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:40]Read from MH i2c: E2 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 0E 00 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 0E 00 24 2A 00 09 00 01 85 E4 A6 66 00 00 00 00 90 00 4C [00:19:40]RAPDU: 09 00 01 85 E4 A6 66 00 00 00 00 90 00 [00:19:40]wFMCommunicate OK [00:19:40]SAM_PROTO_GetShiftState done [00:19:40]FM_GetShiftState done [00:19:40]KKMCreateCloseShiftDocument [00:19:40]Load OK [00:19:40]Malloc new data [00:19:40]MH_GetDate [00:19:40]Write to MH i2c: F0 00 00 25 2A 3E [00:19:40]Write i2c OK [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: F0 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: F0 09 00 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: F0 09 00 25 2A 00 A4 31 A8 66 A6 1F 7F 64 D2 [00:19:40]Malloc new data [00:19:40]Malloc new data [00:19:40]Malloc new data [00:19:40]Malloc new data [00:19:40]KKMCreateCloseShiftDocument OK [00:19:40]KKMSetCloseShiftData OK [00:19:40]ProcessDocumentItem done err = 0, tmpTLVsize=69 [00:19:40]tlvbuf is 00194CB0 [00:19:40]KKMLoadAndSignCloseShiftData [00:19:40]SAM_PROTO_ProcessDocument [00:19:40]wFMCommunicate request_size=9 [00:19:40]MH_SAM_APDU [00:19:40]CAPDU: 80 15 01 00 04 05 00 45 00 [00:19:40]Write to MH i2c: E2 0C 00 26 2A 80 15 01 00 04 00 05 00 45 00 00 00 21 [00:19:40]Write i2c OK [00:19:40]MH_I2C_Read... [00:19:40]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:19:40]Read from MH i2c: E2 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 03 00 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 03 00 26 2A 00 90 00 C4 [00:19:40]RAPDU: 90 00 [00:19:40]wFMCommunicate OK [00:19:40]wFMCommunicate request_size=23 [00:19:40]MH_SAM_APDU [00:19: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 [00:19:40]Write to MH i2c: E2 1A 00 27 2A 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 C6 [00:19:40]Write i2c OK [00:19:40]MH_I2C_Read... [00:19:40]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:40]Read from MH i2c: E2 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 03 00 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 03 00 27 2A 00 90 00 C5 [00:19:40]RAPDU: 90 00 [00:19:40]wFMCommunicate OK [00:19:40]wFMCommunicate request_size=28 [00:19:40]MH_SAM_APDU [00:19:40]CAPDU: 80 15 02 00 17 FD 03 13 00 D0 9A D0 B0 D0 B7 D0 B0 D0 BA D0 BE D0 B2 20 D0 A7 2E 20 [00:19:40]Write to MH i2c: E2 1F 00 28 2A 80 15 02 00 17 00 FD 03 13 00 D0 9A D0 B0 D0 B7 D0 B0 D0 BA D0 BE D0 B2 20 D0 A7 2E 20 00 00 83 [00:19:40]Write i2c OK [00:19:40]MH_I2C_Read... [00:19:40]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:40]Read from MH i2c: E2 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 03 00 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 03 00 28 2A 00 90 00 C6 [00:19:40]RAPDU: 90 00 [00:19:40]wFMCommunicate OK [00:19:40]wFMCommunicate request_size=13 [00:19:40]MH_SAM_APDU [00:19:40]CAPDU: 80 15 02 00 08 F4 03 04 00 A4 31 A8 66 [00:19:40]Write to MH i2c: E2 10 00 29 2A 80 15 02 00 08 00 F4 03 04 00 A4 31 A8 66 00 00 C1 [00:19:40]Write i2c OK [00:19:40]MH_I2C_Read... [00:19:40]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:40]Read from MH i2c: E2 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 03 00 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 03 00 29 2A 00 90 00 C7 [00:19:40]RAPDU: 90 00 [00:19:40]wFMCommunicate OK [00:19:40]wFMCommunicate request_size=25 [00:19:40]MH_SAM_APDU [00:19:40]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 [00:19:40]Write to MH i2c: E2 1C 00 2A 2A 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 00 00 37 [00:19:40]Write i2c OK [00:19:40]MH_I2C_Read... [00:19:40]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:19:40]Read from MH i2c: E2 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 03 00 [00:19:40]MH_I2C_Read... [00:19:40]Read from MH i2c: E2 03 00 2A 2A 00 90 00 C8 [00:19:40]RAPDU: 90 00 [00:19:40]wFMCommunicate OK [00:19:40]wFMCommunicate request_size=4 [00:19:40]MH_SAM_APDU [00:19:40]CAPDU: 80 15 03 00 [00:19:40]Write to MH i2c: E2 08 00 2B 2A 80 15 03 00 00 00 00 00 D6 [00:19:40]Write i2c OK [00:19:40]MH_I2C_Read... [00:19:41]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:19:41]Read from MH i2c: E2 [00:19:41]MH_I2C_Read... [00:19:41]Read from MH i2c: E2 FD 00 [00:19:41]MH_I2C_Read... [00:19:41]Read from MH i2c: E2 FD 00 2B 2A 00 F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 3F 6A 00 00 0E 04 04 00 B2 01 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 67 00 00 00 AA 04 AA 04 6E 04 04 00 65 00 00 00 69 04 9B 00 6F 04 04 00 65 00 00 00 B1 04 03 00 A4 07 1D 70 04 03 00 B4 6C 1B 72 04 03 00 F0 9A 01 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 33 15 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 B2 41 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FA [00:19: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 34 39 33 37 10 04 04 00 3F 6A 00 00 0E 04 04 00 B2 01 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 67 00 00 00 AA 04 AA 04 6E 04 04 00 65 00 00 00 69 04 9B 00 6F 04 04 00 65 00 00 00 B1 04 03 00 A4 07 1D 70 04 03 00 B4 6C 1B 72 04 03 00 F0 9A 01 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 33 15 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 B2 41 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:19:41]wFMCommunicate OK [00:19:41]SAM_PROTO_ProcessDocument answer len = 1265 [00:19:41]SAM_PROTO_ProcessDocument remain to read = 1017 [00:19:41]wFMCommunicate request_size=4 [00:19:41]MH_SAM_APDU [00:19:41]CAPDU: 80 17 00 00 [00:19:41]Write to MH i2c: E2 08 00 2C 2A 80 17 00 00 00 00 00 00 D6 [00:19:41]Write i2c OK [00:19:41]MH_I2C_Read... [00:19:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:41]Read from MH i2c: E2 [00:19:41]MH_I2C_Read... [00:19:41]Read from MH i2c: E2 FD 00 [00:19:41]MH_I2C_Read... [00:19:41]Read from MH i2c: E2 FD 00 2C 2A 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1F [00:19:41]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 [00:19:41]wFMCommunicate OK [00:19:41]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:19:41]SAM_PROTO_ProcessDocument remain to read = 767 [00:19:41]wFMCommunicate request_size=4 [00:19:41]MH_SAM_APDU [00:19:41]CAPDU: 80 17 00 00 [00:19:41]Write to MH i2c: E2 08 00 2D 2A 80 17 00 00 00 00 00 00 D7 [00:19:42]Write i2c OK [00:19:42]MH_I2C_Read... [00:19:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:42]Read from MH i2c: E2 [00:19:42]MH_I2C_Read... [00:19:42]Read from MH i2c: E2 FD 00 [00:19:42]MH_I2C_Read... [00:19:42]Read from MH i2c: E2 FD 00 2D 2A 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 39 [00:19: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 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:19:42]wFMCommunicate OK [00:19:42]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:19:42]SAM_PROTO_ProcessDocument remain to read = 517 [00:19:42]wFMCommunicate request_size=4 [00:19:42]MH_SAM_APDU [00:19:42]CAPDU: 80 17 00 00 [00:19:42]Write to MH i2c: E2 08 00 2E 2A 80 17 00 00 00 00 00 00 D8 [00:19:42]Write i2c OK [00:19:42]MH_I2C_Read... [00:19:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:42]Read from MH i2c: E2 [00:19:42]MH_I2C_Read... [00:19:42]Read from MH i2c: E2 FD 00 [00:19:42]MH_I2C_Read... [00:19:42]Read from MH i2c: E2 FD 00 2E 2A 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 62 [00:19:42]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 [00:19:42]wFMCommunicate OK [00:19:42]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:19:42]SAM_PROTO_ProcessDocument remain to read = 267 [00:19:42]wFMCommunicate request_size=4 [00:19:42]MH_SAM_APDU [00:19:42]CAPDU: 80 17 00 00 [00:19:42]Write to MH i2c: E2 08 00 2F 2A 80 17 00 00 00 00 00 00 D9 [00:19:42]Write i2c OK [00:19:42]MH_I2C_Read... [00:19:43]OFD Sender: No OFD packet to send [00:19:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:43]Read from MH i2c: E2 [00:19:43]MH_I2C_Read... [00:19:43]Read from MH i2c: E2 FD 00 [00:19:43]MH_I2C_Read... [00:19:43]Read from MH i2c: E2 FD 00 2F 2A 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 A1 [00:19:43]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 [00:19:43]wFMCommunicate OK [00:19:43]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:19:43]SAM_PROTO_ProcessDocument remain to read = 17 [00:19:43]wFMCommunicate request_size=4 [00:19:43]MH_SAM_APDU [00:19:43]CAPDU: 80 17 00 00 [00:19:43]Write to MH i2c: E2 08 00 30 2A 80 17 00 00 00 00 00 00 DA [00:19:43]Write i2c OK [00:19:43]MH_I2C_Read... [00:19:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 17! [00:19:43]Read from MH i2c: E2 [00:19:43]MH_I2C_Read... [00:19:43]Read from MH i2c: E2 14 00 [00:19:43]MH_I2C_Read... [00:19:43]Read from MH i2c: E2 14 00 30 2A 00 01 00 06 F7 03 00 00 35 04 06 00 F2 5C ED 68 55 C8 90 00 DF [00:19:43]RAPDU: 01 00 06 F7 03 00 00 35 04 06 00 F2 5C ED 68 55 C8 90 00 [00:19:43]wFMCommunicate OK [00:19:43]SAM_PROTO_ProcessDocument received (without SW) 17 bytes [00:19:43]SAM_PROTO_ProcessDocument done [00:19:43]1209 (1) - 1.0 - номер версии ФФД [00:19:43]1041 (16) - 0000000000874937 - номер ФМ [00:19:43]1040 (4) - 27199 - номер ФД [00:19:43]1038 (4) - 434 - номер смены [00:19:43]1118 (4) - 101 - количество кассовых чеков за смену [00:19:43]1111 (4) - 103 - общее количество ФД за смену [00:19:43]1194 (1194) - счетчики итогов смены [00:19:43] 1134 (4) - 101 - количество чеков со всеми признаками расчетов [00:19:43] 1129 (155) - счетчики операций «приход» [00:19:43] 1135 (4) - 101 - количество чеков по признаку расчетов [00:19:43] 1201 (3) - 19025.00 - общая итоговая сумма в чеках [00:19:43] 1136 (3) - 17973.00 - итоговая сумма в чеках наличными [00:19:43] 1138 (3) - 1052.00 - итоговая сумма в чеках безналичными [00:19:43] 1024 (122) - суммы налогов [00:19:43] 1006 (9) - суммы НДС [00:19:43] 1010 (1) - 0% - код ставки НДС [00:19:43] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:43] 1006 (12) - суммы НДС [00:19:43] 1010 (1) - 12% - код ставки НДС [00:19:43] 1011 (3) - 2020.35 - сумма НДС по ставке [00:19:43] 1007 (9) - суммы НСП [00:19:43] 1014 (1) - 0% - код ставки НСП [00:19:43] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:43] 1007 (11) - суммы НСП [00:19:43] 1014 (1) - 1% - код ставки НСП [00:19:43] 1015 (2) - 168.18 - сумма НСП по ставке [00:19:43] 1007 (9) - суммы НСП [00:19:43] 1014 (1) - 2% - код ставки НСП [00:19:43] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:43] 1007 (9) - суммы НСП [00:19:43] 1014 (1) - 3% - код ставки НСП [00:19:43] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:43] 1007 (9) - суммы НСП [00:19:43] 1014 (1) - 5% - код ставки НСП [00:19:43] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:43] 1007 (9) - суммы НСП [00:19:43] 1014 (1) - 0,50% - код ставки НСП [00:19:43] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:43] 1007 (9) - суммы НСП [00:19:43] 1014 (1) - 1,50% - код ставки НСП [00:19:43] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:43] 1130 (141) - счетчики операций «возврат прихода» [00:19:43] 1135 (4) - 0 - количество чеков по признаку расчетов [00:19:43] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:19:43] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:19:43] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:19:43] 1024 (117) - суммы налогов [00:19:43] 1006 (9) - суммы НДС [00:19:43] 1010 (1) - 0% - код ставки НДС [00:19:43] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:43] 1006 (9) - суммы НДС [00:19:43] 1010 (1) - 12% - код ставки НДС [00:19:43] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:43] 1007 (9) - суммы НСП [00:19:43] 1014 (1) - 0% - код ставки НСП [00:19:43] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:43] 1007 (9) - суммы НСП [00:19:43] 1014 (1) - 1% - код ставки НСП [00:19:43] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:43] 1007 (9) - суммы НСП [00:19:43] 1014 (1) - 2% - код ставки НСП [00:19:43] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:43] 1007 (9) - суммы НСП [00:19:43] 1014 (1) - 3% - код ставки НСП [00:19:43] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:43] 1007 (9) - суммы НСП [00:19:43] 1014 (1) - 5% - код ставки НСП [00:19:43] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:43] 1007 (9) - суммы НСП [00:19:43] 1014 (1) - 0,50% - код ставки НСП [00:19:43] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:43] 1007 (9) - суммы НСП [00:19:43] 1014 (1) - 1,50% - код ставки НСП [00:19:43] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:43] 1131 (141) - счетчики операций «расход» [00:19:43] 1135 (4) - 0 - количество чеков по признаку расчетов [00:19:43] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:19:43] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:19:43] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:19:43] 1024 (117) - суммы налогов [00:19:43] 1006 (9) - суммы НДС [00:19:43] 1010 (1) - 0% - код ставки НДС [00:19:43] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:43] 1006 (9) - суммы НДС [00:19:43] 1010 (1) - 12% - код ставки НДС [00:19:43] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:43] 1007 (9) - суммы НСП [00:19:43] 1014 (1) - 0% - код ставки НСП [00:19:43] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:43] 1007 (9) - суммы НСП [00:19:43] 1014 (1) - 1% - код ставки НСП [00:19:43] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:43] 1007 (9) - суммы НСП [00:19:43] 1014 (1) - 2% - код ставки НСП [00:19:43] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:43] 1007 (9) - суммы НСП [00:19:43] 1014 (1) - 3% - код ставки НСП [00:19:43] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:43] 1007 (9) - суммы НСП [00:19:43] 1014 (1) - 5% - код ставки НСП [00:19:43] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:43] 1007 (9) - суммы НСП [00:19:43] 1014 (1) - 0,50% - код ставки НСП [00:19:43] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:43] 1007 (9) - суммы НСП [00:19:43] 1014 (1) - 1,50% - код ставки НСП [00:19:43] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:43] 1132 (141) - счетчики операций «возврат расхода» [00:19:43] 1135 (4) - 0 - количество чеков по признаку расчетов [00:19:43] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:19:43] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:19:43] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:19:43] 1024 (117) - суммы налогов [00:19:43] 1006 (9) - суммы НДС [00:19:43] 1010 (1) - 0% - код ставки НДС [00:19:43] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:43] 1006 (9) - суммы НДС [00:19:43] 1010 (1) - 12% - код ставки НДС [00:19:43] 1011 (0) - 0.00 - сумма НДС по ставке [00:19:43] 1007 (9) - суммы НСП [00:19:43] 1014 (1) - 0% - код ставки НСП [00:19:43] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:43] 1007 (9) - суммы НСП [00:19:43] 1014 (1) - 1% - код ставки НСП [00:19:43] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:43] 1007 (9) - суммы НСП [00:19:43] 1014 (1) - 2% - код ставки НСП [00:19:43] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:43] 1007 (9) - суммы НСП [00:19:43] 1014 (1) - 3% - код ставки НСП [00:19:43] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:43] 1007 (9) - суммы НСП [00:19:43] 1014 (1) - 5% - код ставки НСП [00:19:43] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:43] 1007 (9) - суммы НСП [00:19:43] 1014 (1) - 0,50% - код ставки НСП [00:19:43] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:43] 1007 (9) - суммы НСП [00:19:43] 1014 (1) - 1,50% - код ставки НСП [00:19:43] 1015 (0) - 0.00 - сумма НСП по ставке [00:19:43] 1133 (588) - - счетчики коррекции - не используются [00:19:43]1077 (6) - 266480933950920 - ФПД [00:19:43]SetTLVBufToDocument [00:19:43]Processing tag 1209 (04B9) [00:19:43]Malloc new data [00:19:43]Processing tag 1041 (0411) [00:19:43]Processing tag 1040 (0410) [00:19:43]Malloc new data [00:19:43]Processing tag 1038 (040E) [00:19:43]Malloc new data [00:19:43]Processing tag 1118 (045E) [00:19:43]Malloc new data [00:19:43]Processing tag 1111 (0457) [00:19:43]Malloc new data [00:19:43]Processing tag 1194 (04AA) [00:19:43]Load OK [00:19:43]SetTLVBufToDocument [00:19:43]Processing tag 1134 (046E) [00:19:43]Malloc new data [00:19:43]Processing tag 1129 (0469) [00:19:43]Load OK [00:19:43]SetTLVBufToDocument [00:19:43]Processing tag 1135 (046F) [00:19:43]Malloc new data [00:19:43]Processing tag 1201 (04B1) [00:19:43]Malloc new data [00:19:43]Processing tag 1136 (0470) [00:19:43]Malloc new data [00:19:43]Processing tag 1138 (0472) [00:19:43]Malloc new data [00:19:43]Processing tag 1024 (0400) [00:19:43]Load OK [00:19:43]SetTLVBufToDocument [00:19:43]Processing tag 1006 (03EE) [00:19:43]Load OK [00:19:43]SetTLVBufToDocument [00:19:44]Processing tag 1010 (03F2) [00:19:44]Malloc new data [00:19:44]Processing tag 1011 (03F3) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1006 (03EE) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1010 (03F2) [00:19:44]Malloc new data [00:19:44]Processing tag 1011 (03F3) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1007 (03EF) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1014 (03F6) [00:19:44]Malloc new data [00:19:44]Processing tag 1015 (03F7) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1007 (03EF) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1014 (03F6) [00:19:44]Malloc new data [00:19:44]Processing tag 1015 (03F7) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1007 (03EF) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1014 (03F6) [00:19:44]Malloc new data [00:19:44]Processing tag 1015 (03F7) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1007 (03EF) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1014 (03F6) [00:19:44]Malloc new data [00:19:44]Processing tag 1015 (03F7) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1007 (03EF) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1014 (03F6) [00:19:44]Malloc new data [00:19:44]Processing tag 1015 (03F7) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1007 (03EF) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1014 (03F6) [00:19:44]Malloc new data [00:19:44]Processing tag 1015 (03F7) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1007 (03EF) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1014 (03F6) [00:19:44]Malloc new data [00:19:44]Processing tag 1015 (03F7) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]SetTLVBufToDocument err=0 [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1130 (046A) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1135 (046F) [00:19:44]Malloc new data [00:19:44]Processing tag 1201 (04B1) [00:19:44]Malloc new data [00:19:44]Processing tag 1136 (0470) [00:19:44]Malloc new data [00:19:44]Processing tag 1138 (0472) [00:19:44]Malloc new data [00:19:44]Processing tag 1024 (0400) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1006 (03EE) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1010 (03F2) [00:19:44]Malloc new data [00:19:44]Processing tag 1011 (03F3) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1006 (03EE) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1010 (03F2) [00:19:44]Malloc new data [00:19:44]Processing tag 1011 (03F3) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1007 (03EF) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1014 (03F6) [00:19:44]Malloc new data [00:19:44]Processing tag 1015 (03F7) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1007 (03EF) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1014 (03F6) [00:19:44]Malloc new data [00:19:44]Processing tag 1015 (03F7) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1007 (03EF) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1014 (03F6) [00:19:44]Malloc new data [00:19:44]Processing tag 1015 (03F7) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1007 (03EF) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1014 (03F6) [00:19:44]Malloc new data [00:19:44]Processing tag 1015 (03F7) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1007 (03EF) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1014 (03F6) [00:19:44]Malloc new data [00:19:44]Processing tag 1015 (03F7) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1007 (03EF) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1014 (03F6) [00:19:44]Malloc new data [00:19:44]Processing tag 1015 (03F7) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1007 (03EF) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1014 (03F6) [00:19:44]Malloc new data [00:19:44]Processing tag 1015 (03F7) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]SetTLVBufToDocument err=0 [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1131 (046B) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1135 (046F) [00:19:44]Malloc new data [00:19:44]Processing tag 1201 (04B1) [00:19:44]Malloc new data [00:19:44]Processing tag 1136 (0470) [00:19:44]Malloc new data [00:19:44]Processing tag 1138 (0472) [00:19:44]Malloc new data [00:19:44]Processing tag 1024 (0400) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1006 (03EE) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1010 (03F2) [00:19:44]Malloc new data [00:19:44]Processing tag 1011 (03F3) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1006 (03EE) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1010 (03F2) [00:19:44]Malloc new data [00:19:44]Processing tag 1011 (03F3) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1007 (03EF) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1014 (03F6) [00:19:44]Malloc new data [00:19:44]Processing tag 1015 (03F7) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1007 (03EF) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1014 (03F6) [00:19:44]Malloc new data [00:19:44]Processing tag 1015 (03F7) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1007 (03EF) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1014 (03F6) [00:19:44]Malloc new data [00:19:44]Processing tag 1015 (03F7) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1007 (03EF) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1014 (03F6) [00:19:44]Malloc new data [00:19:44]Processing tag 1015 (03F7) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1007 (03EF) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1014 (03F6) [00:19:44]Malloc new data [00:19:44]Processing tag 1015 (03F7) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1007 (03EF) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1014 (03F6) [00:19:44]Malloc new data [00:19:44]Processing tag 1015 (03F7) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1007 (03EF) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1014 (03F6) [00:19:44]Malloc new data [00:19:44]Processing tag 1015 (03F7) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]SetTLVBufToDocument err=0 [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1132 (046C) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1135 (046F) [00:19:44]Malloc new data [00:19:44]Processing tag 1201 (04B1) [00:19:44]Malloc new data [00:19:44]Processing tag 1136 (0470) [00:19:44]Malloc new data [00:19:44]Processing tag 1138 (0472) [00:19:44]Malloc new data [00:19:44]Processing tag 1024 (0400) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1006 (03EE) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1010 (03F2) [00:19:44]Malloc new data [00:19:44]Processing tag 1011 (03F3) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1006 (03EE) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1010 (03F2) [00:19:44]Malloc new data [00:19:44]Processing tag 1011 (03F3) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1007 (03EF) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1014 (03F6) [00:19:44]Malloc new data [00:19:44]Processing tag 1015 (03F7) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1007 (03EF) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1014 (03F6) [00:19:44]Malloc new data [00:19:44]Processing tag 1015 (03F7) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1007 (03EF) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1014 (03F6) [00:19:44]Malloc new data [00:19:44]Processing tag 1015 (03F7) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1007 (03EF) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1014 (03F6) [00:19:44]Malloc new data [00:19:44]Processing tag 1015 (03F7) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1007 (03EF) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1014 (03F6) [00:19:44]Malloc new data [00:19:44]Processing tag 1015 (03F7) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1007 (03EF) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1014 (03F6) [00:19:44]Malloc new data [00:19:44]Processing tag 1015 (03F7) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1007 (03EF) [00:19:44]Load OK [00:19:44]SetTLVBufToDocument [00:19:44]Processing tag 1014 (03F6) [00:19:44]Malloc new data [00:19:44]Processing tag 1015 (03F7) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]SetTLVBufToDocument err=0 [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1133 (046D) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Processing tag 1077 (0435) [00:19:44]Malloc new data [00:19:44]SetTLVBufToDocument err=0 [00:19:44]Malloc new data [00:19:44]SAM_PROTO_GetFMData [00:19:44]wFMCommunicate request_size=4 [00:19:44]MH_SAM_APDU [00:19:44]CAPDU: 80 13 03 00 [00:19:44]Write to MH i2c: E2 08 00 31 2A 80 13 03 00 00 00 00 00 DA [00:19:44]Write i2c OK [00:19:44]MH_I2C_Read... [00:19:45]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:19:45]Read from MH i2c: E2 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: E2 FD 00 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: E2 FD 00 31 2A 00 C1 04 85 04 BD 04 6E 04 04 00 DA 66 00 00 69 04 A0 00 6F 04 04 00 AC 66 00 00 B1 04 04 00 78 59 97 23 70 04 04 00 AC 7C 41 22 72 04 04 00 CC DC 55 01 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 80 89 C7 03 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 09 95 50 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 2E 00 00 00 B1 04 03 00 D4 A7 1A 70 04 03 00 04 A5 15 72 04 03 00 D0 02 05 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 AB D4 02 EF 03 09 00 F6 03 90 00 E3 [00:19:45]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 DA 66 00 00 69 04 A0 00 6F 04 04 00 AC 66 00 00 B1 04 04 00 78 59 97 23 70 04 04 00 AC 7C 41 22 72 04 04 00 CC DC 55 01 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 80 89 C7 03 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 09 95 50 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 2E 00 00 00 B1 04 03 00 D4 A7 1A 70 04 03 00 04 A5 15 72 04 03 00 D0 02 05 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 AB D4 02 EF 03 09 00 F6 03 90 00 [00:19:45]wFMCommunicate OK [00:19:45]wFMCommunicate request_size=4 [00:19:45]MH_SAM_APDU [00:19:45]CAPDU: 80 17 00 00 [00:19:45]Write to MH i2c: E2 08 00 32 2A 80 17 00 00 00 00 00 00 DC [00:19:45]Write i2c OK [00:19:45]MH_I2C_Read... [00:19:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:45]Read from MH i2c: E2 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: E2 FD 00 [00:19:45]MH_I2C_Read... [00:19:45]Read from MH i2c: E2 FD 00 32 2A 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 A9 [00:19:45]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:19:46]wFMCommunicate OK [00:19:46]wFMCommunicate request_size=4 [00:19:46]MH_SAM_APDU [00:19:46]CAPDU: 80 17 00 00 [00:19:46]Write to MH i2c: E2 08 00 33 2A 80 17 00 00 00 00 00 00 DD [00:19:46]Write i2c OK [00:19:46]MH_I2C_Read... [00:19:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:46]Read from MH i2c: E2 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 FD 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 FD 00 33 2A 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 7D [00:19:46]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:19:46]wFMCommunicate OK [00:19:46]wFMCommunicate request_size=4 [00:19:46]MH_SAM_APDU [00:19:46]CAPDU: 80 17 00 00 [00:19:46]Write to MH i2c: E2 08 00 34 2A 80 17 00 00 00 00 00 00 DE [00:19:46]Write i2c OK [00:19:46]MH_I2C_Read... [00:19:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:19:46]Read from MH i2c: E2 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 FD 00 [00:19:46]MH_I2C_Read... [00:19:46]Read from MH i2c: E2 FD 00 34 2A 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 63 [00:19:47]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:19:47]wFMCommunicate OK [00:19:47]wFMCommunicate request_size=4 [00:19:47]MH_SAM_APDU [00:19:47]CAPDU: 80 17 00 00 [00:19:47]Write to MH i2c: E2 08 00 35 2A 80 17 00 00 00 00 00 00 DF [00:19:47]Write i2c OK [00:19:47]MH_I2C_Read... [00:19:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:19:47]Read from MH i2c: E2 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 DE 00 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 DE 00 35 2A 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 BE [00:19:47]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:19:47]wFMCommunicate OK [00:19:47]SAM_PROTO_GetFMData done [00:19:47]Malloc new data [00:19:47]Malloc new data [00:19:47]Malloc new data [00:19:47]Malloc new data [00:19:47]KKMLoadAndSignCloseShiftData err=0 [00:19:47]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Казаков Ч. 30.07.2024 00:19 Смена: 434 РНМ: 0000000000092663 ЗНМ: 0300000043 СНО: Общий режим Чеков за смену: 101 ФД за смену: 103 Всего чеков: 101 ИТОГИ ПРИХОД Чеков: 101 Общий итог: 19025.00 Итого наличными: 17973.00 Итого безнал.: 1052.00 НДС 0% : 0.00 НДС 12% : 2020.35 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 168.18 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 17973.00 НС Приход: 5971214.00 НС Возвр.Прихода: 17469.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 27199 ФМ: 0000000000874937 ФПД: 266480933950920 [00:19:47]StoreToDocumentArchive [00:19:47]shift 434 fd 27199 [00:19:47]save to /storage/0434/doc_00027199 [00:19:47]save last doc name /storage/0434/doc_00027199 to /storage/kkm_last_doc_name [00:19:47]save OK [00:19:47]Clear old archive folders... [00:19:47]Remove dir /storage/0266 [00:19:47]opendir ok [00:19:47]file . [00:19:47]file .. [00:19:47]file doc_1722298737 [00:19:47]remove file /storage/0266/doc_1722298737 [00:19:47]remove dir /storage/0266 [00:19:47]NVStorageSaveData kkm_registers [00:19:47]File name is /storage/kkm_registers [00:19:47]Write 24 bytes [00:19:47]NVStorageSaveData done [00:19:47]NVStorageSaveData kkm_registers [00:19:47]File name is /storage/kkm_registers [00:19:47]Write 24 bytes [00:19:47]NVStorageSaveData done [00:19:47]ProcessDocumentItem done err = 0, tmpTLVsize=1377 [00:19:47]tlvbuf is 00162F90 [00:19:47]SAM_PROTO_ClearQueue [00:19:47]wFMCommunicate request_size=4 [00:19:47]MH_SAM_APDU [00:19:47]CAPDU: 80 09 00 00 [00:19:47]Write to MH i2c: E2 08 00 36 2A 80 09 00 00 00 00 00 00 D2 [00:19:47]Write i2c OK [00:19:47]MH_I2C_Read... [00:19:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:19:47]Read from MH i2c: E2 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 03 00 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 03 00 36 2A 00 90 00 D4 [00:19:47]RAPDU: 90 00 [00:19:47]wFMCommunicate OK [00:19:47]SAM_PROTO_ClearQueue done [00:19:47]KKMCreateOFDPacket [00:19:47]OFDProtocolAddRootSTLVToBuf [00:19:47]FM_MakeSignedData [00:19:47]FM_MakeSignedData [00:19:47]SAM_PROTO_SignData [00:19:47]wFMCommunicate request_size=4 [00:19:47]MH_SAM_APDU [00:19:47]CAPDU: 80 0D 01 02 [00:19:47]Write to MH i2c: E2 08 00 37 2A 80 0D 01 02 00 00 00 00 DA [00:19:47]Write i2c OK [00:19:47]MH_I2C_Read... [00:19:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:19:47]Read from MH i2c: E2 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 03 00 [00:19:47]MH_I2C_Read... [00:19:47]Read from MH i2c: E2 03 00 37 2A 00 90 00 D5 [00:19:47]RAPDU: 90 00 [00:19:47]wFMCommunicate OK [00:19:47]wFMCommunicate request_size=255 [00:19:47]MH_SAM_APDU [00:19:47]CAPDU: 80 0D 02 02 FA 05 00 61 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 13 00 D0 9A D0 B0 D0 B7 D0 B0 D0 BA D0 BE D0 B2 20 D0 A7 2E 20 F4 03 04 00 A4 31 A8 66 0E 04 04 00 B2 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 5E 04 04 00 65 00 00 00 57 04 04 00 67 00 00 00 AA 04 D5 04 6E 04 04 00 65 00 00 00 69 04 A2 00 6F 04 04 00 65 00 00 00 B1 04 03 00 A4 07 1D 70 04 03 00 B4 6C 1B 72 04 03 00 F0 9A 01 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 33 15 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:19:47]Write to MH i2c: E2 02 01 38 2A 80 0D 02 02 FA 00 05 00 61 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 13 00 D0 9A D0 B0 D0 B7 D0 B0 D0 BA D0 BE D0 B2 20 D0 A7 2E 20 F4 03 04 00 A4 31 A8 66 0E 04 04 00 B2 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 5E 04 04 00 65 00 00 00 57 04 04 00 67 00 00 00 AA 04 D5 04 6E 04 04 00 65 00 00 00 69 04 A2 00 6F 04 04 00 65 00 00 00 B1 04 03 00 A4 07 1D 70 04 03 00 B4 6C 1B 72 04 03 00 F0 9A 01 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 33 15 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 00 B1 [00:19:48]Write i2c OK [00:19:48]MH_I2C_Read... [00:19:48]OFD Sender: No OFD packet to send [00:19:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:48]Read from MH i2c: E2 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 03 00 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 03 00 38 2A 00 90 00 D6 [00:19:48]RAPDU: 90 00 [00:19:48]wFMCommunicate OK [00:19:48]wFMCommunicate request_size=255 [00:19:48]MH_SAM_APDU [00:19:48]CAPDU: 80 0D 02 02 FA 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 B2 41 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 [00:19:48]Write to MH i2c: E2 02 01 39 2A 80 0D 02 02 FA 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 B2 41 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 00 00 3B [00:19:48]Write i2c OK [00:19:48]MH_I2C_Read... [00:19:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:48]Read from MH i2c: E2 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 03 00 [00:19:48]MH_I2C_Read... [00:19:48]Read from MH i2c: E2 03 00 39 2A 00 90 00 D7 [00:19:48]RAPDU: 90 00 [00:19:48]wFMCommunicate OK [00:19:48]wFMCommunicate request_size=255 [00:19:48]MH_SAM_APDU [00:19:48]CAPDU: 80 0D 02 02 FA 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:19:49]Write to MH i2c: E2 02 01 3A 2A 80 0D 02 02 FA 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 00 A4 [00:19:49]Write i2c OK [00:19:49]MH_I2C_Read... [00:19:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:49]Read from MH i2c: E2 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: E2 03 00 [00:19:49]MH_I2C_Read... [00:19:49]Read from MH i2c: E2 03 00 3A 2A 00 90 00 D8 [00:19:49]RAPDU: 90 00 [00:19:49]wFMCommunicate OK [00:19:49]wFMCommunicate request_size=255 [00:19:49]MH_SAM_APDU [00:19:49]CAPDU: 80 0D 02 02 FA 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:19:49]Write to MH i2c: E2 02 01 3B 2A 80 0D 02 02 FA 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 00 A4 [00:19:49]Write i2c OK [00:19:49]MH_I2C_Read... [00:19:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:50]Read from MH i2c: E2 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 03 00 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 03 00 3B 2A 00 90 00 D9 [00:19:50]RAPDU: 90 00 [00:19:50]wFMCommunicate OK [00:19:50]wFMCommunicate request_size=255 [00:19:50]MH_SAM_APDU [00:19:50]CAPDU: 80 0D 02 02 FA 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:50]Write to MH i2c: E2 02 01 3C 2A 80 0D 02 02 FA 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 66 [00:19:50]Write i2c OK [00:19:50]MH_I2C_Read... [00:19:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:50]Read from MH i2c: E2 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 03 00 [00:19:50]MH_I2C_Read... [00:19:50]Read from MH i2c: E2 03 00 3C 2A 00 90 00 DA [00:19:50]RAPDU: 90 00 [00:19:50]wFMCommunicate OK [00:19:50]wFMCommunicate request_size=136 [00:19:50]MH_SAM_APDU [00:19:50]CAPDU: 80 0D 02 02 83 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3F 6A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 35 04 06 00 F2 5C ED 68 55 C8 [00:19:50]Write to MH i2c: E2 8B 00 3D 2A 80 0D 02 02 83 00 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3F 6A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 35 04 06 00 F2 5C ED 68 55 C8 00 00 90 [00:19:51]Write i2c OK [00:19:51]MH_I2C_Read... [00:19:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:19:51]Read from MH i2c: E2 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: E2 03 00 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: E2 03 00 3D 2A 00 90 00 DB [00:19:51]RAPDU: 90 00 [00:19:51]wFMCommunicate OK [00:19:51]wFMCommunicate request_size=4 [00:19:51]MH_SAM_APDU [00:19:51]CAPDU: 80 0D 03 02 [00:19:51]Write to MH i2c: E2 08 00 3E 2A 80 0D 03 02 00 00 00 00 E3 [00:19:51]Write i2c OK [00:19:51]MH_I2C_Read... [00:19:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:19:51]Read from MH i2c: E2 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: E2 0B 00 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: E2 0B 00 3E 2A 00 CA 0A 1C 18 08 F0 A1 D6 90 00 5B [00:19:51]RAPDU: CA 0A 1C 18 08 F0 A1 D6 90 00 [00:19:51]wFMCommunicate OK [00:19:51]SAM_PROTO_SignData done [00:19:51]FM_MakeSignedData done [00:19:51]CreateOFDProtocolMessage [00:19:51]wFMCommunicate request_size=4 [00:19:51]MH_SAM_APDU [00:19:51]CAPDU: 80 11 00 00 [00:19:51]Write to MH i2c: E2 08 00 3F 2A 80 11 00 00 00 00 00 00 E3 [00:19:51]Write i2c OK [00:19:51]MH_I2C_Read... [00:19:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:19:51]Read from MH i2c: E2 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: E2 17 00 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: E2 17 00 3F 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 3C [00:19:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [00:19:51]wFMCommunicate OK [00:19:51]CreateOFDProtocolMessage done [00:19:51]OFDSenderStorePacket 27199 [00:19:51]StoreOFDPacket docnum=27199 [00:19:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 75 05 00 00 5E FB 6D 05 BE 3D 5A 05 01 00 05 00 61 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 13 00 D0 9A D0 B0 D0 B7 D0 B0 D0 BA D0 BE D0 B2 20 D0 A7 2E 20 F4 03 04 00 A4 31 A8 66 0E 04 04 00 B2 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 5E 04 04 00 65 00 00 00 57 04 04 00 67 00 00 00 AA 04 D5 04 6E 04 04 00 65 00 00 00 69 04 A2 00 6F 04 04 00 65 00 00 00 B1 04 03 00 A4 07 1D 70 04 03 00 B4 6C 1B 72 04 03 00 F0 9A 01 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 33 15 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 B2 41 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 3F 6A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 35 04 06 00 F2 5C ED 68 55 C8 CA 0A 1C 18 08 F0 A1 D6 [00:19:51]CheckFolder [00:19:51]dirname=/storage/ofd_packets [00:19:51]CheckFolder done [00:19:51]ProducePacketName [00:19:51]name=ofd_packets/00027199 [00:19:51]NVStorageSaveData ofd_packets/00027199 [00:19:51]File name is /storage/ofd_packets/00027199 [00:19:51]Write 1427 bytes [00:19:51]NVStorageSaveData done [00:19:51]OFDSenderStorePacket done [00:19:51]KKMCreateOFDPacket done [00:19:51]NVStorageSaveData kkm_last_timestamp [00:19:51]File name is /storage/kkm_last_timestamp [00:19:51]Write 4 bytes [00:19:51]NVStorageSaveData done [00:19:51]ExternCall_PrintAddStr [00:19:51]wPrintStart [00:19:51]Write to MH i2c: 01 00 00 40 2A 6A [00:19:51]Write i2c OK [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: 01 [00:19:51]MH_I2C_Read... [00:19:51]OFD Sender: Processing packet 27199 [packets to send 9, broken 8] [00:19:51]ProducePacketName [00:19:51]name=ofd_packets/00027199 [00:19:51]OFD Sender: To server: pG, [00:19:51]CommunicateWithHost lk.salyk.kg:30040 [00:19:51]ConnectInit lk.salyk.kg [00:19:51]Read from MH i2c: 01 07 00 [00:19:51]MH_I2C_Read... [00:19:51]Read from MH i2c: 01 07 00 40 2A 00 00 00 00 00 FF 0F 7F [00:19:51]RasterBufferAndPrint [00:19:51]line Отчет о закрытии смены [00:19:51]line ФФД: 1.0 [00:19:51]line ИНН: 02508201610067 [00:19:51]line Кассир: Казаков Ч. [00:19:51]line 30.07.2024 00:19 [00:19:51]line Смена: 434 [00:19:51]line РНМ: 0000000000092663 [00:19:51]line ЗНМ: 0300000043 [00:19:51]line СНО: Общий режим [00:19:51]line Чеков за смену: 101 [00:19:51]line ФД за смену: 103 [00:19:51]line Всего чеков: 101 [00:19:51]line ИТОГИ ПРИХОД [00:19:51]line Чеков: 101 [00:19:51]line Общий итог: 19025.00 [00:19:51]line Итого наличными: 17973.00 [00:19:51]line Итого безнал.: 1052.00 [00:19:51]line НДС 0% : 0.00 [00:19:51]line НДС 12% : 2020.35 [00:19:51]line НСП 0% : 0.00 [00:19:51]line НСП 1,50% : 0.00 [00:19:51]line НСП 0,50% : 0.00 [00:19:51]line НСП 5% : 0.00 [00:19:51]line НСП 3% : 0.00 [00:19:51]line НСП 2% : 0.00 [00:19:51]line НСП 1% : 168.18 [00:19:51]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:19:51]line Чеков: 0 [00:19:51]line Общий итог: 0.00 [00:19:51]line Итого наличными: 0.00 [00:19:51]line Итого безнал.: 0.00 [00:19:51]line НДС 0% : 0.00 [00:19:51]line НДС 12% : 0.00 [00:19:51]line НСП 0% : 0.00 [00:19:51]line НСП 1,50% : 0.00 [00:19:51]line НСП 0,50% : 0.00 [00:19:51]line НСП 5% : 0.00 [00:19:51]line НСП 3% : 0.00 [00:19:51]line НСП 2% : 0.00 [00:19:51]line НСП 1% : 0.00 [00:19:51]line ИТОГИ РАСХОД [00:19:51]line Чеков: 0 [00:19:51]line Общий итог: 0.00 [00:19:51]line Итого наличными: 0.00 [00:19:51]line Итого безнал.: 0.00 [00:19:51]line НДС 0% : 0.00 [00:19:51]line НДС 12% : 0.00 [00:19:51]line НСП 0% : 0.00 [00:19:51]line НСП 1,50% : 0.00 [00:19:51]line НСП 0,50% : 0.00 [00:19:51]line НСП 5% : 0.00 [00:19:51]line НСП 3% : 0.00 [00:19:51]line НСП 2% : 0.00 [00:19:51]line НСП 1% : 0.00 [00:19:51]line ИТОГИ ВОЗВРАТ РАСХОДА [00:19:51]line Чеков: 0 [00:19:51]line Общий итог: 0.00 [00:19:51]line Итого наличными: 0.00 [00:19:51]line Итого безнал.: 0.00 [00:19:51]line НДС 0% : 0.00 [00:19:51]line НДС 12% : 0.00 [00:19:51]line НСП 0% : 0.00 [00:19:51]line НСП 1,50% : 0.00 [00:19:51]line НСП 0,50% : 0.00 [00:19:51]line НСП 5% : 0.00 [00:19:51]line НСП 3% : 0.00 [00:19:51]line НСП 2% : 0.00 [00:19:51]line НСП 1% : 0.00 [00:19:51]line Сумма внесений: 0.00 [00:19:51]line Сумма выплат: 0.00 [00:19:51]line Нал. в кассе: 17973.00 [00:19:51]line НС Приход: 5971214.00 [00:19:51]line НС Возвр.Прихода: 17469.00 [00:19:51]line НС Расход: 0.00 [00:19:51]line НС Возвр.Расхода: 0.00 [00:19:51]line ФД: 27199 [00:19:51]line ФМ: 0000000000874937 [00:19:51]line ФПД: 266480933950920 [00:19:51]written 0, free lines is 4095 [00:19:51]Connected sock=10 [00:19:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 75 05 00 00 5E FB 6D 05 BE 3D 5A 05 01 00 05 00 61 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 13 00 D0 9A D0 B0 D0 B7 D0 B0 D0 BA D0 BE D0 B2 20 D0 A7 2E 20 F4 03 04 00 A4 31 A8 66 0E 04 04 00 B2 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 5E 04 04 00 65 00 00 00 57 04 04 00 67 00 00 00 AA 04 D5 04 6E 04 04 00 65 00 00 00 69 04 A2 00 6F 04 04 00 65 00 00 00 B1 04 03 00 A4 07 1D 70 04 03 00 B4 6C 1B 72 04 03 00 F0 9A 01 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 33 15 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 B2 41 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 Write to MH i2c: 03 01 01 00 00 00 02 90 F7 2A 03 BA 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 [00:19:52]00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 Write i2c OK [00:19:52]F6 MH_I2C_Read... [00:19:52]03 Read from MH i2c: 01 01 00 [00:19:52]05 MH_I2C_Read... [00:19:52]F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A Read from MH i2c: 04 01 8D 07 00 00 6F [00:19:52]04 MH_I2C_Read... [00:19:52]04 Read from MH i2c: 00 01 00 07 00 00 00 90 2A 00 00 B1 00 04 00 00 00 00 00 70 8E 04 0B 00 5A 00 [00:19:52]72 RasterBufferAndPrint [00:19:52]04 line [00:19:52]00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 line [00:19:52]03 line [00:19:52]00 line [00:19:52]00 line [00:19:52]EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 written 0, free lines is 3089 [00:19:52]00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 MH_Cut [00:19:52]EF Write to MH i2c: 03 D1 09 01 00 00 F6 97 03 2A 01 01 00 93 02 [00:19:53]F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 Write i2c OK [00:19:53]00 MH_I2C_Read... [00:19:53]F6 Read from MH i2c: 03 D1 01 [00:19:53]00 MH_I2C_Read... [00:19:53]04 F7 03 00 00 EF 03 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 Read from MH i2c: 01 D1 00 01 00 00 F7 [00:19:53]03 MH_I2C_Read... [00:19:53]00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 Read from MH i2c: 00 D1 F6 01 03 00 01 97 00 2A 02 00 F7 92 03 [00:19:53]00 Write to MH i2c: 00 01 EF 00 03 00 09 98 00 2A F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 C2 00 [00:19:53]04 F7 03 00 00 EF 03 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 3F 6A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 35 04 06 00 F2 5C ED 68 55 C8 CA 0A 1C 18 08 F0 A1 D6 [00:19:53]Write i2c OK [00:19:53]MH_I2C_Read... [00:19:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 4F EF 47 00 3A F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 3F 6A 00 00 F4 03 04 00 FE D7 A7 66 B6 04 01 00 00 FC 39 90 59 36 62 3A AA [00:19:53]CommunicateWithHost err = 0 [00:19:53]CheckOFDResponse [00:19:53]1017 (14) - 77093643461234 [00:19:53]1041 (16) - 0000000000874937 [00:19:53]1040 (4) - 27199 [00:19:53]1012 (4) - 29.07.2024 17:57 [00:19:53]1206 (1) - 0 [00:19:53]OFD Sender: Remove packet 27199 [00:19:53]ProducePacketName [00:19:53]name=ofd_packets/00027199 [00:19:53]NVStorageDeleteData [00:19:53]*** Cut start [00:19:53]*** Partial cut [00:19:53]*** CUTSNS_PIN = 1 [00:19:53]*** CUTSNS_PIN = 0 [00:19:54]*** Brake cut motor [00:19:54]OFD Sender: No OFD packet to send [00:19:54]Read from MH i2c: 01 [00:19:54]MH_I2C_Read... [00:19:54]*** Stop cut motor [00:19:54]*** Cut end [00:19:54]Read from MH i2c: 01 07 00 [00:19:54]MH_I2C_Read... [00:19:54]Read from MH i2c: 01 07 00 98 2A 00 00 00 00 00 FF 0F D7 [00:19:54]process_action close_shift done [00:19:54]requested_data is exist [00:19:54]produce_requested_data [00:19:54]requested_item fd.num is exist - process it [00:19:54]SAM_PROTO_GetFieldsCounters [00:19:54]wFMCommunicate request_size=4 [00:19:54]MH_SAM_APDU [00:19:54]CAPDU: 80 13 00 00 [00:19:54]Write to MH i2c: E2 08 00 99 2A 80 13 00 00 00 00 00 00 3F [00:19:54]Write i2c OK [00:19:54]MH_I2C_Read... [00:19:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:54]Read from MH i2c: E2 [00:19:54]MH_I2C_Read... [00:19:54]Read from MH i2c: E2 62 00 [00:19:54]MH_I2C_Read... [00:19:54]Read from MH i2c: E2 62 00 99 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 3F 6A 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [00:19:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 3F 6A 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:19:54]wFMCommunicate OK [00:19:54]SAM_PROTO_GetFieldsCounters done [00:19:54]requested_item shift.num is exist - process it [00:19:54]requested_item shift.opened is exist - process it [00:19:54]req_shift_opened [00:19:54]FM_GetShiftState [00:19:54]SAM_PROTO_GetShiftState [00:19:54]wFMCommunicate request_size=4 [00:19:54]MH_SAM_APDU [00:19:54]CAPDU: 80 13 01 00 [00:19:54]Write to MH i2c: E2 08 00 9A 2A 80 13 01 00 00 00 00 00 41 [00:19:54]Write i2c OK [00:19:54]MH_I2C_Read... [00:19:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:54]Read from MH i2c: E2 [00:19:54]MH_I2C_Read... [00:19:54]Read from MH i2c: E2 0E 00 [00:19:54]MH_I2C_Read... [00:19:54]Read from MH i2c: E2 0E 00 9A 2A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 4C [00:19:54]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:19:54]wFMCommunicate OK [00:19:54]SAM_PROTO_GetShiftState done [00:19:54]FM_GetShiftState done [00:19:54]req_shift_opened done [00:19:54]requested_item shift.open_date is exist - process it [00:19:54]req_shift_open_date [00:19:54]FM_GetShiftState [00:19:54]SAM_PROTO_GetShiftState [00:19:54]wFMCommunicate request_size=4 [00:19:54]MH_SAM_APDU [00:19:54]CAPDU: 80 13 01 00 [00:19:54]Write to MH i2c: E2 08 00 9B 2A 80 13 01 00 00 00 00 00 42 [00:19:54]Write i2c OK [00:19:54]MH_I2C_Read... [00:19:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:54]Read from MH i2c: E2 [00:19:54]MH_I2C_Read... [00:19:54]Read from MH i2c: E2 0E 00 [00:19:54]MH_I2C_Read... [00:19:54]Read from MH i2c: E2 0E 00 9B 2A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 4D [00:19:54]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:19:54]wFMCommunicate OK [00:19:54]SAM_PROTO_GetShiftState done [00:19:54]FM_GetShiftState done [00:19:54]req_shift_open_date done [00:19:54]produce_requested_data done [00:19:54]produce_requested_data return {"fd.num":27199,"shift.num":434,"shift.opened":0,"shift.open_date":0} [00:19:54]process_action_free close_shift [00:19:54]json_value_free [00:19:54]json_value_free done [00:19:54]process_json_proto returns [00:19:54]Send response to host [00:19:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":27199,"shift.num":434,"shift.opened":0,"shift.open_date":0}}} [00:19:54]free response buf [00:19:54]execute_script done [00:19:54]execute_script returns [00:19:54]free content buf [00:19:54]Sock 8.Close socket [00:19:54]Sock 8.Thread stoped [00:19:59]OFD Sender: No OFD packet to send [00:20:04]OFD Sender: No OFD packet to send [00:20:09]OFD Sender: No OFD packet to send [00:20:14]OFD Sender: No OFD packet to send [00:20:19]OFD Sender: No OFD packet to send [00:20:24]OFD Sender: No OFD packet to send [00:20:29]OFD Sender: No OFD packet to send [00:20:34]OFD Sender: No OFD packet to send [00:20:39]OFD Sender: No OFD packet to send [00:20:44]OFD Sender: No OFD packet to send [00:20:49]OFD Sender: No OFD packet to send [00:20:54]OFD Sender: No OFD packet to send [00:20:59]OFD Sender: No OFD packet to send [00:21:04]OFD Sender: No OFD packet to send [00:21:09]OFD Sender: No OFD packet to send [00:21:14]OFD Sender: No OFD packet to send [00:21:19]OFD Sender: No OFD packet to send [00:21:24]OFD Sender: No OFD packet to send [00:21:29]OFD Sender: No OFD packet to send [00:21:34]OFD Sender: No OFD packet to send [00:21:39]OFD Sender: No OFD packet to send [00:21:44]OFD Sender: No OFD packet to send [00:21:49]OFD Sender: No OFD packet to send [00:21:54]OFD Sender: No OFD packet to send [00:21:59]OFD Sender: No OFD packet to send [00:22:04]OFD Sender: No OFD packet to send [00:22:09]OFD Sender: No OFD packet to send [00:22:14]OFD Sender: No OFD packet to send [00:22:19]OFD Sender: No OFD packet to send [00:22:24]OFD Sender: No OFD packet to send [00:22:29]OFD Sender: No OFD packet to send [00:22:34]OFD Sender: No OFD packet to send [00:22:39]OFD Sender: No OFD packet to send [00:22:44]OFD Sender: No OFD packet to send [00:22:49]OFD Sender: No OFD packet to send [00:22:54]OFD Sender: No OFD packet to send [00:22:59]OFD Sender: No OFD packet to send [00:23:04]OFD Sender: No OFD packet to send [00:23:09]OFD Sender: No OFD packet to send [00:23:14]OFD Sender: No OFD packet to send [00:23:19]OFD Sender: No OFD packet to send [00:23:24]OFD Sender: No OFD packet to send [00:23:29]OFD Sender: No OFD packet to send [00:23:34]OFD Sender: No OFD packet to send [00:23:39]OFD Sender: No OFD packet to send [00:23:44]OFD Sender: No OFD packet to send [00:23:49]OFD Sender: No OFD packet to send [00:23:54]OFD Sender: No OFD packet to send [00:23:59]OFD Sender: No OFD packet to send [00:24:04]OFD Sender: No OFD packet to send [00:24:09]OFD Sender: No OFD packet to send [00:24:14]OFD Sender: No OFD packet to send [00:24:19]OFD Sender: No OFD packet to send [00:24:24]OFD Sender: No OFD packet to send [00:24:29]OFD Sender: No OFD packet to send [00:24:34]OFD Sender: No OFD packet to send [00:24:39]OFD Sender: No OFD packet to send [00:24:44]OFD Sender: No OFD packet to send [00:24:49]OFD Sender: No OFD packet to send [00:24:54]OFD Sender: No OFD packet to send [00:24:59]OFD Sender: No OFD packet to send [00:25:04]OFD Sender: No OFD packet to send [00:25:09]OFD Sender: No OFD packet to send [00:25:14]OFD Sender: No OFD packet to send [00:25:19]OFD Sender: No OFD packet to send [00:25:24]OFD Sender: No OFD packet to send [00:25:29]OFD Sender: No OFD packet to send [00:25:34]OFD Sender: No OFD packet to send [00:25:39]OFD Sender: No OFD packet to send [00:25:44]OFD Sender: No OFD packet to send [00:25:49]OFD Sender: No OFD packet to send [00:25:54]OFD Sender: No OFD packet to send [00:25:59]OFD Sender: No OFD packet to send [00:26:04]OFD Sender: No OFD packet to send [00:26:09]OFD Sender: No OFD packet to send [00:26:14]OFD Sender: No OFD packet to send [00:26:19]OFD Sender: No OFD packet to send [00:26:24]OFD Sender: No OFD packet to send [00:26:29]OFD Sender: No OFD packet to send [00:26:34]OFD Sender: No OFD packet to send [00:26:39]OFD Sender: No OFD packet to send [00:26:44]OFD Sender: No OFD packet to send [00:26:49]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:15]OFD Sender: No OFD packet to send [00:38:20]OFD Sender: No OFD packet to send [00:38:25]OFD Sender: No OFD packet to send [00:38:30]OFD Sender: No OFD packet to send [00:38:35]OFD Sender: No OFD packet to send [00:38:40]OFD Sender: No OFD packet to send [00:38:45]OFD Sender: No OFD packet to send [00:38:50]OFD Sender: No OFD packet to send [00:38:55]OFD Sender: No OFD packet to send [00:39:00]OFD Sender: No OFD packet to send [00:39:05]OFD Sender: No OFD packet to send [00:39:10]OFD Sender: No OFD packet to send [00:39:15]OFD Sender: No OFD packet to send [00:39:20]OFD Sender: No OFD packet to send [00:39:25]OFD Sender: No OFD packet to send [00:39:30]OFD Sender: No OFD packet to send [00:39:35]OFD Sender: No OFD packet to send [00:39:40]OFD Sender: No OFD packet to send [00:39:45]OFD Sender: No OFD packet to send [00:39:50]OFD Sender: No OFD packet to send [00:39:55]OFD Sender: No OFD packet to send [00:40:00]OFD Sender: No OFD packet to send [00:40:05]OFD Sender: No OFD packet to send [00:40:10]OFD Sender: No OFD packet to send [00:40:15]OFD Sender: No OFD packet to send [00:40:20]OFD Sender: No OFD packet to send [00:40:25]OFD Sender: No OFD packet to send [00:40:30]OFD Sender: No OFD packet to send [00:40:35]OFD Sender: No OFD packet to send [00:40:40]OFD Sender: No OFD packet to send [00:40:45]OFD Sender: No OFD packet to send [00:40:50]OFD Sender: No OFD packet to send [00:40:55]OFD Sender: No OFD packet to send [00:41:00]OFD Sender: No OFD packet to send [00:41:05]OFD Sender: No OFD packet to send [00:41:10]OFD Sender: No OFD packet to send [00:41:15]OFD Sender: No OFD packet to send [00:41:20]OFD Sender: No OFD packet to send [00:41:25]OFD Sender: No OFD packet to send [00:41:30]OFD Sender: No OFD packet to send [00:41:35]OFD Sender: No OFD packet to send [00:41:37]accept exits with 9 [00:41:37]New connection [00:41:37]New thread 3066785124 created [00:41:37]Thread 3066928484 joined [00:41:37]Waiting for new connection... [00:41:37] Sock 9.Parse request [00:41:37]Sock 9.Check first char [00:41:37]Sock 9.First char is OK [00:41:37]request: POST /json_proto HTTP/1.0 [00:41:37]Method: POST [00:41:37]URL: /json_proto [00:41:37]Method is POST - this is cgi request [00:41:37]url: /json_proto [00:41:37]query_string will be loaded in cgi processing [00:41:37]execute_cgi json_proto POST (null) [00:41:37]execute_cgi path=json_proto method=POST [00:41:37]POST find Content-Length [00:41:37]Host: 172.17.45.8:8080 [00:41:37]Content-Length: 215 [00:41:37]Content-Type: application/json [00:41:37] [00:41:37]POST finish read [00:41:37]Found Content-Length = 215 [00:41:37]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:41:37]execute_script... [00:41:37]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:41:37]POST & json_proto [00:41:37]process_json_proto [00:41:37]json parsed OK: [00:41:37]protocol is kg_v1.0 [00:41:37]action value=get_value [00:41:37]process_action get_value [00:41:37]cmd_get_value [00:41:37]process_action get_value done [00:41:37]requested_data is exist [00:41:37]produce_requested_data [00:41:37]requested_item kkm.sn is exist - process it [00:41:37]requested_item kkm.ver is exist - process it [00:41:37]requested_item fm.sn is exist - process it [00:41:37]wFMCommunicate request_size=4 [00:41:37]MH_SAM_APDU [00:41:37]CAPDU: 80 11 00 00 [00:41:37]Write to MH i2c: E2 08 00 9C 2A 80 11 00 00 00 00 00 00 40 [00:41:37]Write i2c OK [00:41:37]MH_I2C_Read... [00:41:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:37]Read from MH i2c: E2 [00:41:37]MH_I2C_Read... [00:41:37]Read from MH i2c: E2 17 00 [00:41:37]MH_I2C_Read... [00:41:37]Read from MH i2c: E2 17 00 9C 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 99 [00:41:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [00:41:37]wFMCommunicate OK [00:41:37]requested_item fd.num is exist - process it [00:41:37]SAM_PROTO_GetFieldsCounters [00:41:37]wFMCommunicate request_size=4 [00:41:37]MH_SAM_APDU [00:41:37]CAPDU: 80 13 00 00 [00:41:37]Write to MH i2c: E2 08 00 9D 2A 80 13 00 00 00 00 00 00 43 [00:41:37]Write i2c OK [00:41:37]MH_I2C_Read... [00:41:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:41:37]Read from MH i2c: E2 [00:41:37]MH_I2C_Read... [00:41:37]Read from MH i2c: E2 62 00 [00:41:37]MH_I2C_Read... [00:41:37]Read from MH i2c: E2 62 00 9D 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 3F 6A 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [00:41:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 3F 6A 00 00 0E 04 04 00 B2 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:41:37]wFMCommunicate OK [00:41:37]SAM_PROTO_GetFieldsCounters done [00:41:37]requested_item shift.num is exist - process it [00:41:37]requested_item shift.opened is exist - process it [00:41:37]req_shift_opened [00:41:37]FM_GetShiftState [00:41:37]SAM_PROTO_GetShiftState [00:41:37]wFMCommunicate request_size=4 [00:41:37]MH_SAM_APDU [00:41:37]CAPDU: 80 13 01 00 [00:41:37]Write to MH i2c: E2 08 00 9E 2A 80 13 01 00 00 00 00 00 45 [00:41:37]Write i2c OK [00:41:37]MH_I2C_Read... [00:41:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:37]Read from MH i2c: E2 [00:41:37]MH_I2C_Read... [00:41:37]Read from MH i2c: E2 0E 00 [00:41:37]MH_I2C_Read... [00:41:37]Read from MH i2c: E2 0E 00 9E 2A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 50 [00:41:37]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:41:37]wFMCommunicate OK [00:41:37]SAM_PROTO_GetShiftState done [00:41:37]FM_GetShiftState done [00:41:37]req_shift_opened done [00:41:37]requested_item shift.open_date is exist - process it [00:41:37]req_shift_open_date [00:41:37]FM_GetShiftState [00:41:37]SAM_PROTO_GetShiftState [00:41:37]wFMCommunicate request_size=4 [00:41:37]MH_SAM_APDU [00:41:37]CAPDU: 80 13 01 00 [00:41:37]Write to MH i2c: E2 08 00 9F 2A 80 13 01 00 00 00 00 00 46 [00:41:37]Write i2c OK [00:41:37]MH_I2C_Read... [00:41:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:37]Read from MH i2c: E2 [00:41:37]MH_I2C_Read... [00:41:37]Read from MH i2c: E2 0E 00 [00:41:37]MH_I2C_Read... [00:41:37]Read from MH i2c: E2 0E 00 9F 2A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 51 [00:41:37]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:41:37]wFMCommunicate OK [00:41:37]SAM_PROTO_GetShiftState done [00:41:37]FM_GetShiftState done [00:41:37]req_shift_open_date done [00:41:37]produce_requested_data done [00:41:37]produce_requested_data return {"kkm.sn":"0300000043","kkm.ver":"001","fm.sn":"0000000000874937","fd.num":27199,"shift.num":434,"shift.opened":0,"shift.open_date":0} [00:41:37]process_action_free get_value [00:41:37]json_value_free [00:41:37]json_value_free done [00:41:37]process_json_proto returns [00:41:37]Send response to host [00:41:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000043","kkm.ver":"001","fm.sn":"0000000000874937","fd.num":27199,"shift.num":434,"shift.opened":0,"shift.open_date":0}}} [00:41:37]free response buf [00:41:37]execute_script done [00:41:37]execute_script returns [00:41:37]free content buf [00:41:37]Sock 9.Close socket [00:41:37]Sock 9.Thread stoped [00:41:37]accept exits with 8 [00:41:37]New connection [00:41:37]New thread 3066928484 created [00:41:37]Thread 3066785124 joined [00:41:37]Waiting for new connection... [00:41:37] Sock 8.Parse request [00:41:37]Sock 8.Check first char [00:41:37]Sock 8.First char is OK [00:41:37]request: POST /json_proto HTTP/1.0 [00:41:37]Method: POST [00:41:37]URL: /json_proto [00:41:37]Method is POST - this is cgi request [00:41:37]url: /json_proto [00:41:37]query_string will be loaded in cgi processing [00:41:37]execute_cgi json_proto POST (null) [00:41:37]execute_cgi path=json_proto method=POST [00:41:37]POST find Content-Length [00:41:37]Host: 172.17.45.8:8080 [00:41:37]Content-Length: 331 [00:41:37]Content-Type: application/json [00:41:37] [00:41:37]POST finish read [00:41:37]Found Content-Length = 331 [00:41: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" ] } } [00:41:37]execute_script... [00:41: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" ] } } [00:41:37]POST & json_proto [00:41:37]process_json_proto [00:41:37]json parsed OK: [00:41:37]protocol is kg_v1.0 [00:41:37]action value=get_value [00:41:37]process_action get_value [00:41:37]cmd_get_value [00:41:37]process_action get_value done [00:41:37]requested_data is exist [00:41:37]produce_requested_data [00:41:37]requested_item fm.sale.total is exist - process it [00:41:37]SAM_PROTO_GetFMData [00:41:37]wFMCommunicate request_size=4 [00:41:37]MH_SAM_APDU [00:41:37]CAPDU: 80 13 03 00 [00:41:37]Write to MH i2c: E2 08 00 A0 2A 80 13 03 00 00 00 00 00 49 [00:41:37]Write i2c OK [00:41:37]MH_I2C_Read... [00:41:38]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:41:38]Read from MH i2c: E2 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 FD 00 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 FD 00 A0 2A 00 C1 04 85 04 BD 04 6E 04 04 00 DA 66 00 00 69 04 A0 00 6F 04 04 00 AC 66 00 00 B1 04 04 00 78 59 97 23 70 04 04 00 AC 7C 41 22 72 04 04 00 CC DC 55 01 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 80 89 C7 03 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 09 95 50 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 2E 00 00 00 B1 04 03 00 D4 A7 1A 70 04 03 00 04 A5 15 72 04 03 00 D0 02 05 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 AB D4 02 EF 03 09 00 F6 03 90 00 52 [00:41:38]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 DA 66 00 00 69 04 A0 00 6F 04 04 00 AC 66 00 00 B1 04 04 00 78 59 97 23 70 04 04 00 AC 7C 41 22 72 04 04 00 CC DC 55 01 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 80 89 C7 03 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 09 95 50 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 2E 00 00 00 B1 04 03 00 D4 A7 1A 70 04 03 00 04 A5 15 72 04 03 00 D0 02 05 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 AB D4 02 EF 03 09 00 F6 03 90 00 [00:41:38]wFMCommunicate OK [00:41:38]wFMCommunicate request_size=4 [00:41:38]MH_SAM_APDU [00:41:38]CAPDU: 80 17 00 00 [00:41:38]Write to MH i2c: E2 08 00 A1 2A 80 17 00 00 00 00 00 00 4B [00:41:38]Write i2c OK [00:41:38]MH_I2C_Read... [00:41:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:38]Read from MH i2c: E2 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 FD 00 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 FD 00 A1 2A 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 18 [00:41:38]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:41:38]wFMCommunicate OK [00:41:38]wFMCommunicate request_size=4 [00:41:38]MH_SAM_APDU [00:41:38]CAPDU: 80 17 00 00 [00:41:38]Write to MH i2c: E2 08 00 A2 2A 80 17 00 00 00 00 00 00 4C [00:41:38]Write i2c OK [00:41:38]MH_I2C_Read... [00:41:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:38]Read from MH i2c: E2 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 FD 00 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 FD 00 A2 2A 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 EC [00:41:38]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:41:38]wFMCommunicate OK [00:41:38]wFMCommunicate request_size=4 [00:41:38]MH_SAM_APDU [00:41:38]CAPDU: 80 17 00 00 [00:41:38]Write to MH i2c: E2 08 00 A3 2A 80 17 00 00 00 00 00 00 4D [00:41:38]Write i2c OK [00:41:38]MH_I2C_Read... [00:41:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:38]Read from MH i2c: E2 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 FD 00 [00:41:38]MH_I2C_Read... [00:41:38]Read from MH i2c: E2 FD 00 A3 2A 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 D2 [00:41:38]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:41:39]wFMCommunicate OK [00:41:39]wFMCommunicate request_size=4 [00:41:39]MH_SAM_APDU [00:41:39]CAPDU: 80 17 00 00 [00:41:39]Write to MH i2c: E2 08 00 A4 2A 80 17 00 00 00 00 00 00 4E [00:41:39]Write i2c OK [00:41:39]MH_I2C_Read... [00:41:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:41:39]Read from MH i2c: E2 [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: E2 DE 00 [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: E2 DE 00 A4 2A 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 2D [00:41:39]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:41:39]wFMCommunicate OK [00:41:39]SAM_PROTO_GetFMData done [00:41:39]requested_item fm.sale_refund.total is exist - process it [00:41:39]requested_item fm.buy.total is exist - process it [00:41:39]requested_item shift.sale.total is exist - process it [00:41:39]SAM_PROTO_GetShiftData [00:41:39]wFMCommunicate request_size=4 [00:41:39]MH_SAM_APDU [00:41:39]CAPDU: 80 13 02 00 [00:41:39]Write to MH i2c: E2 08 00 A5 2A 80 13 02 00 00 00 00 00 4D [00:41:39]Write i2c OK [00:41:39]MH_I2C_Read... [00:41:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:41:39]Read from MH i2c: E2 [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: E2 FD 00 [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: E2 FD 00 A5 2A 00 AE 04 AA 04 AA 04 6E 04 04 00 65 00 00 00 69 04 9B 00 6F 04 04 00 65 00 00 00 B1 04 03 00 A4 07 1D 70 04 03 00 B4 6C 1B 72 04 03 00 F0 9A 01 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 33 15 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 B2 41 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A4 [00:41:39]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 65 00 00 00 69 04 9B 00 6F 04 04 00 65 00 00 00 B1 04 03 00 A4 07 1D 70 04 03 00 B4 6C 1B 72 04 03 00 F0 9A 01 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 33 15 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 B2 41 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:41:39]wFMCommunicate OK [00:41:39]wFMCommunicate request_size=4 [00:41:39]MH_SAM_APDU [00:41:39]CAPDU: 80 17 00 00 [00:41:39]Write to MH i2c: E2 08 00 A6 2A 80 17 00 00 00 00 00 00 50 [00:41:39]Write i2c OK [00:41:39]MH_I2C_Read... [00:41:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:39]Read from MH i2c: E2 [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: E2 FD 00 [00:41:39]MH_I2C_Read... [00:41:39]Read from MH i2c: E2 FD 00 A6 2A 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 72 [00:41: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 [00:41:39]wFMCommunicate OK [00:41:39]wFMCommunicate request_size=4 [00:41:40]MH_SAM_APDU [00:41:40]CAPDU: 80 17 00 00 [00:41:40]Write to MH i2c: E2 08 00 A7 2A 80 17 00 00 00 00 00 00 51 [00:41:40]Write i2c OK [00:41:40]MH_I2C_Read... [00:41:40]OFD Sender: No OFD packet to send [00:41:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:40]Read from MH i2c: E2 [00:41:40]MH_I2C_Read... [00:41:40]Read from MH i2c: E2 FD 00 [00:41:40]MH_I2C_Read... [00:41:40]Read from MH i2c: E2 FD 00 A7 2A 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 08 [00:41:40]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:41:40]wFMCommunicate OK [00:41:40]wFMCommunicate request_size=4 [00:41:40]MH_SAM_APDU [00:41:40]CAPDU: 80 17 00 00 [00:41:40]Write to MH i2c: E2 08 00 A8 2A 80 17 00 00 00 00 00 00 52 [00:41:40]Write i2c OK [00:41:40]MH_I2C_Read... [00:41:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:40]Read from MH i2c: E2 [00:41:40]MH_I2C_Read... [00:41:40]Read from MH i2c: E2 FD 00 [00:41:40]MH_I2C_Read... [00:41:40]Read from MH i2c: E2 FD 00 A8 2A 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 C4 [00:41: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 [00:41:40]wFMCommunicate OK [00:41:40]wFMCommunicate request_size=4 [00:41:40]MH_SAM_APDU [00:41:40]CAPDU: 80 17 00 00 [00:41:40]Write to MH i2c: E2 08 00 A9 2A 80 17 00 00 00 00 00 00 53 [00:41:40]Write i2c OK [00:41:40]MH_I2C_Read... [00:41:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:41:40]Read from MH i2c: E2 [00:41:40]MH_I2C_Read... [00:41:40]Read from MH i2c: E2 CB 00 [00:41:40]MH_I2C_Read... [00:41:40]Read from MH i2c: E2 CB 00 A9 2A 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 3C [00:41: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 [00:41:40]wFMCommunicate OK [00:41:40]SAM_PROTO_GetShiftData done [00:41:40]requested_item shift.sale.total_cash is exist - process it [00:41:40]requested_item shift.sale_refund.total is exist - process it [00:41:40]requested_item shift.sale_refund.total_cash is exist - process it [00:41:40]requested_item shift.buy.total is exist - process it [00:41:40]requested_item shift.buy.total_cash is exist - process it [00:41:40]produce_requested_data done [00:41:40]produce_requested_data return {"fm.sale.total":5971214.00,"fm.sale_refund.total":17469.00,"fm.buy.total":0.00,"shift.sale.total":19025.00,"shift.sale.total_cash":17973.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:41:40]process_action_free get_value [00:41:40]json_value_free [00:41:40]json_value_free done [00:41:40]process_json_proto returns [00:41:40]Send response to host [00:41:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":5971214.00,"fm.sale_refund.total":17469.00,"fm.buy.total":0.00,"shift.sale.total":19025.00,"shift.sale.total_cash":17973.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:41:40]free response buf [00:41:40]execute_script done [00:41:40]execute_script returns [00:41:40]free content buf [00:41:40]Sock 8.Close socket [00:41:40]Sock 8.Thread stoped [00:41:40]accept exits with 9 [00:41:40]New connection [00:41:40]New thread 3066785124 created [00:41:40]Thread 3066928484 joined [00:41:40]Waiting for new connection... [00:41:40] Sock 9.Parse request [00:41:40]Sock 9.Check first char [00:41:40]Sock 9.First char is OK [00:41:40]request: POST /json_proto HTTP/1.0 [00:41:40]Method: POST [00:41:40]URL: /json_proto [00:41:40]Method is POST - this is cgi request [00:41:40]url: /json_proto [00:41:40]query_string will be loaded in cgi processing [00:41:40]execute_cgi json_proto POST (null) [00:41:40]execute_cgi path=json_proto method=POST [00:41:40]POST find Content-Length [00:41:40]Host: 172.17.45.8:8080 [00:41:40]Content-Length: 266 [00:41:40]Content-Type: application/json [00:41:40] [00:41:40]POST finish read [00:41:40]Found Content-Length = 266 [00:41:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:40]execute_script... [00:41:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u0439\u0434\u0430\u0440\u0430\u043B\u0438 \u0443 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:41:40]POST & json_proto [00:41:40]process_json_proto [00:41:40]json parsed OK: [00:41:40]protocol is kg_v1.0 [00:41:40]action value=open_shift [00:41:40]process_action open_shift [00:41:40]cmd_open_shift [00:41:40]MH_GetDate [00:41:40]Write to MH i2c: F0 00 00 AA 2A C3 [00:41:40]Write i2c OK [00:41:40]MH_I2C_Read... [00:41:40]Read from MH i2c: F0 [00:41:40]MH_I2C_Read... [00:41:40]Read from MH i2c: F0 09 00 [00:41:40]MH_I2C_Read... [00:41:40]Read from MH i2c: F0 09 00 AA 2A 00 CD 36 A8 66 A6 1F 7F 64 85 [00:41:40]GetLastDocTimeStamp 1722298788 [00:41:40]current date 1722300109 [00:41:40]FM_GetShiftState [00:41:40]SAM_PROTO_GetShiftState [00:41:40]wFMCommunicate request_size=4 [00:41:40]MH_SAM_APDU [00:41:40]CAPDU: 80 13 01 00 [00:41:40]Write to MH i2c: E2 08 00 AB 2A 80 13 01 00 00 00 00 00 52 [00:41:40]Write i2c OK [00:41:40]MH_I2C_Read... [00:41:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:41]Read from MH i2c: E2 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 0E 00 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 0E 00 AB 2A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 5D [00:41:41]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:41:41]wFMCommunicate OK [00:41:41]SAM_PROTO_GetShiftState done [00:41:41]FM_GetShiftState done [00:41:41]KKMCreateOpenShiftDocument [00:41:41]Load OK [00:41:41]Malloc new data [00:41:41]MH_GetDate [00:41:41]Write to MH i2c: F0 00 00 AC 2A C5 [00:41:41]Write i2c OK [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: F0 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: F0 09 00 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: F0 09 00 AC 2A 00 CD 36 A8 66 A6 1F 7F 64 87 [00:41:41]Malloc new data [00:41:41]KKMCreateOpenShiftDocument OK [00:41:41]KKMSetOpenShiftData OK [00:41:41]ProcessDocumentItem done err = 0, tmpTLVsize=171 [00:41:41]tlvbuf is 0028FE70 [00:41:41]KKMLoadAndSignOpenShiftData [00:41:41]SAM_PROTO_ProcessDocument [00:41:41]wFMCommunicate request_size=9 [00:41:41]MH_SAM_APDU [00:41:41]CAPDU: 80 15 01 00 04 02 00 AB 00 [00:41:41]Write to MH i2c: E2 0C 00 AD 2A 80 15 01 00 04 00 02 00 AB 00 00 00 0B [00:41:41]Write i2c OK [00:41:41]MH_I2C_Read... [00:41:41]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:41:41]Read from MH i2c: E2 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 03 00 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 03 00 AD 2A 00 90 00 4B [00:41:41]RAPDU: 90 00 [00:41:41]wFMCommunicate OK [00:41:41]wFMCommunicate request_size=23 [00:41:41]MH_SAM_APDU [00:41:41]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:41:41]Write to MH i2c: E2 1A 00 AE 2A 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 4D [00:41:41]Write i2c OK [00:41:41]MH_I2C_Read... [00:41:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:41:41]Read from MH i2c: E2 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 03 00 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 03 00 AE 2A 00 90 00 4C [00:41:41]RAPDU: 90 00 [00:41:41]wFMCommunicate OK [00:41:41]wFMCommunicate request_size=33 [00:41:41]MH_SAM_APDU [00:41:41]CAPDU: 80 15 02 00 1C FD 03 18 00 D0 90 D0 B9 D0 B4 D0 B0 D1 80 D0 B0 D0 BB D0 B8 20 D1 83 20 D0 91 2E 20 [00:41:41]Write to MH i2c: E2 24 00 AF 2A 80 15 02 00 1C 00 FD 03 18 00 D0 90 D0 B9 D0 B4 D0 B0 D1 80 D0 B0 D0 BB D0 B8 20 D1 83 20 D0 91 2E 20 00 00 BD [00:41:41]Write i2c OK [00:41:41]MH_I2C_Read... [00:41:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:41:41]Read from MH i2c: E2 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 03 00 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 03 00 AF 2A 00 90 00 4D [00:41:41]RAPDU: 90 00 [00:41:41]wFMCommunicate OK [00:41:41]wFMCommunicate request_size=56 [00:41:41]MH_SAM_APDU [00:41:41]CAPDU: 80 15 02 00 33 F1 03 2F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 9E D1 80 D0 B3 D0 BE 2C 20 34 30 2E 32 30 30 37 35 32 2C 20 37 31 2E 36 30 37 34 38 36 [00:41:41]Write to MH i2c: E2 3B 00 B0 2A 80 15 02 00 33 00 F1 03 2F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 9E D1 80 D0 B3 D0 BE 2C 20 34 30 2E 32 30 30 37 35 32 2C 20 37 31 2E 36 30 37 34 38 36 00 00 0F [00:41:41]Write i2c OK [00:41:41]MH_I2C_Read... [00:41:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:41:41]Read from MH i2c: E2 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 03 00 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 03 00 B0 2A 00 90 00 4E [00:41:41]RAPDU: 90 00 [00:41:41]wFMCommunicate OK [00:41:41]wFMCommunicate request_size=51 [00:41:41]MH_SAM_APDU [00:41:41]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 34 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:41:41]Write to MH i2c: E2 36 00 B1 2A 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 34 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 05 [00:41:41]Write i2c OK [00:41:41]MH_I2C_Read... [00:41:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:41:41]Read from MH i2c: E2 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 03 00 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 03 00 B1 2A 00 90 00 4F [00:41:41]RAPDU: 90 00 [00:41:41]wFMCommunicate OK [00:41:41]wFMCommunicate request_size=13 [00:41:41]MH_SAM_APDU [00:41:41]CAPDU: 80 15 02 00 08 F4 03 04 00 CD 36 A8 66 [00:41:41]Write to MH i2c: E2 10 00 B2 2A 80 15 02 00 08 00 F4 03 04 00 CD 36 A8 66 00 00 78 [00:41:41]Write i2c OK [00:41:41]MH_I2C_Read... [00:41:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:41:41]Read from MH i2c: E2 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 03 00 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 03 00 B2 2A 00 90 00 50 [00:41:41]RAPDU: 90 00 [00:41:41]wFMCommunicate OK [00:41:41]wFMCommunicate request_size=25 [00:41:41]MH_SAM_APDU [00:41:41]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 [00:41:41]Write to MH i2c: E2 1C 00 B3 2A 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 00 00 C0 [00:41:41]Write i2c OK [00:41:41]MH_I2C_Read... [00:41:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:41:41]Read from MH i2c: E2 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 03 00 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 03 00 B3 2A 00 90 00 51 [00:41:41]RAPDU: 90 00 [00:41:41]wFMCommunicate OK [00:41:41]wFMCommunicate request_size=4 [00:41:41]MH_SAM_APDU [00:41:41]CAPDU: 80 15 03 00 [00:41:41]Write to MH i2c: E2 08 00 B4 2A 80 15 03 00 00 00 00 00 5F [00:41:41]Write i2c OK [00:41:41]MH_I2C_Read... [00:41:41]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:41:41]Read from MH i2c: E2 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 38 00 [00:41:41]MH_I2C_Read... [00:41:41]Read from MH i2c: E2 38 00 B4 2A 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 40 6A 00 00 0E 04 04 00 B3 01 00 00 35 04 06 00 7C 13 3E B8 58 9D 90 00 09 [00:41:41]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 40 6A 00 00 0E 04 04 00 B3 01 00 00 35 04 06 00 7C 13 3E B8 58 9D 90 00 [00:41:41]wFMCommunicate OK [00:41:41]SAM_PROTO_ProcessDocument answer len = 51 [00:41:41]SAM_PROTO_ProcessDocument done [00:41:41]SetTLVBufToDocument [00:41:41]Processing tag 1209 (04B9) [00:41:41]Malloc new data [00:41:41]Processing tag 1041 (0411) [00:41:41]Processing tag 1040 (0410) [00:41:41]Malloc new data [00:41:41]Processing tag 1038 (040E) [00:41:41]Malloc new data [00:41:41]Processing tag 1077 (0435) [00:41:41]Malloc new data [00:41:41]SetTLVBufToDocument err=0 [00:41:41]KKMLoadAndSignOpenShiftData store KKM data [00:41:41]KKMLoadAndSignOpenShiftData err=0 [00:41:41]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Айдарали у Б. Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 Место: АЗС № 134 "Партнер Нефть" 30.07.2024 00:41 Смена: 435 РНМ: 0000000000092663 ЗНМ: 0300000043 ФД: 27200 ФМ: 0000000000874937 ФПД: 136422098491549 [00:41:41]StoreToDocumentArchive [00:41:41]shift 435 fd 27200 [00:41:41]Create dir for shift 0435 [00:41:41]save to /storage/0435/doc_00027200 [00:41:41]save last doc name /storage/0435/doc_00027200 to /storage/kkm_last_doc_name [00:41:41]save OK [00:41:41]Clear old archive folders... [00:41:41]Remove dir /storage/0434 [00:41:41]opendir ok [00:41:41]file . [00:41:41]file .. [00:41:41]file doc_00027097 [00:41:41]remove file /storage/0434/doc_00027097 [00:41:41]file doc_00027098 [00:41:41]remove file /storage/0434/doc_00027098 [00:41:41]file doc_00027099 [00:41:41]remove file /storage/0434/doc_00027099 [00:41:41]file doc_00027100 [00:41:41]remove file /storage/0434/doc_00027100 [00:41:41]file doc_00027101 [00:41:41]remove file /storage/0434/doc_00027101 [00:41:41]file doc_00027102 [00:41:41]remove file /storage/0434/doc_00027102 [00:41:41]file doc_00027103 [00:41:41]remove file /storage/0434/doc_00027103 [00:41:41]file doc_00027104 [00:41:41]remove file /storage/0434/doc_00027104 [00:41:41]file doc_00027105 [00:41:41]remove file /storage/0434/doc_00027105 [00:41:41]file doc_00027106 [00:41:41]remove file /storage/0434/doc_00027106 [00:41:41]file doc_00027107 [00:41:41]remove file /storage/0434/doc_00027107 [00:41:41]file doc_00027108 [00:41:41]remove file /storage/0434/doc_00027108 [00:41:41]file doc_00027109 [00:41:41]remove file /storage/0434/doc_00027109 [00:41:41]file doc_00027110 [00:41:41]remove file /storage/0434/doc_00027110 [00:41:41]file doc_00027111 [00:41:41]remove file /storage/0434/doc_00027111 [00:41:41]file doc_00027112 [00:41:41]remove file /storage/0434/doc_00027112 [00:41:41]file doc_00027113 [00:41:41]remove file /storage/0434/doc_00027113 [00:41:41]file doc_00027114 [00:41:41]remove file /storage/0434/doc_00027114 [00:41:41]file doc_00027115 [00:41:41]remove file /storage/0434/doc_00027115 [00:41:41]file doc_00027116 [00:41:41]remove file /storage/0434/doc_00027116 [00:41:41]file doc_00027117 [00:41:41]remove file /storage/0434/doc_00027117 [00:41:41]file doc_00027118 [00:41:41]remove file /storage/0434/doc_00027118 [00:41:41]file doc_00027119 [00:41:41]remove file /storage/0434/doc_00027119 [00:41:41]file doc_00027120 [00:41:41]remove file /storage/0434/doc_00027120 [00:41:41]file doc_00027121 [00:41:41]remove file /storage/0434/doc_00027121 [00:41:41]file doc_00027122 [00:41:41]remove file /storage/0434/doc_00027122 [00:41:41]file doc_00027123 [00:41:41]remove file /storage/0434/doc_00027123 [00:41:41]file doc_00027124 [00:41:41]remove file /storage/0434/doc_00027124 [00:41:41]file doc_00027125 [00:41:41]remove file /storage/0434/doc_00027125 [00:41:41]file doc_00027126 [00:41:41]remove file /storage/0434/doc_00027126 [00:41:41]file doc_00027127 [00:41:41]remove file /storage/0434/doc_00027127 [00:41:41]file doc_00027128 [00:41:41]remove file /storage/0434/doc_00027128 [00:41:41]file doc_00027129 [00:41:41]remove file /storage/0434/doc_00027129 [00:41:41]file doc_00027130 [00:41:41]remove file /storage/0434/doc_00027130 [00:41:41]file doc_00027131 [00:41:41]remove file /storage/0434/doc_00027131 [00:41:41]file doc_00027132 [00:41:41]remove file /storage/0434/doc_00027132 [00:41:41]file doc_00027133 [00:41:41]remove file /storage/0434/doc_00027133 [00:41:41]file doc_00027134 [00:41:41]remove file /storage/0434/doc_00027134 [00:41:41]file doc_00027135 [00:41:41]remove file /storage/0434/doc_00027135 [00:41:41]file doc_00027136 [00:41:41]remove file /storage/0434/doc_00027136 [00:41:41]file doc_00027137 [00:41:41]remove file /storage/0434/doc_00027137 [00:41:41]file doc_00027138 [00:41:41]remove file /storage/0434/doc_00027138 [00:41:41]file doc_00027139 [00:41:41]remove file /storage/0434/doc_00027139 [00:41:41]file doc_00027140 [00:41:41]remove file /storage/0434/doc_00027140 [00:41:41]file doc_00027141 [00:41:41]remove file /storage/0434/doc_00027141 [00:41:41]file doc_00027142 [00:41:41]remove file /storage/0434/doc_00027142 [00:41:41]file doc_00027143 [00:41:41]remove file /storage/0434/doc_00027143 [00:41:41]file doc_00027144 [00:41:41]remove file /storage/0434/doc_00027144 [00:41:41]file doc_00027145 [00:41:41]remove file /storage/0434/doc_00027145 [00:41:41]file doc_00027146 [00:41:41]remove file /storage/0434/doc_00027146 [00:41:41]file doc_00027147 [00:41:41]remove file /storage/0434/doc_00027147 [00:41:41]file doc_00027148 [00:41:41]remove file /storage/0434/doc_00027148 [00:41:41]file doc_00027149 [00:41:41]remove file /storage/0434/doc_00027149 [00:41:41]file doc_00027150 [00:41:41]remove file /storage/0434/doc_00027150 [00:41:41]file doc_00027151 [00:41:41]remove file /storage/0434/doc_00027151 [00:41:41]file doc_00027152 [00:41:41]remove file /storage/0434/doc_00027152 [00:41:41]file doc_00027153 [00:41:42]remove file /storage/0434/doc_00027153 [00:41:42]file doc_00027154 [00:41:42]remove file /storage/0434/doc_00027154 [00:41:42]file doc_00027155 [00:41:42]remove file /storage/0434/doc_00027155 [00:41:42]file doc_00027156 [00:41:42]remove file /storage/0434/doc_00027156 [00:41:42]file doc_00027157 [00:41:42]remove file /storage/0434/doc_00027157 [00:41:42]file doc_00027158 [00:41:42]remove file /storage/0434/doc_00027158 [00:41:42]file doc_00027159 [00:41:42]remove file /storage/0434/doc_00027159 [00:41:42]file doc_00027160 [00:41:42]remove file /storage/0434/doc_00027160 [00:41:42]file doc_00027161 [00:41:42]remove file /storage/0434/doc_00027161 [00:41:42]file doc_00027162 [00:41:42]remove file /storage/0434/doc_00027162 [00:41:42]file doc_00027163 [00:41:42]remove file /storage/0434/doc_00027163 [00:41:42]file doc_00027164 [00:41:42]remove file /storage/0434/doc_00027164 [00:41:42]file doc_00027165 [00:41:42]remove file /storage/0434/doc_00027165 [00:41:42]file doc_00027166 [00:41:42]remove file /storage/0434/doc_00027166 [00:41:42]file doc_00027167 [00:41:42]remove file /storage/0434/doc_00027167 [00:41:42]file doc_00027168 [00:41:42]remove file /storage/0434/doc_00027168 [00:41:42]file doc_00027169 [00:41:42]remove file /storage/0434/doc_00027169 [00:41:42]file doc_00027170 [00:41:42]remove file /storage/0434/doc_00027170 [00:41:42]file doc_00027171 [00:41:42]remove file /storage/0434/doc_00027171 [00:41:42]file doc_00027172 [00:41:42]remove file /storage/0434/doc_00027172 [00:41:42]file doc_00027173 [00:41:42]remove file /storage/0434/doc_00027173 [00:41:42]file doc_00027174 [00:41:42]remove file /storage/0434/doc_00027174 [00:41:42]file doc_00027175 [00:41:42]remove file /storage/0434/doc_00027175 [00:41:42]file doc_00027176 [00:41:42]remove file /storage/0434/doc_00027176 [00:41:42]file doc_00027177 [00:41:42]remove file /storage/0434/doc_00027177 [00:41:42]file doc_00027178 [00:41:42]remove file /storage/0434/doc_00027178 [00:41:42]file doc_00027179 [00:41:42]remove file /storage/0434/doc_00027179 [00:41:42]file doc_00027180 [00:41:42]remove file /storage/0434/doc_00027180 [00:41:42]file doc_00027181 [00:41:42]remove file /storage/0434/doc_00027181 [00:41:42]file doc_00027182 [00:41:42]remove file /storage/0434/doc_00027182 [00:41:42]file doc_00027183 [00:41:42]remove file /storage/0434/doc_00027183 [00:41:42]file doc_00027184 [00:41:42]remove file /storage/0434/doc_00027184 [00:41:42]file doc_00027185 [00:41:42]remove file /storage/0434/doc_00027185 [00:41:42]file doc_00027186 [00:41:42]remove file /storage/0434/doc_00027186 [00:41:42]file doc_00027187 [00:41:42]remove file /storage/0434/doc_00027187 [00:41:42]file doc_00027188 [00:41:42]remove file /storage/0434/doc_00027188 [00:41:42]file doc_00027189 [00:41:42]remove file /storage/0434/doc_00027189 [00:41:42]file doc_00027190 [00:41:42]remove file /storage/0434/doc_00027190 [00:41:42]file doc_00027191 [00:41:42]remove file /storage/0434/doc_00027191 [00:41:42]file doc_00027192 [00:41:42]remove file /storage/0434/doc_00027192 [00:41:42]file doc_00027193 [00:41:42]remove file /storage/0434/doc_00027193 [00:41:42]file doc_00027194 [00:41:42]remove file /storage/0434/doc_00027194 [00:41:42]file doc_00027195 [00:41:42]remove file /storage/0434/doc_00027195 [00:41:42]file doc_00027196 [00:41:42]remove file /storage/0434/doc_00027196 [00:41:42]file doc_00027197 [00:41:42]remove file /storage/0434/doc_00027197 [00:41:42]file doc_00027198 [00:41:42]remove file /storage/0434/doc_00027198 [00:41:42]file doc_00027199 [00:41:42]remove file /storage/0434/doc_00027199 [00:41:42]remove dir /storage/0434 [00:41:42]ProcessDocumentItem done err = 0, tmpTLVsize=222 [00:41:42]tlvbuf is 0029D500 [00:41:42]SAM_PROTO_ClearQueue [00:41:42]wFMCommunicate request_size=4 [00:41:42]MH_SAM_APDU [00:41:42]CAPDU: 80 09 00 00 [00:41:42]Write to MH i2c: E2 08 00 B5 2A 80 09 00 00 00 00 00 00 51 [00:41:42]Write i2c OK [00:41:42]MH_I2C_Read... [00:41:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:41:42]Read from MH i2c: E2 [00:41:42]MH_I2C_Read... [00:41:42]Read from MH i2c: E2 03 00 [00:41:42]MH_I2C_Read... [00:41:42]Read from MH i2c: E2 03 00 B5 2A 00 90 00 53 [00:41:42]RAPDU: 90 00 [00:41:42]wFMCommunicate OK [00:41:42]SAM_PROTO_ClearQueue done [00:41:42]KKMCreateOFDPacket [00:41:42]OFDProtocolAddRootSTLVToBuf [00:41:42]FM_MakeSignedData [00:41:42]FM_MakeSignedData [00:41:42]SAM_PROTO_SignData [00:41:42]wFMCommunicate request_size=4 [00:41:42]MH_SAM_APDU [00:41:42]CAPDU: 80 0D 01 02 [00:41:42]Write to MH i2c: E2 08 00 B6 2A 80 0D 01 02 00 00 00 00 59 [00:41:42]Write i2c OK [00:41:42]MH_I2C_Read... [00:41:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:41:42]Read from MH i2c: E2 [00:41:42]MH_I2C_Read... [00:41:42]Read from MH i2c: E2 03 00 [00:41:42]MH_I2C_Read... [00:41:42]Read from MH i2c: E2 03 00 B6 2A 00 90 00 54 [00:41:42]RAPDU: 90 00 [00:41:42]wFMCommunicate OK [00:41:42]wFMCommunicate request_size=231 [00:41:42]MH_SAM_APDU [00:41:42]CAPDU: 80 0D 02 02 E2 02 00 DE 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 18 00 D0 90 D0 B9 D0 B4 D0 B0 D1 80 D0 B0 D0 BB D0 B8 20 D1 83 20 D0 91 2E 20 F1 03 2F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 9E D1 80 D0 B3 D0 BE 2C 20 34 30 2E 32 30 30 37 35 32 2C 20 37 31 2E 36 30 37 34 38 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 34 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 CD 36 A8 66 0E 04 04 00 B3 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 40 6A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 35 04 06 00 7C 13 3E B8 58 9D [00:41:42]Write to MH i2c: E2 EA 00 B7 2A 80 0D 02 02 E2 00 02 00 DE 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 18 00 D0 90 D0 B9 D0 B4 D0 B0 D1 80 D0 B0 D0 BB D0 B8 20 D1 83 20 D0 91 2E 20 F1 03 2F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 9E D1 80 D0 B3 D0 BE 2C 20 34 30 2E 32 30 30 37 35 32 2C 20 37 31 2E 36 30 37 34 38 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 34 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 CD 36 A8 66 0E 04 04 00 B3 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 40 6A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 35 04 06 00 7C 13 3E B8 58 9D 00 00 2F [00:41:42]Write i2c OK [00:41:42]MH_I2C_Read... [00:41:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:42]Read from MH i2c: E2 [00:41:42]MH_I2C_Read... [00:41:42]Read from MH i2c: E2 03 00 [00:41:42]MH_I2C_Read... [00:41:42]Read from MH i2c: E2 03 00 B7 2A 00 90 00 55 [00:41:42]RAPDU: 90 00 [00:41:42]wFMCommunicate OK [00:41:42]wFMCommunicate request_size=4 [00:41:42]MH_SAM_APDU [00:41:42]CAPDU: 80 0D 03 02 [00:41:42]Write to MH i2c: E2 08 00 B8 2A 80 0D 03 02 00 00 00 00 5D [00:41:42]Write i2c OK [00:41:42]MH_I2C_Read... [00:41:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:41:42]Read from MH i2c: E2 [00:41:42]MH_I2C_Read... [00:41:42]Read from MH i2c: E2 0B 00 [00:41:42]MH_I2C_Read... [00:41:42]Read from MH i2c: E2 0B 00 B8 2A 00 7C 09 68 8C 95 8A B0 24 90 00 CA [00:41:42]RAPDU: 7C 09 68 8C 95 8A B0 24 90 00 [00:41:42]wFMCommunicate OK [00:41:42]SAM_PROTO_SignData done [00:41:42]FM_MakeSignedData done [00:41:42]CreateOFDProtocolMessage [00:41:42]wFMCommunicate request_size=4 [00:41:42]MH_SAM_APDU [00:41:42]CAPDU: 80 11 00 00 [00:41:42]Write to MH i2c: E2 08 00 B9 2A 80 11 00 00 00 00 00 00 5D [00:41:42]Write i2c OK [00:41:42]MH_I2C_Read... [00:41:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:42]Read from MH i2c: E2 [00:41:42]MH_I2C_Read... [00:41:42]Read from MH i2c: E2 17 00 [00:41:42]MH_I2C_Read... [00:41:42]Read from MH i2c: E2 17 00 B9 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 B6 [00:41:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [00:41:42]wFMCommunicate OK [00:41:42]CreateOFDProtocolMessage done [00:41:42]OFDSenderStorePacket 27200 [00:41:42]StoreOFDPacket docnum=27200 [00:41:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 F2 00 00 00 0B D3 EA 00 13 42 5A 02 01 00 02 00 DE 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 18 00 D0 90 D0 B9 D0 B4 D0 B0 D1 80 D0 B0 D0 BB D0 B8 20 D1 83 20 D0 91 2E 20 F1 03 2F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 9E D1 80 D0 B3 D0 BE 2C 20 34 30 2E 32 30 30 37 35 32 2C 20 37 31 2E 36 30 37 34 38 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 34 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 CD 36 A8 66 0E 04 04 00 B3 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 40 6A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 35 04 06 00 7C 13 3E B8 58 9D 7C 09 68 8C 95 8A B0 24 [00:41:42]CheckFolder [00:41:42]dirname=/storage/ofd_packets [00:41:42]CheckFolder done [00:41:42]ProducePacketName [00:41:42]name=ofd_packets/00027200 [00:41:42]NVStorageSaveData ofd_packets/00027200 [00:41:42]File name is /storage/ofd_packets/00027200 [00:41:42]Write 272 bytes [00:41:42]NVStorageSaveData done [00:41:42]OFDSenderStorePacket done [00:41:42]KKMCreateOFDPacket done [00:41:42]NVStorageSaveData kkm_last_timestamp [00:41:42]File name is /storage/kkm_last_timestamp [00:41:42]Write 4 bytes [00:41:42]NVStorageSaveData done [00:41:42]ExternCall_PrintAddStr [00:41:42]wPrintStart [00:41:42]Write to MH i2c: 01 00 00 BA 2A E4 [00:41:42]Write i2c OK [00:41:42]MH_I2C_Read... [00:41:42]Read from MH i2c: 01 [00:41:42]MH_I2C_Read... [00:41:42]Read from MH i2c: 01 07 00 [00:41:42]MH_I2C_Read... [00:41:42]Read from MH i2c: 01 07 00 BA 2A 00 00 00 00 00 FF 0F F9 [00:41:42]RasterBufferAndPrint [00:41:42]line Отчет об открытии смены [00:41:42]line ФФД: 1.0 [00:41:42]line ИНН: 02508201610067 [00:41:43]line Кассир: Айдарали у Б. [00:41:43]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [00:41:43]line Место: АЗС № 134 "Партнер Нефть" [00:41:43]line 30.07.2024 00:41 [00:41:43]line Смена: 435 [00:41:43]line РНМ: 0000000000092663 [00:41:43]line ЗНМ: 0300000043 [00:41:43]line ФД: 27200 [00:41:43]line ФМ: 0000000000874937 [00:41:43]line ФПД: 136422098491549 [00:41:43]OFD Sender: Processing packet 27200 [packets to send 9, broken 8] [00:41:43]ProducePacketName [00:41:43]name=ofd_packets/00027200 [00:41:43]OFD Sender: To server: pG, [00:41:43]CommunicateWithHost lk.salyk.kg:30040 [00:41:43]ConnectInit lk.salyk.kg [00:41:43]written 0, free lines is 4095 [00:41:43]Connected sock=10 [00:41:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 F2 00 00 00 0B D3 EA 00 13 42 5A 02 01 00 02 00 DE 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 18 00 D0 90 D0 B9 D0 B4 D0 B0 D1 80 D0 B0 D0 BB D0 B8 20 D1 83 20 D0 91 2E 20 F1 03 2F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 90 D0 BA 2D D0 9E D1 80 D0 B3 D0 BE 2C 20 34 30 2E 32 30 30 37 35 32 2C 20 37 31 2E 36 30 37 34 38 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 34 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 CD 36 A8 66 0E 04 04 00 B3 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 40 6A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 35 04 06 00 7C 13 3E B8 58 9D 7C 09 68 8C 95 8A B0 24 [00:41:43]Write to MH i2c: 01 00 00 CB 2A F5 [00:41:43]Write i2c OK [00:41:43]MH_I2C_Read... [00:41:43]Read from MH i2c: 01 [00:41:43]MH_I2C_Read... [00:41:43]Read from MH i2c: 01 07 00 [00:41:43]MH_I2C_Read... [00:41:43]Read from MH i2c: 01 07 00 CB 2A 00 00 00 00 00 72 0E 7C [00:41:43]RasterBufferAndPrint [00:41:43]line [00:41:43]line [00:41:43]line [00:41:43]line [00:41:43]line [00:41:43]written 0, free lines is 3711 [00:41:43]MH_Cut [00:41:43]Write to MH i2c: D1 01 00 D2 2A 01 CE [00:41:43]Write i2c OK [00:41:43]MH_I2C_Read... [00:41:43]Read from MH i2c: D1 [00:41:43]MH_I2C_Read... [00:41:43]Read from MH i2c: D1 01 00 [00:41:43]MH_I2C_Read... [00:41:43]Read from MH i2c: D1 01 00 D2 2A 00 CD [00:41:43]Write to MH i2c: 01 00 00 D3 2A FD [00:41:43]Write i2c OK [00:41:43]MH_I2C_Read... [00:41:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 A8 01 47 00 E2 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 40 6A 00 00 F4 03 04 00 1C DD A7 66 B6 04 01 00 00 DE CF 7B D4 8A 22 83 FA [00:41:43]CommunicateWithHost err = 0 [00:41:43]CheckOFDResponse [00:41:43]1017 (14) - 77093643461234 [00:41:43]1041 (16) - 0000000000874937 [00:41:43]1040 (4) - 27200 [00:41:43]1012 (4) - 29.07.2024 18:19 [00:41:43]1206 (1) - 0 [00:41:43]OFD Sender: Remove packet 27200 [00:41:43]ProducePacketName [00:41:43]name=ofd_packets/00027200 [00:41:43]NVStorageDeleteData [00:41:44]*** Cut start [00:41:44]*** Partial cut [00:41:44]*** CUTSNS_PIN = 1 [00:41:44]*** CUTSNS_PIN = 0 [00:41:44]OFD Sender: No OFD packet to send [00:41:44]*** Brake cut motor [00:41:44]Read from MH i2c: 01 [00:41:44]MH_I2C_Read... [00:41:44]*** Stop cut motor [00:41:44]*** Cut end [00:41:44]Read from MH i2c: 01 07 00 [00:41:44]MH_I2C_Read... [00:41:44]Read from MH i2c: 01 07 00 D3 2A 00 00 00 00 00 FF 0F 12 [00:41:44]process_action open_shift done [00:41:44]requested_data is exist [00:41:44]produce_requested_data [00:41:44]requested_item fd.num is exist - process it [00:41:44]SAM_PROTO_GetFieldsCounters [00:41:44]wFMCommunicate request_size=4 [00:41:44]MH_SAM_APDU [00:41:44]CAPDU: 80 13 00 00 [00:41:44]Write to MH i2c: E2 08 00 D4 2A 80 13 00 00 00 00 00 00 7A [00:41:44]Write i2c OK [00:41:44]MH_I2C_Read... [00:41:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:41:44]Read from MH i2c: E2 [00:41:44]MH_I2C_Read... [00:41:44]Read from MH i2c: E2 62 00 [00:41:44]MH_I2C_Read... [00:41:44]Read from MH i2c: E2 62 00 D4 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 40 6A 00 00 0E 04 04 00 B3 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 [00:41:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 40 6A 00 00 0E 04 04 00 B3 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:41:44]wFMCommunicate OK [00:41:44]SAM_PROTO_GetFieldsCounters done [00:41:44]requested_item shift.num is exist - process it [00:41:44]requested_item shift.opened is exist - process it [00:41:44]req_shift_opened [00:41:44]FM_GetShiftState [00:41:44]SAM_PROTO_GetShiftState [00:41:44]wFMCommunicate request_size=4 [00:41:44]MH_SAM_APDU [00:41:44]CAPDU: 80 13 01 00 [00:41:44]Write to MH i2c: E2 08 00 D5 2A 80 13 01 00 00 00 00 00 7C [00:41:44]Write i2c OK [00:41:44]MH_I2C_Read... [00:41:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:44]Read from MH i2c: E2 [00:41:44]MH_I2C_Read... [00:41:44]Read from MH i2c: E2 0E 00 [00:41:44]MH_I2C_Read... [00:41:44]Read from MH i2c: E2 0E 00 D5 2A 00 09 00 01 CD 36 A8 66 00 00 00 00 90 00 99 [00:41:44]RAPDU: 09 00 01 CD 36 A8 66 00 00 00 00 90 00 [00:41:44]wFMCommunicate OK [00:41:44]SAM_PROTO_GetShiftState done [00:41:44]FM_GetShiftState done [00:41:44]req_shift_opened done [00:41:44]requested_item shift.open_date is exist - process it [00:41:44]req_shift_open_date [00:41:44]req_shift_open_date done [00:41:44]produce_requested_data done [00:41:44]produce_requested_data return {"fd.num":27200,"shift.num":435,"shift.opened":1,"shift.open_date":1722300109} [00:41:44]process_action_free open_shift [00:41:44]json_value_free [00:41:44]json_value_free done [00:41:44]process_json_proto returns [00:41:44]Send response to host [00:41:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":27200,"shift.num":435,"shift.opened":1,"shift.open_date":1722300109}}} [00:41:44]free response buf [00:41:44]execute_script done [00:41:44]execute_script returns [00:41:44]free content buf [00:41:44]Sock 9.Close socket [00:41:44]Sock 9.Thread stoped [00:41:44]accept exits with 8 [00:41:44]New connection [00:41:44]New thread 3066928484 created [00:41:44]Thread 3066785124 joined [00:41:44]Waiting for new connection... [00:41:44] Sock 8.Parse request [00:41:44]Sock 8.Check first char [00:41:44]Sock 8.First char is OK [00:41:44]request: POST /json_proto HTTP/1.0 [00:41:44]Method: POST [00:41:44]URL: /json_proto [00:41:44]Method is POST - this is cgi request [00:41:44]url: /json_proto [00:41:44]query_string will be loaded in cgi processing [00:41:44]execute_cgi json_proto POST (null) [00:41:44]execute_cgi path=json_proto method=POST [00:41:44]POST find Content-Length [00:41:44]Host: 172.17.45.8:8080 [00:41:44]Content-Length: 331 [00:41:44]Content-Type: application/json [00:41:44] [00:41:44]POST finish read [00:41:44]Found Content-Length = 331 [00:41:44]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:41:44]execute_script... [00:41:44]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:41:44]POST & json_proto [00:41:44]process_json_proto [00:41:44]json parsed OK: [00:41:44]protocol is kg_v1.0 [00:41:44]action value=get_value [00:41:44]process_action get_value [00:41:44]cmd_get_value [00:41:44]process_action get_value done [00:41:44]requested_data is exist [00:41:44]produce_requested_data [00:41:44]requested_item fm.sale.total is exist - process it [00:41:44]SAM_PROTO_GetFMData [00:41:44]wFMCommunicate request_size=4 [00:41:44]MH_SAM_APDU [00:41:44]CAPDU: 80 13 03 00 [00:41:44]Write to MH i2c: E2 08 00 D6 2A 80 13 03 00 00 00 00 00 7F [00:41:44]Write i2c OK [00:41:44]MH_I2C_Read... [00:41:45]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:41:45]Read from MH i2c: E2 [00:41:45]MH_I2C_Read... [00:41:45]Read from MH i2c: E2 FD 00 [00:41:45]MH_I2C_Read... [00:41:45]Read from MH i2c: E2 FD 00 D6 2A 00 C1 04 85 04 BD 04 6E 04 04 00 DA 66 00 00 69 04 A0 00 6F 04 04 00 AC 66 00 00 B1 04 04 00 78 59 97 23 70 04 04 00 AC 7C 41 22 72 04 04 00 CC DC 55 01 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 80 89 C7 03 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 09 95 50 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 2E 00 00 00 B1 04 03 00 D4 A7 1A 70 04 03 00 04 A5 15 72 04 03 00 D0 02 05 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 AB D4 02 EF 03 09 00 F6 03 90 00 88 [00:41:45]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 DA 66 00 00 69 04 A0 00 6F 04 04 00 AC 66 00 00 B1 04 04 00 78 59 97 23 70 04 04 00 AC 7C 41 22 72 04 04 00 CC DC 55 01 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 80 89 C7 03 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 09 95 50 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9B 00 6F 04 04 00 2E 00 00 00 B1 04 03 00 D4 A7 1A 70 04 03 00 04 A5 15 72 04 03 00 D0 02 05 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 AB D4 02 EF 03 09 00 F6 03 90 00 [00:41:45]wFMCommunicate OK [00:41:45]wFMCommunicate request_size=4 [00:41:45]MH_SAM_APDU [00:41:45]CAPDU: 80 17 00 00 [00:41:45]Write to MH i2c: E2 08 00 D7 2A 80 17 00 00 00 00 00 00 81 [00:41:45]Write i2c OK [00:41:45]MH_I2C_Read... [00:41:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:45]Read from MH i2c: E2 [00:41:45]MH_I2C_Read... [00:41:45]Read from MH i2c: E2 FD 00 [00:41:45]MH_I2C_Read... [00:41:45]Read from MH i2c: E2 FD 00 D7 2A 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 4E [00:41:45]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 62 3C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 90 00 [00:41:45]wFMCommunicate OK [00:41:45]wFMCommunicate request_size=4 [00:41:45]MH_SAM_APDU [00:41:45]CAPDU: 80 17 00 00 [00:41:45]Write to MH i2c: E2 08 00 D8 2A 80 17 00 00 00 00 00 00 82 [00:41:45]Write i2c OK [00:41:45]MH_I2C_Read... [00:41:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:46]Read from MH i2c: E2 [00:41:46]MH_I2C_Read... [00:41:46]Read from MH i2c: E2 FD 00 [00:41:46]MH_I2C_Read... [00:41:46]Read from MH i2c: E2 FD 00 D8 2A 00 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 22 [00:41:46]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:41:46]wFMCommunicate OK [00:41:46]wFMCommunicate request_size=4 [00:41:46]MH_SAM_APDU [00:41:46]CAPDU: 80 17 00 00 [00:41:46]Write to MH i2c: E2 08 00 D9 2A 80 17 00 00 00 00 00 00 83 [00:41:46]Write i2c OK [00:41:46]MH_I2C_Read... [00:41:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:46]Read from MH i2c: E2 [00:41:46]MH_I2C_Read... [00:41:46]Read from MH i2c: E2 FD 00 [00:41:46]MH_I2C_Read... [00:41:46]Read from MH i2c: E2 FD 00 D9 2A 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 08 [00:41:46]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:41:46]wFMCommunicate OK [00:41:46]wFMCommunicate request_size=4 [00:41:46]MH_SAM_APDU [00:41:46]CAPDU: 80 17 00 00 [00:41:46]Write to MH i2c: E2 08 00 DA 2A 80 17 00 00 00 00 00 00 84 [00:41:46]Write i2c OK [00:41:46]MH_I2C_Read... [00:41:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:41:46]Read from MH i2c: E2 [00:41:46]MH_I2C_Read... [00:41:46]Read from MH i2c: E2 DE 00 [00:41:46]MH_I2C_Read... [00:41:46]Read from MH i2c: E2 DE 00 DA 2A 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 63 [00:41:46]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:41:46]wFMCommunicate OK [00:41:46]SAM_PROTO_GetFMData done [00:41:46]requested_item fm.sale_refund.total is exist - process it [00:41:46]requested_item fm.buy.total is exist - process it [00:41:46]requested_item shift.sale.total is exist - process it [00:41:46]SAM_PROTO_GetShiftData [00:41:46]wFMCommunicate request_size=4 [00:41:46]MH_SAM_APDU [00:41:46]CAPDU: 80 13 02 00 [00:41:46]Write to MH i2c: E2 08 00 DB 2A 80 13 02 00 00 00 00 00 83 [00:41:46]Write i2c OK [00:41:46]MH_I2C_Read... [00:41:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:41:47]Read from MH i2c: E2 [00:41:47]MH_I2C_Read... [00:41:47]Read from MH i2c: E2 FD 00 [00:41:47]MH_I2C_Read... [00:41:47]Read from MH i2c: E2 FD 00 DB 2A 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 F6 [00:41:47]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:41:47]wFMCommunicate OK [00:41:47]wFMCommunicate request_size=4 [00:41:47]MH_SAM_APDU [00:41:47]CAPDU: 80 17 00 00 [00:41:47]Write to MH i2c: E2 08 00 DC 2A 80 17 00 00 00 00 00 00 86 [00:41:47]Write i2c OK [00:41:47]MH_I2C_Read... [00:41:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:47]Read from MH i2c: E2 [00:41:47]MH_I2C_Read... [00:41:47]Read from MH i2c: E2 FD 00 [00:41:47]MH_I2C_Read... [00:41:47]Read from MH i2c: E2 FD 00 DC 2A 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 8E [00:41:47]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:41:48]wFMCommunicate OK [00:41:48]wFMCommunicate request_size=4 [00:41:48]MH_SAM_APDU [00:41:48]CAPDU: 80 17 00 00 [00:41:48]Write to MH i2c: E2 08 00 DD 2A 80 17 00 00 00 00 00 00 87 [00:41:48]Write i2c OK [00:41:48]MH_I2C_Read... [00:41:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:48]Read from MH i2c: E2 [00:41:48]MH_I2C_Read... [00:41:48]Read from MH i2c: E2 FD 00 [00:41:48]MH_I2C_Read... [00:41:48]Read from MH i2c: E2 FD 00 DD 2A 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 59 [00:41:48]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:41:48]wFMCommunicate OK [00:41:48]wFMCommunicate request_size=4 [00:41:48]MH_SAM_APDU [00:41:48]CAPDU: 80 17 00 00 [00:41:48]Write to MH i2c: E2 08 00 DE 2A 80 17 00 00 00 00 00 00 88 [00:41:48]Write i2c OK [00:41:48]MH_I2C_Read... [00:41:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:41:48]Read from MH i2c: E2 [00:41:48]MH_I2C_Read... [00:41:48]Read from MH i2c: E2 FD 00 [00:41:48]MH_I2C_Read... [00:41:48]Read from MH i2c: E2 FD 00 DE 2A 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 FA [00:41:48]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:41:49]wFMCommunicate OK [00:41:49]wFMCommunicate request_size=4 [00:41:49]MH_SAM_APDU [00:41:49]CAPDU: 80 17 00 00 [00:41:49]Write to MH i2c: E2 08 00 DF 2A 80 17 00 00 00 00 00 00 89 [00:41:49]Write i2c OK [00:41:49]MH_I2C_Read... [00:41:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:41:49]Read from MH i2c: E2 [00:41:49]MH_I2C_Read... [00:41:49]Read from MH i2c: E2 BD 00 [00:41:49]MH_I2C_Read... [00:41:49]Read from MH i2c: E2 BD 00 DF 2A 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 6F [00:41:49]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:41:49]wFMCommunicate OK [00:41:49]SAM_PROTO_GetShiftData done [00:41:49]requested_item shift.sale.total_cash is exist - process it [00:41:49]requested_item shift.sale_refund.total is exist - process it [00:41:49]requested_item shift.sale_refund.total_cash is exist - process it [00:41:49]requested_item shift.buy.total is exist - process it [00:41:49]requested_item shift.buy.total_cash is exist - process it [00:41:49]produce_requested_data done [00:41:49]produce_requested_data return {"fm.sale.total":5971214.00,"fm.sale_refund.total":17469.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:41:49]process_action_free get_value [00:41:49]json_value_free [00:41:49]json_value_free done [00:41:49]process_json_proto returns [00:41:49]Send response to host [00:41:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":5971214.00,"fm.sale_refund.total":17469.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:41:49]free response buf [00:41:49]execute_script done [00:41:49]execute_script returns [00:41:49]free content buf [00:41:49]Sock 8.Close socket [00:41:49]Sock 8.Thread stoped [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:19]OFD Sender: No OFD packet to send [00:47:24]OFD Sender: No OFD packet to send [00:47:29]OFD Sender: No OFD packet to send [00:47:34]OFD Sender: No OFD packet to send [00:47:39]OFD Sender: No OFD packet to send [00:47:44]OFD Sender: No OFD packet to send [00:47:49]OFD Sender: No OFD packet to send [00:47:54]OFD Sender: No OFD packet to send [00:47:59]OFD Sender: No OFD packet to send [00:48:04]OFD Sender: No OFD packet to send [00:48:09]OFD Sender: No OFD packet to send [00:48:14]OFD Sender: No OFD packet to send [00:48:19]OFD Sender: No OFD packet to send [00:48:24]OFD Sender: No OFD packet to send [00:48:29]OFD Sender: No OFD packet to send [00:48:34]OFD Sender: No OFD packet to send [00:48:39]OFD Sender: No OFD packet to send [00:48:44]OFD Sender: No OFD packet to send [00:48:49]OFD Sender: No OFD packet to send [00:48:54]OFD Sender: No OFD packet to send [00:48:59]OFD Sender: No OFD packet to send [00:49:04]OFD Sender: No OFD packet to send [00:49:09]OFD Sender: No OFD packet to send [00:49:14]OFD Sender: No OFD packet to send [00:49:19]OFD Sender: No OFD packet to send [00:49:24]OFD Sender: No OFD packet to send [00:49:29]OFD Sender: No OFD packet to send [00:49:34]OFD Sender: No OFD packet to send [00:49:39]OFD Sender: No OFD packet to send [00:49:44]OFD Sender: No OFD packet to send [00:49:49]OFD Sender: No OFD packet to send [00:49:54]OFD Sender: No OFD packet to send [00:49:59]OFD Sender: No OFD packet to send [00:50:04]OFD Sender: No OFD packet to send [00:50:09]OFD Sender: No OFD packet to send [00:50:14]OFD Sender: No OFD packet to send [00:50:19]OFD Sender: No OFD packet to send [00:50:24]OFD Sender: No OFD packet to send [00:50:29]OFD Sender: No OFD packet to send [00:50:34]OFD Sender: No OFD packet to send [00:50:39]OFD Sender: No OFD packet to send [00:50:44]OFD Sender: No OFD packet to send [00:50:49]OFD Sender: No OFD packet to send [00:50:54]OFD Sender: No OFD packet to send [00:50:59]OFD Sender: No OFD packet to send [00:51:04]OFD Sender: No OFD packet to send [00:51:09]OFD Sender: No OFD packet to send [00:51:14]OFD Sender: No OFD packet to send [00:51:19]OFD Sender: No OFD packet to send [00:51:24]OFD Sender: No OFD packet to send [00:51:29]OFD Sender: No OFD packet to send [00:51:34]OFD Sender: No OFD packet to send [00:51:39]OFD Sender: No OFD packet to send [00:51: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:35]OFD Sender: No OFD packet to send [01:07:40]OFD Sender: No OFD packet to send [01:07:45]OFD Sender: No OFD packet to send [01:07:50]OFD Sender: No OFD packet to send [01:07:55]OFD Sender: No OFD packet to send [01:08:00]OFD Sender: No OFD packet to send [01:08:05]OFD Sender: No OFD packet to send [01:08:10]OFD Sender: No OFD packet to send [01:08:15]OFD Sender: No OFD packet to send [01:08:20]OFD Sender: No OFD packet to send [01:08:25]OFD Sender: No OFD packet to send [01:08:30]OFD Sender: No OFD packet to send [01:08:35]OFD Sender: No OFD packet to send [01:08:40]OFD Sender: No OFD packet to send [01:08:45]OFD Sender: No OFD packet to send [01:08:50]OFD Sender: No OFD packet to send [01:08:55]OFD Sender: No OFD packet to send [01:09:00]OFD Sender: No OFD packet to send [01:09:05]OFD Sender: No OFD packet to send [01:09:10]OFD Sender: No OFD packet to send [01:09:15]OFD Sender: No OFD packet to send [01:09:20]OFD Sender: No OFD packet to send [01:09:25]OFD Sender: No OFD packet to send [01:09:30]OFD Sender: No OFD packet to send [01:09:35]OFD Sender: No OFD packet to send [01:09:40]OFD Sender: No OFD packet to send [01:09:45]OFD Sender: No OFD packet to send [01:09:50]OFD Sender: No OFD packet to send [01:09:55]OFD Sender: No OFD packet to send [01:10:00]OFD Sender: No OFD packet to send [01:10:05]OFD Sender: No OFD packet to send [01:10:10]OFD Sender: No OFD packet to send [01:10:15]OFD Sender: No OFD packet to send [01:10:20]OFD Sender: No OFD packet to send [01:10:25]OFD Sender: No OFD packet to send [01:10:30]OFD Sender: No OFD packet to send [01:10:35]OFD Sender: No OFD packet to send [01:10:40]OFD Sender: No OFD packet to send [01:10:45]OFD Sender: No OFD packet to send [01:10:50]OFD Sender: No OFD packet to send [01:10:55]OFD Sender: No OFD packet to send [01:11:00]OFD Sender: No OFD packet to send [01:11:05]OFD Sender: No OFD packet to send [01:11:10]OFD Sender: No OFD packet to send [01:11:15]OFD Sender: No OFD packet to send [01:11:20]OFD Sender: No OFD packet to send [01:11:25]OFD Sender: No OFD packet to send [01:11:30]OFD Sender: No OFD packet to send [01:11:35]OFD Sender: No OFD packet to send [01:11:40]OFD Sender: No OFD packet to send [01:11:45]OFD Sender: No OFD packet to send [01:11:50]OFD Sender: No OFD packet to send [01:11:55]OFD Sender: No OFD packet to send [01:12:00]OFD Sender: No OFD packet to send [01:12:05]OFD Sender: No OFD packet to send [01:12:10]OFD Sender: No OFD packet to send [01:12:15]OFD Sender: No OFD packet to send [01:12:20]OFD Sender: No OFD packet to send [01:12:25]OFD Sender: No OFD packet to send [01:12:30]OFD Sender: No OFD packet to send [01:12:35]OFD Sender: No OFD packet to send [01:12:40]OFD Sender: No OFD packet to send [01:12:45]OFD Sender: No OFD packet to send [01:12:51]OFD Sender: No OFD packet to send [01:12:56]OFD Sender: No OFD packet to send [01:13:01]OFD Sender: No OFD packet to send [01:13:06]OFD Sender: No OFD packet to send [01:13:11]OFD Sender: No OFD packet to send [01:13:16]OFD Sender: No OFD packet to send [01:13:21]OFD Sender: No OFD packet to send [01:13:26]OFD Sender: No OFD packet to send [01:13:31]OFD Sender: No OFD packet to send [01:13:36]OFD Sender: No OFD packet to send [01:13:41]OFD Sender: No OFD packet to send [01:13:46]OFD Sender: No OFD packet to send [01:13:51]OFD Sender: No OFD packet to send [01:13:56]OFD Sender: No OFD packet to send [01:14:01]OFD Sender: No OFD packet to send [01:14:06]OFD Sender: No OFD packet to send [01:14:11]OFD Sender: No OFD packet to send [01:14:16]OFD Sender: No OFD packet to send [01:14:21]OFD Sender: No OFD packet to send [01:14:26]OFD Sender: No OFD packet to send [01:14:31]OFD Sender: No OFD packet to send [01:14:36]OFD Sender: No OFD packet to send [01:14:41]OFD Sender: No OFD packet to send [01:14:46]OFD Sender: No OFD packet to send [01:14:51]OFD Sender: No OFD packet to send [01:14:56]OFD Sender: No OFD packet to send [01:15:01]OFD Sender: No OFD packet to send [01:15:06]OFD Sender: No OFD packet to send [01:15:11]OFD Sender: No OFD packet to send [01:15:16]OFD Sender: No OFD packet to send [01:15:21]OFD Sender: No OFD packet to send [01:15:26]OFD Sender: No OFD packet to send [01:15:31]OFD Sender: No OFD packet to send [01:15:36]OFD Sender: No OFD packet to send [01:15:41]OFD Sender: No OFD packet to send [01:15:46]OFD Sender: No OFD packet to send [01:15:51]OFD Sender: No OFD packet to send [01:15:56]OFD Sender: No OFD packet to send [01:16:01]OFD Sender: No OFD packet to send [01:16:06]OFD Sender: No OFD packet to send [01:16:11]OFD Sender: No OFD packet to send [01:16:16]OFD Sender: No OFD packet to send [01:16:21]OFD Sender: No OFD packet to send [01:16:26]OFD Sender: No OFD packet to send [01:16:31]OFD Sender: No OFD packet to send [01:16:36]OFD Sender: No OFD packet to send [01:16:41]OFD Sender: No OFD packet to send [01:16:46]OFD Sender: No OFD packet to send [01:16:51]OFD Sender: No OFD packet to send [01:16:56]OFD Sender: No OFD packet to send [01:17:01]OFD Sender: No OFD packet to send [01:17:06]OFD Sender: No OFD packet to send [01:17:11]OFD Sender: No OFD packet to send [01:17:16]OFD Sender: No OFD packet to send [01:17:21]OFD Sender: No OFD packet to send [01:17:26]OFD Sender: No OFD packet to send [01:17:31]OFD Sender: No OFD packet to send [01:17:36]OFD Sender: No OFD packet to send [01:17:41]OFD Sender: No OFD packet to send [01:17:46]OFD Sender: No OFD packet to send [01:17:51]OFD Sender: No OFD packet to send [01:17:56]OFD Sender: No OFD packet to send [01:18:01]OFD Sender: No OFD packet to send [01:18:06]OFD Sender: No OFD packet to send [01:18:11]OFD Sender: No OFD packet to send [01:18:16]OFD Sender: No OFD packet to send [01:18:21]OFD Sender: No OFD packet to send [01:18:26]OFD Sender: No OFD packet to send [01:18:31]OFD Sender: No OFD packet to send [01:18:36]OFD Sender: No OFD packet to send [01:18:41]OFD Sender: No OFD packet to send [01:18:46]OFD Sender: No OFD packet to send [01:18:51]OFD Sender: No OFD packet to send [01:18:56]OFD Sender: No OFD packet to send [01:19:01]OFD Sender: No OFD packet to send [01:19:06]OFD Sender: No OFD packet to send [01:19:11]OFD Sender: No OFD packet to send [01:19:16]OFD Sender: No OFD packet to send [01:19:21]OFD Sender: No OFD packet to send [01:19:26]OFD Sender: No OFD packet to send [01:19:31]OFD Sender: No OFD packet to send [01:19:36]OFD Sender: No OFD packet to send [01:19:41]OFD Sender: No OFD packet to send [01:19:46]OFD Sender: No OFD packet to send [01:19:51]OFD Sender: No OFD packet to send [01:19:56]OFD Sender: No OFD packet to send [01:20:01]OFD Sender: No OFD packet to send [01:20:06]OFD Sender: No OFD packet to send [01:20:11]OFD Sender: No OFD packet to send [01:20:16]OFD Sender: No OFD packet to send [01:20:21]OFD Sender: No OFD packet to send [01:20:26]OFD Sender: No OFD packet to send [01:20:31]OFD Sender: No OFD packet to send [01:20:36]OFD Sender: No OFD packet to send [01:20:41]OFD Sender: No OFD packet to send [01:20:46]OFD Sender: No OFD packet to send [01:20:51]OFD Sender: No OFD packet to send [01:20:56]OFD Sender: No OFD packet to send [01:21:01]OFD Sender: No OFD packet to send [01:21:06]OFD Sender: No OFD packet to send [01:21:11]OFD Sender: No OFD packet to send [01:21:16]OFD Sender: No OFD packet to send [01:21:21]OFD Sender: No OFD packet to send [01:21:26]OFD Sender: No OFD packet to send [01:21:31]OFD Sender: No OFD packet to send [01:21:36]OFD Sender: No OFD packet to send [01:21:41]OFD Sender: No OFD packet to send [01:21:46]OFD Sender: No OFD packet to send [01:21:51]OFD Sender: No OFD packet to send [01:21:56]OFD Sender: No OFD packet to send [01:22:01]OFD Sender: No OFD packet to send [01:22:06]OFD Sender: No OFD packet to send [01:22:11]OFD Sender: No OFD packet to send [01:22:16]OFD Sender: No OFD packet to send [01:22:21]OFD Sender: No OFD packet to send [01:22:26]OFD Sender: No OFD packet to send [01:22:31]OFD Sender: No OFD packet to send [01:22:36]OFD Sender: No OFD packet to send [01:22:41]OFD Sender: No OFD packet to send [01:22:46]OFD Sender: No OFD packet to send [01:22:51]OFD Sender: No OFD packet to send [01:22:56]OFD Sender: No OFD packet to send [01:23:01]OFD Sender: No OFD packet to send [01:23:06]OFD Sender: No OFD packet to send [01:23:11]OFD Sender: No OFD packet to send [01:23:16]OFD Sender: No OFD packet to send [01:23:21]OFD Sender: No OFD packet to send [01:23:26]OFD Sender: No OFD packet to send [01:23:31]OFD Sender: No OFD packet to send [01:23:36]OFD Sender: No OFD packet to send [01:23:41]OFD Sender: No OFD packet to send [01:23:46]OFD Sender: No OFD packet to send [01:23:51]OFD Sender: No OFD packet to send [01:23:56]OFD Sender: No OFD packet to send [01:24:01]OFD Sender: No OFD packet to send [01:24:06]OFD Sender: No OFD packet to send [01:24:11]OFD Sender: No OFD packet to send [01:24:16]OFD Sender: No OFD packet to send [01:24:21]OFD Sender: No OFD packet to send [01:24:26]OFD Sender: No OFD packet to send [01:24:31]OFD Sender: No OFD packet to send [01:24:36]OFD Sender: No OFD packet to send [01:24:41]OFD Sender: No OFD packet to send [01:24:46]OFD Sender: No OFD packet to send [01:24:51]OFD Sender: No OFD packet to send [01:24:56]OFD Sender: No OFD packet to send [01:25:01]OFD Sender: No OFD packet to send [01:25:06]OFD Sender: No OFD packet to send [01:25:11]OFD Sender: No OFD packet to send [01:25:16]OFD Sender: No OFD packet to send [01:25:21]OFD Sender: No OFD packet to send [01:25:26]OFD Sender: No OFD packet to send [01:25:31]OFD Sender: No OFD packet to send [01:25:36]OFD Sender: No OFD packet to send [01:25:41]OFD Sender: No OFD packet to send [01:25:46]OFD Sender: No OFD packet to send [01:25:51]OFD Sender: No OFD packet to send [01:25:56]OFD Sender: No OFD packet to send [01:26:01]OFD Sender: No OFD packet to send [01:26:06]OFD Sender: No OFD packet to send [01:26:11]OFD Sender: No OFD packet to send [01:26:16]OFD Sender: No OFD packet to send [01:26:21]OFD Sender: No OFD packet to send [01:26:26]OFD Sender: No OFD packet to send [01:26:31]OFD Sender: No OFD packet to send [01:26:36]OFD Sender: No OFD packet to send [01:26:41]OFD Sender: No OFD packet to send [01:26:46]OFD Sender: No OFD packet to send [01:26:51]OFD Sender: No OFD packet to send [01:26:56]OFD Sender: No OFD packet to send [01:27:01]OFD Sender: No OFD packet to send [01:27:06]OFD Sender: No OFD packet to send [01:27:11]OFD Sender: No OFD packet to send [01:27:16]OFD Sender: No OFD packet to send [01:27:21]OFD Sender: No OFD packet to send [01:27:26]OFD Sender: No OFD packet to send [01:27:31]OFD Sender: No OFD packet to send [01:27:36]OFD Sender: No OFD packet to send [01:27:41]OFD Sender: No OFD packet to send [01:27:46]OFD Sender: No OFD packet to send [01:27:51]OFD Sender: No OFD packet to send [01:27:56]OFD Sender: No OFD packet to send [01:28:01]OFD Sender: No OFD packet to send [01:28:06]OFD Sender: No OFD packet to send [01:28:11]OFD Sender: No OFD packet to send [01:28:16]OFD Sender: No OFD packet to send [01:28:21]OFD Sender: No OFD packet to send [01:28:26]OFD Sender: No OFD packet to send [01:28:31]OFD Sender: No OFD packet to send [01:28:36]OFD Sender: No OFD packet to send [01:28:41]OFD Sender: No OFD packet to send [01:28:46]OFD Sender: No OFD packet to send [01:28:51]OFD Sender: No OFD packet to send [01:28:56]OFD Sender: No OFD packet to send [01:29:01]OFD Sender: No OFD packet to send [01:29:06]OFD Sender: No OFD packet to send [01:29:11]OFD Sender: No OFD packet to send [01:29:16]OFD Sender: No OFD packet to send [01:29:21]OFD Sender: No OFD packet to send [01:29:26]OFD Sender: No OFD packet to send [01:29:31]OFD Sender: No OFD packet to send [01:29:36]OFD Sender: No OFD packet to send [01:29:41]OFD Sender: No OFD packet to send [01:29:46]OFD Sender: No OFD packet to send [01:29:51]OFD Sender: No OFD packet to send [01:29:56]OFD Sender: No OFD packet to send [01:30:01]OFD Sender: No OFD packet to send [01:30:06]OFD Sender: No OFD packet to send [01:30:11]OFD Sender: No OFD packet to send [01:30:16]OFD Sender: No OFD packet to send [01:30:21]OFD Sender: No OFD packet to send [01:30:26]OFD Sender: No OFD packet to send [01:30:31]OFD Sender: No OFD packet to send [01:30:36]OFD Sender: No OFD packet to send [01:30:41]OFD Sender: No OFD packet to send [01:30:46]OFD Sender: No OFD packet to send [01:30:51]OFD Sender: No OFD packet to send [01:30:56]OFD Sender: No OFD packet to send [01:31:01]OFD Sender: No OFD packet to send [01:31:06]OFD Sender: No OFD packet to send [01:31:11]OFD Sender: No OFD packet to send [01:31:16]OFD Sender: No OFD packet to send [01:31:21]OFD Sender: No OFD packet to send [01:31:26]OFD Sender: No OFD packet to send [01:31:31]OFD Sender: No OFD packet to send [01:31:36]OFD Sender: No OFD packet to send [01:31:41]OFD Sender: No OFD packet to send [01:31:46]OFD Sender: No OFD packet to send [01:31:51]OFD Sender: No OFD packet to send [01:31:56]OFD Sender: No OFD packet to send [01:32:01]OFD Sender: No OFD packet to send [01:32:06]OFD Sender: No OFD packet to send [01:32:11]OFD Sender: No OFD packet to send [01:32:16]OFD Sender: No OFD packet to send [01:32:21]OFD Sender: No OFD packet to send [01:32:26]OFD Sender: No OFD packet to send [01:32:31]OFD Sender: No OFD packet to send [01:32:36]OFD Sender: No OFD packet to send [01:32:41]OFD Sender: No OFD packet to send [01:32:46]OFD Sender: No OFD packet to send [01:32:51]OFD Sender: No OFD packet to send [01:32:56]OFD Sender: No OFD packet to send [01:33:01]OFD Sender: No OFD packet to send [01:33:06]OFD Sender: No OFD packet to send [01:33:11]OFD Sender: No OFD packet to send [01:33:16]OFD Sender: No OFD packet to send [01:33:21]OFD Sender: No OFD packet to send [01:33:26]OFD Sender: No OFD packet to send [01:33:31]OFD Sender: No OFD packet to send [01:33:36]OFD Sender: No OFD packet to send [01:33:41]OFD Sender: No OFD packet to send [01:33:46]OFD Sender: No OFD packet to send [01:33:51]OFD Sender: No OFD packet to send [01:33:56]OFD Sender: No OFD packet to send [01:34:02]OFD Sender: No OFD packet to send [01:34:07]OFD Sender: No OFD packet to send [01:34:12]OFD Sender: No OFD packet to send [01:34:17]OFD Sender: No OFD packet to send [01:34:22]OFD Sender: No OFD packet to send [01:34:27]OFD Sender: No OFD packet to send [01:34:32]OFD Sender: No OFD packet to send [01:34:37]OFD Sender: No OFD packet to send [01:34:42]OFD Sender: No OFD packet to send [01:34:47]OFD Sender: No OFD packet to send [01:34:52]OFD Sender: No OFD packet to send [01:34:57]OFD Sender: No OFD packet to send [01:35:02]OFD Sender: No OFD packet to send [01:35:07]OFD Sender: No OFD packet to send [01:35:12]OFD Sender: No OFD packet to send [01:35:17]OFD Sender: No OFD packet to send [01:35:22]OFD Sender: No OFD packet to send [01:35:27]OFD Sender: No OFD packet to send [01:35:32]OFD Sender: No OFD packet to send [01:35:37]OFD Sender: No OFD packet to send [01:35:42]OFD Sender: No OFD packet to send [01:35:47]OFD Sender: No OFD packet to send [01:35:52]OFD Sender: No OFD packet to send [01:35:57]OFD Sender: No OFD packet to send [01:36:02]OFD Sender: No OFD packet to send [01:36:07]OFD Sender: No OFD packet to send [01:36:12]OFD Sender: No OFD packet to send [01:36:17]OFD Sender: No OFD packet to send [01:36:22]OFD Sender: No OFD packet to send [01:36:27]OFD Sender: No OFD packet to send [01:36:32]OFD Sender: No OFD packet to send [01:36:37]OFD Sender: No OFD packet to send [01:36:42]OFD Sender: No OFD packet to send [01:36:47]OFD Sender: No OFD packet to send [01:36:52]OFD Sender: No OFD packet to send [01:36:57]OFD Sender: No OFD packet to send [01:37:02]OFD Sender: No OFD packet to send [01:37:07]OFD Sender: No OFD packet to send [01:37:12]OFD Sender: No OFD packet to send [01:37:17]OFD Sender: No OFD packet to send [01:37:22]OFD Sender: No OFD packet to send [01:37:27]OFD Sender: No OFD packet to send [01:37:32]OFD Sender: No OFD packet to send [01:37:37]OFD Sender: No OFD packet to send [01:37:42]OFD Sender: No OFD packet to send [01:37:47]OFD Sender: No OFD packet to send [01:37:52]OFD Sender: No OFD packet to send [01:37:57]OFD Sender: No OFD packet to send [01:38:02]OFD Sender: No OFD packet to send [01:38:07]OFD Sender: No OFD packet to send [01:38:12]OFD Sender: No OFD packet to send [01:38:17]OFD Sender: No OFD packet to send [01:38:22]OFD Sender: No OFD packet to send [01:38:27]OFD Sender: No OFD packet to send [01:38:32]OFD Sender: No OFD packet to send [01:38:37]OFD Sender: No OFD packet to send [01:38:42]OFD Sender: No OFD packet to send [01:38:47]OFD Sender: No OFD packet to send [01:38:52]OFD Sender: No OFD packet to send [01:38:57]OFD Sender: No OFD packet to send [01:39:02]OFD Sender: No OFD packet to send [01:39:07]OFD Sender: No OFD packet to send [01:39:12]OFD Sender: No OFD packet to send [01:39:17]OFD Sender: No OFD packet to send [01:39:22]OFD Sender: No OFD packet to send [01:39:27]OFD Sender: No OFD packet to send [01:39:32]OFD Sender: No OFD packet to send [01:39:37]OFD Sender: No OFD packet to send [01:39:42]OFD Sender: No OFD packet to send [01:39:47]OFD Sender: No OFD packet to send [01:39:52]OFD Sender: No OFD packet to send [01:39:57]OFD Sender: No OFD packet to send [01:40:02]OFD Sender: No OFD packet to send [01:40:07]OFD Sender: No OFD packet to send [01:40:12]OFD Sender: No OFD packet to send [01:40:17]OFD Sender: No OFD packet to send [01:40:22]OFD Sender: No OFD packet to send [01:40:27]OFD Sender: No OFD packet to send [01:40:32]OFD Sender: No OFD packet to send [01:40:37]OFD Sender: No OFD packet to send [01:40:42]OFD Sender: No OFD packet to send [01:40:47]OFD Sender: No OFD packet to send [01:40:52]OFD Sender: No OFD packet to send [01:40:57]OFD Sender: No OFD packet to send [01:41:02]OFD Sender: No OFD packet to send [01:41:07]OFD Sender: No OFD packet to send [01:41:12]OFD Sender: No OFD packet to send [01:41:17]OFD Sender: No OFD packet to send [01:41:22]OFD Sender: No OFD packet to send [01:41:27]OFD Sender: No OFD packet to send [01:41:32]OFD Sender: No OFD packet to send [01:41:37]OFD Sender: No OFD packet to send [01:41:42]OFD Sender: No OFD packet to send [01:41:47]OFD Sender: No OFD packet to send [01:41:52]OFD Sender: No OFD packet to send [01:41:57]OFD Sender: No OFD packet to send [01:42:02]OFD Sender: No OFD packet to send [01:42:07]OFD Sender: No OFD packet to send [01:42:12]OFD Sender: No OFD packet to send [01:42:17]OFD Sender: No OFD packet to send [01:42:22]OFD Sender: No OFD packet to send [01:42:27]OFD Sender: No OFD packet to send [01:42:32]OFD Sender: No OFD packet to send [01:42:37]OFD Sender: No OFD packet to send [01:42:42]OFD Sender: No OFD packet to send [01:42:47]OFD Sender: No OFD packet to send [01:42:52]OFD Sender: No OFD packet to send [01:42:57]OFD Sender: No OFD packet to send [01:43:02]OFD Sender: No OFD packet to send [01:43:07]OFD Sender: No OFD packet to send [01:43:12]OFD Sender: No OFD packet to send [01:43:17]OFD Sender: No OFD packet to send [01:43:22]OFD Sender: No OFD packet to send [01:43:27]OFD Sender: No OFD packet to send [01:43:32]OFD Sender: No OFD packet to send [01:43:37]OFD Sender: No OFD packet to send [01:43:42]OFD Sender: No OFD packet to send [01:43:47]OFD Sender: No OFD packet to send [01:43:52]OFD Sender: No OFD packet to send [01:43:57]OFD Sender: No OFD packet to send [01:44:02]OFD Sender: No OFD packet to send [01:44:07]OFD Sender: No OFD packet to send [01:44:12]OFD Sender: No OFD packet to send [01:44:17]OFD Sender: No OFD packet to send [01:44:22]OFD Sender: No OFD packet to send [01:44:27]OFD Sender: No OFD packet to send [01:44:32]OFD Sender: No OFD packet to send [01:44:37]OFD Sender: No OFD packet to send [01:44:42]OFD Sender: No OFD packet to send [01:44:47]OFD Sender: No OFD packet to send [01:44:52]OFD Sender: No OFD packet to send [01:44:57]OFD Sender: No OFD packet to send [01:45:02]OFD Sender: No OFD packet to send [01:45:07]OFD Sender: No OFD packet to send [01:45:12]OFD Sender: No OFD packet to send [01:45:17]OFD Sender: No OFD packet to send [01:45:22]OFD Sender: No OFD packet to send [01:45:27]OFD Sender: No OFD packet to send [01:45:32]OFD Sender: No OFD packet to send [01:45:37]OFD Sender: No OFD packet to send [01:45:42]OFD Sender: No OFD packet to send [01:45:47]OFD Sender: No OFD packet to send [01:45:52]OFD Sender: No OFD packet to send [01:45:57]OFD Sender: No OFD packet to send [01:46:02]OFD Sender: No OFD packet to send [01:46:07]OFD Sender: No OFD packet to send [01:46:12]OFD Sender: No OFD packet to send [01:46:17]OFD Sender: No OFD packet to send [01:46:22]OFD Sender: No OFD packet to send [01:46:27]OFD Sender: No OFD packet to send [01:46:32]OFD Sender: No OFD packet to send [01:46:37]OFD Sender: No OFD packet to send [01:46:42]OFD Sender: No OFD packet to send [01:46:47]OFD Sender: No OFD packet to send [01:46:52]OFD Sender: No OFD packet to send [01:46:57]OFD Sender: No OFD packet to send [01:47:02]OFD Sender: No OFD packet to send [01:47:07]OFD Sender: No OFD packet to send [01:47:12]OFD Sender: No OFD packet to send [01:47:17]OFD Sender: No OFD packet to send [01:47:22]OFD Sender: No OFD packet to send [01:47:27]OFD Sender: No OFD packet to send [01:47:32]OFD Sender: No OFD packet to send [01:47:37]OFD Sender: No OFD packet to send [01:47:42]OFD Sender: No OFD packet to send [01:47:47]OFD Sender: No OFD packet to send [01:47:52]OFD Sender: No OFD packet to send [01:47:57]OFD Sender: No OFD packet to send [01:48:02]OFD Sender: No OFD packet to send [01:48:07]OFD Sender: No OFD packet to send [01:48:12]OFD Sender: No OFD packet to send [01:48:17]OFD Sender: No OFD packet to send [01:48:22]OFD Sender: No OFD packet to send [01:48:27]OFD Sender: No OFD packet to send [01:48:32]OFD Sender: No OFD packet to send [01:48:37]OFD Sender: No OFD packet to send [01:48:42]OFD Sender: No OFD packet to send [01:48:47]OFD Sender: No OFD packet to send [01:48:52]OFD Sender: No OFD packet to send [01:48:57]OFD Sender: No OFD packet to send [01:49:02]OFD Sender: No OFD packet to send [01:49:07]OFD Sender: No OFD packet to send [01:49:12]OFD Sender: No OFD packet to send [01:49:17]OFD Sender: No OFD packet to send [01:49:22]OFD Sender: No OFD packet to send [01:49:27]OFD Sender: No OFD packet to send [01:49:32]OFD Sender: No OFD packet to send [01:49:37]OFD Sender: No OFD packet to send [01:49:42]OFD Sender: No OFD packet to send [01:49:47]OFD Sender: No OFD packet to send [01:49:52]OFD Sender: No OFD packet to send [01:49:57]OFD Sender: No OFD packet to send [01:50:02]OFD Sender: No OFD packet to send [01:50:07]OFD Sender: No OFD packet to send [01:50:12]OFD Sender: No OFD packet to send [01:50:17]OFD Sender: No OFD packet to send [01:50:22]OFD Sender: No OFD packet to send [01:50:27]OFD Sender: No OFD packet to send [01:50:32]OFD Sender: No OFD packet to send [01:50:37]OFD Sender: No OFD packet to send [01:50:42]OFD Sender: No OFD packet to send [01:50:47]OFD Sender: No OFD packet to send [01:50:52]OFD Sender: No OFD packet to send [01:50:57]OFD Sender: No OFD packet to send [01:51:02]OFD Sender: No OFD packet to send [01:51:07]OFD Sender: No OFD packet to send [01:51:12]OFD Sender: No OFD packet to send [01:51:17]OFD Sender: No OFD packet to send [01:51:22]OFD Sender: No OFD packet to send [01:51:27]OFD Sender: No OFD packet to send [01:51:32]OFD Sender: No OFD packet to send [01:51:37]OFD Sender: No OFD packet to send [01:51:42]OFD Sender: No OFD packet to send [01:51:47]OFD Sender: No OFD packet to send [01:51:52]OFD Sender: No OFD packet to send [01:51:57]OFD Sender: No OFD packet to send [01:52:02]OFD Sender: No OFD packet to send [01:52:07]OFD Sender: No OFD packet to send [01:52:12]OFD Sender: No OFD packet to send [01:52:17]OFD Sender: No OFD packet to send [01:52:22]OFD Sender: No OFD packet to send [01:52:27]OFD Sender: No OFD packet to send [01:52:32]OFD Sender: No OFD packet to send [01:52:37]OFD Sender: No OFD packet to send [01:52:42]OFD Sender: No OFD packet to send [01:52:47]OFD Sender: No OFD packet to send [01:52:52]OFD Sender: No OFD packet to send [01:52:57]OFD Sender: No OFD packet to send [01:53:02]OFD Sender: No OFD packet to send [01:53:07]OFD Sender: No OFD packet to send [01:53:12]OFD Sender: No OFD packet to send [01:53:17]OFD Sender: No OFD packet to send [01:53:22]OFD Sender: No OFD packet to send [01:53:27]OFD Sender: No OFD packet to send [01:53:32]OFD Sender: No OFD packet to send [01:53:37]OFD Sender: No OFD packet to send [01:53:42]OFD Sender: No OFD packet to send [01:53:47]OFD Sender: No OFD packet to send [01:53:52]OFD Sender: No OFD packet to send [01:53:57]OFD Sender: No OFD packet to send [01:54:02]OFD Sender: No OFD packet to send [01:54:07]OFD Sender: No OFD packet to send [01:54:12]OFD Sender: No OFD packet to send [01:54:17]OFD Sender: No OFD packet to send [01:54:22]OFD Sender: No OFD packet to send [01:54:27]OFD Sender: No OFD packet to send [01:54:32]OFD Sender: No OFD packet to send [01:54:37]OFD Sender: No OFD packet to send [01:54:42]OFD Sender: No OFD packet to send [01:54:47]OFD Sender: No OFD packet to send [01:54:52]OFD Sender: No OFD packet to send [01:54:58]OFD Sender: No OFD packet to send [01:55:03]OFD Sender: No OFD packet to send [01:55:08]OFD Sender: No OFD packet to send [01:55:13]OFD Sender: No OFD packet to send [01:55:18]OFD Sender: No OFD packet to send [01:55:23]OFD Sender: No OFD packet to send [01:55:28]OFD Sender: No OFD packet to send [01:55:33]OFD Sender: No OFD packet to send [01:55:38]OFD Sender: No OFD packet to send [01:55:43]OFD Sender: No OFD packet to send [01:55:48]OFD Sender: No OFD packet to send [01:55:53]OFD Sender: No OFD packet to send [01:55:58]OFD Sender: No OFD packet to send [01:56:03]OFD Sender: No OFD packet to send [01:56:08]OFD Sender: No OFD packet to send [01:56:13]OFD Sender: No OFD packet to send [01:56:18]OFD Sender: No OFD packet to send [01:56:23]OFD Sender: No OFD packet to send [01:56:28]OFD Sender: No OFD packet to send [01:56:33]OFD Sender: No OFD packet to send [01:56:38]OFD Sender: No OFD packet to send [01:56:43]OFD Sender: No OFD packet to send [01:56:48]OFD Sender: No OFD packet to send [01:56:53]OFD Sender: No OFD packet to send [01:56:58]OFD Sender: No OFD packet to send [01:57:03]OFD Sender: No OFD packet to send [01:57:08]OFD Sender: No OFD packet to send [01:57:13]OFD Sender: No OFD packet to send [01:57:18]OFD Sender: No OFD packet to send [01:57:23]OFD Sender: No OFD packet to send [01:57:28]OFD Sender: No OFD packet to send [01:57:33]OFD Sender: No OFD packet to send [01:57:38]OFD Sender: No OFD packet to send [01:57:43]OFD Sender: No OFD packet to send [01:57:48]OFD Sender: No OFD packet to send [01:57:53]OFD Sender: No OFD packet to send [01:57:58]OFD Sender: No OFD packet to send [01:58:03]OFD Sender: No OFD packet to send [01:58:08]OFD Sender: No OFD packet to send [01:58:13]OFD Sender: No OFD packet to send [01:58:18]OFD Sender: No OFD packet to send [01:58:23]OFD Sender: No OFD packet to send [01:58:28]OFD Sender: No OFD packet to send [01:58:33]OFD Sender: No OFD packet to send [01:58:38]OFD Sender: No OFD packet to send [01:58:43]OFD Sender: No OFD packet to send [01:58:48]OFD Sender: No OFD packet to send [01:58:53]OFD Sender: No OFD packet to send [01:58:58]OFD Sender: No OFD packet to send [01:59:03]OFD Sender: No OFD packet to send [01:59:08]OFD Sender: No OFD packet to send [01:59:13]OFD Sender: No OFD packet to send [01:59:18]OFD Sender: No OFD packet to send [01:59:23]OFD Sender: No OFD packet to send [01:59:28]OFD Sender: No OFD packet to send [01:59:33]OFD Sender: No OFD packet to send [01:59:38]OFD Sender: No OFD packet to send [01:59:43]OFD Sender: No OFD packet to send [01:59:48]OFD Sender: No OFD packet to send [01:59:53]OFD Sender: No OFD packet to send [01:59:58]OFD Sender: No OFD packet to send [02:00:03]OFD Sender: No OFD packet to send [02:00:08]OFD Sender: No OFD packet to send [02:00:13]OFD Sender: No OFD packet to send [02:00:18]OFD Sender: No OFD packet to send [02:00:23]OFD Sender: No OFD packet to send [02:00:28]OFD Sender: No OFD packet to send [02:00:33]OFD Sender: No OFD packet to send [02:00:38]OFD Sender: No OFD packet to send [02:00:43]OFD Sender: No OFD packet to send [02:00:48]OFD Sender: No OFD packet to send [02:00:53]OFD Sender: No OFD packet to send [02:00:58]OFD Sender: No OFD packet to send [02:01:03]OFD Sender: No OFD packet to send [02:01:08]OFD Sender: No OFD packet to send [02:01:13]OFD Sender: No OFD packet to send [02:01:18]OFD Sender: No OFD packet to send [02:01:23]OFD Sender: No OFD packet to send [02:01:28]OFD Sender: No OFD packet to send [02:01:33]OFD Sender: No OFD packet to send [02:01:38]OFD Sender: No OFD packet to send [02:01:43]OFD Sender: No OFD packet to send [02:01:48]OFD Sender: No OFD packet to send [02:01:53]OFD Sender: No OFD packet to send [02:01:58]OFD Sender: No OFD packet to send [02:02:03]OFD Sender: No OFD packet to send [02:02:08]OFD Sender: No OFD packet to send [02:02:13]OFD Sender: No OFD packet to send [02:02:18]OFD Sender: No OFD packet to send [02:02:23]OFD Sender: No OFD packet to send [02:02:28]OFD Sender: No OFD packet to send [02:02:33]OFD Sender: No OFD packet to send [02:02:38]OFD Sender: No OFD packet to send [02:02:43]OFD Sender: No OFD packet to send [02:02:48]OFD Sender: No OFD packet to send [02:02:53]OFD Sender: No OFD packet to send [02:02:58]OFD Sender: No OFD packet to send [02:03:03]OFD Sender: No OFD packet to send [02:03:08]OFD Sender: No OFD packet to send [02:03:13]OFD Sender: No OFD packet to send [02:03:18]OFD Sender: No OFD packet to send [02:03:23]OFD Sender: No OFD packet to send [02:03:28]OFD Sender: No OFD packet to send [02:03:33]OFD Sender: No OFD packet to send [02:03:38]OFD Sender: No OFD packet to send [02:03:43]OFD Sender: No OFD packet to send [02:03:48]OFD Sender: No OFD packet to send [02:03:53]OFD Sender: No OFD packet to send [02:03:58]OFD Sender: No OFD packet to send [02:04:03]OFD Sender: No OFD packet to send [02:04:08]OFD Sender: No OFD packet to send [02:04:13]OFD Sender: No OFD packet to send [02:04:18]OFD Sender: No OFD packet to send [02:04:23]OFD Sender: No OFD packet to send [02:04:28]OFD Sender: No OFD packet to send [02:04:33]OFD Sender: No OFD packet to send [02:04:38]OFD Sender: No OFD packet to send [02:04:43]OFD Sender: No OFD packet to send [02:04:48]OFD Sender: No OFD packet to send [02:04:53]OFD Sender: No OFD packet to send [02:04:58]OFD Sender: No OFD packet to send [02:05:03]OFD Sender: No OFD packet to send [02:05:08]OFD Sender: No OFD packet to send [02:05:13]OFD Sender: No OFD packet to send [02:05:18]OFD Sender: No OFD packet to send [02:05:23]OFD Sender: No OFD packet to send [02:05:28]OFD Sender: No OFD packet to send [02:05:33]OFD Sender: No OFD packet to send [02:05:38]OFD Sender: No OFD packet to send [02:05:43]OFD Sender: No OFD packet to send [02:05:48]OFD Sender: No OFD packet to send [02:05:53]OFD Sender: No OFD packet to send [02:05:58]OFD Sender: No OFD packet to send [02:06:03]OFD Sender: No OFD packet to send [02:06:08]OFD Sender: No OFD packet to send [02:06:13]OFD Sender: No OFD packet to send [02:06:18]OFD Sender: No OFD packet to send [02:06:23]OFD Sender: No OFD packet to send [02:06:28]OFD Sender: No OFD packet to send [02:06:33]OFD Sender: No OFD packet to send [02:06:38]OFD Sender: No OFD packet to send [02:06:43]OFD Sender: No OFD packet to send [02:06:48]OFD Sender: No OFD packet to send [02:06:53]OFD Sender: No OFD packet to send [02:06:58]OFD Sender: No OFD packet to send [02:07:03]OFD Sender: No OFD packet to send [02:07:08]OFD Sender: No OFD packet to send [02:07:13]OFD Sender: No OFD packet to send [02:07:18]OFD Sender: No OFD packet to send [02:07:23]OFD Sender: No OFD packet to send [02:07:28]OFD Sender: No OFD packet to send [02:07:33]OFD Sender: No OFD packet to send [02:07:38]OFD Sender: No OFD packet to send [02:07:43]OFD Sender: No OFD packet to send [02:07:48]OFD Sender: No OFD packet to send [02:07:53]OFD Sender: No OFD packet to send [02:07:58]OFD Sender: No OFD packet to send [02:08:03]OFD Sender: No OFD packet to send [02:08:08]OFD Sender: No OFD packet to send [02:08:13]OFD Sender: No OFD packet to send [02:08:18]OFD Sender: No OFD packet to send [02:08:23]OFD Sender: No OFD packet to send [02:08:28]OFD Sender: No OFD packet to send [02:08:33]OFD Sender: No OFD packet to send [02:08:38]OFD Sender: No OFD packet to send [02:08:43]OFD Sender: No OFD packet to send [02:08:48]OFD Sender: No OFD packet to send [02:08:53]OFD Sender: No OFD packet to send [02:08:58]OFD Sender: No OFD packet to send [02:09:03]OFD Sender: No OFD packet to send [02:09:08]OFD Sender: No OFD packet to send [02:09:13]OFD Sender: No OFD packet to send [02:09:18]OFD Sender: No OFD packet to send [02:09:23]OFD Sender: No OFD packet to send [02:09:28]OFD Sender: No OFD packet to send [02:09:33]OFD Sender: No OFD packet to send [02:09:38]OFD Sender: No OFD packet to send [02:09:43]OFD Sender: No OFD packet to send [02:09:48]OFD Sender: No OFD packet to send [02:09:53]OFD Sender: No OFD packet to send [02:09:58]OFD Sender: No OFD packet to send [02:10:03]OFD Sender: No OFD packet to send [02:10:08]OFD Sender: No OFD packet to send [02:10:13]OFD Sender: No OFD packet to send [02:10:18]OFD Sender: No OFD packet to send [02:10:23]OFD Sender: No OFD packet to send [02:10:28]OFD Sender: No OFD packet to send [02:10:33]OFD Sender: No OFD packet to send [02:10:38]OFD Sender: No OFD packet to send [02:10:43]OFD Sender: No OFD packet to send [02:10:48]OFD Sender: No OFD packet to send [02:10:53]OFD Sender: No OFD packet to send [02:10:58]OFD Sender: No OFD packet to send [02:11:03]OFD Sender: No OFD packet to send [02:11:08]OFD Sender: No OFD packet to send [02:11:13]OFD Sender: No OFD packet to send [02:11:18]OFD Sender: No OFD packet to send [02:11:23]OFD Sender: No OFD packet to send [02:11:28]OFD Sender: No OFD packet to send [02:11:33]OFD Sender: No OFD packet to send [02:11:38]OFD Sender: No OFD packet to send [02:11:43]OFD Sender: No OFD packet to send [02:11:48]OFD Sender: No OFD packet to send [02:11:53]OFD Sender: No OFD packet to send [02:11:58]OFD Sender: No OFD packet to send [02:12:03]OFD Sender: No OFD packet to send [02:12:08]OFD Sender: No OFD packet to send [02:12:13]OFD Sender: No OFD packet to send [02:12:18]OFD Sender: No OFD packet to send [02:12:23]OFD Sender: No OFD packet to send [02:12:28]OFD Sender: No OFD packet to send [02:12:33]OFD Sender: No OFD packet to send [02:12:38]OFD Sender: No OFD packet to send [02:12:43]OFD Sender: No OFD packet to send [02:12:48]OFD Sender: No OFD packet to send [02:12:53]OFD Sender: No OFD packet to send [02:12:58]OFD Sender: No OFD packet to send [02:13:03]OFD Sender: No OFD packet to send [02:13:08]OFD Sender: No OFD packet to send [02:13:13]OFD Sender: No OFD packet to send [02:13:18]OFD Sender: No OFD packet to send [02:13:23]OFD Sender: No OFD packet to send [02:13:28]OFD Sender: No OFD packet to send [02:13:33]OFD Sender: No OFD packet to send [02:13:38]OFD Sender: No OFD packet to send [02:13:43]OFD Sender: No OFD packet to send [02:13:48]OFD Sender: No OFD packet to send [02:13:53]OFD Sender: No OFD packet to send [02:13:58]OFD Sender: No OFD packet to send [02:14:03]OFD Sender: No OFD packet to send [02:14:08]OFD Sender: No OFD packet to send [02:14:13]OFD Sender: No OFD packet to send [02:14:18]OFD Sender: No OFD packet to send [02:14:23]OFD Sender: No OFD packet to send [02:14:28]OFD Sender: No OFD packet to send [02:14:33]OFD Sender: No OFD packet to send [02:14:38]OFD Sender: No OFD packet to send [02:14:43]OFD Sender: No OFD packet to send [02:14:48]OFD Sender: No OFD packet to send [02:14:53]OFD Sender: No OFD packet to send [02:14:58]OFD Sender: No OFD packet to send [02:15:03]OFD Sender: No OFD packet to send [02:15:08]OFD Sender: No OFD packet to send [02:15:13]OFD Sender: No OFD packet to send [02:15:18]OFD Sender: No OFD packet to send [02:15:23]OFD Sender: No OFD packet to send [02:15:28]OFD Sender: No OFD packet to send [02:15:33]OFD Sender: No OFD packet to send [02:15:38]OFD Sender: No OFD packet to send [02:15:43]OFD Sender: No OFD packet to send [02:15:48]OFD Sender: No OFD packet to send [02:15:53]OFD Sender: No OFD packet to send [02:15:58]OFD Sender: No OFD packet to send [02:16:04]OFD Sender: No OFD packet to send [02:16:09]OFD Sender: No OFD packet to send [02:16:14]OFD Sender: No OFD packet to send [02:16:19]OFD Sender: No OFD packet to send [02:16:24]OFD Sender: No OFD packet to send [02:16:29]OFD Sender: No OFD packet to send [02:16:34]OFD Sender: No OFD packet to send [02:16:39]OFD Sender: No OFD packet to send [02:16:44]OFD Sender: No OFD packet to send [02:16:49]OFD Sender: No OFD packet to send [02:16:54]OFD Sender: No OFD packet to send [02:16:59]OFD Sender: No OFD packet to send [02:17:04]OFD Sender: No OFD packet to send [02:17:09]OFD Sender: No OFD packet to send [02:17:14]OFD Sender: No OFD packet to send [02:17:19]OFD Sender: No OFD packet to send [02:17:24]OFD Sender: No OFD packet to send [02:17:29]OFD Sender: No OFD packet to send [02:17:34]OFD Sender: No OFD packet to send [02:17:39]OFD Sender: No OFD packet to send [02:17:44]OFD Sender: No OFD packet to send [02:17:49]OFD Sender: No OFD packet to send [02:17:54]OFD Sender: No OFD packet to send [02:17:59]OFD Sender: No OFD packet to send [02:18:04]OFD Sender: No OFD packet to send [02:18:09]OFD Sender: No OFD packet to send [02:18:14]OFD Sender: No OFD packet to send [02:18:19]OFD Sender: No OFD packet to send [02:18:24]OFD Sender: No OFD packet to send [02:18:29]OFD Sender: No OFD packet to send [02:18:34]OFD Sender: No OFD packet to send [02:18:39]OFD Sender: No OFD packet to send [02:18:44]OFD Sender: No OFD packet to send [02:18:49]OFD Sender: No OFD packet to send [02:18:54]OFD Sender: No OFD packet to send [02:18:59]OFD Sender: No OFD packet to send [02:19:04]OFD Sender: No OFD packet to send [02:19:09]OFD Sender: No OFD packet to send [02:19:14]OFD Sender: No OFD packet to send [02:19:19]OFD Sender: No OFD packet to send [02:19:24]OFD Sender: No OFD packet to send [02:19:29]OFD Sender: No OFD packet to send [02:19:34]OFD Sender: No OFD packet to send [02:19:39]OFD Sender: No OFD packet to send [02:19:44]OFD Sender: No OFD packet to send [02:19:49]OFD Sender: No OFD packet to send [02:19:54]OFD Sender: No OFD packet to send [02:19:59]OFD Sender: No OFD packet to send [02:20:04]OFD Sender: No OFD packet to send [02:20:09]OFD Sender: No OFD packet to send [02:20:14]OFD Sender: No OFD packet to send [02:20:19]OFD Sender: No OFD packet to send [02:20:24]OFD Sender: No OFD packet to send [02:20:29]OFD Sender: No OFD packet to send [02:20:34]OFD Sender: No OFD packet to send [02:20:39]OFD Sender: No OFD packet to send [02:20:44]OFD Sender: No OFD packet to send [02:20:49]OFD Sender: No OFD packet to send [02:20:54]OFD Sender: No OFD packet to send [02:20:59]OFD Sender: No OFD packet to send [02:21:04]OFD Sender: No OFD packet to send [02:21:09]OFD Sender: No OFD packet to send [02:21:14]OFD Sender: No OFD packet to send [02:21:19]OFD Sender: No OFD packet to send [02:21:24]OFD Sender: No OFD packet to send [02:21:29]OFD Sender: No OFD packet to send [02:21:34]OFD Sender: No OFD packet to send [02:21:39]OFD Sender: No OFD packet to send [02:21:44]OFD Sender: No OFD packet to send [02:21:49]OFD Sender: No OFD packet to send [02:21:54]OFD Sender: No OFD packet to send [02:21:59]OFD Sender: No OFD packet to send [02:22:04]OFD Sender: No OFD packet to send [02:22:09]OFD Sender: No OFD packet to send [02:22:14]OFD Sender: No OFD packet to send [02:22:19]OFD Sender: No OFD packet to send [02:22:24]OFD Sender: No OFD packet to send [02:22:29]OFD Sender: No OFD packet to send [02:22:34]OFD Sender: No OFD packet to send [02:22:39]OFD Sender: No OFD packet to send [02:22:44]OFD Sender: No OFD packet to send [02:22:49]OFD Sender: No OFD packet to send [02:22:54]OFD Sender: No OFD packet to send [02:22:59]OFD Sender: No OFD packet to send [02:23:04]OFD Sender: No OFD packet to send [02:23:09]OFD Sender: No OFD packet to send [02:23:14]OFD Sender: No OFD packet to send [02:23:19]OFD Sender: No OFD packet to send [02:23:24]OFD Sender: No OFD packet to send [02:23:29]OFD Sender: No OFD packet to send [02:23:34]OFD Sender: No OFD packet to send [02:23:39]OFD Sender: No OFD packet to send [02:23:44]OFD Sender: No OFD packet to send [02:23:49]OFD Sender: No OFD packet to send [02:23:54]OFD Sender: No OFD packet to send [02:23:59]OFD Sender: No OFD packet to send [02:24:04]OFD Sender: No OFD packet to send [02:24:09]OFD Sender: No OFD packet to send [02:24:14]OFD Sender: No OFD packet to send [02:24:19]OFD Sender: No OFD packet to send [02:24:24]OFD Sender: No OFD packet to send [02:24:29]OFD Sender: No OFD packet to send [02:24:34]OFD Sender: No OFD packet to send [02:24:39]OFD Sender: No OFD packet to send [02:24:44]OFD Sender: No OFD packet to send [02:24:49]OFD Sender: No OFD packet to send [02:24:54]OFD Sender: No OFD packet to send [02:24:59]OFD Sender: No OFD packet to send [02:25:04]OFD Sender: No OFD packet to send [02:25:09]OFD Sender: No OFD packet to send [02:25:14]OFD Sender: No OFD packet to send [02:25:19]OFD Sender: No OFD packet to send [02:25:24]OFD Sender: No OFD packet to send [02:25:29]OFD Sender: No OFD packet to send [02:25:34]OFD Sender: No OFD packet to send [02:25:39]OFD Sender: No OFD packet to send [02:25:44]OFD Sender: No OFD packet to send [02:25:49]OFD Sender: No OFD packet to send [02:25:54]OFD Sender: No OFD packet to send [02:25:59]OFD Sender: No OFD packet to send [02:26:04]OFD Sender: No OFD packet to send [02:26:09]OFD Sender: No OFD packet to send [02:26:14]OFD Sender: No OFD packet to send [02:26:19]OFD Sender: No OFD packet to send [02:26:24]OFD Sender: No OFD packet to send [02:26:29]OFD Sender: No OFD packet to send [02:26:34]OFD Sender: No OFD packet to send [02:26:39]OFD Sender: No OFD packet to send [02:26:44]OFD Sender: No OFD packet to send [02:26:49]OFD Sender: No OFD packet to send [02:26:54]OFD Sender: No OFD packet to send [02:26:59]OFD Sender: No OFD packet to send [02:27:04]OFD Sender: No OFD packet to send [02:27:09]OFD Sender: No OFD packet to send [02:27:14]OFD Sender: No OFD packet to send [02:27:19]OFD Sender: No OFD packet to send [02:27:24]OFD Sender: No OFD packet to send [02:27:29]OFD Sender: No OFD packet to send [02:27:34]OFD Sender: No OFD packet to send [02:27:39]OFD Sender: No OFD packet to send [02:27:44]OFD Sender: No OFD packet to send [02:27:49]OFD Sender: No OFD packet to send [02:27:54]OFD Sender: No OFD packet to send [02:27:59]OFD Sender: No OFD packet to send [02:28:04]OFD Sender: No OFD packet to send [02:28:09]OFD Sender: No OFD packet to send [02:28:14]OFD Sender: No OFD packet to send [02:28:19]OFD Sender: No OFD packet to send [02:28:24]OFD Sender: No OFD packet to send [02:28:29]OFD Sender: No OFD packet to send [02:28:34]OFD Sender: No OFD packet to send [02:28:39]OFD Sender: No OFD packet to send [02:28:44]OFD Sender: No OFD packet to send [02:28:49]OFD Sender: No OFD packet to send [02:28:54]OFD Sender: No OFD packet to send [02:28:59]OFD Sender: No OFD packet to send [02:29:04]OFD Sender: No OFD packet to send [02:29:09]OFD Sender: No OFD packet to send [02:29:14]OFD Sender: No OFD packet to send [02:29:19]OFD Sender: No OFD packet to send [02:29:24]OFD Sender: No OFD packet to send [02:29:29]OFD Sender: No OFD packet to send [02:29:34]OFD Sender: No OFD packet to send [02:29:39]OFD Sender: No OFD packet to send [02:29:44]OFD Sender: No OFD packet to send [02:29:49]OFD Sender: No OFD packet to send [02:29:54]OFD Sender: No OFD packet to send [02:29:59]OFD Sender: No OFD packet to send [02:30:04]OFD Sender: No OFD packet to send [02:30:09]OFD Sender: No OFD packet to send [02:30:14]OFD Sender: No OFD packet to send [02:30:19]OFD Sender: No OFD packet to send [02:30:24]OFD Sender: No OFD packet to send [02:30:29]OFD Sender: No OFD packet to send [02:30:34]OFD Sender: No OFD packet to send [02:30:39]OFD Sender: No OFD packet to send [02:30:44]OFD Sender: No OFD packet to send [02:30:49]OFD Sender: No OFD packet to send [02:30:54]OFD Sender: No OFD packet to send [02:30:59]OFD Sender: No OFD packet to send [02:31:04]OFD Sender: No OFD packet to send [02:31:09]OFD Sender: No OFD packet to send [02:31:14]OFD Sender: No OFD packet to send [02:31:19]OFD Sender: No OFD packet to send [02:31:24]OFD Sender: No OFD packet to send [02:31:29]OFD Sender: No OFD packet to send [02:31:34]OFD Sender: No OFD packet to send [02:31:39]OFD Sender: No OFD packet to send [02:31:44]OFD Sender: No OFD packet to send [02:31:49]OFD Sender: No OFD packet to send [02:31:54]OFD Sender: No OFD packet to send [02:31:59]OFD Sender: No OFD packet to send [02:32:04]OFD Sender: No OFD packet to send [02:32:09]OFD Sender: No OFD packet to send [02:32:14]OFD Sender: No OFD packet to send [02:32:19]OFD Sender: No OFD packet to send [02:32:24]OFD Sender: No OFD packet to send [02:32:29]OFD Sender: No OFD packet to send [02:32:34]OFD Sender: No OFD packet to send [02:32:39]OFD Sender: No OFD packet to send [02:32:44]OFD Sender: No OFD packet to send [02:32:49]OFD Sender: No OFD packet to send [02:32:54]OFD Sender: No OFD packet to send [02:32:59]OFD Sender: No OFD packet to send [02:33:04]OFD Sender: No OFD packet to send [02:33:09]OFD Sender: No OFD packet to send [02:33:14]OFD Sender: No OFD packet to send [02:33:19]OFD Sender: No OFD packet to send [02:33:24]OFD Sender: No OFD packet to send [02:33:29]OFD Sender: No OFD packet to send [02:33:34]OFD Sender: No OFD packet to send [02:33:39]OFD Sender: No OFD packet to send [02:33:44]OFD Sender: No OFD packet to send [02:33:49]OFD Sender: No OFD packet to send [02:33:54]OFD Sender: No OFD packet to send [02:33:59]OFD Sender: No OFD packet to send [02:34:04]OFD Sender: No OFD packet to send [02:34:09]OFD Sender: No OFD packet to send [02:34:14]OFD Sender: No OFD packet to send [02:34:19]OFD Sender: No OFD packet to send [02:34:24]OFD Sender: No OFD packet to send [02:34:29]OFD Sender: No OFD packet to send [02:34:34]OFD Sender: No OFD packet to send [02:34:39]OFD Sender: No OFD packet to send [02:34:44]OFD Sender: No OFD packet to send [02:34:49]OFD Sender: No OFD packet to send [02:34:54]OFD Sender: No OFD packet to send [02:34:59]OFD Sender: No OFD packet to send [02:35:04]OFD Sender: No OFD packet to send [02:35:09]OFD Sender: No OFD packet to send [02:35:14]OFD Sender: No OFD packet to send [02:35:19]OFD Sender: No OFD packet to send [02:35:24]OFD Sender: No OFD packet to send [02:35:29]OFD Sender: No OFD packet to send [02:35:34]OFD Sender: No OFD packet to send [02:35:39]OFD Sender: No OFD packet to send [02:35:44]OFD Sender: No OFD packet to send [02:35:49]OFD Sender: No OFD packet to send [02:35:54]OFD Sender: No OFD packet to send [02:35:59]OFD Sender: No OFD packet to send [02:36:04]OFD Sender: No OFD packet to send [02:36:09]OFD Sender: No OFD packet to send [02:36:14]OFD Sender: No OFD packet to send [02:36:19]OFD Sender: No OFD packet to send [02:36:24]OFD Sender: No OFD packet to send [02:36:29]OFD Sender: No OFD packet to send [02:36:34]OFD Sender: No OFD packet to send [02:36:39]OFD Sender: No OFD packet to send [02:36:44]OFD Sender: No OFD packet to send [02:36:49]OFD Sender: No OFD packet to send [02:36:54]OFD Sender: No OFD packet to send [02:36:59]OFD Sender: No OFD packet to send [02:37:04]OFD Sender: No OFD packet to send [02:37:09]OFD Sender: No OFD packet to send [02:37: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:25]OFD Sender: No OFD packet to send [02:41:30]OFD Sender: No OFD packet to send [02:41:35]OFD Sender: No OFD packet to send [02:41:40]OFD Sender: No OFD packet to send [02:41:45]OFD Sender: No OFD packet to send [02:41:50]OFD Sender: No OFD packet to send [02:41:55]OFD Sender: No OFD packet to send [02:42:00]OFD Sender: No OFD packet to send [02:42:05]OFD Sender: No OFD packet to send [02:42:10]OFD Sender: No OFD packet to send [02:42:15]OFD Sender: No OFD packet to send [02:42:20]OFD Sender: No OFD packet to send [02:42:25]OFD Sender: No OFD packet to send [02:42:30]OFD Sender: No OFD packet to send [02:42:35]OFD Sender: No OFD packet to send [02:42:40]OFD Sender: No OFD packet to send [02:42:45]OFD Sender: No OFD packet to send [02:42:50]OFD Sender: No OFD packet to send [02:42:55]OFD Sender: No OFD packet to send [02:43:00]OFD Sender: No OFD packet to send [02:43:05]OFD Sender: No OFD packet to send [02:43:10]OFD Sender: No OFD packet to send [02:43:15]OFD Sender: No OFD packet to send [02:43:20]OFD Sender: No OFD packet to send [02:43:25]OFD Sender: No OFD packet to send [02:43:30]OFD Sender: No OFD packet to send [02:43:35]OFD Sender: No OFD packet to send [02:43:40]OFD Sender: No OFD packet to send [02:43:45]OFD Sender: No OFD packet to send [02:43:50]OFD Sender: No OFD packet to send [02:43:55]OFD Sender: No OFD packet to send [02:44:00]OFD Sender: No OFD packet to send [02:44:05]OFD Sender: No OFD packet to send [02:44:10]OFD Sender: No OFD packet to send [02:44:15]OFD Sender: No OFD packet to send [02:44:20]OFD Sender: No OFD packet to send [02:44:25]OFD Sender: No OFD packet to send [02:44:30]OFD Sender: No OFD packet to send [02:44:35]OFD Sender: No OFD packet to send [02:44:40]OFD Sender: No OFD packet to send [02:44:45]OFD Sender: No OFD packet to send [02:44:50]OFD Sender: No OFD packet to send [02:44:55]OFD Sender: No OFD packet to send [02:45:00]OFD Sender: No OFD packet to send [02:45:05]OFD Sender: No OFD packet to send [02:45:10]OFD Sender: No OFD packet to send [02:45:15]OFD Sender: No OFD packet to send [02:45:20]OFD Sender: No OFD packet to send [02:45:25]OFD Sender: No OFD packet to send [02:45:30]OFD Sender: No OFD packet to send [02:45:35]OFD Sender: No OFD packet to send [02:45:40]OFD Sender: No OFD packet to send [02:45:45]OFD Sender: No OFD packet to send [02:45:50]OFD Sender: No OFD packet to send [02:45:55]OFD Sender: No OFD packet to send [02:46:00]OFD Sender: No OFD packet to send [02:46:05]OFD Sender: No OFD packet to send [02:46:10]OFD Sender: No OFD packet to send [02:46:15]OFD Sender: No OFD packet to send [02:46:20]OFD Sender: No OFD packet to send [02:46:25]OFD Sender: No OFD packet to send [02:46:30]OFD Sender: No OFD packet to send [02:46:35]OFD Sender: No OFD packet to send [02:46:40]OFD Sender: No OFD packet to send [02:46:45]OFD Sender: No OFD packet to send [02:46:50]OFD Sender: No OFD packet to send [02:46:55]OFD Sender: No OFD packet to send [02:47:00]OFD Sender: No OFD packet to send [02:47:05]OFD Sender: No OFD packet to send [02:47:10]OFD Sender: No OFD packet to send [02:47:15]OFD Sender: No OFD packet to send [02:47:20]OFD Sender: No OFD packet to send [02:47:25]OFD Sender: No OFD packet to send [02:47:30]OFD Sender: No OFD packet to send [02:47:35]OFD Sender: No OFD packet to send [02:47:40]OFD Sender: No OFD packet to send [02:47:45]OFD Sender: No OFD packet to send [02:47:50]OFD Sender: No OFD packet to send [02:47:55]OFD Sender: No OFD packet to send [02:48:00]OFD Sender: No OFD packet to send [02:48:05]OFD Sender: No OFD packet to send [02:48:10]OFD Sender: No OFD packet to send [02:48:15]OFD Sender: No OFD packet to send [02:48:20]OFD Sender: No OFD packet to send [02:48:25]OFD Sender: No OFD packet to send [02:48:30]OFD Sender: No OFD packet to send [02:48:35]OFD Sender: No OFD packet to send [02:48:40]OFD Sender: No OFD packet to send [02:48:45]OFD Sender: No OFD packet to send [02:48:50]OFD Sender: No OFD packet to send [02:48:55]OFD Sender: No OFD packet to send [02:49:00]OFD Sender: No OFD packet to send [02:49:05]OFD Sender: No OFD packet to send [02:49:10]OFD Sender: No OFD packet to send [02:49:15]OFD Sender: No OFD packet to send [02:49:20]OFD Sender: No OFD packet to send [02:49:25]OFD Sender: No OFD packet to send [02:49:30]OFD Sender: No OFD packet to send [02:49:35]OFD Sender: No OFD packet to send [02:49:40]OFD Sender: No OFD packet to send [02:49:45]OFD Sender: No OFD packet to send [02:49:50]OFD Sender: No OFD packet to send [02:49:55]OFD Sender: No OFD packet to send [02:50:00]OFD Sender: No OFD packet to send [02:50:05]OFD Sender: No OFD packet to send [02:50:10]OFD Sender: No OFD packet to send [02:50:15]OFD Sender: No OFD packet to send [02:50:20]OFD Sender: No OFD packet to send [02:50:25]OFD Sender: No OFD packet to send [02:50:30]OFD Sender: No OFD packet to send [02:50:35]OFD Sender: No OFD packet to send [02:50:40]OFD Sender: No OFD packet to send [02:50:45]OFD Sender: No OFD packet to send [02:50:50]OFD Sender: No OFD packet to send [02:50:55]OFD Sender: No OFD packet to send [02:51:00]OFD Sender: No OFD packet to send [02:51:05]OFD Sender: No OFD packet to send [02:51:10]OFD Sender: No OFD packet to send [02:51:11]accept exits with 9 [02:51:11]New connection [02:51:11]New thread 3066785124 created [02:51:11]Thread 3066928484 joined [02:51:11]Waiting for new connection... [02:51:11] Sock 9.Parse request [02:51:11]Sock 9.Check first char [02:51:11]Sock 9.First char is OK [02:51:11]request: POST /json_proto HTTP/1.0 [02:51:11]Method: POST [02:51:11]URL: /json_proto [02:51:11]Method is POST - this is cgi request [02:51:11]url: /json_proto [02:51:11]query_string will be loaded in cgi processing [02:51:11]execute_cgi json_proto POST (null) [02:51:11]execute_cgi path=json_proto method=POST [02:51:11]POST find Content-Length [02:51:11]Host: 172.17.45.8:8080 [02:51:11]Content-Length: 1145 [02:51:11]Content-Type: application/json [02:51:11] [02:51:11]POST finish read [02:51:11]Found Content-Length = 1145 [02:51:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150598", "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": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46003553", "name": "Nestle NUTS \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A 30\u044550\u0433", "price" : 75.00, "quantity" : 1.000, "sum" : 75.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" ] } } [02:51:11]execute_script... [02:51: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)150598", "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": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46003553", "name": "Nestle NUTS \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A 30\u044550\u0433", "price" : 75.00, "quantity" : 1.000, "sum" : 75.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" ] } } [02:51:11]POST & json_proto [02:51:11]process_json_proto [02:51:11]json parsed OK: [02:51:11]protocol is kg_v1.0 [02:51:11]action value=close_receipt [02:51:11]process_action close_receipt [02:51:11]cmd_close_receipt [02:51:11]MH_GetDate [02:51:11]Write to MH i2c: F0 00 00 E0 2A F9 [02:51:11]Write i2c OK [02:51:11]MH_I2C_Read... [02:51:11]Read from MH i2c: F0 [02:51:11]MH_I2C_Read... [02:51:11]Read from MH i2c: F0 09 00 [02:51:11]MH_I2C_Read... [02:51:11]Read from MH i2c: F0 09 00 E0 2A 00 27 55 A8 66 A6 1F 7F 64 34 [02:51:11]GetLastDocTimeStamp 1722300109 [02:51:11]current date 1722307879 [02:51:11]FM_GetShiftState [02:51:11]SAM_PROTO_GetShiftState [02:51:11]wFMCommunicate request_size=4 [02:51:11]MH_SAM_APDU [02:51:11]CAPDU: 80 13 01 00 [02:51:11]Write to MH i2c: E2 08 00 E1 2A 80 13 01 00 00 00 00 00 88 [02:51:11]Write i2c OK [02:51:11]MH_I2C_Read... [02:51:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:51:11]Read from MH i2c: E2 [02:51:11]MH_I2C_Read... [02:51:11]Read from MH i2c: E2 0E 00 [02:51:11]MH_I2C_Read... [02:51:11]Read from MH i2c: E2 0E 00 E1 2A 00 09 00 01 CD 36 A8 66 00 00 00 00 90 00 A5 [02:51:11]RAPDU: 09 00 01 CD 36 A8 66 00 00 00 00 90 00 [02:51:11]wFMCommunicate OK [02:51:11]SAM_PROTO_GetShiftState done [02:51:11]FM_GetShiftState done [02:51:11]opened in 1722300109 [02:51:11]opened+sec_in_day 1722386509 [02:51:11]quantity*price = 12500 [02:51:11]sum+1 = 12501 [02:51:11]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160204 Вода Легенда 1,5л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46003553 Nestle NUTS батончик 30х50г 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.60 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 1 30.07.2024 02:51 Смена: 435 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27201 ФПД: 7855652072918 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T025119&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27201&fm=7855652072918&tin=02508201610067®Number=0000000000092663&sum=26000 0 [02:51:12]StoreToDocumentArchive [02:51:12]shift 435 fd 27201 [02:51:12]save to /storage/0435/doc_00027201 [02:51:12]save last doc name /storage/0435/doc_00027201 to /storage/kkm_last_doc_name [02:51:12]save OK [02:51:12]Clear old archive folders... [02:51:12]ProcessDocumentItem done err = 0, tmpTLVsize=489 [02:51:12]tlvbuf is 001A6870 [02:51:12]SAM_PROTO_ClearQueue [02:51:12]wFMCommunicate request_size=4 [02:51:12]MH_SAM_APDU [02:51:12]CAPDU: 80 09 00 00 [02:51:12]Write to MH i2c: E2 08 00 EE 2A 80 09 00 00 00 00 00 00 8A [02:51:12]Write i2c OK [02:51:12]MH_I2C_Read... [02:51:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:51:12]Read from MH i2c: E2 [02:51:12]MH_I2C_Read... [02:51:12]Read from MH i2c: E2 03 00 [02:51:12]MH_I2C_Read... [02:51:12]Read from MH i2c: E2 03 00 EE 2A 00 90 00 8C [02:51:12]RAPDU: 90 00 [02:51:12]wFMCommunicate OK [02:51:12]SAM_PROTO_ClearQueue done [02:51:12]KKMCreateOFDPacket [02:51:12]OFDProtocolAddRootSTLVToBuf [02:51:12]FM_MakeSignedData [02:51:12]FM_MakeSignedData [02:51:12]SAM_PROTO_SignData [02:51:12]wFMCommunicate request_size=4 [02:51:12]MH_SAM_APDU [02:51:12]CAPDU: 80 0D 01 02 [02:51:12]Write to MH i2c: E2 08 00 EF 2A 80 0D 01 02 00 00 00 00 92 [02:51:12]Write i2c OK [02:51:12]MH_I2C_Read... [02:51:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:51:12]Read from MH i2c: E2 [02:51:12]MH_I2C_Read... [02:51:12]Read from MH i2c: E2 03 00 [02:51:12]MH_I2C_Read... [02:51:12]Read from MH i2c: E2 03 00 EF 2A 00 90 00 8D [02:51:12]RAPDU: 90 00 [02:51:12]wFMCommunicate OK [02:51:12]wFMCommunicate request_size=255 [02:51:12]MH_SAM_APDU [02:51:12]CAPDU: 80 0D 02 02 FA 03 00 E9 01 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 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 30 30 33 35 35 33 06 04 25 00 4E 65 73 74 6C 65 [02:51:12]Write to MH i2c: E2 02 01 F0 2A 80 0D 02 02 FA 00 03 00 E9 01 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 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 30 30 33 35 35 33 06 04 25 00 4E 65 73 74 6C 65 00 00 C9 [02:51:12]Write i2c OK [02:51:12]MH_I2C_Read... [02:51:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:51:12]Read from MH i2c: E2 [02:51:12]MH_I2C_Read... [02:51:12]Read from MH i2c: E2 03 00 [02:51:12]MH_I2C_Read... [02:51:12]Read from MH i2c: E2 03 00 F0 2A 00 90 00 8E [02:51:12]RAPDU: 90 00 [02:51:12]wFMCommunicate OK [02:51:12]wFMCommunicate request_size=248 [02:51:12]MH_SAM_APDU [02:51:12]CAPDU: 80 0D 02 02 F3 20 4E 55 54 53 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 33 30 D1 85 35 30 D0 B3 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 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 C8 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 01 00 00 00 F4 03 04 00 27 55 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 41 6A 00 00 35 04 06 00 07 25 09 59 ED D6 [02:51:12]Write to MH i2c: E2 FB 00 F1 2A 80 0D 02 02 F3 00 20 4E 55 54 53 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 33 30 D1 85 35 30 D0 B3 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 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 C8 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 01 00 00 00 F4 03 04 00 27 55 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 41 6A 00 00 35 04 06 00 07 25 09 59 ED D6 00 00 A1 [02:51:12]Write i2c OK [02:51:12]MH_I2C_Read... [02:51:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:51:13]Read from MH i2c: E2 [02:51:13]MH_I2C_Read... [02:51:13]Read from MH i2c: E2 03 00 [02:51:13]MH_I2C_Read... [02:51:13]Read from MH i2c: E2 03 00 F1 2A 00 90 00 8F [02:51:13]RAPDU: 90 00 [02:51:13]wFMCommunicate OK [02:51:13]wFMCommunicate request_size=4 [02:51:13]MH_SAM_APDU [02:51:13]CAPDU: 80 0D 03 02 [02:51:13]Write to MH i2c: E2 08 00 F2 2A 80 0D 03 02 00 00 00 00 97 [02:51:13]Write i2c OK [02:51:13]MH_I2C_Read... [02:51:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:51:13]Read from MH i2c: E2 [02:51:13]MH_I2C_Read... [02:51:13]Read from MH i2c: E2 0B 00 [02:51:13]MH_I2C_Read... [02:51:13]Read from MH i2c: E2 0B 00 F2 2A 00 9F 9A 79 A1 7C AF 54 3C 90 00 A6 [02:51:13]RAPDU: 9F 9A 79 A1 7C AF 54 3C 90 00 [02:51:13]wFMCommunicate OK [02:51:13]SAM_PROTO_SignData done [02:51:13]FM_MakeSignedData done [02:51:13]CreateOFDProtocolMessage [02:51:13]wFMCommunicate request_size=4 [02:51:13]MH_SAM_APDU [02:51:13]CAPDU: 80 11 00 00 [02:51:13]Write to MH i2c: E2 08 00 F3 2A 80 11 00 00 00 00 00 00 97 [02:51:13]Write i2c OK [02:51:13]MH_I2C_Read... [02:51:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:51:13]Read from MH i2c: E2 [02:51:13]MH_I2C_Read... [02:51:13]Read from MH i2c: E2 17 00 [02:51:13]MH_I2C_Read... [02:51:13]Read from MH i2c: E2 17 00 F3 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 F0 [02:51:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [02:51:13]wFMCommunicate OK [02:51:13]CreateOFDProtocolMessage done [02:51:13]OFDSenderStorePacket 27201 [02:51:13]StoreOFDPacket docnum=27201 [02:51:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 FD 01 00 00 97 8B F5 01 00 78 5A 03 01 00 03 00 E9 01 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 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 30 30 33 35 35 33 06 04 25 00 4E 65 73 74 6C 65 20 4E 55 54 53 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 33 30 D1 85 35 30 D0 B3 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 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 C8 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 01 00 00 00 F4 03 04 00 27 55 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 41 6A 00 00 35 04 06 00 07 25 09 59 ED D6 9F 9A 79 A1 7C AF 54 3C [02:51:13]CheckFolder [02:51:13]dirname=/storage/ofd_packets [02:51:13]CheckFolder done [02:51:13]ProducePacketName [02:51:13]name=ofd_packets/00027201 [02:51:13]NVStorageSaveData ofd_packets/00027201 [02:51:13]File name is /storage/ofd_packets/00027201 [02:51:13]Write 539 bytes [02:51:13]NVStorageSaveData done [02:51:13]OFDSenderStorePacket done [02:51:13]KKMCreateOFDPacket done [02:51:13]NVStorageSaveData kkm_last_timestamp [02:51:13]File name is /storage/kkm_last_timestamp [02:51:13]Write 4 bytes [02:51:13]NVStorageSaveData done [02:51:13]ExternCall_PrintAddStr [02:51:13]wPrintStart [02:51:13]Write to MH i2c: 01 00 00 F4 2A 1E [02:51:13]Write i2c OK [02:51:13]MH_I2C_Read... [02:51:13]Read from MH i2c: 01 [02:51:13]MH_I2C_Read... [02:51:13]Read from MH i2c: 01 07 00 [02:51:13]MH_I2C_Read... [02:51:13]Read from MH i2c: 01 07 00 F4 2A 00 00 00 00 00 FF 0F 33 [02:51:13]RasterBufferAndPrint [02:51:13]line Счет N : (3)150598 [02:51:13]line ИНН: 02508201610067 [02:51:13]line Контрольно-Кассовый Чек [02:51:13]line ПРОДАЖА [02:51:13]line Товар: 2000036190018 [02:51:13]line Кофе Американо XL(GABB TRADE) [02:51:13]line 1.000 * 125.00 [02:51:13]line = 125.00 [02:51:13]line НДС 12% НСП 1% [02:51:13]line > о реализуемом товаре [02:51:13]line Товар: 4700000160204 [02:51:13]line Вода Легенда 1,5л [02:51:13]line 1.000 * 60.00 [02:51:13]line = 60.00 [02:51:13]line НДС 12% НСП 1% [02:51:13]line > о реализуемом товаре [02:51:13]line Товар: 46003553 [02:51:13]line Nestle NUTS батончик 30х50г [02:51:13]line 1.000 * 75.00 [02:51:13]line = 75.00 [02:51:13]line НДС 12% НСП 1% [02:51:13]line > о реализуемом товаре [02:51:13]line ИТОГО: 260.00 [02:51:13]line НСП 1% : 2.30 [02:51:13]line НДС 12% : 27.60 [02:51:13]line Наличными: 260.00 [02:51:13]line Безнал.: 0.00 [02:51:13]line Место: АЗС № 134 "Партнер Нефть" [02:51:13]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [02:51:13]line СНО: Общий режим [02:51:13]line Чек 1 30.07.2024 02:51 [02:51:13]line Смена: 435 ФФД: 1.0 [02:51:13]line ЗНМ: 0300000043 [02:51:13]line РНМ: 0000000000092663 [02:51:13]line Версия ККМ: 001 [02:51:13]line ФМ: 0000000000874937 [02:51:13]line ФД: 27201 [02:51:13]line ФПД: 7855652072918 [02:51:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T025119&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27201&fm=7855652072918&tin=02508201610067®Number=0000000000092663&sum=26000 [02:51:13]line 0 [02:51:13]written 0, free lines is 4095 [02:51:13]OFD Sender: Processing packet 27201 [packets to send 9, broken 8] [02:51:13]ProducePacketName [02:51:13]name=ofd_packets/00027201 [02:51:13]OFD Sender: To server: pG, [02:51:13]CommunicateWithHost lk.salyk.kg:30040 [02:51:13]ConnectInit lk.salyk.kg [02:51:13]Connected sock=10 [02:51:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 FD 01 00 00 97 8B F5 01 00 78 5A 03 01 00 03 00 E9 01 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 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 30 30 33 35 35 33 06 04 25 00 4E 65 73 74 6C 65 20 4E 55 54 53 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 33 30 D1 85 35 30 D0 B3 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 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 C8 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 01 00 00 00 F4 03 04 00 27 55 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 41 6A 00 00 35 04 06 00 07 25 09 59 ED D6 9F 9A 79 A1 7C AF 54 3C [02:51:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 56 AA 47 00 59 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 41 6A 00 00 F4 03 04 00 77 FB A7 66 B6 04 01 00 00 93 3A CF A8 3D A6 23 35 [02:51:13]CommunicateWithHost err = 0 [02:51:13]CheckOFDResponse [02:51:13]1017 (14) - 77093643461234 [02:51:13]1041 (16) - 0000000000874937 [02:51:13]1040 (4) - 27201 [02:51:13]1012 (4) - 29.07.2024 20:28 [02:51:13]1206 (1) - 0 [02:51:13]OFD Sender: Remove packet 27201 [02:51:13]ProducePacketName [02:51:13]name=ofd_packets/00027201 [02:51:13]NVStorageDeleteData [02:51:13]Write to MH i2c: 01 00 00 28 2B 53 [02:51:13]Write i2c OK [02:51:13]MH_I2C_Read... [02:51:13]Read from MH i2c: 01 [02:51:13]MH_I2C_Read... [02:51:13]Read from MH i2c: 01 07 00 [02:51:13]MH_I2C_Read... [02:51:13]Read from MH i2c: 01 07 00 28 2B 00 00 00 00 00 24 0C 8A [02:51:13]RasterBufferAndPrint [02:51:13]line [02:51:13]line [02:51:13]line [02:51:13]line [02:51:13]line [02:51:13]written 0, free lines is 3117 [02:51:13]MH_Cut [02:51:13]Write to MH i2c: D1 01 00 2F 2B 01 2C [02:51:13]Write i2c OK [02:51:13]MH_I2C_Read... [02:51:13]Read from MH i2c: D1 [02:51:13]MH_I2C_Read... [02:51:13]Read from MH i2c: D1 01 00 [02:51:13]MH_I2C_Read... [02:51:13]Read from MH i2c: D1 01 00 2F 2B 00 2B [02:51:13]Write to MH i2c: 01 00 00 30 2B 5B [02:51:13]Write i2c OK [02:51:13]MH_I2C_Read... [02:51:14]OFD Sender: No OFD packet to send [02:51:14]*** Cut start [02:51:14]*** Partial cut [02:51:14]*** CUTSNS_PIN = 1 [02:51:14]*** CUTSNS_PIN = 0 [02:51:15]*** Brake cut motor [02:51:15]Read from MH i2c: 01 [02:51:15]MH_I2C_Read... [02:51:15]*** Stop cut motor [02:51:15]*** Cut end [02:51:15]Read from MH i2c: 01 07 00 [02:51:15]MH_I2C_Read... [02:51:15]Read from MH i2c: 01 07 00 30 2B 00 00 00 00 00 FF 0F 70 [02:51:15]process_action close_receipt done [02:51:15]requested_data is exist [02:51:15]produce_requested_data [02:51:15]requested_item fm.sn is exist - process it [02:51:15]wFMCommunicate request_size=4 [02:51:15]MH_SAM_APDU [02:51:15]CAPDU: 80 11 00 00 [02:51:15]Write to MH i2c: E2 08 00 31 2B 80 11 00 00 00 00 00 00 D6 [02:51:15]Write i2c OK [02:51:15]MH_I2C_Read... [02:51:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:51:15]Read from MH i2c: E2 [02:51:15]MH_I2C_Read... [02:51:15]Read from MH i2c: E2 17 00 [02:51:15]MH_I2C_Read... [02:51:15]Read from MH i2c: E2 17 00 31 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 2F [02:51:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [02:51:15]wFMCommunicate OK [02:51:15]requested_item fd.num is exist - process it [02:51:15]SAM_PROTO_GetFieldsCounters [02:51:15]wFMCommunicate request_size=4 [02:51:15]MH_SAM_APDU [02:51:15]CAPDU: 80 13 00 00 [02:51:15]Write to MH i2c: E2 08 00 32 2B 80 13 00 00 00 00 00 00 D9 [02:51:15]Write i2c OK [02:51:15]MH_I2C_Read... [02:51:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:51:15]Read from MH i2c: E2 [02:51:15]MH_I2C_Read... [02:51:15]Read from MH i2c: E2 62 00 [02:51:15]MH_I2C_Read... [02:51:15]Read from MH i2c: E2 62 00 32 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 41 6A 00 00 0E 04 04 00 B3 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 63 [02:51:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 41 6A 00 00 0E 04 04 00 B3 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 [02:51:15]wFMCommunicate OK [02:51:15]SAM_PROTO_GetFieldsCounters done [02:51:15]requested_item shift.num is exist - process it [02:51:15]requested_item shift.opened is exist - process it [02:51:15]req_shift_opened [02:51:15]FM_GetShiftState [02:51:15]SAM_PROTO_GetShiftState [02:51:15]wFMCommunicate request_size=4 [02:51:15]MH_SAM_APDU [02:51:15]CAPDU: 80 13 01 00 [02:51:15]Write to MH i2c: E2 08 00 33 2B 80 13 01 00 00 00 00 00 DB [02:51:15]Write i2c OK [02:51:15]MH_I2C_Read... [02:51:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:51:15]Read from MH i2c: E2 [02:51:15]MH_I2C_Read... [02:51:15]Read from MH i2c: E2 0E 00 [02:51:15]MH_I2C_Read... [02:51:15]Read from MH i2c: E2 0E 00 33 2B 00 09 00 01 CD 36 A8 66 00 00 00 00 90 00 F8 [02:51:15]RAPDU: 09 00 01 CD 36 A8 66 00 00 00 00 90 00 [02:51:15]wFMCommunicate OK [02:51:15]SAM_PROTO_GetShiftState done [02:51:15]FM_GetShiftState done [02:51:15]req_shift_opened done [02:51:15]requested_item shift.open_date is exist - process it [02:51:15]req_shift_open_date [02:51:15]req_shift_open_date done [02:51:15]produce_requested_data done [02:51:15]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27201,"shift.num":435,"shift.opened":1,"shift.open_date":1722300109} [02:51:15]process_action_free close_receipt [02:51:15]json_value_free [02:51:15]json_value_free done [02:51:15]process_json_proto returns [02:51:15]Send response to host [02:51:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27201,"shift.num":435,"shift.opened":1,"shift.open_date":1722300109}}} [02:51:15]free response buf [02:51:15]execute_script done [02:51:15]execute_script returns [02:51:15]free content buf [02:51:15]Sock 9.Close socket [02:51:15]Sock 9.Thread stoped [02:51:19]OFD Sender: No OFD packet to send [02:51:24]OFD Sender: No OFD packet to send [02:51:29]OFD Sender: No OFD packet to send [02:51:34]OFD Sender: No OFD packet to send [02:51:39]OFD Sender: No OFD packet to send [02:51:44]OFD Sender: No OFD packet to send [02:51:49]OFD Sender: No OFD packet to send [02:51:54]OFD Sender: No OFD packet to send [02:51:59]OFD Sender: No OFD packet to send [02:52:04]OFD Sender: No OFD packet to send [02:52:09]OFD Sender: No OFD packet to send [02:52:14]OFD Sender: No OFD packet to send [02:52:19]OFD Sender: No OFD packet to send [02:52:24]OFD Sender: No OFD packet to send [02:52:29]OFD Sender: No OFD packet to send [02:52:34]OFD Sender: No OFD packet to send [02:52:39]OFD Sender: No OFD packet to send [02:52:44]OFD Sender: No OFD packet to send [02:52:49]OFD Sender: No OFD packet to send [02:52:54]OFD Sender: No OFD packet to send [02:52:59]OFD Sender: No OFD packet to send [02:53:04]OFD Sender: No OFD packet to send [02:53:09]OFD Sender: No OFD packet to send [02:53:14]OFD Sender: No OFD packet to send [02:53:19]OFD Sender: No OFD packet to send [02:53:24]OFD Sender: No OFD packet to send [02:53:29]OFD Sender: No OFD packet to send [02:53:34]OFD Sender: No OFD packet to send [02:53:39]OFD Sender: No OFD packet to send [02:53:44]OFD Sender: No OFD packet to send [02:53:49]OFD Sender: No OFD packet to send [02:53:54]OFD Sender: No OFD packet to send [02:53:59]OFD Sender: No OFD packet to send [02:54:04]OFD Sender: No OFD packet to send [02:54:09]OFD Sender: No OFD packet to send [02:54:14]OFD Sender: No OFD packet to send [02:54:19]OFD Sender: No OFD packet to send [02:54:24]OFD Sender: No OFD packet to send [02:54:29]OFD Sender: No OFD packet to send [02:54:34]OFD Sender: No OFD packet to send [02:54:39]OFD Sender: No OFD packet to send [02:54:44]OFD Sender: No OFD packet to send [02:54:49]OFD Sender: No OFD packet to send [02:54:54]OFD Sender: No OFD packet to send [02:54:59]OFD Sender: No OFD packet to send [02:55:04]OFD Sender: No OFD packet to send [02:55:09]OFD Sender: No OFD packet to send [02:55:14]OFD Sender: No OFD packet to send [02:55:19]OFD Sender: No OFD packet to send [02:55:24]OFD Sender: No OFD packet to send [02:55:29]OFD Sender: No OFD packet to send [02:55:34]OFD Sender: No OFD packet to send [02:55:39]OFD Sender: No OFD packet to send [02:55:44]OFD Sender: No OFD packet to send [02:55:49]OFD Sender: No OFD packet to send [02:55:54]OFD Sender: No OFD packet to send [02:55:59]OFD Sender: No OFD packet to send [02:56:04]OFD Sender: No OFD packet to send [02:56:09]OFD Sender: No OFD packet to send [02:56:14]OFD Sender: No OFD packet to send [02:56:19]OFD Sender: No OFD packet to send [02:56:24]OFD Sender: No OFD packet to send [02:56:29]OFD Sender: No OFD packet to send [02:56:34]OFD Sender: No OFD packet to send [02:56:39]OFD Sender: No OFD packet to send [02:56:44]OFD Sender: No OFD packet to send [02:56:49]OFD Sender: No OFD packet to send [02:56:54]OFD Sender: No OFD packet to send [02:56:59]OFD Sender: No OFD packet to send [02:57:04]OFD Sender: No OFD packet to send [02:57:09]OFD Sender: No OFD packet to send [02:57:14]OFD Sender: No OFD packet to send [02:57:19]OFD Sender: No OFD packet to send [02:57:24]OFD Sender: No OFD packet to send [02:57:29]OFD Sender: No OFD packet to send [02:57:34]OFD Sender: No OFD packet to send [02:57:39]OFD Sender: No OFD packet to send [02:57:44]OFD Sender: No OFD packet to send [02:57:49]OFD Sender: No OFD packet to send [02:57:54]OFD Sender: No OFD packet to send [02:57:59]OFD Sender: No OFD packet to send [02:58:04]OFD Sender: No OFD packet to send [02:58:09]OFD Sender: No OFD packet to send [02:58:14]OFD Sender: No OFD packet to send [02:58:19]OFD Sender: No OFD packet to send [02:58:24]OFD Sender: No OFD packet to send [02:58:29]OFD Sender: No OFD packet to send [02:58:34]OFD Sender: No OFD packet to send [02:58:39]OFD Sender: No OFD packet to send [02:58:44]OFD Sender: No OFD packet to send [02:58:49]OFD Sender: No OFD packet to send [02:58:54]OFD Sender: No OFD packet to send [02:58:59]OFD Sender: No OFD packet to send [02:59:04]OFD Sender: No OFD packet to send [02:59:09]OFD Sender: No OFD packet to send [02:59:14]OFD Sender: No OFD packet to send [02:59:19]OFD Sender: No OFD packet to send [02:59:24]OFD Sender: No OFD packet to send [02:59:29]OFD Sender: No OFD packet to send [02:59:34]OFD Sender: No OFD packet to send [02:59:39]OFD Sender: No OFD packet to send [02:59:44]OFD Sender: No OFD packet to send [02:59:49]OFD Sender: No OFD packet to send [02:59:54]OFD Sender: No OFD packet to send [02:59:59]OFD Sender: No OFD packet to send [03:00:04]OFD Sender: No OFD packet to send [03:00:09]OFD Sender: No OFD packet to send [03:00:14]OFD Sender: No OFD packet to send [03:00:19]OFD Sender: No OFD packet to send [03:00:24]OFD Sender: No OFD packet to send [03:00:29]OFD Sender: No OFD packet to send [03:00:34]OFD Sender: No OFD packet to send [03:00:39]OFD Sender: No OFD packet to send [03:00:44]OFD Sender: No OFD packet to send [03:00:49]OFD Sender: No OFD packet to send [03:00:54]OFD Sender: No OFD packet to send [03:00:59]OFD Sender: No OFD packet to send [03:01:04]OFD Sender: No OFD packet to send [03:01:09]OFD Sender: No OFD packet to send [03:01:14]OFD Sender: No OFD packet to send [03:01:19]OFD Sender: No OFD packet to send [03:01:24]OFD Sender: No OFD packet to send [03:01:29]OFD Sender: No OFD packet to send [03:01:34]OFD Sender: No OFD packet to send [03:01:39]OFD Sender: No OFD packet to send [03:01:44]OFD Sender: No OFD packet to send [03:01:49]OFD Sender: No OFD packet to send [03:01:54]OFD Sender: No OFD packet to send [03:01:59]OFD Sender: No OFD packet to send [03:02:04]OFD Sender: No OFD packet to send [03:02:09]OFD Sender: No OFD packet to send [03:02:14]OFD Sender: No OFD packet to send [03:02:19]OFD Sender: No OFD packet to send [03:02:24]OFD Sender: No OFD packet to send [03:02:29]OFD Sender: No OFD packet to send [03:02:34]OFD Sender: No OFD packet to send [03:02:39]OFD Sender: No OFD packet to send [03:02:44]OFD Sender: No OFD packet to send [03:02:49]OFD Sender: No OFD packet to send [03:02:54]OFD Sender: No OFD packet to send [03:02:59]OFD Sender: No OFD packet to send [03:03:04]OFD Sender: No OFD packet to send [03:03:09]OFD Sender: No OFD packet to send [03:03:14]OFD Sender: No OFD packet to send [03:03:19]OFD Sender: No OFD packet to send [03:03:24]OFD Sender: No OFD packet to send [03:03:29]OFD Sender: No OFD packet to send [03:03:34]OFD Sender: No OFD packet to send [03:03:39]OFD Sender: No OFD packet to send [03:03:44]OFD Sender: No OFD packet to send [03:03:49]OFD Sender: No OFD packet to send [03:03:54]OFD Sender: No OFD packet to send [03:03:59]OFD Sender: No OFD packet to send [03:04:04]OFD Sender: No OFD packet to send [03:04:09]OFD Sender: No OFD packet to send [03:04:14]OFD Sender: No OFD packet to send [03:04:19]OFD Sender: No OFD packet to send [03:04:24]OFD Sender: No OFD packet to send [03:04:29]OFD Sender: No OFD packet to send [03:04:34]OFD Sender: No OFD packet to send [03:04:39]OFD Sender: No OFD packet to send [03:04:44]OFD Sender: No OFD packet to send [03:04:49]OFD Sender: No OFD packet to send [03:04:54]OFD Sender: No OFD packet to send [03:04:59]OFD Sender: No OFD packet to send [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:05]OFD Sender: No OFD packet to send [03:08:10]OFD Sender: No OFD packet to send [03:08:15]OFD Sender: No OFD packet to send [03:08:20]OFD Sender: No OFD packet to send [03:08:21]accept exits with 8 [03:08:21]New connection [03:08:21]New thread 3066928484 created [03:08:21]Thread 3066785124 joined [03:08:21]Waiting for new connection... [03:08:21] Sock 8.Parse request [03:08:21]Sock 8.Check first char [03:08:21]Sock 8.First char is OK [03:08:21]request: POST /json_proto HTTP/1.0 [03:08:21]Method: POST [03:08:21]URL: /json_proto [03:08:21]Method is POST - this is cgi request [03:08:21]url: /json_proto [03:08:21]query_string will be loaded in cgi processing [03:08:21]execute_cgi json_proto POST (null) [03:08:21]execute_cgi path=json_proto method=POST [03:08:21]POST find Content-Length [03:08:21]Host: 172.17.45.8:8080 [03:08:21]Content-Length: 957 [03:08:21]Content-Type: application/json [03:08:21] [03:08:21]POST finish read [03:08:21]Found Content-Length = 957 [03:08:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150599", "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 }]} ,{ "code": "4870002329470", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041F\u0438\u0430\u043B\u0430 Ice Tea \u043C\u0430\u043D\u0433\u043E,\u0430\u043D\u0430\u043D,\u043B\u0435\u043C 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:08:21]execute_script... [03:08:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150599", "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 }]} ,{ "code": "4870002329470", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041F\u0438\u0430\u043B\u0430 Ice Tea \u043C\u0430\u043D\u0433\u043E,\u0430\u043D\u0430\u043D,\u043B\u0435\u043C 1\u043B", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:08:21]POST & json_proto [03:08:21]process_json_proto [03:08:21]json parsed OK: [03:08:21]protocol is kg_v1.0 [03:08:21]action value=close_receipt [03:08:21]process_action close_receipt [03:08:21]cmd_close_receipt [03:08:21]MH_GetDate [03:08:21]Write to MH i2c: F0 00 00 34 2B 4E [03:08:21]Write i2c OK [03:08:21]MH_I2C_Read... [03:08:21]Read from MH i2c: F0 [03:08:21]MH_I2C_Read... [03:08:21]Read from MH i2c: F0 09 00 [03:08:21]MH_I2C_Read... [03:08:21]Read from MH i2c: F0 09 00 34 2B 00 2E 59 A8 66 A6 1F 7F 64 94 [03:08:21]GetLastDocTimeStamp 1722307879 [03:08:21]current date 1722308910 [03:08:21]FM_GetShiftState [03:08:21]SAM_PROTO_GetShiftState [03:08:21]wFMCommunicate request_size=4 [03:08:21]MH_SAM_APDU [03:08:21]CAPDU: 80 13 01 00 [03:08:21]Write to MH i2c: E2 08 00 35 2B 80 13 01 00 00 00 00 00 DD [03:08:21]Write i2c OK [03:08:21]MH_I2C_Read... [03:08:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:08:21]Read from MH i2c: E2 [03:08:21]MH_I2C_Read... [03:08:21]Read from MH i2c: E2 0E 00 [03:08:21]MH_I2C_Read... [03:08:21]Read from MH i2c: E2 0E 00 35 2B 00 09 00 01 CD 36 A8 66 00 00 00 00 90 00 FA [03:08:21]RAPDU: 09 00 01 CD 36 A8 66 00 00 00 00 90 00 [03:08:21]wFMCommunicate OK [03:08:21]SAM_PROTO_GetShiftState done [03:08:21]FM_GetShiftState done [03:08:21]opened in 1722300109 [03:08:21]opened+sec_in_day 1722386509 [03:08:21]quantity*price = 14000 [03:08:21]sum+1 = 14001 [03:08:21]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002329470 Напиток Пиала Ice Tea манго,анан,лем 1л 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 245.00 НСП 1% : 2.17 НДС 12% : 26.02 Наличными: 245.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 2 30.07.2024 03:08 Смена: 435 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27202 ФПД: 146830501119564 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T030830&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27202&fm=146830501119564&tin=02508201610067®Number=0000000000092663&sum=24500 0 [03:08:23]StoreToDocumentArchive [03:08:23]shift 435 fd 27202 [03:08:23]save to /storage/0435/doc_00027202 [03:08:23]save last doc name /storage/0435/doc_00027202 to /storage/kkm_last_doc_name [03:08:23]save OK [03:08:23]Clear old archive folders... [03:08:23]ProcessDocumentItem done err = 0, tmpTLVsize=407 [03:08:23]tlvbuf is 001ACAD0 [03:08:23]SAM_PROTO_ClearQueue [03:08:23]wFMCommunicate request_size=4 [03:08:23]MH_SAM_APDU [03:08:23]CAPDU: 80 09 00 00 [03:08:23]Write to MH i2c: E2 08 00 42 2B 80 09 00 00 00 00 00 00 DF [03:08:23]Write i2c OK [03:08:23]MH_I2C_Read... [03:08:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:08:23]Read from MH i2c: E2 [03:08:23]MH_I2C_Read... [03:08:23]Read from MH i2c: E2 03 00 [03:08:23]MH_I2C_Read... [03:08:23]Read from MH i2c: E2 03 00 42 2B 00 90 00 E1 [03:08:23]RAPDU: 90 00 [03:08:23]wFMCommunicate OK [03:08:23]SAM_PROTO_ClearQueue done [03:08:23]KKMCreateOFDPacket [03:08:23]OFDProtocolAddRootSTLVToBuf [03:08:23]FM_MakeSignedData [03:08:23]FM_MakeSignedData [03:08:23]SAM_PROTO_SignData [03:08:23]wFMCommunicate request_size=4 [03:08:23]MH_SAM_APDU [03:08:23]CAPDU: 80 0D 01 02 [03:08:23]Write to MH i2c: E2 08 00 43 2B 80 0D 01 02 00 00 00 00 E7 [03:08:23]Write i2c OK [03:08:23]MH_I2C_Read... [03:08:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:08:23]Read from MH i2c: E2 [03:08:23]MH_I2C_Read... [03:08:23]Read from MH i2c: E2 03 00 [03:08:23]MH_I2C_Read... [03:08:23]Read from MH i2c: E2 03 00 43 2B 00 90 00 E2 [03:08:23]RAPDU: 90 00 [03:08:23]wFMCommunicate OK [03:08:23]wFMCommunicate request_size=255 [03:08:23]MH_SAM_APDU [03:08:23]CAPDU: 80 0D 02 02 FA 03 00 97 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 23 04 84 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 37 30 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9F D0 B8 D0 B0 D0 BB D0 B0 20 49 63 65 20 54 65 61 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D0 B0 D0 BD D0 B0 D0 BD 2C D0 BB D0 B5 D0 BC 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 [03:08:23]Write to MH i2c: E2 02 01 44 2B 80 0D 02 02 FA 00 03 00 97 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 23 04 84 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 37 30 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9F D0 B8 D0 B0 D0 BB D0 B0 20 49 63 65 20 54 65 61 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D0 B0 D0 BD D0 B0 D0 BD 2C D0 BB D0 B5 D0 BC 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 23 [03:08:23]Write i2c OK [03:08:23]MH_I2C_Read... [03:08:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:08:23]Read from MH i2c: E2 [03:08:23]MH_I2C_Read... [03:08:23]Read from MH i2c: E2 03 00 [03:08:23]MH_I2C_Read... [03:08:23]Read from MH i2c: E2 03 00 44 2B 00 90 00 E3 [03:08:23]RAPDU: 90 00 [03:08:23]wFMCommunicate OK [03:08:23]wFMCommunicate request_size=166 [03:08:23]MH_SAM_APDU [03:08:23]CAPDU: 80 0D 02 02 A1 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 0A 00 00 00 00 07 04 06 00 B4 5F 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 2E 59 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 42 6A 00 00 35 04 06 00 85 8A A3 DC 86 4C [03:08:23]Write to MH i2c: E2 A9 00 45 2B 80 0D 02 02 A1 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 0A 00 00 00 00 07 04 06 00 B4 5F 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 2E 59 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 42 6A 00 00 35 04 06 00 85 8A A3 DC 86 4C 00 00 FA [03:08:23]Write i2c OK [03:08:23]MH_I2C_Read... [03:08:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:08:23]Read from MH i2c: E2 [03:08:23]MH_I2C_Read... [03:08:23]Read from MH i2c: E2 03 00 [03:08:23]MH_I2C_Read... [03:08:23]Read from MH i2c: E2 03 00 45 2B 00 90 00 E4 [03:08:23]RAPDU: 90 00 [03:08:23]wFMCommunicate OK [03:08:23]wFMCommunicate request_size=4 [03:08:23]MH_SAM_APDU [03:08:23]CAPDU: 80 0D 03 02 [03:08:23]Write to MH i2c: E2 08 00 46 2B 80 0D 03 02 00 00 00 00 EC [03:08:23]Write i2c OK [03:08:23]MH_I2C_Read... [03:08:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:08:23]Read from MH i2c: E2 [03:08:23]MH_I2C_Read... [03:08:23]Read from MH i2c: E2 0B 00 [03:08:23]MH_I2C_Read... [03:08:23]Read from MH i2c: E2 0B 00 46 2B 00 14 56 E9 0C 30 E8 47 3C 90 00 E7 [03:08:23]RAPDU: 14 56 E9 0C 30 E8 47 3C 90 00 [03:08:23]wFMCommunicate OK [03:08:23]SAM_PROTO_SignData done [03:08:23]FM_MakeSignedData done [03:08:23]CreateOFDProtocolMessage [03:08:23]wFMCommunicate request_size=4 [03:08:23]MH_SAM_APDU [03:08:23]CAPDU: 80 11 00 00 [03:08:23]Write to MH i2c: E2 08 00 47 2B 80 11 00 00 00 00 00 00 EC [03:08:23]Write i2c OK [03:08:23]MH_I2C_Read... [03:08:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:08:23]Read from MH i2c: E2 [03:08:23]MH_I2C_Read... [03:08:23]Read from MH i2c: E2 17 00 [03:08:23]MH_I2C_Read... [03:08:23]Read from MH i2c: E2 17 00 47 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 45 [03:08:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [03:08:23]wFMCommunicate OK [03:08:23]CreateOFDProtocolMessage done [03:08:23]OFDSenderStorePacket 27202 [03:08:23]StoreOFDPacket docnum=27202 [03:08:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 AB 01 00 00 08 AC A3 01 74 9D 5A 03 01 00 03 00 97 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 23 04 84 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 37 30 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9F D0 B8 D0 B0 D0 BB D0 B0 20 49 63 65 20 54 65 61 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D0 B0 D0 BD D0 B0 D0 BD 2C D0 BB D0 B5 D0 BC 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 0A 00 00 00 00 07 04 06 00 B4 5F 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 2E 59 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 42 6A 00 00 35 04 06 00 85 8A A3 DC 86 4C 14 56 E9 0C 30 E8 47 3C [03:08:23]CheckFolder [03:08:23]dirname=/storage/ofd_packets [03:08:23]CheckFolder done [03:08:23]ProducePacketName [03:08:23]name=ofd_packets/00027202 [03:08:23]NVStorageSaveData ofd_packets/00027202 [03:08:23]File name is /storage/ofd_packets/00027202 [03:08:23]Write 457 bytes [03:08:23]NVStorageSaveData done [03:08:23]OFDSenderStorePacket done [03:08:23]KKMCreateOFDPacket done [03:08:23]NVStorageSaveData kkm_last_timestamp [03:08:23]File name is /storage/kkm_last_timestamp [03:08:23]Write 4 bytes [03:08:23]NVStorageSaveData done [03:08:23]ExternCall_PrintAddStr [03:08:23]wPrintStart [03:08:23]Write to MH i2c: 01 00 00 48 2B 73 [03:08:23]Write i2c OK [03:08:23]MH_I2C_Read... [03:08:23]Read from MH i2c: 01 [03:08:23]MH_I2C_Read... [03:08:23]Read from MH i2c: 01 07 00 [03:08:23]MH_I2C_Read... [03:08:23]Read from MH i2c: 01 07 00 48 2B 00 00 00 00 00 FF 0F 88 [03:08:23]RasterBufferAndPrint [03:08:23]line Счет N : (3)150599 [03:08:23]line ИНН: 02508201610067 [03:08:24]line Контрольно-Кассовый Чек [03:08:24]line ПРОДАЖА [03:08:24]line Товар: 47802995 [03:08:24]line Сигареты Winston XS Silver [03:08:24]line 1.000 * 140.00 [03:08:24]line = 140.00 [03:08:24]line НДС 12% НСП 1% [03:08:24]line > о реализуемом товаре [03:08:24]line Товар: 4870002329470 [03:08:24]line Напиток Пиала Ice Tea манго,анан,лем 1л [03:08:24]line 1.000 * 105.00 [03:08:24]line = 105.00 [03:08:24]line НДС 12% НСП 1% [03:08:24]line > о реализуемом товаре [03:08:24]line ИТОГО: 245.00 [03:08:24]line НСП 1% : 2.17 [03:08:24]line НДС 12% : 26.02 [03:08:24]line Наличными: 245.00 [03:08:24]line Безнал.: 0.00 [03:08:24]line Место: АЗС № 134 "Партнер Нефть" [03:08:24]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [03:08:24]line СНО: Общий режим [03:08:24]line Чек 2 30.07.2024 03:08 [03:08:24]line Смена: 435 ФФД: 1.0 [03:08:24]line ЗНМ: 0300000043 [03:08:24]line РНМ: 0000000000092663 [03:08:24]line Версия ККМ: 001 [03:08:24]line ФМ: 0000000000874937 [03:08:24]line ФД: 27202 [03:08:24]line ФПД: 146830501119564 [03:08:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T030830&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27202&fm=146830501119564&tin=02508201610067®Number=0000000000092663&sum=24500 [03:08:24]line 0 [03:08:24]OFD Sender: Processing packet 27202 [packets to send 9, broken 8] [03:08:24]ProducePacketName [03:08:24]name=ofd_packets/00027202 [03:08:24]OFD Sender: To server: pG, [03:08:24]CommunicateWithHost lk.salyk.kg:30040 [03:08:24]ConnectInit lk.salyk.kg [03:08:24]written 0, free lines is 4095 [03:08:24]Connected sock=11 [03:08:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 AB 01 00 00 08 AC A3 01 74 9D 5A 03 01 00 03 00 97 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 23 04 84 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 37 30 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9F D0 B8 D0 B0 D0 BB D0 B0 20 49 63 65 20 54 65 61 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D0 B0 D0 BD D0 B0 D0 BD 2C D0 BB D0 B5 D0 BC 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 0A 00 00 00 00 07 04 06 00 B4 5F 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 2E 59 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 42 6A 00 00 35 04 06 00 85 8A A3 DC 86 4C 14 56 E9 0C 30 E8 47 3C [03:08:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 D7 F9 47 00 53 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 42 6A 00 00 F4 03 04 00 7D FF A7 66 B6 04 01 00 00 11 CE 4A B7 DF 7B 09 52 [03:08:24]CommunicateWithHost err = 0 [03:08:24]CheckOFDResponse [03:08:24]1017 (14) - 77093643461234 [03:08:24]1041 (16) - 0000000000874937 [03:08:24]1040 (4) - 27202 [03:08:24]1012 (4) - 29.07.2024 20:45 [03:08:24]1206 (1) - 0 [03:08:24]OFD Sender: Remove packet 27202 [03:08:24]ProducePacketName [03:08:24]name=ofd_packets/00027202 [03:08:24]NVStorageDeleteData [03:08:24]Write to MH i2c: 01 00 00 76 2B A1 [03:08:24]Write i2c OK [03:08:24]MH_I2C_Read... [03:08:24]Read from MH i2c: 01 [03:08:24]MH_I2C_Read... [03:08:24]Read from MH i2c: 01 07 00 [03:08:24]MH_I2C_Read... [03:08:24]Read from MH i2c: 01 07 00 76 2B 00 00 00 00 00 76 0C 2A [03:08:24]RasterBufferAndPrint [03:08:24]line [03:08:24]line [03:08:24]line [03:08:24]line [03:08:24]line [03:08:24]written 0, free lines is 3196 [03:08:24]MH_Cut [03:08:24]Write to MH i2c: D1 01 00 7D 2B 01 7A [03:08:24]Write i2c OK [03:08:24]MH_I2C_Read... [03:08:24]Read from MH i2c: D1 [03:08:24]MH_I2C_Read... [03:08:24]Read from MH i2c: D1 01 00 [03:08:24]MH_I2C_Read... [03:08:24]Read from MH i2c: D1 01 00 7D 2B 00 79 [03:08:24]Write to MH i2c: 01 00 00 7E 2B A9 [03:08:24]Write i2c OK [03:08:24]MH_I2C_Read... [03:08:24]OFD Sender: No OFD packet to send [03:08:25]*** Cut start [03:08:25]*** Partial cut [03:08:25]*** CUTSNS_PIN = 1 [03:08:25]*** CUTSNS_PIN = 0 [03:08:25]*** Brake cut motor [03:08:25]Read from MH i2c: 01 [03:08:25]MH_I2C_Read... [03:08:25]*** Stop cut motor [03:08:25]*** Cut end [03:08:25]Read from MH i2c: 01 07 00 [03:08:25]MH_I2C_Read... [03:08:25]Read from MH i2c: 01 07 00 7E 2B 00 00 00 00 00 FF 0F BE [03:08:25]process_action close_receipt done [03:08:25]requested_data is exist [03:08:25]produce_requested_data [03:08:25]requested_item fm.sn is exist - process it [03:08:25]wFMCommunicate request_size=4 [03:08:25]MH_SAM_APDU [03:08:25]CAPDU: 80 11 00 00 [03:08:25]Write to MH i2c: E2 08 00 7F 2B 80 11 00 00 00 00 00 00 24 [03:08:25]Write i2c OK [03:08:25]MH_I2C_Read... [03:08:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:08:26]Read from MH i2c: E2 [03:08:26]MH_I2C_Read... [03:08:26]Read from MH i2c: E2 17 00 [03:08:26]MH_I2C_Read... [03:08:26]Read from MH i2c: E2 17 00 7F 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 7D [03:08:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [03:08:26]wFMCommunicate OK [03:08:26]requested_item fd.num is exist - process it [03:08:26]SAM_PROTO_GetFieldsCounters [03:08:26]wFMCommunicate request_size=4 [03:08:26]MH_SAM_APDU [03:08:26]CAPDU: 80 13 00 00 [03:08:26]Write to MH i2c: E2 08 00 80 2B 80 13 00 00 00 00 00 00 27 [03:08:26]Write i2c OK [03:08:26]MH_I2C_Read... [03:08:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:08:26]Read from MH i2c: E2 [03:08:26]MH_I2C_Read... [03:08:26]Read from MH i2c: E2 62 00 [03:08:26]MH_I2C_Read... [03:08:26]Read from MH i2c: E2 62 00 80 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 42 6A 00 00 0E 04 04 00 B3 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 B5 [03:08: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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 42 6A 00 00 0E 04 04 00 B3 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 [03:08:26]wFMCommunicate OK [03:08:26]SAM_PROTO_GetFieldsCounters done [03:08:26]requested_item shift.num is exist - process it [03:08:26]requested_item shift.opened is exist - process it [03:08:26]req_shift_opened [03:08:26]FM_GetShiftState [03:08:26]SAM_PROTO_GetShiftState [03:08:26]wFMCommunicate request_size=4 [03:08:26]MH_SAM_APDU [03:08:26]CAPDU: 80 13 01 00 [03:08:26]Write to MH i2c: E2 08 00 81 2B 80 13 01 00 00 00 00 00 29 [03:08:26]Write i2c OK [03:08:26]MH_I2C_Read... [03:08:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:08:26]Read from MH i2c: E2 [03:08:26]MH_I2C_Read... [03:08:26]Read from MH i2c: E2 0E 00 [03:08:26]MH_I2C_Read... [03:08:26]Read from MH i2c: E2 0E 00 81 2B 00 09 00 01 CD 36 A8 66 00 00 00 00 90 00 46 [03:08:26]RAPDU: 09 00 01 CD 36 A8 66 00 00 00 00 90 00 [03:08:26]wFMCommunicate OK [03:08:26]SAM_PROTO_GetShiftState done [03:08:26]FM_GetShiftState done [03:08:26]req_shift_opened done [03:08:26]requested_item shift.open_date is exist - process it [03:08:26]req_shift_open_date [03:08:26]req_shift_open_date done [03:08:26]produce_requested_data done [03:08:26]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27202,"shift.num":435,"shift.opened":1,"shift.open_date":1722300109} [03:08:26]process_action_free close_receipt [03:08:26]json_value_free [03:08:26]json_value_free done [03:08:26]process_json_proto returns [03:08:26]Send response to host [03:08:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27202,"shift.num":435,"shift.opened":1,"shift.open_date":1722300109}}} [03:08:26]free response buf [03:08:26]execute_script done [03:08:26]execute_script returns [03:08:26]free content buf [03:08:26]Sock 8.Close socket [03:08:26]Sock 8.Thread stoped [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:57]accept exits with 9 [03:10:57]New connection [03:10:57]New thread 3066785124 created [03:10:57]Thread 3066928484 joined [03:10:57]Waiting for new connection... [03:10:57] Sock 9.Parse request [03:10:57]Sock 9.Check first char [03:10:57]Sock 9.First char is OK [03:10:57]request: POST /json_proto HTTP/1.0 [03:10:57]Method: POST [03:10:57]URL: /json_proto [03:10:57]Method is POST - this is cgi request [03:10:57]url: /json_proto [03:10:57]query_string will be loaded in cgi processing [03:10:57]execute_cgi json_proto POST (null) [03:10:57]execute_cgi path=json_proto method=POST [03:10:57]POST find Content-Length [03:10:57]Host: 172.17.45.8:8080 [03:10:57]Content-Length: 1724 [03:10:57]Content-Type: application/json [03:10:57] [03:10:57]POST finish read [03:10:57]Found Content-Length = 1724 [03:10:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)150600", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 180.00, "quantity" : 2.000, "sum" : 360.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ,{ "code": "4700002085444", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4690329000476", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u0448\u0430\u0448\u043B\u044B\u043A 40\u0433", "price" : 21.00, "quantity" : 1.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 757.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:10:57]execute_script... [03:10: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)150600", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 180.00, "quantity" : 2.000, "sum" : 360.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ,{ "code": "4700002085444", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4690329000476", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u0448\u0430\u0448\u043B\u044B\u043A 40\u0433", "price" : 21.00, "quantity" : 1.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 757.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:10:57]POST & json_proto [03:10:57]process_json_proto [03:10:57]json parsed OK: [03:10:57]protocol is kg_v1.0 [03:10:57]action value=close_receipt [03:10:57]process_action close_receipt [03:10:57]cmd_close_receipt [03:10:57]MH_GetDate [03:10:57]Write to MH i2c: F0 00 00 82 2B 9C [03:10:57]Write i2c OK [03:10:57]MH_I2C_Read... [03:10:57]Read from MH i2c: F0 [03:10:57]MH_I2C_Read... [03:10:57]Read from MH i2c: F0 09 00 [03:10:57]MH_I2C_Read... [03:10:57]Read from MH i2c: F0 09 00 82 2B 00 CA 59 A8 66 A6 1F 7F 64 7E [03:10:57]GetLastDocTimeStamp 1722308910 [03:10:57]current date 1722309066 [03:10:57]FM_GetShiftState [03:10:57]SAM_PROTO_GetShiftState [03:10:57]wFMCommunicate request_size=4 [03:10:57]MH_SAM_APDU [03:10:57]CAPDU: 80 13 01 00 [03:10:57]Write to MH i2c: E2 08 00 83 2B 80 13 01 00 00 00 00 00 2B [03:10:57]Write i2c OK [03:10:57]MH_I2C_Read... [03:10:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:10:57]Read from MH i2c: E2 [03:10:57]MH_I2C_Read... [03:10:57]Read from MH i2c: E2 0E 00 [03:10:57]MH_I2C_Read... [03:10:57]Read from MH i2c: E2 0E 00 83 2B 00 09 00 01 CD 36 A8 66 00 00 00 00 90 00 48 [03:10:57]RAPDU: 09 00 01 CD 36 A8 66 00 00 00 00 90 00 [03:10:57]wFMCommunicate OK [03:10:57]SAM_PROTO_GetShiftState done [03:10:57]FM_GetShiftState done [03:10:57]opened in 1722300109 [03:10:57]opened+sec_in_day 1722386509 [03:10:57]quantity*price = 36000 [03:10:57]sum+1 = 36001 [03:10:57]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 111.00 = 111.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700002085444 Водка Белое золото 0,24л 1.000 * 200.00 = 200.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4690329000476 Сух Кириешки шашлык 40г 1.000 * 21.00 = 21.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700040114137 Султан чай 1л. зел лимон 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 757.00 НСП 1% : 6.70 НДС 12% : 80.39 Наличными: 757.00 Безнал.: 0.00 Место: АЗС № 134 "Партнер Нефть" Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 СНО: Общий режим Чек 3 30.07.2024 03:11 Смена: 435 ФФД: 1.0 ЗНМ: 0300000043 РНМ: 0000000000092663 Версия ККМ: 001 ФМ: 0000000000874937 ФД: 27203 ФПД: 96218959979642 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T031106&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27203&fm=96218959979642&tin=02508201610067®Number=0000000000092663&sum=75700 0 [03:10:58]StoreToDocumentArchive [03:10:58]shift 435 fd 27203 [03:10:58]save to /storage/0435/doc_00027203 [03:10:58]save last doc name /storage/0435/doc_00027203 to /storage/kkm_last_doc_name [03:10:58]save OK [03:10:58]Clear old archive folders... [03:10:58]ProcessDocumentItem done err = 0, tmpTLVsize=708 [03:10:58]tlvbuf is 001C2DF0 [03:10:58]SAM_PROTO_ClearQueue [03:10:58]wFMCommunicate request_size=4 [03:10:58]MH_SAM_APDU [03:10:58]CAPDU: 80 09 00 00 [03:10:58]Write to MH i2c: E2 08 00 90 2B 80 09 00 00 00 00 00 00 2D [03:10:58]Write i2c OK [03:10:58]MH_I2C_Read... [03:10:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:10:58]Read from MH i2c: E2 [03:10:58]MH_I2C_Read... [03:10:58]Read from MH i2c: E2 03 00 [03:10:58]MH_I2C_Read... [03:10:58]Read from MH i2c: E2 03 00 90 2B 00 90 00 2F [03:10:58]RAPDU: 90 00 [03:10:58]wFMCommunicate OK [03:10:58]SAM_PROTO_ClearQueue done [03:10:58]KKMCreateOFDPacket [03:10:58]OFDProtocolAddRootSTLVToBuf [03:10:58]FM_MakeSignedData [03:10:58]FM_MakeSignedData [03:10:58]SAM_PROTO_SignData [03:10:58]wFMCommunicate request_size=4 [03:10:58]MH_SAM_APDU [03:10:58]CAPDU: 80 0D 01 02 [03:10:58]Write to MH i2c: E2 08 00 91 2B 80 0D 01 02 00 00 00 00 35 [03:10:58]Write i2c OK [03:10:58]MH_I2C_Read... [03:10:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:10:59]Read from MH i2c: E2 [03:10:59]MH_I2C_Read... [03:10:59]Read from MH i2c: E2 03 00 [03:10:59]MH_I2C_Read... [03:10:59]Read from MH i2c: E2 03 00 91 2B 00 90 00 30 [03:10:59]RAPDU: 90 00 [03:10:59]wFMCommunicate OK [03:10:59]wFMCommunicate request_size=255 [03:10:59]MH_SAM_APDU [03:10:59]CAPDU: 80 0D 02 02 FA 03 00 C4 02 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 50 46 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 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 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 [03:10:59]Write to MH i2c: E2 02 01 92 2B 80 0D 02 02 FA 00 03 00 C4 02 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 50 46 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 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 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 00 00 E8 [03:10:59]Write i2c OK [03:10:59]MH_I2C_Read... [03:10:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:10:59]Read from MH i2c: E2 [03:10:59]MH_I2C_Read... [03:10:59]Read from MH i2c: E2 03 00 [03:10:59]MH_I2C_Read... [03:10:59]Read from MH i2c: E2 03 00 92 2B 00 90 00 31 [03:10:59]RAPDU: 90 00 [03:10:59]wFMCommunicate OK [03:10:59]wFMCommunicate request_size=255 [03:10:59]MH_SAM_APDU [03:10:59]CAPDU: 80 0D 02 02 FA BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 30 34 37 36 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 [03:10:59]Write to MH i2c: E2 02 01 93 2B 80 0D 02 02 FA 00 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 30 34 37 36 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 00 00 F8 [03:10:59]Write i2c OK [03:10:59]MH_I2C_Read... [03:10:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:10:59]Read from MH i2c: E2 [03:10:59]MH_I2C_Read... [03:10:59]Read from MH i2c: E2 03 00 [03:10:59]MH_I2C_Read... [03:10:59]Read from MH i2c: E2 03 00 93 2B 00 90 00 32 [03:10:59]RAPDU: 90 00 [03:10:59]wFMCommunicate OK [03:10:59]wFMCommunicate request_size=217 [03:10:59]MH_SAM_APDU [03:10:59]CAPDU: 80 0D 02 02 D4 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 B4 27 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1F 00 00 00 00 07 04 06 00 B4 27 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 CA 59 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 43 6A 00 00 35 04 06 00 57 82 B8 EE 24 7A [03:10:59]Write to MH i2c: E2 DC 00 94 2B 80 0D 02 02 D4 00 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 B4 27 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1F 00 00 00 00 07 04 06 00 B4 27 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 CA 59 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 43 6A 00 00 35 04 06 00 57 82 B8 EE 24 7A 00 00 BE [03:10:59]Write i2c OK [03:10:59]MH_I2C_Read... [03:10:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:10:59]Read from MH i2c: E2 [03:10:59]MH_I2C_Read... [03:10:59]Read from MH i2c: E2 03 00 [03:10:59]MH_I2C_Read... [03:10:59]Read from MH i2c: E2 03 00 94 2B 00 90 00 33 [03:10:59]RAPDU: 90 00 [03:10:59]wFMCommunicate OK [03:10:59]wFMCommunicate request_size=4 [03:10:59]MH_SAM_APDU [03:10:59]CAPDU: 80 0D 03 02 [03:10:59]Write to MH i2c: E2 08 00 95 2B 80 0D 03 02 00 00 00 00 3B [03:10:59]Write i2c OK [03:10:59]MH_I2C_Read... [03:10:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:10:59]Read from MH i2c: E2 [03:10:59]MH_I2C_Read... [03:10:59]Read from MH i2c: E2 0B 00 [03:10:59]MH_I2C_Read... [03:10:59]Read from MH i2c: E2 0B 00 95 2B 00 04 87 2B DB 1A 55 CB 83 90 00 8A [03:10:59]RAPDU: 04 87 2B DB 1A 55 CB 83 90 00 [03:10:59]wFMCommunicate OK [03:10:59]SAM_PROTO_SignData done [03:10:59]FM_MakeSignedData done [03:10:59]CreateOFDProtocolMessage [03:10:59]wFMCommunicate request_size=4 [03:10:59]MH_SAM_APDU [03:10:59]CAPDU: 80 11 00 00 [03:10:59]Write to MH i2c: E2 08 00 96 2B 80 11 00 00 00 00 00 00 3B [03:10:59]Write i2c OK [03:10:59]MH_I2C_Read... [03:10:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:10:59]Read from MH i2c: E2 [03:10:59]MH_I2C_Read... [03:10:59]Read from MH i2c: E2 17 00 [03:10:59]MH_I2C_Read... [03:10:59]Read from MH i2c: E2 17 00 96 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 94 [03:10:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [03:10:59]wFMCommunicate OK [03:10:59]CreateOFDProtocolMessage done [03:10:59]OFDSenderStorePacket 27203 [03:10:59]StoreOFDPacket docnum=27203 [03:11:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 D8 02 00 00 72 FF D0 02 03 2B 5A 03 01 00 03 00 C4 02 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 50 46 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 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 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 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 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 30 34 37 36 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 B4 27 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1F 00 00 00 00 07 04 06 00 B4 27 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 CA 59 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 43 6A 00 00 35 04 06 00 57 82 B8 EE 24 7A 04 87 2B DB 1A 55 CB 83 [03:11:00]CheckFolder [03:11:00]dirname=/storage/ofd_packets [03:11:00]CheckFolder done [03:11:00]ProducePacketName [03:11:00]name=ofd_packets/00027203 [03:11:00]NVStorageSaveData ofd_packets/00027203 [03:11:00]File name is /storage/ofd_packets/00027203 [03:11:00]Write 758 bytes [03:11:00]NVStorageSaveData done [03:11:00]OFDSenderStorePacket done [03:11:00]KKMCreateOFDPacket done [03:11:00]NVStorageSaveData kkm_last_timestamp [03:11:00]File name is /storage/kkm_last_timestamp [03:11:00]Write 4 bytes [03:11:00]NVStorageSaveData done [03:11:00]ExternCall_PrintAddStr [03:11:00]wPrintStart [03:11:00]Write to MH i2c: 01 00 00 97 2B C2 [03:11:00]OFD Sender: No OFD packet to send [03:11:00]Write i2c OK [03:11:00]MH_I2C_Read... [03:11:00]Read from MH i2c: 01 [03:11:00]MH_I2C_Read... [03:11:00]Read from MH i2c: 01 07 00 [03:11:00]MH_I2C_Read... [03:11:00]Read from MH i2c: 01 07 00 97 2B 00 00 00 00 00 FF 0F D7 [03:11:00]RasterBufferAndPrint [03:11:00]line Счет N : (3)150600 [03:11:00]line ИНН: 02508201610067 [03:11:00]line Контрольно-Кассовый Чек [03:11:00]line ПРОДАЖА [03:11:00]line Товар: 4700000480517 [03:11:00]line Пиво Живое 1л ПЭТ [03:11:00]line 2.000 * 180.00 [03:11:00]line = 360.00 [03:11:00]line НДС 12% НСП 1% [03:11:00]line > о реализуемом товаре [03:11:00]line Товар: 4870001570071 [03:11:00]line Напиток Pepsi 1л [03:11:00]line 1.000 * 111.00 [03:11:00]line = 111.00 [03:11:00]line НДС 12% НСП 1% [03:11:00]line > о реализуемом товаре [03:11:00]line Товар: 4700002085444 [03:11:00]line Водка Белое золото 0,24л [03:11:00]line 1.000 * 200.00 [03:11:00]line = 200.00 [03:11:00]line НДС 12% НСП 1% [03:11:00]line > о реализуемом товаре [03:11:00]line Товар: 4690329000476 [03:11:00]line Сух Кириешки шашлык 40г [03:11:00]line 1.000 * 21.00 [03:11:00]line = 21.00 [03:11:00]line НДС 12% НСП 1% [03:11:00]line > о реализуемом товаре [03:11:00]line Товар: 4700040114137 [03:11:00]line Султан чай 1л. зел лимон [03:11:00]line 1.000 * 65.00 [03:11:00]line = 65.00 [03:11:00]line НДС 12% НСП 1% [03:11:00]line > о реализуемом товаре [03:11:00]line ИТОГО: 757.00 [03:11:00]line НСП 1% : 6.70 [03:11:00]line НДС 12% : 80.39 [03:11:00]line Наличными: 757.00 [03:11:00]line Безнал.: 0.00 [03:11:00]line Место: АЗС № 134 "Партнер Нефть" [03:11:00]line Адрес: 720001, с. Ак-Орго, 40.200752, 71.607486 [03:11:00]line СНО: Общий режим [03:11:00]line Чек 3 30.07.2024 03:11 [03:11:00]line Смена: 435 ФФД: 1.0 [03:11:00]line ЗНМ: 0300000043 [03:11:00]line РНМ: 0000000000092663 [03:11:00]line Версия ККМ: 001 [03:11:00]line ФМ: 0000000000874937 [03:11:00]line ФД: 27203 [03:11:00]line ФПД: 96218959979642 [03:11:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240730T031106&type=1&operation_type=1&fn_number=0000000000874937&fd_number=27203&fm=96218959979642&tin=02508201610067®Number=0000000000092663&sum=75700 [03:11:00]line 0 [03:11:00]written 0, free lines is 4095 [03:11:00]OFD Sender: Processing packet 27203 [packets to send 9, broken 8] [03:11:00]ProducePacketName [03:11:00]name=ofd_packets/00027203 [03:11:00]OFD Sender: To server: pG, [03:11:00]CommunicateWithHost lk.salyk.kg:30040 [03:11:00]ConnectInit lk.salyk.kg [03:11:00]Connected sock=10 [03:11:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 D8 02 00 00 72 FF D0 02 03 2B 5A 03 01 00 03 00 C4 02 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 50 46 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 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 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 35 34 34 34 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 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 30 34 37 36 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 B4 27 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 1F 00 00 00 00 07 04 06 00 B4 27 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 CA 59 A8 66 0E 04 04 00 B3 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 43 6A 00 00 35 04 06 00 57 82 B8 EE 24 7A 04 87 2B DB 1A 55 CB 83 [03:11:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 4F 00 00 00 6C C3 47 00 22 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 10 04 04 00 43 6A 00 00 F4 03 04 00 1A 00 A8 66 B6 04 01 00 00 F7 94 BB 92 3B FF FB CF [03:11:00]CommunicateWithHost err = 0 [03:11:00]CheckOFDResponse [03:11:00]1017 (14) - 77093643461234 [03:11:00]1041 (16) - 0000000000874937 [03:11:00]1040 (4) - 27203 [03:11:00]1012 (4) - 29.07.2024 20:48 [03:11:00]1206 (1) - 0 [03:11:00]OFD Sender: Remove packet 27203 [03:11:00]ProducePacketName [03:11:00]name=ofd_packets/00027203 [03:11:00]NVStorageDeleteData [03:11:00]Write to MH i2c: 01 00 00 D6 2B 01 [03:11:00]Write i2c OK [03:11:00]MH_I2C_Read... [03:11:00]Read from MH i2c: 01 [03:11:00]MH_I2C_Read... [03:11:00]Read from MH i2c: 01 07 00 [03:11:00]MH_I2C_Read... [03:11:00]Read from MH i2c: 01 07 00 D6 2B 00 00 00 00 00 80 0B 93 [03:11:00]RasterBufferAndPrint [03:11:00]line [03:11:00]line [03:11:00]line [03:11:00]line [03:11:00]line [03:11:00]written 0, free lines is 2953 [03:11:00]MH_Cut [03:11:00]Write to MH i2c: D1 01 00 DD 2B 01 DA [03:11:00]Write i2c OK [03:11:00]MH_I2C_Read... [03:11:00]Read from MH i2c: D1 [03:11:00]MH_I2C_Read... [03:11:00]Read from MH i2c: D1 01 00 [03:11:00]MH_I2C_Read... [03:11:00]Read from MH i2c: D1 01 00 DD 2B 00 D9 [03:11:00]Write to MH i2c: 01 00 00 DE 2B 09 [03:11:00]Write i2c OK [03:11:00]MH_I2C_Read... [03:11:01]OFD Sender: No OFD packet to send [03:11:01]*** Cut start [03:11:01]*** Partial cut [03:11:01]*** CUTSNS_PIN = 1 [03:11:01]*** CUTSNS_PIN = 0 [03:11:02]*** Brake cut motor [03:11:02]Read from MH i2c: 01 [03:11:02]MH_I2C_Read... [03:11:02]*** Stop cut motor [03:11:02]*** Cut end [03:11:02]Read from MH i2c: 01 07 00 [03:11:02]MH_I2C_Read... [03:11:02]Read from MH i2c: 01 07 00 DE 2B 00 00 00 00 00 FF 0F 1E [03:11:02]process_action close_receipt done [03:11:02]requested_data is exist [03:11:02]produce_requested_data [03:11:02]requested_item fm.sn is exist - process it [03:11:02]wFMCommunicate request_size=4 [03:11:02]MH_SAM_APDU [03:11:02]CAPDU: 80 11 00 00 [03:11:02]Write to MH i2c: E2 08 00 DF 2B 80 11 00 00 00 00 00 00 84 [03:11:02]Write i2c OK [03:11:02]MH_I2C_Read... [03:11:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:11:02]Read from MH i2c: E2 [03:11:02]MH_I2C_Read... [03:11:02]Read from MH i2c: E2 17 00 [03:11:02]MH_I2C_Read... [03:11:02]Read from MH i2c: E2 17 00 DF 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 DD [03:11:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 90 00 [03:11:02]wFMCommunicate OK [03:11:02]requested_item fd.num is exist - process it [03:11:02]SAM_PROTO_GetFieldsCounters [03:11:02]wFMCommunicate request_size=4 [03:11:02]MH_SAM_APDU [03:11:02]CAPDU: 80 13 00 00 [03:11:02]Write to MH i2c: E2 08 00 E0 2B 80 13 00 00 00 00 00 00 87 [03:11:02]Write i2c OK [03:11:02]MH_I2C_Read... [03:11:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:11:02]Read from MH i2c: E2 [03:11:02]MH_I2C_Read... [03:11:02]Read from MH i2c: E2 62 00 [03:11:02]MH_I2C_Read... [03:11:02]Read from MH i2c: E2 62 00 E0 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 43 6A 00 00 0E 04 04 00 B3 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 19 [03: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 34 39 33 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 36 36 33 10 04 04 00 43 6A 00 00 0E 04 04 00 B3 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 [03:11:02]wFMCommunicate OK [03:11:02]SAM_PROTO_GetFieldsCounters done [03:11:02]requested_item shift.num is exist - process it [03:11:02]requested_item shift.opened is exist - process it [03:11:02]req_shift_opened [03:11:02]FM_GetShiftState [03:11:02]SAM_PROTO_GetShiftState [03:11:02]wFMCommunicate request_size=4 [03:11:02]MH_SAM_APDU [03:11:02]CAPDU: 80 13 01 00 [03:11:02]Write to MH i2c: E2 08 00 E1 2B 80 13 01 00 00 00 00 00 89 [03:11:02]Write i2c OK [03:11:02]MH_I2C_Read... [03:11:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:11:02]Read from MH i2c: E2 [03:11:02]MH_I2C_Read... [03:11:02]Read from MH i2c: E2 0E 00 [03:11:02]MH_I2C_Read... [03:11:02]Read from MH i2c: E2 0E 00 E1 2B 00 09 00 01 CD 36 A8 66 00 00 00 00 90 00 A6 [03:11:02]RAPDU: 09 00 01 CD 36 A8 66 00 00 00 00 90 00 [03:11:02]wFMCommunicate OK [03:11:02]SAM_PROTO_GetShiftState done [03:11:02]FM_GetShiftState done [03:11:02]req_shift_opened done [03:11:02]requested_item shift.open_date is exist - process it [03:11:02]req_shift_open_date [03:11:02]req_shift_open_date done [03:11:02]produce_requested_data done [03:11:02]produce_requested_data return {"fm.sn":"0000000000874937","fd.num":27203,"shift.num":435,"shift.opened":1,"shift.open_date":1722300109} [03:11:02]process_action_free close_receipt [03:11:02]json_value_free [03:11:02]json_value_free done [03:11:02]process_json_proto returns [03:11:02]Send response to host [03:11:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874937","fd.num":27203,"shift.num":435,"shift.opened":1,"shift.open_date":1722300109}}} [03:11:02]free response buf [03:11:02]execute_script done [03:11:02]execute_script returns [03:11:02]free content buf [03:11:02]Sock 9.Close socket [03:11:02]Sock 9.Thread stoped [03:11:06]OFD Sender: No OFD packet to send [03:11:11]OFD Sender: No OFD packet to send [03:11:16]OFD Sender: No OFD packet to send [03:11:21]OFD Sender: No OFD packet to send [03:11:26]OFD Sender: No OFD packet to send [03:11:31]OFD Sender: No OFD packet to send [03:11:36]OFD Sender: No OFD packet to send [03:11:41]OFD Sender: No OFD packet to send [03:11:46]OFD Sender: No OFD packet to send [03:11:51]OFD Sender: No OFD packet to send [03:11:56]OFD Sender: No OFD packet to send [03:12:01]OFD Sender: No OFD packet to send [03:12:06]OFD Sender: No OFD packet to send [03:12:11]OFD Sender: No OFD packet to send [03:12:16]OFD Sender: No OFD packet to send [03:12:21]OFD Sender: No OFD packet to send [03:12:26]OFD Sender: No OFD packet to send [03:12:31]OFD Sender: No OFD packet to send [03:12:36]OFD Sender: No OFD packet to send [03:12:41]OFD Sender: No OFD packet to send [03:12:46]OFD Sender: No OFD packet to send [03:12:51]OFD Sender: No OFD packet to send [03:12:56]OFD Sender: No OFD packet to send [03:13:01]OFD Sender: No OFD packet to send [03:13:06]OFD Sender: No OFD packet to send [03:13:11]OFD Sender: No OFD packet to send [03:13:16]OFD Sender: No OFD packet to send [03:13:21]OFD Sender: No OFD packet to send [03:13:26]OFD Sender: No OFD packet to send [03:13:31]OFD Sender: No OFD packet to send [03:13:36]OFD Sender: No OFD packet to send [03:13:41]OFD Sender: No OFD packet to send [03:13:46]OFD Sender: No OFD packet to send [03:13:51]OFD Sender: No OFD packet to send [03:13:56]OFD Sender: No OFD packet to send [03:14:01]OFD Sender: No OFD packet to send [03:14:06]OFD Sender: No OFD packet to send [03:14:11]OFD Sender: No OFD packet to send [03:14:16]OFD Sender: No OFD packet to send [03:14:21]OFD Sender: No OFD packet to send [03:14:26]OFD Sender: No OFD packet to send [03:14:31]OFD Sender: No OFD packet to send [03:14:36]OFD Sender: No OFD packet to send [03:14:41]OFD Sender: No OFD packet to send [03:14:46]OFD Sender: No OFD packet to send [03:14:51]OFD Sender: No OFD packet to send [03:14:56]OFD Sender: No OFD packet to send [03:15:01]OFD Sender: No OFD packet to send [03:15:06]OFD Sender: No OFD packet to send [03:15:11]OFD Sender: No OFD packet to send [03:15:16]OFD Sender: No OFD packet to send [03:15:21]OFD Sender: No OFD packet to send [03:15:26]OFD Sender: No OFD packet to send [03:15:31]OFD Sender: No OFD packet to send [03:15:36]OFD Sender: No OFD packet to send [03:15:41]OFD Sender: No OFD packet to send [03:15:46]OFD Sender: No OFD packet to send [03:15:51]OFD Sender: No OFD packet to send [03:15:56]OFD Sender: No OFD packet to send [03:16:01]OFD Sender: No OFD packet to send [03:16:06]OFD Sender: No OFD packet to send [03:16:11]OFD Sender: No OFD packet to send [03:16:16]OFD Sender: No OFD packet to send [03:16:21]OFD Sender: No OFD packet to send [03:16:26]OFD Sender: No OFD packet to send [03:16:31]OFD Sender: No OFD packet to send [03:16:36]OFD Sender: No OFD packet to send [03:16:41]OFD Sender: No OFD packet to send [03:16:46]OFD Sender: No OFD packet to send [03:16:51]OFD Sender: No OFD packet to send [03:16:56]OFD Sender: No OFD packet to send [03:17:01]OFD Sender: No OFD packet to send [03:17:06]OFD Sender: No OFD packet to send [03:17:11]OFD Sender: No OFD packet to send [03:17:16]OFD Sender: No OFD packet to send [03:17:21]OFD Sender: No OFD packet to send [03:17:26]OFD Sender: No OFD packet to send [03:17:31]OFD Sender: No OFD packet to send [03:17:36]OFD Sender: No OFD packet to send [03:17:41]OFD Sender: No OFD packet to send [03:17:46]OFD Sender: No OFD packet to send [03:17:51]OFD Sender: No OFD packet to send [03:17:56]OFD Sender: No OFD packet to send [03:18:01]OFD Sender: No OFD packet to send [03:18:06]OFD Sender: No OFD packet to send [03:18:11]OFD Sender: No OFD packet to send [03:18:16]OFD Sender: No OFD packet to send [03:18:21]OFD Sender: No OFD packet to send [03:18:26]OFD Sender: No OFD packet to send [03:18:31]OFD Sender: No OFD packet to send [03:18:36]OFD Sender: No OFD packet to send [03:18:41]OFD Sender: No OFD packet to send [03:18:46]OFD Sender: No OFD packet to send [03:18:51]OFD Sender: No OFD packet to send [03:18:56]OFD Sender: No OFD packet to send [03:19:01]OFD Sender: No OFD packet to send [03:19:06]OFD Sender: No OFD packet to send [03:19:11]OFD Sender: No OFD packet to send [03:19:16]OFD Sender: No OFD packet to send [03:19:21]OFD Sender: No OFD packet to send [03:19:26]OFD Sender: No OFD packet to send [03:19:31]OFD Sender: No OFD packet to send [03:19:36]OFD Sender: No OFD packet to send [03:19:41]OFD Sender: No OFD packet to send [03:19:46]OFD Sender: No OFD packet to send [03:19:51]OFD Sender: No OFD packet to send [03:19:56]OFD Sender: No OFD packet to send [03:20:01]OFD Sender: No OFD packet to send [03:20:06]OFD Sender: No OFD packet to send [03:20:11]OFD Sender: No OFD packet to send [03:20:16]OFD Sender: No OFD packet to send [03:20:21]OFD Sender: No OFD packet to send [03:20:26]OFD Sender: No OFD packet to send [03:20:31]OFD Sender: No OFD packet to send [03:20:36]OFD Sender: No OFD packet to send [03:20:41]OFD Sender: No OFD packet to send [03:20:46]OFD Sender: No OFD packet to send [03:20:51]OFD Sender: No OFD packet to send [03:20:56]OFD Sender: No OFD packet to send [03:21:01]OFD Sender: No OFD packet to send [03:21:06]OFD Sender: No OFD packet to send [03:21:11]OFD Sender: No OFD packet to send [03:21:16]OFD Sender: No OFD packet to send [03:21:21]OFD Sender: No OFD packet to send [03:21:26]OFD Sender: No OFD packet to send [03:21:31]OFD Sender: No OFD packet to send [03:21:36]OFD Sender: No OFD packet to send [03:21:41]OFD Sender: No OFD packet to send [03:21:46]OFD Sender: No OFD packet to send [03:21:51]OFD Sender: No OFD packet to send [03:21:56]OFD Sender: No OFD packet to send [03:22:01]OFD Sender: No OFD packet to send [03:22:06]OFD Sender: No OFD packet to send [03:22:11]OFD Sender: No OFD packet to send [03:22:16]OFD Sender: No OFD packet to send [03:22:21]OFD Sender: No OFD packet to send [03:22:26]OFD Sender: No OFD packet to send [03:22:31]OFD Sender: No OFD packet to send