[22:10:06]Счет N : (1)979148 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 42 Товар: 2710124500 Аи-95-К-5 9.540 * 73.40 = 700.24 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 400 02.06.2024 22:10 Смена: 366 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148208 ФПД: 67246464969818 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T221005&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148208&fm=67246464969818&tin=02508201610067®Number=0000000000092720&sum=70000 [22:10:06]StoreToDocumentArchive [22:10:06]shift 366 fd 148208 [22:10:06]save to /storage/0366/doc_00148208 [22:10:06]save last doc name /storage/0366/doc_00148208 to /storage/kkm_last_doc_name [22:10:06]save OK [22:10:06]Clear old archive folders... [22:10:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:10:06]tlvbuf is 01214B50 [22:10:06]SAM_PROTO_ClearQueue [22:10:06]wFMCommunicate request_size=4 [22:10:06]MH_SAM_APDU [22:10:06]CAPDU: 80 09 00 00 [22:10:06]Write to MH i2c: E2 08 00 D2 00 80 09 00 00 00 00 00 00 44 [22:10:06]Write i2c OK [22:10:06]MH_I2C_Read... [22:10:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:10:06]Read from MH i2c: E2 [22:10:06]MH_I2C_Read... [22:10:06]Read from MH i2c: E2 03 00 [22:10:06]MH_I2C_Read... [22:10:06]Read from MH i2c: E2 03 00 D2 00 00 90 00 46 [22:10:06]RAPDU: 90 00 [22:10:06]wFMCommunicate OK [22:10:06]SAM_PROTO_ClearQueue done [22:10:06]KKMCreateOFDPacket [22:10:06]OFDProtocolAddRootSTLVToBuf [22:10:06]FM_MakeSignedData [22:10:06]FM_MakeSignedData [22:10:06]SAM_PROTO_SignData [22:10:06]wFMCommunicate request_size=4 [22:10:06]MH_SAM_APDU [22:10:06]CAPDU: 80 0D 01 02 [22:10:06]Write to MH i2c: E2 08 00 D3 00 80 0D 01 02 00 00 00 00 4C [22:10:06]Write i2c OK [22:10:06]MH_I2C_Read... [22:10:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:10:06]Read from MH i2c: E2 [22:10:06]MH_I2C_Read... [22:10:06]Read from MH i2c: E2 03 00 [22:10:06]MH_I2C_Read... [22:10:06]Read from MH i2c: E2 03 00 D3 00 00 90 00 47 [22:10:07]RAPDU: 90 00 [22:10:07]wFMCommunicate OK [22:10:07]wFMCommunicate request_size=255 [22:10:07]MH_SAM_APDU [22:10:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 88 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 BD ED 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F0 42 02 00 35 04 06 00 3D [22:10:07]Write to MH i2c: E2 02 01 D4 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 88 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 BD ED 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F0 42 02 00 35 04 06 00 3D 00 00 98 [22:10:07]Write i2c OK [22:10:07]MH_I2C_Read... [22:10:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:10:07]Read from MH i2c: E2 [22:10:07]MH_I2C_Read... [22:10:07]Read from MH i2c: E2 03 00 [22:10:07]MH_I2C_Read... [22:10:07]Read from MH i2c: E2 03 00 D4 00 00 90 00 48 [22:10:07]RAPDU: 90 00 [22:10:07]wFMCommunicate OK [22:10:07]wFMCommunicate request_size=10 [22:10:07]MH_SAM_APDU [22:10:07]CAPDU: 80 0D 02 02 05 29 09 A8 2C 5A [22:10:07]Write to MH i2c: E2 0D 00 D5 00 80 0D 02 02 05 00 29 09 A8 2C 5A 00 00 B9 [22:10:07]Write i2c OK [22:10:07]MH_I2C_Read... [22:10:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:10:07]Read from MH i2c: E2 [22:10:07]MH_I2C_Read... [22:10:07]Read from MH i2c: E2 03 00 [22:10:07]MH_I2C_Read... [22:10:07]Read from MH i2c: E2 03 00 D5 00 00 90 00 49 [22:10:07]RAPDU: 90 00 [22:10:07]wFMCommunicate OK [22:10:07]wFMCommunicate request_size=4 [22:10:07]MH_SAM_APDU [22:10:07]CAPDU: 80 0D 03 02 [22:10:07]Write to MH i2c: E2 08 00 D6 00 80 0D 03 02 00 00 00 00 51 [22:10:07]Write i2c OK [22:10:07]MH_I2C_Read... [22:10:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:10:07]Read from MH i2c: E2 [22:10:07]MH_I2C_Read... [22:10:07]Read from MH i2c: E2 0B 00 [22:10:07]MH_I2C_Read... [22:10:07]Read from MH i2c: E2 0B 00 D6 00 00 D8 E1 2B 7D 03 88 15 D3 90 00 26 [22:10:07]RAPDU: D8 E1 2B 7D 03 88 15 D3 90 00 [22:10:07]wFMCommunicate OK [22:10:07]SAM_PROTO_SignData done [22:10:07]FM_MakeSignedData done [22:10:07]CreateOFDProtocolMessage [22:10:07]wFMCommunicate request_size=4 [22:10:07]MH_SAM_APDU [22:10:07]CAPDU: 80 11 00 00 [22:10:07]Write to MH i2c: E2 08 00 D7 00 80 11 00 00 00 00 00 00 51 [22:10:07]Write i2c OK [22:10:07]MH_I2C_Read... [22:10:07]Read from MH i2c: E2 [22:10:07]MH_I2C_Read... [22:10:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:10:07]Read from MH i2c: E2 17 00 [22:10:07]MH_I2C_Read... [22:10:07]Read from MH i2c: E2 17 00 D7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A4 [22:10:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:10:08]wFMCommunicate OK [22:10:08]CreateOFDProtocolMessage done [22:10:08]OFDSenderStorePacket 148208 [22:10:08]StoreOFDPacket docnum=148208 [22:10:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 36 07 07 01 9A EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 88 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 BD ED 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F0 42 02 00 35 04 06 00 3D 29 09 A8 2C 5A D8 E1 2B 7D 03 88 15 D3 [22:10:08]CheckFolder [22:10:08]dirname=/storage/ofd_packets [22:10:08]CheckFolder done [22:10:08]ProducePacketName [22:10:08]name=ofd_packets/00148208 [22:10:08]NVStorageSaveData ofd_packets/00148208 [22:10:08]File name is /storage/ofd_packets/00148208 [22:10:08]Write 301 bytes [22:10:08]NVStorageSaveData done [22:10:08]OFDSenderStorePacket done [22:10:08]KKMCreateOFDPacket done [22:10:08]NVStorageSaveData kkm_last_timestamp [22:10:08]File name is /storage/kkm_last_timestamp [22:10:08]Write 4 bytes [22:10:08]NVStorageSaveData done [22:10:08]ExternCall_PrintAddStr [22:10:08]wPrintStart [22:10:08]Write to MH i2c: 01 00 00 D8 00 D8 [22:10:08]Write i2c OK [22:10:08]MH_I2C_Read... [22:10:08]Read from MH i2c: 01 [22:10:08]MH_I2C_Read... [22:10:08]Read from MH i2c: 01 07 00 [22:10:08]MH_I2C_Read... [22:10:08]Read from MH i2c: 01 07 00 D8 00 00 00 00 00 00 FF 0F ED [22:10:08]RasterBufferAndPrint [22:10:08]line Счет N : (1)979148 [22:10:08]line ИНН: 02508201610067 [22:10:08]line Контрольно-Кассовый Чек [22:10:08]line ПРОДАЖА [22:10:08]line ТРК (МРК, ГНК) : 42 [22:10:08]line Товар: 2710124500 [22:10:08]line Аи-95-К-5 [22:10:08]line 9.540 * 73.40 [22:10:08]line = 700.24 [22:10:08]line НДС 12% НСП 1% [22:10:08]line > о реализуемом товаре [22:10:08]line ОКРУГЛЕНИЕ: -0.24 [22:10:08]line ИТОГО: 700.00 [22:10:08]line Внесено: 700.00 [22:10:08]line СДАЧА: 0.00 [22:10:08]line НСП 1% : 6.20 [22:10:08]line НДС 12% : 74.36 [22:10:08]line Наличными: 700.00 [22:10:08]line Безнал.: 0.00 [22:10:08]line Место: АЗС № 68 "Партнер Нефть" [22:10:08]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:10:08]line СНО: Общий режим [22:10:08]line Чек 400 02.06.2024 22:10 [22:10:08]line Смена: 366 ФФД: 1.0 [22:10:08]line ЗНМ: 0300000035 [22:10:08]line РНМ: 0000000000092720 [22:10:08]OFD Sender: Processing packet 148208 [packets to send 99, broken 98] [22:10:08]ProducePacketName [22:10:08]name=ofd_packets/00148208 [22:10:08]OFD Sender: To server: pG, [22:10:08]CommunicateWithHost lk.salyk.kg:30040 [22:10:08]ConnectInit lk.salyk.kg [22:10:08]line Версия ККМ: 001 [22:10:08]line ФМ: 0000000000875057 [22:10:08]line ФД: 148208 [22:10:08]line ФПД: 67246464969818 [22:10:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T221005&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148208&fm=67246464969818&tin=02508201610067®Number=0000000000092720&sum=70000 [22:10:08]written 0, free lines is 4095 [22:10:08]Connected sock=11 [22:10:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 36 07 07 01 9A EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 44 25 00 00 00 00 00 37 04 06 00 AC 1C 00 00 00 00 13 04 06 00 88 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 01 00 00 F4 03 04 00 BD ED 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F0 42 02 00 35 04 06 00 3D 29 09 A8 2C 5A D8 E1 2B 7D 03 88 15 D3 [22:10:08]Write to MH i2c: 01 00 00 03 01 04 [22:10:08]Write i2c OK [22:10:08]MH_I2C_Read... [22:10:08]Read from MH i2c: 01 [22:10:08]MH_I2C_Read... [22:10:08]Read from MH i2c: 01 07 00 [22:10:08]MH_I2C_Read... [22:10:08]Read from MH i2c: 01 07 00 03 01 00 00 00 00 00 76 0C 8D [22:10:08]RasterBufferAndPrint [22:10:08]line [22:10:08]line [22:10:08]line [22:10:08]line [22:10:08]line [22:10:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 32 30 47 00 BF 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F0 42 02 00 F4 03 04 00 E7 94 5C 66 B6 04 01 00 00 55 20 65 69 52 BC 38 2F [22:10:08]CommunicateWithHost err = 0 [22:10:08]CheckOFDResponse [22:10:08]1017 (14) - 77093643461234 [22:10:08]1041 (16) - 0000000000875057 [22:10:08]1040 (4) - 148208 [22:10:08]1012 (4) - 02.06.2024 15:51 [22:10:08]1206 (1) - 0 [22:10:08]OFD Sender: Remove packet 148208 [22:10:08]ProducePacketName [22:10:08]name=ofd_packets/00148208 [22:10:08]NVStorageDeleteData [22:10:08]written 0, free lines is 3236 [22:10:08]MH_Cut [22:10:08]Write to MH i2c: D1 01 00 0A 01 01 DD [22:10:08]Write i2c OK [22:10:08]MH_I2C_Read... [22:10:08]Read from MH i2c: D1 [22:10:08]MH_I2C_Read... [22:10:08]Read from MH i2c: D1 01 00 [22:10:08]MH_I2C_Read... [22:10:08]Read from MH i2c: D1 01 00 0A 01 00 DC [22:10:08]Write to MH i2c: 01 00 00 0B 01 0C [22:10:08]Write i2c OK [22:10:08]MH_I2C_Read... [22:10:09]OFD Sender: No OFD packet to send [22:10:09]*** Cut start [22:10:09]*** Partial cut [22:10:09]*** CUTSNS_PIN = 1 [22:10:09]*** CUTSNS_PIN = 0 [22:10:10]*** Brake cut motor [22:10:10]Read from MH i2c: 01 [22:10:10]MH_I2C_Read... [22:10:10]*** Stop cut motor [22:10:10]*** Cut end [22:10:10]Read from MH i2c: 01 07 00 [22:10:10]MH_I2C_Read... [22:10:10]Read from MH i2c: 01 07 00 0B 01 00 00 00 00 00 FF 0F 21 [22:10:10]process_action close_receipt done [22:10:10]requested_data is exist [22:10:10]produce_requested_data [22:10:10]requested_item fm.sn is exist - process it [22:10:10]wFMCommunicate request_size=4 [22:10:10]MH_SAM_APDU [22:10:10]CAPDU: 80 11 00 00 [22:10:10]Write to MH i2c: E2 08 00 0C 01 80 11 00 00 00 00 00 00 87 [22:10:10]Write i2c OK [22:10:10]MH_I2C_Read... [22:10:10]Read from MH i2c: E2 [22:10:10]MH_I2C_Read... [22:10:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:10:10]Read from MH i2c: E2 17 00 [22:10:10]MH_I2C_Read... [22:10:10]Read from MH i2c: E2 17 00 0C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 DA [22:10:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:10:10]wFMCommunicate OK [22:10:10]requested_item fd.num is exist - process it [22:10:10]SAM_PROTO_GetFieldsCounters [22:10:10]wFMCommunicate request_size=4 [22:10:10]MH_SAM_APDU [22:10:10]CAPDU: 80 13 00 00 [22:10:10]Write to MH i2c: E2 08 00 0D 01 80 13 00 00 00 00 00 00 8A [22:10:10]Write i2c OK [22:10:10]MH_I2C_Read... [22:10:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:10:10]Read from MH i2c: E2 [22:10:10]MH_I2C_Read... [22:10:10]Read from MH i2c: E2 62 00 [22:10:10]MH_I2C_Read... [22:10:10]Read from MH i2c: E2 62 00 0D 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F0 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 90 01 00 00 5E 04 04 00 90 01 00 00 57 04 04 00 91 01 00 00 19 04 04 00 00 00 00 00 90 00 FC [22: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 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F0 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 90 01 00 00 5E 04 04 00 90 01 00 00 57 04 04 00 91 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:10:10]wFMCommunicate OK [22:10:10]SAM_PROTO_GetFieldsCounters done [22:10:10]requested_item shift.num is exist - process it [22:10:10]requested_item shift.opened is exist - process it [22:10:10]req_shift_opened [22:10:10]FM_GetShiftState [22:10:10]SAM_PROTO_GetShiftState [22:10:10]wFMCommunicate request_size=4 [22:10:10]MH_SAM_APDU [22:10:10]CAPDU: 80 13 01 00 [22:10:11]Write to MH i2c: E2 08 00 0E 01 80 13 01 00 00 00 00 00 8C [22:10:11]Write i2c OK [22:10:11]MH_I2C_Read... [22:10:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:10:11]Read from MH i2c: E2 [22:10:11]MH_I2C_Read... [22:10:11]Read from MH i2c: E2 0E 00 [22:10:11]MH_I2C_Read... [22:10:11]Read from MH i2c: E2 0E 00 0E 01 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 A4 [22:10:11]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [22:10:11]wFMCommunicate OK [22:10:11]SAM_PROTO_GetShiftState done [22:10:11]FM_GetShiftState done [22:10:11]req_shift_opened done [22:10:11]requested_item shift.open_date is exist - process it [22:10:11]req_shift_open_date [22:10:11]req_shift_open_date done [22:10:11]produce_requested_data done [22:10:11]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148208,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [22:10:11]process_action_free close_receipt [22:10:11]json_value_free [22:10:11]json_value_free done [22:10:11]process_json_proto returns [22:10:11]Send response to host [22:10:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148208,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [22:10:11]free response buf [22:10:11]execute_script done [22:10:11]execute_script returns [22:10:11]free content buf [22:10:11]Sock 8.Close socket [22:10:11]Sock 8.Thread stoped [22:10:14]OFD Sender: No OFD packet to send [22:10:17]ConnectInit Can't connect to host [22:10:19]OFD Sender: No OFD packet to send [22:10:24]OFD Sender: No OFD packet to send [22:10:29]OFD Sender: No OFD packet to send [22:10:34]OFD Sender: No OFD packet to send [22:10:39]OFD Sender: No OFD packet to send [22:10:44]OFD Sender: No OFD packet to send [22:10:49]OFD Sender: No OFD packet to send [22:10:54]OFD Sender: No OFD packet to send [22:10:59]OFD Sender: No OFD packet to send [22:11:04]OFD Sender: No OFD packet to send [22:11:09]OFD Sender: No OFD packet to send [22:11:14]OFD Sender: No OFD packet to send [22:11:19]OFD Sender: No OFD packet to send [22:11:24]OFD Sender: No OFD packet to send [22:11:29]OFD Sender: No OFD packet to send [22:11:34]OFD Sender: No OFD packet to send [22:11:39]OFD Sender: No OFD packet to send [22:11:44]OFD Sender: No OFD packet to send [22:11:49]OFD Sender: No OFD packet to send [22:11:54]OFD Sender: No OFD packet to send [22:11:59]OFD Sender: No OFD packet to send [22:12:04]OFD Sender: No OFD packet to send [22:12:09]OFD Sender: No OFD packet to send [22:12:14]OFD Sender: No OFD packet to send [22:12:19]OFD Sender: No OFD packet to send [22:12:24]OFD Sender: No OFD packet to send [22:12:29]OFD Sender: No OFD packet to send [22:12:34]OFD Sender: No OFD packet to send [22:12:35]ConnectInit Can't connect to host [22:12:39]OFD Sender: No OFD packet to send [22:12:44]OFD Sender: No OFD packet to send [22:12:49]OFD Sender: No OFD packet to send [22:12:54]OFD Sender: No OFD packet to send [22:12:59]OFD Sender: No OFD packet to send [22:13:04]OFD Sender: No OFD packet to send [22:13:09]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:49]OFD Sender: No OFD packet to send [22:13:54]OFD Sender: No OFD packet to send [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]OFD Sender: No OFD packet to send [22:14:19]OFD Sender: No OFD packet to send [22:14:24]OFD Sender: No OFD packet to send [22:14:29]OFD Sender: No OFD packet to send [22:14:34]OFD Sender: No OFD packet to send [22:14:39]OFD Sender: No OFD packet to send [22:14:44]OFD Sender: No OFD packet to send [22:14:49]OFD Sender: No OFD packet to send [22:14:53]ConnectInit Can't connect to host [22:14:54]OFD Sender: No OFD packet to send [22:14:59]OFD Sender: No OFD packet to send [22:15:04]OFD Sender: No OFD packet to send [22:15:09]OFD Sender: No OFD packet to send [22:15:14]OFD Sender: No OFD packet to send [22:15:19]OFD Sender: No OFD packet to send [22:15:24]OFD Sender: No OFD packet to send [22:15:29]OFD Sender: No OFD packet to send [22:15:34]OFD Sender: No OFD packet to send [22:15:39]OFD Sender: No OFD packet to send [22:15:44]OFD Sender: No OFD packet to send [22:15:49]OFD Sender: No OFD packet to send [22:15:54]OFD Sender: No OFD packet to send [22:15:59]OFD Sender: No OFD packet to send [22:16:04]OFD Sender: No OFD packet to send [22:16:06]accept exits with 10 [22:16:06]New connection [22:16:06]New thread 3067288932 created [22:16:06]Thread 3067432292 joined [22:16:06]Waiting for new connection... [22:16:06] Sock 10.Parse request [22:16:06]Sock 10.Check first char [22:16:06]Sock 10.First char is OK [22:16:06]request: POST /json_proto HTTP/1.0 [22:16:06]Method: POST [22:16:06]URL: /json_proto [22:16:06]Method is POST - this is cgi request [22:16:06]url: /json_proto [22:16:06]query_string will be loaded in cgi processing [22:16:06]execute_cgi json_proto POST (null) [22:16:06]execute_cgi path=json_proto method=POST [22:16:06]POST find Content-Length [22:16:06]Host: 172.17.38.4:8080 [22:16:06]Content-Length: 677 [22:16:06]Content-Type: application/json [22:16:06] [22:16:06]POST finish read [22:16:06]Found Content-Length = 677 [22:16:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:06]execute_script... [22:16:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:06]POST & json_proto [22:16:06]process_json_proto [22:16:06]json parsed OK: [22:16:06]protocol is kg_v1.0 [22:16:06]action value=close_receipt [22:16:06]process_action close_receipt [22:16:06]cmd_close_receipt [22:16:06]MH_GetDate [22:16:06]Write to MH i2c: F0 00 00 0F 01 FF [22:16:06]Write i2c OK [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: F0 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: F0 09 00 [22:16:06]MH_I2C_Read... [22:16:06]Read from MH i2c: F0 09 00 0F 01 00 27 EF 5C 66 CC 51 87 64 E8 [22:16:06]GetLastDocTimeStamp 1717366205 [22:16:06]current date 1717366567 [22:16:06]FM_GetShiftState [22:16:06]SAM_PROTO_GetShiftState [22:16:06]wFMCommunicate request_size=4 [22:16:06]MH_SAM_APDU [22:16:06]CAPDU: 80 13 01 00 [22:16:06]Write to MH i2c: E2 08 00 10 01 80 13 01 00 00 00 00 00 8E [22:16:06]Write i2c OK [22:16:06]MH_I2C_Read... [22:16:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:07]Read from MH i2c: E2 [22:16:07]MH_I2C_Read... [22:16:07]Read from MH i2c: E2 0E 00 [22:16:07]MH_I2C_Read... [22:16:07]Read from MH i2c: E2 0E 00 10 01 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 A6 [22:16:07]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [22:16:07]wFMCommunicate OK [22:16:07]SAM_PROTO_GetShiftState done [22:16:07]FM_GetShiftState done [22:16:07]opened in 1717287824 [22:16:07]opened+sec_in_day 1717374224 [22:16:07]quantity*price = 30012 [22:16:07]sum+1 = 30014 [22:16:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 401 02.06.2024 22:16 Смена: 366 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148209 ФПД: 950642598099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T221607&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148209&fm=950642598099&tin=02508201610067®Number=0000000000092720&sum=30000 [22:16:08]StoreToDocumentArchive [22:16:08]shift 366 fd 148209 [22:16:08]save to /storage/0366/doc_00148209 [22:16:08]save last doc name /storage/0366/doc_00148209 to /storage/kkm_last_doc_name [22:16:08]save OK [22:16:08]Clear old archive folders... [22:16:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:16:08]tlvbuf is 012335B0 [22:16:08]SAM_PROTO_ClearQueue [22:16:08]wFMCommunicate request_size=4 [22:16:08]MH_SAM_APDU [22:16:08]CAPDU: 80 09 00 00 [22:16:08]Write to MH i2c: E2 08 00 1D 01 80 09 00 00 00 00 00 00 90 [22:16:08]Write i2c OK [22:16:08]MH_I2C_Read... [22:16:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:16:08]Read from MH i2c: E2 [22:16:08]MH_I2C_Read... [22:16:08]Read from MH i2c: E2 03 00 [22:16:08]MH_I2C_Read... [22:16:08]Read from MH i2c: E2 03 00 1D 01 00 90 00 92 [22:16:08]RAPDU: 90 00 [22:16:08]wFMCommunicate OK [22:16:08]SAM_PROTO_ClearQueue done [22:16:08]KKMCreateOFDPacket [22:16:08]OFDProtocolAddRootSTLVToBuf [22:16:08]FM_MakeSignedData [22:16:08]FM_MakeSignedData [22:16:08]SAM_PROTO_SignData [22:16:08]wFMCommunicate request_size=4 [22:16:08]MH_SAM_APDU [22:16:08]CAPDU: 80 0D 01 02 [22:16:08]Write to MH i2c: E2 08 00 1E 01 80 0D 01 02 00 00 00 00 98 [22:16:08]Write i2c OK [22:16:08]MH_I2C_Read... [22:16:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:16:08]Read from MH i2c: E2 [22:16:08]MH_I2C_Read... [22:16:08]Read from MH i2c: E2 03 00 [22:16:08]MH_I2C_Read... [22:16:08]Read from MH i2c: E2 03 00 1E 01 00 90 00 93 [22:16:08]RAPDU: 90 00 [22:16:08]wFMCommunicate OK [22:16:08]wFMCommunicate request_size=255 [22:16:08]MH_SAM_APDU [22:16:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 01 00 00 F4 03 04 00 27 EF 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F1 42 02 00 35 04 06 00 00 [22:16:08]Write to MH i2c: E2 02 01 1F 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 01 00 00 F4 03 04 00 27 EF 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F1 42 02 00 35 04 06 00 00 00 00 F3 [22:16:09]Write i2c OK [22:16:09]MH_I2C_Read... [22:16:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:09]Read from MH i2c: E2 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 03 00 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 03 00 1F 01 00 90 00 94 [22:16:09]RAPDU: 90 00 [22:16:09]wFMCommunicate OK [22:16:09]wFMCommunicate request_size=10 [22:16:09]MH_SAM_APDU [22:16:09]CAPDU: 80 0D 02 02 05 DD 56 B6 E0 D3 [22:16:09]Write to MH i2c: E2 0D 00 20 01 80 0D 02 02 05 00 DD 56 B6 E0 D3 00 00 41 [22:16:09]Write i2c OK [22:16:09]MH_I2C_Read... [22:16:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:09]Read from MH i2c: E2 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 03 00 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 03 00 20 01 00 90 00 95 [22:16:09]RAPDU: 90 00 [22:16:09]wFMCommunicate OK [22:16:09]wFMCommunicate request_size=4 [22:16:09]MH_SAM_APDU [22:16:09]CAPDU: 80 0D 03 02 [22:16:09]Write to MH i2c: E2 08 00 21 01 80 0D 03 02 00 00 00 00 9D [22:16:09]Write i2c OK [22:16:09]MH_I2C_Read... [22:16:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:16:09]Read from MH i2c: E2 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 0B 00 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 0B 00 21 01 00 18 5B 00 73 05 92 D8 D4 90 00 C7 [22:16:09]RAPDU: 18 5B 00 73 05 92 D8 D4 90 00 [22:16:09]wFMCommunicate OK [22:16:09]SAM_PROTO_SignData done [22:16:09]FM_MakeSignedData done [22:16:09]CreateOFDProtocolMessage [22:16:09]wFMCommunicate request_size=4 [22:16:09]MH_SAM_APDU [22:16:09]CAPDU: 80 11 00 00 [22:16:09]Write to MH i2c: E2 08 00 22 01 80 11 00 00 00 00 00 00 9D [22:16:09]Write i2c OK [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 [22:16:09]MH_I2C_Read... [22:16:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:09]Read from MH i2c: E2 17 00 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: E2 17 00 22 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F0 [22:16:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:16:09]wFMCommunicate OK [22:16:09]CreateOFDProtocolMessage done [22:16:09]OFDSenderStorePacket 148209 [22:16:09]StoreOFDPacket docnum=148209 [22:16:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 03 A8 07 01 E8 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 01 00 00 F4 03 04 00 27 EF 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F1 42 02 00 35 04 06 00 00 DD 56 B6 E0 D3 18 5B 00 73 05 92 D8 D4 [22:16:09]CheckFolder [22:16:09]dirname=/storage/ofd_packets [22:16:09]CheckFolder done [22:16:09]ProducePacketName [22:16:09]name=ofd_packets/00148209 [22:16:09]NVStorageSaveData ofd_packets/00148209 [22:16:09]File name is /storage/ofd_packets/00148209 [22:16:09]Write 301 bytes [22:16:09]NVStorageSaveData done [22:16:09]OFDSenderStorePacket done [22:16:09]KKMCreateOFDPacket done [22:16:09]NVStorageSaveData kkm_last_timestamp [22:16:09]File name is /storage/kkm_last_timestamp [22:16:09]Write 4 bytes [22:16:09]NVStorageSaveData done [22:16:09]ExternCall_PrintAddStr [22:16:09]wPrintStart [22:16:09]Write to MH i2c: 01 00 00 23 01 24 [22:16:09]OFD Sender: Processing packet 148209 [packets to send 99, broken 98] [22:16:09]ProducePacketName [22:16:09]name=ofd_packets/00148209 [22:16:09]OFD Sender: To server: pG, [22:16:09]CommunicateWithHost lk.salyk.kg:30040 [22:16:09]ConnectInit lk.salyk.kg [22:16:09]Write i2c OK [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: 01 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: 01 07 00 [22:16:09]MH_I2C_Read... [22:16:09]Read from MH i2c: 01 07 00 23 01 00 00 00 00 00 FF 0F 39 [22:16:09]RasterBufferAndPrint [22:16:09]line Счет N : (1)979149 [22:16:09]line ИНН: 02508201610067 [22:16:09]line Контрольно-Кассовый Чек [22:16:09]line ПРОДАЖА [22:16:09]line ТРК (МРК, ГНК) : 22 [22:16:09]line Товар: 2710124130 [22:16:09]line Аи-92-К-5 [22:16:09]line 4.520 * 66.40 [22:16:09]line = 300.13 [22:16:09]line НДС 12% НСП 1% [22:16:09]line > о реализуемом товаре [22:16:09]line ОКРУГЛЕНИЕ: -0.13 [22:16:09]line ИТОГО: 300.00 [22:16:09]line Внесено: 300.00 [22:16:09]line СДАЧА: 0.00 [22:16:09]line НСП 1% : 2.66 [22:16:09]line НДС 12% : 31.87 [22:16:09]line Наличными: 300.00 [22:16:09]line Безнал.: 0.00 [22:16:09]line Место: АЗС № 68 "Партнер Нефть" [22:16:09]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:16:09]line СНО: Общий режим [22:16:09]line Чек 401 02.06.2024 22:16 [22:16:09]line Смена: 366 ФФД: 1.0 [22:16:09]line ЗНМ: 0300000035 [22:16:09]line РНМ: 0000000000092720 [22:16:09]line Версия ККМ: 001 [22:16:09]line ФМ: 0000000000875057 [22:16:09]line ФД: 148209 [22:16:09]line ФПД: 950642598099 [22:16:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T221607&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148209&fm=950642598099&tin=02508201610067®Number=0000000000092720&sum=30000 [22:16:09]written 0, free lines is 4095 [22:16:09]Connected sock=11 [22:16:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 03 A8 07 01 E8 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 01 00 00 F4 03 04 00 27 EF 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F1 42 02 00 35 04 06 00 00 DD 56 B6 E0 D3 18 5B 00 73 05 92 D8 D4 [22:16:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 12 57 47 00 75 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F1 42 02 00 F4 03 04 00 51 96 5C 66 B6 04 01 00 00 BA E5 D6 4C 53 95 6E EF [22:16:10]CommunicateWithHost err = 0 [22:16:10]CheckOFDResponse [22:16:10]1017 (14) - 77093643461234 [22:16:10]1041 (16) - 0000000000875057 [22:16:10]1040 (4) - 148209 [22:16:10]1012 (4) - 02.06.2024 15:57 [22:16:10]1206 (1) - 0 [22:16:10]OFD Sender: Remove packet 148209 [22:16:10]ProducePacketName [22:16:10]name=ofd_packets/00148209 [22:16:10]NVStorageDeleteData [22:16:10]Write to MH i2c: 01 00 00 4E 01 4F [22:16:10]Write i2c OK [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: 01 [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: 01 07 00 [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: 01 07 00 4E 01 00 00 00 00 00 EF 0C 51 [22:16:10]RasterBufferAndPrint [22:16:10]line [22:16:10]line [22:16:10]line [22:16:10]line [22:16:10]line [22:16:10]written 0, free lines is 3345 [22:16:10]MH_Cut [22:16:10]Write to MH i2c: D1 01 00 55 01 01 28 [22:16:10]Write i2c OK [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: D1 [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: D1 01 00 [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: D1 01 00 55 01 00 27 [22:16:10]Write to MH i2c: 01 00 00 56 01 57 [22:16:10]Write i2c OK [22:16:10]MH_I2C_Read... [22:16:10]OFD Sender: No OFD packet to send [22:16:11]*** Cut start [22:16:11]*** Partial cut [22:16:11]*** CUTSNS_PIN = 1 [22:16:11]*** CUTSNS_PIN = 0 [22:16:11]*** Brake cut motor [22:16:12]Read from MH i2c: 01 [22:16:12]MH_I2C_Read... [22:16:12]*** Stop cut motor [22:16:12]*** Cut end [22:16:12]Read from MH i2c: 01 07 00 [22:16:12]MH_I2C_Read... [22:16:12]Read from MH i2c: 01 07 00 56 01 00 00 00 00 00 FF 0F 6C [22:16:12]process_action close_receipt done [22:16:12]requested_data is exist [22:16:12]produce_requested_data [22:16:12]requested_item fm.sn is exist - process it [22:16:12]wFMCommunicate request_size=4 [22:16:12]MH_SAM_APDU [22:16:12]CAPDU: 80 11 00 00 [22:16:12]Write to MH i2c: E2 08 00 57 01 80 11 00 00 00 00 00 00 D2 [22:16:12]Write i2c OK [22:16:12]MH_I2C_Read... [22:16:12]Read from MH i2c: E2 [22:16:12]MH_I2C_Read... [22:16:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:12]Read from MH i2c: E2 17 00 [22:16:12]MH_I2C_Read... [22:16:12]Read from MH i2c: E2 17 00 57 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 25 [22:16:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:16:12]wFMCommunicate OK [22:16:12]requested_item fd.num is exist - process it [22:16:12]SAM_PROTO_GetFieldsCounters [22:16:12]wFMCommunicate request_size=4 [22:16:12]MH_SAM_APDU [22:16:12]CAPDU: 80 13 00 00 [22:16:12]Write to MH i2c: E2 08 00 58 01 80 13 00 00 00 00 00 00 D5 [22:16:12]Write i2c OK [22:16:12]MH_I2C_Read... [22:16:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:16:12]Read from MH i2c: E2 [22:16:12]MH_I2C_Read... [22:16:12]Read from MH i2c: E2 62 00 [22:16:12]MH_I2C_Read... [22:16:12]Read from MH i2c: E2 62 00 58 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F1 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 91 01 00 00 5E 04 04 00 91 01 00 00 57 04 04 00 92 01 00 00 19 04 04 00 00 00 00 00 90 00 4B [22:16:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F1 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 91 01 00 00 5E 04 04 00 91 01 00 00 57 04 04 00 92 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:16:12]wFMCommunicate OK [22:16:12]SAM_PROTO_GetFieldsCounters done [22:16:12]requested_item shift.num is exist - process it [22:16:12]requested_item shift.opened is exist - process it [22:16:12]req_shift_opened [22:16:12]FM_GetShiftState [22:16:12]SAM_PROTO_GetShiftState [22:16:12]wFMCommunicate request_size=4 [22:16:12]MH_SAM_APDU [22:16:12]CAPDU: 80 13 01 00 [22:16:12]Write to MH i2c: E2 08 00 59 01 80 13 01 00 00 00 00 00 D7 [22:16:12]Write i2c OK [22:16:12]MH_I2C_Read... [22:16:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:12]Read from MH i2c: E2 [22:16:12]MH_I2C_Read... [22:16:12]Read from MH i2c: E2 0E 00 [22:16:12]MH_I2C_Read... [22:16:12]Read from MH i2c: E2 0E 00 59 01 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 EF [22:16:12]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [22:16:12]wFMCommunicate OK [22:16:12]SAM_PROTO_GetShiftState done [22:16:12]FM_GetShiftState done [22:16:12]req_shift_opened done [22:16:12]requested_item shift.open_date is exist - process it [22:16:12]req_shift_open_date [22:16:12]req_shift_open_date done [22:16:12]produce_requested_data done [22:16:12]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148209,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [22:16:12]process_action_free close_receipt [22:16:12]json_value_free [22:16:12]json_value_free done [22:16:12]process_json_proto returns [22:16:12]Send response to host [22:16:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148209,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [22:16:12]free response buf [22:16:12]execute_script done [22:16:12]execute_script returns [22:16:12]free content buf [22:16:12]Sock 10.Close socket [22:16:12]Sock 10.Thread stoped [22:16:15]OFD Sender: No OFD packet to send [22:16:20]OFD Sender: No OFD packet to send [22:16:25]OFD Sender: No OFD packet to send [22:16:30]OFD Sender: No OFD packet to send [22:16:35]OFD Sender: No OFD packet to send [22:16:40]OFD Sender: No OFD packet to send [22:16:45]OFD Sender: No OFD packet to send [22:16:50]OFD Sender: No OFD packet to send [22:16:55]OFD Sender: No OFD packet to send [22:17:00]OFD Sender: No OFD packet to send [22:17:05]OFD Sender: No OFD packet to send [22:17:08]accept exits with 9 [22:17:08]New connection [22:17:08]New thread 3067432292 created [22:17:08]Thread 3067288932 joined [22:17:08]Waiting for new connection... [22:17:08] Sock 9.Parse request [22:17:08]Sock 9.Check first char [22:17:08]Sock 9.First char is OK [22:17:08]request: POST /json_proto HTTP/1.0 [22:17:08]Method: POST [22:17:08]URL: /json_proto [22:17:08]Method is POST - this is cgi request [22:17:08]url: /json_proto [22:17:08]query_string will be loaded in cgi processing [22:17:08]execute_cgi json_proto POST (null) [22:17:08]execute_cgi path=json_proto method=POST [22:17:08]POST find Content-Length [22:17:08]Host: 172.17.38.4:8080 [22:17:08]Content-Length: 677 [22:17:08]Content-Type: application/json [22:17:08] [22:17:08]POST finish read [22:17:08]Found Content-Length = 677 [22:17:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:08]execute_script... [22:17:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.770, "sum" : 250.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:17:08]POST & json_proto [22:17:08]process_json_proto [22:17:08]json parsed OK: [22:17:08]protocol is kg_v1.0 [22:17:08]action value=close_receipt [22:17:08]process_action close_receipt [22:17:08]cmd_close_receipt [22:17:08]MH_GetDate [22:17:08]Write to MH i2c: F0 00 00 5A 01 4A [22:17:08]Write i2c OK [22:17:08]MH_I2C_Read... [22:17:08]Read from MH i2c: F0 [22:17:08]MH_I2C_Read... [22:17:08]Read from MH i2c: F0 09 00 [22:17:08]MH_I2C_Read... [22:17:08]Read from MH i2c: F0 09 00 5A 01 00 64 EF 5C 66 CC 51 87 64 70 [22:17:08]GetLastDocTimeStamp 1717366567 [22:17:08]current date 1717366628 [22:17:08]FM_GetShiftState [22:17:08]SAM_PROTO_GetShiftState [22:17:08]wFMCommunicate request_size=4 [22:17:08]MH_SAM_APDU [22:17:08]CAPDU: 80 13 01 00 [22:17:08]Write to MH i2c: E2 08 00 5B 01 80 13 01 00 00 00 00 00 D9 [22:17:08]Write i2c OK [22:17:08]MH_I2C_Read... [22:17:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:08]Read from MH i2c: E2 [22:17:08]MH_I2C_Read... [22:17:08]Read from MH i2c: E2 0E 00 [22:17:08]MH_I2C_Read... [22:17:08]Read from MH i2c: E2 0E 00 5B 01 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 F1 [22:17:09]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [22:17:09]wFMCommunicate OK [22:17:09]SAM_PROTO_GetShiftState done [22:17:09]FM_GetShiftState done [22:17:09]opened in 1717287824 [22:17:09]opened+sec_in_day 1717374224 [22:17:09]quantity*price = 25032 [22:17:09]sum+1 = 25034 [22:17:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.58 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 402 02.06.2024 22:17 Смена: 366 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148210 ФПД: 23845370998778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T221709&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148210&fm=23845370998778&tin=02508201610067®Number=0000000000092720&sum=25000 [22:17:10]StoreToDocumentArchive [22:17:10]shift 366 fd 148210 [22:17:10]save to /storage/0366/doc_00148210 [22:17:10]save last doc name /storage/0366/doc_00148210 to /storage/kkm_last_doc_name [22:17:10]save OK [22:17:10]Clear old archive folders... [22:17:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:17:10]tlvbuf is 0113DB00 [22:17:10]SAM_PROTO_ClearQueue [22:17:10]wFMCommunicate request_size=4 [22:17:10]MH_SAM_APDU [22:17:10]CAPDU: 80 09 00 00 [22:17:10]Write to MH i2c: E2 08 00 68 01 80 09 00 00 00 00 00 00 DB [22:17:10]Write i2c OK [22:17:10]MH_I2C_Read... [22:17:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:17:10]Read from MH i2c: E2 [22:17:10]MH_I2C_Read... [22:17:10]Read from MH i2c: E2 03 00 [22:17:10]MH_I2C_Read... [22:17:10]Read from MH i2c: E2 03 00 68 01 00 90 00 DD [22:17:10]RAPDU: 90 00 [22:17:10]wFMCommunicate OK [22:17:10]SAM_PROTO_ClearQueue done [22:17:10]KKMCreateOFDPacket [22:17:10]OFDProtocolAddRootSTLVToBuf [22:17:10]FM_MakeSignedData [22:17:10]FM_MakeSignedData [22:17:10]SAM_PROTO_SignData [22:17:10]wFMCommunicate request_size=4 [22:17:10]MH_SAM_APDU [22:17:10]CAPDU: 80 0D 01 02 [22:17:10]Write to MH i2c: E2 08 00 69 01 80 0D 01 02 00 00 00 00 E3 [22:17:10]Write i2c OK [22:17:10]MH_I2C_Read... [22:17:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:17:10]Read from MH i2c: E2 [22:17:10]MH_I2C_Read... [22:17:10]Read from MH i2c: E2 03 00 [22:17:10]MH_I2C_Read... [22:17:10]Read from MH i2c: E2 03 00 69 01 00 90 00 DE [22:17:10]RAPDU: 90 00 [22:17:10]wFMCommunicate OK [22:17:10]wFMCommunicate request_size=255 [22:17:10]MH_SAM_APDU [22:17:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 01 00 00 F4 03 04 00 65 EF 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F2 42 02 00 35 04 06 00 15 [22:17:11]Write to MH i2c: E2 OFD Sender: No OFD packet to send [22:17:11]02 01 6A 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 01 00 00 F4 03 04 00 65 EF 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F2 42 02 00 35 04 06 00 15 00 00 A1 [22:17:11]Write i2c OK [22:17:11]MH_I2C_Read... [22:17:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:11]Read from MH i2c: E2 [22:17:11]MH_I2C_Read... [22:17:11]Read from MH i2c: E2 03 00 [22:17:11]MH_I2C_Read... [22:17:11]Read from MH i2c: E2 03 00 6A 01 00 90 00 DF [22:17:11]RAPDU: 90 00 [22:17:11]wFMCommunicate OK [22:17:11]wFMCommunicate request_size=10 [22:17:11]MH_SAM_APDU [22:17:11]CAPDU: 80 0D 02 02 05 AF EE DE 2F FA [22:17:11]Write to MH i2c: E2 0D 00 6B 01 80 0D 02 02 05 00 AF EE DE 2F FA 00 00 94 [22:17:11]ConnectInit Can't connect to host [22:17:11]Write i2c OK [22:17:11]MH_I2C_Read... [22:17:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:17:11]Read from MH i2c: E2 [22:17:11]MH_I2C_Read... [22:17:11]Read from MH i2c: E2 03 00 [22:17:11]MH_I2C_Read... [22:17:11]Read from MH i2c: E2 03 00 6B 01 00 90 00 E0 [22:17:11]RAPDU: 90 00 [22:17:11]wFMCommunicate OK [22:17:11]wFMCommunicate request_size=4 [22:17:11]MH_SAM_APDU [22:17:11]CAPDU: 80 0D 03 02 [22:17:11]Write to MH i2c: E2 08 00 6C 01 80 0D 03 02 00 00 00 00 E8 [22:17:11]Write i2c OK [22:17:11]MH_I2C_Read... [22:17:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:17:11]Read from MH i2c: E2 [22:17:11]MH_I2C_Read... [22:17:11]Read from MH i2c: E2 0B 00 [22:17:11]MH_I2C_Read... [22:17:11]Read from MH i2c: E2 0B 00 6C 01 00 3A 0A 5C 4F B1 C9 C7 2B 90 00 44 [22:17:11]RAPDU: 3A 0A 5C 4F B1 C9 C7 2B 90 00 [22:17:11]wFMCommunicate OK [22:17:11]SAM_PROTO_SignData done [22:17:11]FM_MakeSignedData done [22:17:11]CreateOFDProtocolMessage [22:17:11]wFMCommunicate request_size=4 [22:17:11]MH_SAM_APDU [22:17:11]CAPDU: 80 11 00 00 [22:17:11]Write to MH i2c: E2 08 00 6D 01 80 11 00 00 00 00 00 00 E8 [22:17:11]Write i2c OK [22:17:11]MH_I2C_Read... [22:17:12]Read from MH i2c: E2 [22:17:12]MH_I2C_Read... [22:17:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:12]Read from MH i2c: E2 17 00 [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: E2 17 00 6D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 3B [22:17:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:17:12]wFMCommunicate OK [22:17:12]CreateOFDProtocolMessage done [22:17:12]OFDSenderStorePacket 148210 [22:17:12]StoreOFDPacket docnum=148210 [22:17:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 02 2E 07 01 BF 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 01 00 00 F4 03 04 00 65 EF 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F2 42 02 00 35 04 06 00 15 AF EE DE 2F FA 3A 0A 5C 4F B1 C9 C7 2B [22:17:12]CheckFolder [22:17:12]dirname=/storage/ofd_packets [22:17:12]CheckFolder done [22:17:12]ProducePacketName [22:17:12]name=ofd_packets/00148210 [22:17:12]NVStorageSaveData ofd_packets/00148210 [22:17:12]File name is /storage/ofd_packets/00148210 [22:17:12]Write 301 bytes [22:17:12]NVStorageSaveData done [22:17:12]OFDSenderStorePacket done [22:17:12]KKMCreateOFDPacket done [22:17:12]NVStorageSaveData kkm_last_timestamp [22:17:12]File name is /storage/kkm_last_timestamp [22:17:12]Write 4 bytes [22:17:12]NVStorageSaveData done [22:17:12]ExternCall_PrintAddStr [22:17:12]wPrintStart [22:17:12]Write to MH i2c: 01 00 00 6E 01 6F [22:17:12]Write i2c OK [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: 01 [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: 01 07 00 [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: 01 07 00 6E 01 00 00 00 00 00 FF 0F 84 [22:17:12]RasterBufferAndPrint [22:17:12]line Счет N : (1)979150 [22:17:12]line ИНН: 02508201610067 [22:17:12]line Контрольно-Кассовый Чек [22:17:12]line ПРОДАЖА [22:17:12]line ТРК (МРК, ГНК) : 41 [22:17:12]line Товар: 2710124130 [22:17:12]line Аи-92-К-5 [22:17:12]line 3.770 * 66.40 [22:17:12]line = 250.33 [22:17:12]line НДС 12% НСП 1% [22:17:12]line > о реализуемом товаре [22:17:12]line ОКРУГЛЕНИЕ: -0.33 [22:17:12]line ИТОГО: 250.00 [22:17:12]line Внесено: 250.00 [22:17:12]line СДАЧА: 0.00 [22:17:12]line НСП 1% : 2.21 [22:17:12]line НДС 12% : 26.58 [22:17:12]line Наличными: 250.00 [22:17:12]line Безнал.: 0.00 [22:17:12]line Место: АЗС № 68 "Партнер Нефть" [22:17:12]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:17:12]line СНО: Общий режим [22:17:12]line Чек 402 02.06.2024 22:17 [22:17:12]line Смена: 366 ФФД: 1.0 [22:17:12]line ЗНМ: 0300000035 [22:17:12]line РНМ: 0000000000092720 [22:17:12]line Версия ККМ: 001 [22:17:12]line ФМ: 0000000000875057 [22:17:12]line ФД: 148210 [22:17:12]line ФПД: 23845370998778 [22:17:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T221709&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148210&fm=23845370998778&tin=02508201610067®Number=0000000000092720&sum=25000 [22:17:12]written 0, free lines is 4095 [22:17:12]OFD Sender: Processing packet 148210 [packets to send 99, broken 98] [22:17:12]ProducePacketName [22:17:12]name=ofd_packets/00148210 [22:17:12]OFD Sender: To server: pG, [22:17:12]CommunicateWithHost lk.salyk.kg:30040 [22:17:12]ConnectInit lk.salyk.kg [22:17:12]Connected sock=8 [22:17:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 02 2E 07 01 BF 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C9 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 01 00 00 F4 03 04 00 65 EF 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F2 42 02 00 35 04 06 00 15 AF EE DE 2F FA 3A 0A 5C 4F B1 C9 C7 2B [22:17:12]Write to MH i2c: 01 00 00 99 01 9A [22:17:12]Write i2c OK [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: 01 [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: 01 07 00 [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: 01 07 00 99 01 00 00 00 00 00 77 0C 24 [22:17:12]RasterBufferAndPrint [22:17:12]line [22:17:12]line [22:17:12]line [22:17:12]line [22:17:12]line [22:17:12]written 0, free lines is 3218 [22:17:12]MH_Cut [22:17:12]Write to MH i2c: D1 01 00 A0 01 01 73 [22:17:12]Write i2c OK [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: D1 [22:17:12]MH_I2C_Read... [22:17:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 30 79 47 00 CC 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F2 42 02 00 F4 03 04 00 8F 96 5C 66 B6 04 01 00 00 43 05 C6 E0 6B 9B 10 AE [22:17:12]CommunicateWithHost err = 0 [22:17:12]CheckOFDResponse [22:17:12]1017 (14) - 77093643461234 [22:17:12]1041 (16) - 0000000000875057 [22:17:12]1040 (4) - 148210 [22:17:12]1012 (4) - 02.06.2024 15:58 [22:17:12]1206 (1) - 0 [22:17:12]OFD Sender: Remove packet 148210 [22:17:12]ProducePacketName [22:17:12]name=ofd_packets/00148210 [22:17:12]NVStorageDeleteData [22:17:12]Read from MH i2c: D1 01 00 [22:17:12]MH_I2C_Read... [22:17:12]Read from MH i2c: D1 01 00 A0 01 00 72 [22:17:12]Write to MH i2c: 01 00 00 A1 01 A2 [22:17:12]Write i2c OK [22:17:12]MH_I2C_Read... [22:17:13]OFD Sender: No OFD packet to send [22:17:13]*** Cut start [22:17:13]*** Partial cut [22:17:13]*** CUTSNS_PIN = 1 [22:17:13]*** CUTSNS_PIN = 0 [22:17:14]*** Brake cut motor [22:17:14]Read from MH i2c: 01 [22:17:14]MH_I2C_Read... [22:17:14]*** Stop cut motor [22:17:14]*** Cut end [22:17:14]Read from MH i2c: 01 07 00 [22:17:14]MH_I2C_Read... [22:17:14]Read from MH i2c: 01 07 00 A1 01 00 00 00 00 00 FF 0F B7 [22:17:14]process_action close_receipt done [22:17:14]requested_data is exist [22:17:14]produce_requested_data [22:17:14]requested_item fm.sn is exist - process it [22:17:14]wFMCommunicate request_size=4 [22:17:14]MH_SAM_APDU [22:17:14]CAPDU: 80 11 00 00 [22:17:14]Write to MH i2c: E2 08 00 A2 01 80 11 00 00 00 00 00 00 1D [22:17:14]Write i2c OK [22:17:14]MH_I2C_Read... [22:17:14]Read from MH i2c: E2 [22:17:14]MH_I2C_Read... [22:17:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:17:14]Read from MH i2c: E2 17 00 [22:17:14]MH_I2C_Read... [22:17:14]Read from MH i2c: E2 17 00 A2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 70 [22:17:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:17:14]wFMCommunicate OK [22:17:14]requested_item fd.num is exist - process it [22:17:14]SAM_PROTO_GetFieldsCounters [22:17:14]wFMCommunicate request_size=4 [22:17:14]MH_SAM_APDU [22:17:14]CAPDU: 80 13 00 00 [22:17:14]Write to MH i2c: E2 08 00 A3 01 80 13 00 00 00 00 00 00 20 [22:17:14]Write i2c OK [22:17:14]MH_I2C_Read... [22:17:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:17:14]Read from MH i2c: E2 [22:17:14]MH_I2C_Read... [22:17:14]Read from MH i2c: E2 62 00 [22:17:14]MH_I2C_Read... [22:17:14]Read from MH i2c: E2 62 00 A3 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F2 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 92 01 00 00 5E 04 04 00 92 01 00 00 57 04 04 00 93 01 00 00 19 04 04 00 00 00 00 00 90 00 9A [22:17:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F2 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 92 01 00 00 5E 04 04 00 92 01 00 00 57 04 04 00 93 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:17:15]wFMCommunicate OK [22:17:15]SAM_PROTO_GetFieldsCounters done [22:17:15]requested_item shift.num is exist - process it [22:17:15]requested_item shift.opened is exist - process it [22:17:15]req_shift_opened [22:17:15]FM_GetShiftState [22:17:15]SAM_PROTO_GetShiftState [22:17:15]wFMCommunicate request_size=4 [22:17:15]MH_SAM_APDU [22:17:15]CAPDU: 80 13 01 00 [22:17:15]Write to MH i2c: E2 08 00 A4 01 80 13 01 00 00 00 00 00 22 [22:17:15]Write i2c OK [22:17:15]MH_I2C_Read... [22:17:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:17:15]Read from MH i2c: E2 [22:17:15]MH_I2C_Read... [22:17:15]Read from MH i2c: E2 0E 00 [22:17:15]MH_I2C_Read... [22:17:15]Read from MH i2c: E2 0E 00 A4 01 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 3A [22:17:15]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [22:17:15]wFMCommunicate OK [22:17:15]SAM_PROTO_GetShiftState done [22:17:15]FM_GetShiftState done [22:17:15]req_shift_opened done [22:17:15]requested_item shift.open_date is exist - process it [22:17:15]req_shift_open_date [22:17:15]req_shift_open_date done [22:17:15]produce_requested_data done [22:17:15]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148210,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [22:17:15]process_action_free close_receipt [22:17:15]json_value_free [22:17:15]json_value_free done [22:17:15]process_json_proto returns [22:17:15]Send response to host [22:17:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148210,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [22:17:15]free response buf [22:17:15]execute_script done [22:17:15]execute_script returns [22:17:15]free content buf [22:17:15]Sock 9.Close socket [22:17:15]Sock 9.Thread stoped [22:17:18]OFD Sender: No OFD packet to send [22:17:23]OFD Sender: No OFD packet to send [22:17:28]OFD Sender: No OFD packet to send [22:17:33]OFD Sender: No OFD packet to send [22:17:38]OFD Sender: No OFD packet to send [22:17:43]OFD Sender: No OFD packet to send [22:17:48]OFD Sender: No OFD packet to send [22:17:53]OFD Sender: No OFD packet to send [22:17:58]OFD Sender: No OFD packet to send [22:18:03]OFD Sender: No OFD packet to send [22:18:08]OFD Sender: No OFD packet to send [22:18:13]OFD Sender: No OFD packet to send [22:18:18]OFD Sender: No OFD packet to send [22:18:23]OFD Sender: No OFD packet to send [22:18:28]OFD Sender: No OFD packet to send [22:18:33]OFD Sender: No OFD packet to send [22:18:38]OFD Sender: No OFD packet to send [22:18:43]OFD Sender: No OFD packet to send [22:18:48]OFD Sender: No OFD packet to send [22:18:53]OFD Sender: No OFD packet to send [22:18:57]accept exits with 10 [22:18:57]New connection [22:18:57]New thread 3067288932 created [22:18:57]Thread 3067432292 joined [22:18:57]Waiting for new connection... [22:18:57] Sock 10.Parse request [22:18:57]Sock 10.Check first char [22:18:57]Sock 10.First char is OK [22:18:57]request: POST /json_proto HTTP/1.0 [22:18:57]Method: POST [22:18:57]URL: /json_proto [22:18:57]Method is POST - this is cgi request [22:18:57]url: /json_proto [22:18:57]query_string will be loaded in cgi processing [22:18:57]execute_cgi json_proto POST (null) [22:18:57]execute_cgi path=json_proto method=POST [22:18:57]POST find Content-Length [22:18:57]Host: 172.17.38.4:8080 [22:18:57]Content-Length: 677 [22:18:57]Content-Type: application/json [22:18:57] [22:18:57]POST finish read [22:18:57]Found Content-Length = 677 [22:18:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.820, "sum" : 320.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:18:57]execute_script... [22:18:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.820, "sum" : 320.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:18:57]POST & json_proto [22:18:57]process_json_proto [22:18:57]json parsed OK: [22:18:57]protocol is kg_v1.0 [22:18:57]action value=close_receipt [22:18:57]process_action close_receipt [22:18:57]cmd_close_receipt [22:18:57]MH_GetDate [22:18:57]Write to MH i2c: F0 00 00 A5 01 95 [22:18:57]Write i2c OK [22:18:57]MH_I2C_Read... [22:18:57]Read from MH i2c: F0 [22:18:57]MH_I2C_Read... [22:18:57]Read from MH i2c: F0 09 00 [22:18:57]MH_I2C_Read... [22:18:57]Read from MH i2c: F0 09 00 A5 01 00 D1 EF 5C 66 CC 51 87 64 28 [22:18:57]GetLastDocTimeStamp 1717366629 [22:18:57]current date 1717366737 [22:18:57]FM_GetShiftState [22:18:57]SAM_PROTO_GetShiftState [22:18:57]wFMCommunicate request_size=4 [22:18:57]MH_SAM_APDU [22:18:57]CAPDU: 80 13 01 00 [22:18:57]Write to MH i2c: E2 08 00 A6 01 80 13 01 00 00 00 00 00 24 [22:18:57]Write i2c OK [22:18:57]MH_I2C_Read... [22:18:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:57]Read from MH i2c: E2 [22:18:57]MH_I2C_Read... [22:18:57]Read from MH i2c: E2 0E 00 [22:18:57]MH_I2C_Read... [22:18:57]Read from MH i2c: E2 0E 00 A6 01 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 3C [22:18:57]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [22:18:58]wFMCommunicate OK [22:18:58]SAM_PROTO_GetShiftState done [22:18:58]FM_GetShiftState done [22:18:58]opened in 1717287824 [22:18:58]opened+sec_in_day 1717374224 [22:18:58]quantity*price = 32004 [22:18:58]sum+1 = 32006 [22:18:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.83 НДС 12% : 33.99 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 403 02.06.2024 22:18 Смена: 366 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148211 ФПД: 45851391343032 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T221858&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148211&fm=45851391343032&tin=02508201610067®Number=0000000000092720&sum=32000 [22:18:59]StoreToDocumentArchive [22:18:59]shift 366 fd 148211 [22:18:59]save to /storage/0366/doc_00148211 [22:18:59]save last doc name /storage/0366/doc_00148211 to /storage/kkm_last_doc_name [22:18:59]save OK [22:18:59]Clear old archive folders... [22:18:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:18:59]tlvbuf is 012726E0 [22:18:59]SAM_PROTO_ClearQueue [22:18:59]wFMCommunicate request_size=4 [22:18:59]MH_SAM_APDU [22:18:59]CAPDU: 80 09 00 00 [22:18:59]Write to MH i2c: E2 08 00 B3 01 80 09 00 00 00 00 00 00 26 [22:18:59]Write i2c OK [22:18:59]MH_I2C_Read... [22:18:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:18:59]Read from MH i2c: E2 [22:18:59]MH_I2C_Read... [22:18:59]Read from MH i2c: E2 03 00 [22:18:59]MH_I2C_Read... [22:18:59]Read from MH i2c: E2 03 00 B3 01 00 90 00 28 [22:18:59]RAPDU: 90 00 [22:18:59]wFMCommunicate OK [22:18:59]SAM_PROTO_ClearQueue done [22:18:59]KKMCreateOFDPacket [22:18:59]OFDProtocolAddRootSTLVToBuf [22:18:59]FM_MakeSignedData [22:18:59]FM_MakeSignedData [22:18:59]SAM_PROTO_SignData [22:18:59]wFMCommunicate request_size=4 [22:18:59]MH_SAM_APDU [22:18:59]CAPDU: 80 0D 01 02 [22:18:59]Write to MH i2c: E2 08 00 B4 01 80 0D 01 02 00 00 00 00 2E [22:18:59]Write i2c OK [22:18:59]MH_I2C_Read... [22:18:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:18:59]Read from MH i2c: E2 [22:18:59]MH_I2C_Read... [22:18:59]Read from MH i2c: E2 03 00 [22:18:59]MH_I2C_Read... [22:18:59]Read from MH i2c: E2 03 00 B4 01 00 90 00 29 [22:18:59]RAPDU: 90 00 [22:18:59]wFMCommunicate OK [22:18:59]wFMCommunicate request_size=255 [22:18:59]MH_SAM_APDU [22:18:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 01 00 00 F4 03 04 00 D2 EF 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F3 42 02 00 35 04 06 00 29 [22:19:00]Write to MH i2c: E2 02 01 B5 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 01 00 00 F4 03 04 00 D2 EF 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F3 42 02 00 35 04 06 00 29 00 00 F4 [22:19:00]Write i2c OK [22:19:00]MH_I2C_Read... [22:19:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:00]Read from MH i2c: E2 [22:19:00]MH_I2C_Read... [22:19:00]Read from MH i2c: E2 03 00 [22:19:00]MH_I2C_Read... [22:19:00]Read from MH i2c: E2 03 00 B5 01 00 90 00 2A [22:19:00]RAPDU: 90 00 [22:19:00]wFMCommunicate OK [22:19:00]wFMCommunicate request_size=10 [22:19:00]MH_SAM_APDU [22:19:00]CAPDU: 80 0D 02 02 05 B3 9B E4 B9 B8 [22:19:00]Write to MH i2c: E2 0D 00 B6 01 80 0D 02 02 05 00 B3 9B E4 B9 B8 00 00 DE [22:19:00]Write i2c OK [22:19:00]MH_I2C_Read... [22:19:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:00]Read from MH i2c: E2 [22:19:00]MH_I2C_Read... [22:19:00]Read from MH i2c: E2 03 00 [22:19:00]MH_I2C_Read... [22:19:00]Read from MH i2c: E2 03 00 B6 01 00 90 00 2B [22:19:00]RAPDU: 90 00 [22:19:00]wFMCommunicate OK [22:19:00]wFMCommunicate request_size=4 [22:19:00]MH_SAM_APDU [22:19:00]CAPDU: 80 0D 03 02 [22:19:00]Write to MH i2c: E2 08 00 B7 01 80 0D 03 02 00 00 00 00 33 [22:19:00]Write i2c OK [22:19:00]MH_I2C_Read... [22:19:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:19:00]Read from MH i2c: E2 [22:19:00]MH_I2C_Read... [22:19:00]Read from MH i2c: E2 0B 00 [22:19:00]MH_I2C_Read... [22:19:00]Read from MH i2c: E2 0B 00 B7 01 00 AD B5 45 9D 69 5A 5F E7 90 00 81 [22:19:00]RAPDU: AD B5 45 9D 69 5A 5F E7 90 00 [22:19:00]wFMCommunicate OK [22:19:00]SAM_PROTO_SignData done [22:19:00]FM_MakeSignedData done [22:19:00]CreateOFDProtocolMessage [22:19:00]wFMCommunicate request_size=4 [22:19:00]MH_SAM_APDU [22:19:00]CAPDU: 80 11 00 00 [22:19:00]Write to MH i2c: E2 08 00 B8 01 80 11 00 00 00 00 00 00 33 [22:19:00]Write i2c OK [22:19:00]MH_I2C_Read... [22:19:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:01]Read from MH i2c: E2 [22:19:01]MH_I2C_Read... [22:19:01]Read from MH i2c: E2 17 00 [22:19:01]MH_I2C_Read... [22:19:01]Read from MH i2c: E2 17 00 B8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 86 [22:19:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:19:01]wFMCommunicate OK [22:19:01]CreateOFDProtocolMessage done [22:19:01]OFDSenderStorePacket 148211 [22:19:01]StoreOFDPacket docnum=148211 [22:19:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 E3 14 07 01 3E 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 01 00 00 F4 03 04 00 D2 EF 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F3 42 02 00 35 04 06 00 29 B3 9B E4 B9 B8 AD B5 45 9D 69 5A 5F E7 [22:19:01]CheckFolder [22:19:01]dirname=/storage/ofd_packets [22:19:01]CheckFolder done [22:19:01]ProducePacketName [22:19:01]name=ofd_packets/00148211 [22:19:01]NVStorageSaveData ofd_packets/00148211 [22:19:01]File name is /storage/ofd_packets/00148211 [22:19:01]Write 301 bytes [22:19:01]NVStorageSaveData done [22:19:01]OFDSenderStorePacket done [22:19:01]KKMCreateOFDPacket done [22:19:01]NVStorageSaveData kkm_last_timestamp [22:19:01]File name is /storage/kkm_last_timestamp [22:19:01]Write 4 bytes [22:19:01]NVStorageSaveData done [22:19:01]ExternCall_PrintAddStr [22:19:01]wPrintStart [22:19:01]Write to MH i2c: 01 00 00 B9 01 BA [22:19:01]Write i2c OK [22:19:01]MH_I2C_Read... [22:19:01]Read from MH i2c: 01 [22:19:01]MH_I2C_Read... [22:19:01]Read from MH i2c: 01 07 00 [22:19:01]MH_I2C_Read... [22:19:01]Read from MH i2c: 01 07 00 B9 01 00 00 00 00 00 FF 0F CF [22:19:01]RasterBufferAndPrint [22:19:01]line Счет N : (1)979151 [22:19:01]line ИНН: 02508201610067 [22:19:01]line Контрольно-Кассовый Чек [22:19:01]line ПРОДАЖА [22:19:01]line ТРК (МРК, ГНК) : 41 [22:19:01]line Товар: 2710124130 [22:19:01]line Аи-92-К-5 [22:19:01]line 4.820 * 66.40 [22:19:01]line = 320.05 [22:19:01]line НДС 12% НСП 1% [22:19:01]line > о реализуемом товаре [22:19:01]line ОКРУГЛЕНИЕ: -0.05 [22:19:01]line ИТОГО: 320.00 [22:19:01]line Внесено: 320.00 [22:19:01]line СДАЧА: 0.00 [22:19:01]line НСП 1% : 2.83 [22:19:01]line НДС 12% : 33.99 [22:19:01]line Наличными: 320.00 [22:19:01]line Безнал.: 0.00 [22:19:01]line Место: АЗС № 68 "Партнер Нефть" [22:19:01]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:19:01]line СНО: Общий режим [22:19:01]line Чек 403 02.06.2024 22:18 [22:19:01]line Смена: 366 ФФД: 1.0 [22:19:01]line ЗНМ: 0300000035 [22:19:01]line РНМ: 0000000000092720 [22:19:01]line Версия ККМ: 001 [22:19:01]line ФМ: 0000000000875057 [22:19:01]line ФД: 148211 [22:19:01]line ФПД: 45851391343032 [22:19:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T221858&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148211&fm=45851391343032&tin=02508201610067®Number=0000000000092720&sum=32000 [22:19:01]OFD Sender: Processing packet 148211 [packets to send 99, broken 98] [22:19:01]ProducePacketName [22:19:01]name=ofd_packets/00148211 [22:19:01]OFD Sender: To server: pG, [22:19:01]CommunicateWithHost lk.salyk.kg:30040 [22:19:01]ConnectInit lk.salyk.kg [22:19:01]written 0, free lines is 4095 [22:19:01]Connected sock=11 [22:19:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 E3 14 07 01 3E 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 01 00 00 F4 03 04 00 D2 EF 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F3 42 02 00 35 04 06 00 29 B3 9B E4 B9 B8 AD B5 45 9D 69 5A 5F E7 [22:19:01]Write to MH i2c: 01 00 00 E4 01 E5 [22:19:01]Write i2c OK [22:19:01]MH_I2C_Read... [22:19:01]Read from MH i2c: 01 [22:19:01]MH_I2C_Read... [22:19:01]Read from MH i2c: 01 07 00 [22:19:01]MH_I2C_Read... [22:19:01]Read from MH i2c: 01 07 00 E4 01 00 00 00 00 00 78 0C 70 [22:19:01]RasterBufferAndPrint [22:19:01]line [22:19:01]line [22:19:01]line [22:19:01]line [22:19:01]line [22:19:01]written 0, free lines is 3222 [22:19:01]MH_Cut [22:19:01]Write to MH i2c: D1 01 00 EB 01 01 BE [22:19:01]Write i2c OK [22:19:01]MH_I2C_Read... [22:19:01]Read from MH i2c: D1 [22:19:01]MH_I2C_Read... [22:19:01]Read from MH i2c: D1 01 00 [22:19:01]MH_I2C_Read... [22:19:01]Read from MH i2c: D1 01 00 EB 01 00 BD [22:19:01]Write to MH i2c: 01 00 00 EC 01 ED [22:19:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 BA A5 47 00 Write i2c OK [22:19:01]B3 MH_I2C_Read... [22:19:01]20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F3 42 02 00 F4 03 04 00 FC 96 5C 66 B6 04 01 00 00 1E D4 79 E3 30 2C 9A 26 [22:19:02]CommunicateWithHost err = 0 [22:19:02]CheckOFDResponse [22:19:02]1017 (14) - 77093643461234 [22:19:02]1041 (16) - 0000000000875057 [22:19:02]1040 (4) - 148211 [22:19:02]1012 (4) - 02.06.2024 15:59 [22:19:02]1206 (1) - 0 [22:19:02]OFD Sender: Remove packet 148211 [22:19:02]ProducePacketName [22:19:02]name=ofd_packets/00148211 [22:19:02]NVStorageDeleteData [22:19:02]OFD Sender: No OFD packet to send [22:19:02]*** Cut start [22:19:02]*** Partial cut [22:19:02]*** CUTSNS_PIN = 1 [22:19:02]*** CUTSNS_PIN = 0 [22:19:03]*** Brake cut motor [22:19:03]Read from MH i2c: 01 [22:19:03]MH_I2C_Read... [22:19:03]*** Stop cut motor [22:19:03]*** Cut end [22:19:03]Read from MH i2c: 01 07 00 [22:19:03]MH_I2C_Read... [22:19:03]Read from MH i2c: 01 07 00 EC 01 00 00 00 00 00 FF 0F 02 [22:19:03]process_action close_receipt done [22:19:03]requested_data is exist [22:19:03]produce_requested_data [22:19:03]requested_item fm.sn is exist - process it [22:19:03]wFMCommunicate request_size=4 [22:19:03]MH_SAM_APDU [22:19:03]CAPDU: 80 11 00 00 [22:19:03]Write to MH i2c: E2 08 00 ED 01 80 11 00 00 00 00 00 00 68 [22:19:03]Write i2c OK [22:19:03]MH_I2C_Read... [22:19:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:03]Read from MH i2c: E2 [22:19:03]MH_I2C_Read... [22:19:03]Read from MH i2c: E2 17 00 [22:19:03]MH_I2C_Read... [22:19:03]Read from MH i2c: E2 17 00 ED 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 BB [22:19:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:19:03]wFMCommunicate OK [22:19:03]requested_item fd.num is exist - process it [22:19:03]SAM_PROTO_GetFieldsCounters [22:19:03]wFMCommunicate request_size=4 [22:19:03]MH_SAM_APDU [22:19:03]CAPDU: 80 13 00 00 [22:19:03]Write to MH i2c: E2 08 00 EE 01 80 13 00 00 00 00 00 00 6B [22:19:03]Write i2c OK [22:19:03]MH_I2C_Read... [22:19:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:19:03]Read from MH i2c: E2 [22:19:03]MH_I2C_Read... [22:19:03]Read from MH i2c: E2 62 00 [22:19:03]MH_I2C_Read... [22:19:03]Read from MH i2c: E2 62 00 EE 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F3 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 93 01 00 00 5E 04 04 00 93 01 00 00 57 04 04 00 94 01 00 00 19 04 04 00 00 00 00 00 90 00 E9 [22:19:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F3 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 93 01 00 00 5E 04 04 00 93 01 00 00 57 04 04 00 94 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:19:04]wFMCommunicate OK [22:19:04]SAM_PROTO_GetFieldsCounters done [22:19:04]requested_item shift.num is exist - process it [22:19:04]requested_item shift.opened is exist - process it [22:19:04]req_shift_opened [22:19:04]FM_GetShiftState [22:19:04]SAM_PROTO_GetShiftState [22:19:04]wFMCommunicate request_size=4 [22:19:04]MH_SAM_APDU [22:19:04]CAPDU: 80 13 01 00 [22:19:04]Write to MH i2c: E2 08 00 EF 01 80 13 01 00 00 00 00 00 6D [22:19:04]Write i2c OK [22:19:04]MH_I2C_Read... [22:19:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:04]Read from MH i2c: E2 [22:19:04]MH_I2C_Read... [22:19:04]Read from MH i2c: E2 0E 00 [22:19:04]MH_I2C_Read... [22:19:04]Read from MH i2c: E2 0E 00 EF 01 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 85 [22:19:04]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [22:19:04]wFMCommunicate OK [22:19:04]SAM_PROTO_GetShiftState done [22:19:04]FM_GetShiftState done [22:19:04]req_shift_opened done [22:19:04]requested_item shift.open_date is exist - process it [22:19:04]req_shift_open_date [22:19:04]req_shift_open_date done [22:19:04]produce_requested_data done [22:19:04]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148211,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [22:19:04]process_action_free close_receipt [22:19:04]json_value_free [22:19:04]json_value_free done [22:19:04]process_json_proto returns [22:19:04]Send response to host [22:19:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148211,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [22:19:04]free response buf [22:19:04]execute_script done [22:19:04]execute_script returns [22:19:04]free content buf [22:19:04]Sock 10.Close socket [22:19:04]Sock 10.Thread stoped [22:19:07]OFD Sender: No OFD packet to send [22:19:10]accept exits with 9 [22:19:10]New connection [22:19:10]New thread 3067432292 created [22:19:10]Thread 3067288932 joined [22:19:10]Waiting for new connection... [22:19:10] Sock 9.Parse request [22:19:10]Sock 9.Check first char [22:19:10]Sock 9.First char is OK [22:19:10]request: POST /json_proto HTTP/1.0 [22:19:10]Method: POST [22:19:10]URL: /json_proto [22:19:10]Method is POST - this is cgi request [22:19:10]url: /json_proto [22:19:10]query_string will be loaded in cgi processing [22:19:10]execute_cgi json_proto POST (null) [22:19:10]execute_cgi path=json_proto method=POST [22:19:10]POST find Content-Length [22:19:10]Host: 172.17.38.4:8080 [22:19:10]Content-Length: 674 [22:19:10]Content-Type: application/json [22:19:10] [22:19:10]POST finish read [22:19:10]Found Content-Length = 674 [22:19:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 2.750, "sum" : 200.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:19:10]execute_script... [22:19:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979152", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 2.750, "sum" : 200.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:19:10]POST & json_proto [22:19:10]process_json_proto [22:19:10]json parsed OK: [22:19:10]protocol is kg_v1.0 [22:19:10]action value=close_receipt [22:19:10]process_action close_receipt [22:19:10]cmd_close_receipt [22:19:10]MH_GetDate [22:19:10]Write to MH i2c: F0 00 00 F0 01 E0 [22:19:10]Write i2c OK [22:19:10]MH_I2C_Read... [22:19:10]Read from MH i2c: F0 [22:19:10]MH_I2C_Read... [22:19:10]Read from MH i2c: F0 09 00 [22:19:10]MH_I2C_Read... [22:19:10]Read from MH i2c: F0 09 00 F0 01 00 DE EF 5C 66 CC 51 87 64 80 [22:19:10]GetLastDocTimeStamp 1717366738 [22:19:10]current date 1717366750 [22:19:10]FM_GetShiftState [22:19:10]SAM_PROTO_GetShiftState [22:19:10]wFMCommunicate request_size=4 [22:19:10]MH_SAM_APDU [22:19:10]CAPDU: 80 13 01 00 [22:19:10]Write to MH i2c: E2 08 00 F1 01 80 13 01 00 00 00 00 00 6F [22:19:10]Write i2c OK [22:19:10]MH_I2C_Read... [22:19:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:10]Read from MH i2c: E2 [22:19:10]MH_I2C_Read... [22:19:10]Read from MH i2c: E2 0E 00 [22:19:10]MH_I2C_Read... [22:19:10]Read from MH i2c: E2 0E 00 F1 01 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 87 [22:19:10]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [22:19:10]wFMCommunicate OK [22:19:10]SAM_PROTO_GetShiftState done [22:19:10]FM_GetShiftState done [22:19:10]opened in 1717287824 [22:19:10]opened+sec_in_day 1717374224 [22:19:10]quantity*price = 20047 [22:19:10]sum+1 = 20049 [22:19:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 404 02.06.2024 22:19 Смена: 366 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148212 ФПД: 225691020514381 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T221910&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148212&fm=225691020514381&tin=02508201610067®Number=0000000000092720&sum=20000 [22:19:12]StoreToDocumentArchive [22:19:12]shift 366 fd 148212 [22:19:12]save to /storage/0366/doc_00148212 [22:19:12]save last doc name /storage/0366/doc_00148212 to /storage/kkm_last_doc_name [22:19:12]save OK [22:19:12]Clear old archive folders... [22:19:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:19:12]tlvbuf is 01292350 [22:19:12]SAM_PROTO_ClearQueue [22:19:12]wFMCommunicate request_size=4 [22:19:12]MH_SAM_APDU [22:19:12]CAPDU: 80 09 00 00 [22:19:12]Write to MH i2c: E2 08 00 FE 01 80 09 00 00 00 00 00 00 71 [22:19:12]Write i2c OK [22:19:12]MH_I2C_Read... [22:19:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:19:12]Read from MH i2c: E2 [22:19:12]MH_I2C_Read... [22:19:12]Read from MH i2c: E2 03 00 [22:19:12]MH_I2C_Read... [22:19:12]Read from MH i2c: E2 03 00 FE 01 00 90 00 73 [22:19:12]RAPDU: 90 00 [22:19:12]wFMCommunicate OK [22:19:12]SAM_PROTO_ClearQueue done [22:19:12]KKMCreateOFDPacket [22:19:12]OFDProtocolAddRootSTLVToBuf [22:19:12]FM_MakeSignedData [22:19:12]FM_MakeSignedData [22:19:12]SAM_PROTO_SignData [22:19:12]wFMCommunicate request_size=4 [22:19:12]MH_SAM_APDU [22:19:12]CAPDU: 80 0D 01 02 [22:19:12]Write to MH i2c: E2 08 00 FF 01 80 0D 01 02 00 00 00 00 79 [22:19:12]OFD Sender: No OFD packet to send [22:19:12]Write i2c OK [22:19:12]MH_I2C_Read... [22:19:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:19:12]Read from MH i2c: E2 [22:19:12]MH_I2C_Read... [22:19:12]Read from MH i2c: E2 03 00 [22:19:12]MH_I2C_Read... [22:19:12]Read from MH i2c: E2 03 00 FF 01 00 90 00 74 [22:19:12]RAPDU: 90 00 [22:19:12]wFMCommunicate OK [22:19:12]wFMCommunicate request_size=255 [22:19:12]MH_SAM_APDU [22:19:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 DE EF 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F4 42 02 00 35 04 06 00 CD 43 C9 1B [22:19:13]Write to MH i2c: E2 02 01 00 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 DE EF 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F4 42 02 00 35 04 06 00 CD 43 C9 1B 00 00 73 [22:19:13]Write i2c OK [22:19:13]MH_I2C_Read... [22:19:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:13]Read from MH i2c: E2 [22:19:13]MH_I2C_Read... [22:19:13]Read from MH i2c: E2 03 00 [22:19:13]MH_I2C_Read... [22:19:13]Read from MH i2c: E2 03 00 00 02 00 90 00 76 [22:19:13]RAPDU: 90 00 [22:19:13]wFMCommunicate OK [22:19:13]wFMCommunicate request_size=7 [22:19:13]MH_SAM_APDU [22:19:13]CAPDU: 80 0D 02 02 02 54 4D [22:19:13]Write to MH i2c: E2 0A 00 01 02 80 0D 02 02 02 00 54 4D 00 00 22 [22:19:13]Write i2c OK [22:19:13]MH_I2C_Read... [22:19:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:13]Read from MH i2c: E2 [22:19:13]MH_I2C_Read... [22:19:13]Read from MH i2c: E2 03 00 [22:19:13]MH_I2C_Read... [22:19:13]Read from MH i2c: E2 03 00 01 02 00 90 00 77 [22:19:13]RAPDU: 90 00 [22:19:13]wFMCommunicate OK [22:19:13]wFMCommunicate request_size=4 [22:19:13]MH_SAM_APDU [22:19:13]CAPDU: 80 0D 03 02 [22:19:13]Write to MH i2c: E2 08 00 02 02 80 0D 03 02 00 00 00 00 7F [22:19:13]Write i2c OK [22:19:13]MH_I2C_Read... [22:19:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:19:13]Read from MH i2c: E2 [22:19:13]MH_I2C_Read... [22:19:13]Read from MH i2c: E2 0B 00 [22:19:13]MH_I2C_Read... [22:19:13]Read from MH i2c: E2 0B 00 02 02 00 61 9D 7C EE B4 87 39 37 90 00 93 [22:19:13]RAPDU: 61 9D 7C EE B4 87 39 37 90 00 [22:19:13]wFMCommunicate OK [22:19:13]SAM_PROTO_SignData done [22:19:13]FM_MakeSignedData done [22:19:13]CreateOFDProtocolMessage [22:19:13]wFMCommunicate request_size=4 [22:19:13]MH_SAM_APDU [22:19:13]CAPDU: 80 11 00 00 [22:19:13]Write to MH i2c: E2 08 00 03 02 80 11 00 00 00 00 00 00 7F [22:19:13]Write i2c OK [22:19:13]MH_I2C_Read... [22:19:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:13]Read from MH i2c: E2 [22:19:13]MH_I2C_Read... [22:19:13]Read from MH i2c: E2 17 00 [22:19:13]MH_I2C_Read... [22:19:13]Read from MH i2c: E2 17 00 03 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D2 [22:19:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:19:14]wFMCommunicate OK [22:19:14]CreateOFDProtocolMessage done [22:19:14]OFDSenderStorePacket 148212 [22:19:14]StoreOFDPacket docnum=148212 [22:19:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 33 5E 04 01 25 43 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 DE EF 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F4 42 02 00 35 04 06 00 CD 43 C9 1B 54 4D 61 9D 7C EE B4 87 39 37 [22:19:14]CheckFolder [22:19:14]dirname=/storage/ofd_packets [22:19:14]CheckFolder done [22:19:14]ProducePacketName [22:19:14]name=ofd_packets/00148212 [22:19:14]NVStorageSaveData ofd_packets/00148212 [22:19:14]File name is /storage/ofd_packets/00148212 [22:19:14]Write 298 bytes [22:19:14]NVStorageSaveData done [22:19:14]OFDSenderStorePacket done [22:19:14]KKMCreateOFDPacket done [22:19:14]NVStorageSaveData kkm_last_timestamp [22:19:14]File name is /storage/kkm_last_timestamp [22:19:14]Write 4 bytes [22:19:14]NVStorageSaveData done [22:19:14]ExternCall_PrintAddStr [22:19:14]wPrintStart [22:19:14]Write to MH i2c: 01 00 00 04 02 06 [22:19:14]Write i2c OK [22:19:14]MH_I2C_Read... [22:19:14]Read from MH i2c: 01 [22:19:14]MH_I2C_Read... [22:19:14]Read from MH i2c: 01 07 00 [22:19:14]MH_I2C_Read... [22:19:14]Read from MH i2c: 01 07 00 04 02 00 00 00 00 00 FF 0F 1B [22:19:14]RasterBufferAndPrint [22:19:14]line Счет N : (1)979152 [22:19:14]line ИНН: 02508201610067 [22:19:14]line Контрольно-Кассовый Чек [22:19:14]line ПРОДАЖА [22:19:14]line ТРК (МРК, ГНК) : 51 [22:19:14]line Товар: 2710194210 [22:19:14]line ДТ-К-5 [22:19:14]line 2.750 * 72.90 [22:19:14]line = 200.48 [22:19:14]line НДС 12% НСП 1% [22:19:14]line > о реализуемом товаре [22:19:14]line ОКРУГЛЕНИЕ: -0.48 [22:19:14]line ИТОГО: 200.00 [22:19:14]line Внесено: 200.00 [22:19:14]line СДАЧА: 0.00 [22:19:14]line НСП 1% : 1.77 [22:19:14]line НДС 12% : 21.29 [22:19:14]line Наличными: 200.00 [22:19:14]line Безнал.: 0.00 [22:19:14]line Место: АЗС № 68 "Партнер Нефть" [22:19:14]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:19:14]line СНО: Общий режим [22:19:14]line Чек 404 02.06.2024 22:19 [22:19:14]line Смена: 366 ФФД: 1.0 [22:19:14]line ЗНМ: 0300000035 [22:19:14]line РНМ: 0000000000092720 [22:19:14]line Версия ККМ: 001 [22:19:14]line ФМ: 0000000000875057 [22:19:14]line ФД: 148212 [22:19:14]line ФПД: 225691020514381 [22:19:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T221910&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148212&fm=225691020514381&tin=02508201610067®Number=0000000000092720&sum=20000 [22:19:14]OFD Sender: Processing packet 148212 [packets to send 99, broken 98] [22:19:14]ProducePacketName [22:19:14]name=ofd_packets/00148212 [22:19:14]OFD Sender: To server: pG, [22:19:14]CommunicateWithHost lk.salyk.kg:30040 [22:19:14]ConnectInit lk.salyk.kg [22:19:14]written 0, free lines is 4095 [22:19:14]Connected sock=11 [22:19:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 33 5E 04 01 25 43 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 01 00 00 F4 03 04 00 DE EF 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F4 42 02 00 35 04 06 00 CD 43 C9 1B 54 Write to MH i2c: 4D 01 61 00 9D 00 7C 2F 02 31 [22:19:14]EE B4 87 39 37 [22:19:14]Write i2c OK [22:19:14]MH_I2C_Read... [22:19:14]Read from MH i2c: 01 [22:19:14]MH_I2C_Read... [22:19:14]Read from MH i2c: 01 07 00 [22:19:14]MH_I2C_Read... [22:19:14]Read from MH i2c: 01 07 00 2F 02 00 00 00 00 00 E7 0C 2B [22:19:14]RasterBufferAndPrint [22:19:14]line [22:19:14]line [22:19:14]line [22:19:14]line [22:19:14]line [22:19:14]written 0, free lines is 3368 [22:19:14]MH_Cut [22:19:14]Write to MH i2c: D1 01 00 36 02 01 0A [22:19:14]Write i2c OK [22:19:14]MH_I2C_Read... [22:19:14]Read from MH i2c: D1 [22:19:14]MH_I2C_Read... [22:19:14]Read from MH i2c: D1 01 00 [22:19:14]MH_I2C_Read... [22:19:14]Read from MH i2c: D1 01 00 36 02 00 09 [22:19:14]Write to MH i2c: 01 00 00 37 02 39 [22:19:14]Write i2c OK [22:19:14]MH_I2C_Read... [22:19:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 A6 37 47 00 55 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F4 42 02 00 F4 03 04 00 09 97 5C 66 B6 04 01 00 00 AF A0 8E 57 48 09 86 D1 [22:19:15]CommunicateWithHost err = 0 [22:19:15]CheckOFDResponse [22:19:15]1017 (14) - 77093643461234 [22:19:15]1041 (16) - 0000000000875057 [22:19:15]1040 (4) - 148212 [22:19:15]1012 (4) - 02.06.2024 16:00 [22:19:15]1206 (1) - 0 [22:19:15]OFD Sender: Remove packet 148212 [22:19:15]ProducePacketName [22:19:15]name=ofd_packets/00148212 [22:19:15]NVStorageDeleteData [22:19:15]OFD Sender: No OFD packet to send [22:19:15]*** Cut start [22:19:15]*** Partial cut [22:19:15]*** CUTSNS_PIN = 1 [22:19:15]*** CUTSNS_PIN = 0 [22:19:16]*** Brake cut motor [22:19:16]Read from MH i2c: 01 [22:19:16]MH_I2C_Read... [22:19:16]*** Stop cut motor [22:19:16]*** Cut end [22:19:16]Read from MH i2c: 01 07 00 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: 01 07 00 37 02 00 00 00 00 00 FF 0F 4E [22:19:16]process_action close_receipt done [22:19:16]requested_data is exist [22:19:16]produce_requested_data [22:19:16]requested_item fm.sn is exist - process it [22:19:16]wFMCommunicate request_size=4 [22:19:16]MH_SAM_APDU [22:19:16]CAPDU: 80 11 00 00 [22:19:16]Write to MH i2c: E2 08 00 38 02 80 11 00 00 00 00 00 00 B4 [22:19:16]Write i2c OK [22:19:16]MH_I2C_Read... [22:19:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:16]Read from MH i2c: E2 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: E2 17 00 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: E2 17 00 38 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 07 [22:19:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:19:16]wFMCommunicate OK [22:19:16]requested_item fd.num is exist - process it [22:19:16]SAM_PROTO_GetFieldsCounters [22:19:16]wFMCommunicate request_size=4 [22:19:16]MH_SAM_APDU [22:19:16]CAPDU: 80 13 00 00 [22:19:16]Write to MH i2c: E2 08 00 39 02 80 13 00 00 00 00 00 00 B7 [22:19:16]Write i2c OK [22:19:16]MH_I2C_Read... [22:19:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:19:16]Read from MH i2c: E2 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: E2 62 00 [22:19:16]MH_I2C_Read... [22:19:16]Read from MH i2c: E2 62 00 39 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F4 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 94 01 00 00 5E 04 04 00 94 01 00 00 57 04 04 00 95 01 00 00 19 04 04 00 00 00 00 00 90 00 39 [22:19:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F4 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 94 01 00 00 5E 04 04 00 94 01 00 00 57 04 04 00 95 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:19:17]wFMCommunicate OK [22:19:17]SAM_PROTO_GetFieldsCounters done [22:19:17]requested_item shift.num is exist - process it [22:19:17]requested_item shift.opened is exist - process it [22:19:17]req_shift_opened [22:19:17]FM_GetShiftState [22:19:17]SAM_PROTO_GetShiftState [22:19:17]wFMCommunicate request_size=4 [22:19:17]MH_SAM_APDU [22:19:17]CAPDU: 80 13 01 00 [22:19:17]Write to MH i2c: E2 08 00 3A 02 80 13 01 00 00 00 00 00 B9 [22:19:17]Write i2c OK [22:19:17]MH_I2C_Read... [22:19:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:17]Read from MH i2c: E2 [22:19:17]MH_I2C_Read... [22:19:17]Read from MH i2c: E2 0E 00 [22:19:17]MH_I2C_Read... [22:19:17]Read from MH i2c: E2 0E 00 3A 02 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 D1 [22:19:17]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [22:19:17]wFMCommunicate OK [22:19:17]SAM_PROTO_GetShiftState done [22:19:17]FM_GetShiftState done [22:19:17]req_shift_opened done [22:19:17]requested_item shift.open_date is exist - process it [22:19:17]req_shift_open_date [22:19:17]req_shift_open_date done [22:19:17]produce_requested_data done [22:19:17]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148212,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [22:19:17]process_action_free close_receipt [22:19:17]json_value_free [22:19:17]json_value_free done [22:19:17]process_json_proto returns [22:19:17]Send response to host [22:19:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148212,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [22:19:17]free response buf [22:19:17]execute_script done [22:19:17]execute_script returns [22:19:17]free content buf [22:19:17]Sock 9.Close socket [22:19:17]Sock 9.Thread stoped [22:19:20]OFD Sender: No OFD packet to send [22:19:25]OFD Sender: No OFD packet to send [22:19:29]ConnectInit Can't connect to host [22:19:30]OFD Sender: No OFD packet to send [22:19:35]OFD Sender: No OFD packet to send [22:19:40]OFD Sender: No OFD packet to send [22:19:45]OFD Sender: No OFD packet to send [22:19:50]OFD Sender: No OFD packet to send [22:19:55]OFD Sender: No OFD packet to send [22:20:00]OFD Sender: No OFD packet to send [22:20:05]OFD Sender: No OFD packet to send [22:20:08]accept exits with 10 [22:20:08]New connection [22:20:08]New thread 3067288932 created [22:20:08]Thread 3067432292 joined [22:20:08]Waiting for new connection... [22:20:08] Sock 10.Parse request [22:20:08]Sock 10.Check first char [22:20:08]Sock 10.First char is OK [22:20:08]request: POST /json_proto HTTP/1.0 [22:20:08]Method: POST [22:20:08]URL: /json_proto [22:20:08]Method is POST - this is cgi request [22:20:08]url: /json_proto [22:20:08]query_string will be loaded in cgi processing [22:20:08]execute_cgi json_proto POST (null) [22:20:08]execute_cgi path=json_proto method=POST [22:20:08]POST find Content-Length [22:20:08]Host: 172.17.38.4:8080 [22:20:08]Content-Length: 734 [22:20:08]Content-Type: application/json [22:20:08] [22:20:08]POST finish read [22:20:08]Found Content-Length = 734 [22:20:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 148211, "base_FM": "0000000000875057", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.820, "sum" : 320.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:20:08]execute_script... [22:20:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 148211, "base_FM": "0000000000875057", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.820, "sum" : 320.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:20:08]POST & json_proto [22:20:08]process_json_proto [22:20:08]json parsed OK: [22:20:08]protocol is kg_v1.0 [22:20:08]action value=close_receipt [22:20:08]process_action close_receipt [22:20:08]cmd_close_receipt [22:20:08]MH_GetDate [22:20:08]Write to MH i2c: F0 00 00 3B 02 2C [22:20:08]Write i2c OK [22:20:08]MH_I2C_Read... [22:20:08]Read from MH i2c: F0 [22:20:08]MH_I2C_Read... [22:20:08]Read from MH i2c: F0 09 00 [22:20:08]MH_I2C_Read... [22:20:08]Read from MH i2c: F0 09 00 3B 02 00 18 F0 5C 66 CC 51 87 64 07 [22:20:08]GetLastDocTimeStamp 1717366750 [22:20:08]current date 1717366808 [22:20:08]FM_GetShiftState [22:20:08]SAM_PROTO_GetShiftState [22:20:08]wFMCommunicate request_size=4 [22:20:08]MH_SAM_APDU [22:20:08]CAPDU: 80 13 01 00 [22:20:08]Write to MH i2c: E2 08 00 3C 02 80 13 01 00 00 00 00 00 BB [22:20:08]Write i2c OK [22:20:08]MH_I2C_Read... [22:20:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:20:08]Read from MH i2c: E2 [22:20:08]MH_I2C_Read... [22:20:08]Read from MH i2c: E2 0E 00 [22:20:08]MH_I2C_Read... [22:20:08]Read from MH i2c: E2 0E 00 3C 02 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 D3 [22:20:08]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [22:20:08]wFMCommunicate OK [22:20:08]SAM_PROTO_GetShiftState done [22:20:08]FM_GetShiftState done [22:20:08]opened in 1717287824 [22:20:08]opened+sec_in_day 1717374224 [22:20:08]quantity*price = 32004 [22:20:08]sum+1 = 32006 [22:20:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 320.00 НСП 1% : 2.83 НДС 12% : 33.99 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 405 02.06.2024 22:20 Смена: 366 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФД осн.: 148211 ФМ осн.: 0000000000875057 ФМ: 0000000000875057 ФД: 148213 ФПД: 123923987966667 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T222008&type=2&operation_type=1&fn_number=0000000000875057&fd_number=148213&fm=123923987966667&tin=02508201610067®Number=0000000000092720&sum=32000 [22:20:11]StoreToDocumentArchive [22:20:11]shift 366 fd 148213 [22:20:11]save to /storage/0366/doc_00148213 [22:20:11]save last doc name /storage/0366/doc_00148213 to /storage/kkm_last_doc_name [22:20:11]save OK [22:20:11]Clear old archive folders... [22:20:11]ProcessDocumentItem done err = 0, tmpTLVsize=279 [22:20:11]tlvbuf is 011632A0 [22:20:11]SAM_PROTO_ClearQueue [22:20:11]wFMCommunicate request_size=4 [22:20:11]MH_SAM_APDU [22:20:11]CAPDU: 80 09 00 00 [22:20:11]Write to MH i2c: E2 08 00 4B 02 80 09 00 00 00 00 00 00 BF [22:20:11]Write i2c OK [22:20:11]MH_I2C_Read... [22:20:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:20:11]Read from MH i2c: E2 [22:20:11]MH_I2C_Read... [22:20:11]Read from MH i2c: E2 03 00 [22:20:11]MH_I2C_Read... [22:20:11]Read from MH i2c: E2 03 00 4B 02 00 90 00 C1 [22:20:11]RAPDU: 90 00 [22:20:11]wFMCommunicate OK [22:20:11]SAM_PROTO_ClearQueue done [22:20:11]KKMCreateOFDPacket [22:20:11]OFDProtocolAddRootSTLVToBuf [22:20:11]FM_MakeSignedData [22:20:11]FM_MakeSignedData [22:20:11]SAM_PROTO_SignData [22:20:11]wFMCommunicate request_size=4 [22:20:11]MH_SAM_APDU [22:20:11]CAPDU: 80 0D 01 02 [22:20:11]Write to MH i2c: E2 08 00 4C 02 80 0D 01 02 00 00 00 00 C7 [22:20:11]Write i2c OK [22:20:11]MH_I2C_Read... [22:20:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:20:11]Read from MH i2c: E2 [22:20:11]MH_I2C_Read... [22:20:11]Read from MH i2c: E2 03 00 [22:20:11]MH_I2C_Read... [22:20:11]Read from MH i2c: E2 03 00 4C 02 00 90 00 C2 [22:20:11]RAPDU: 90 00 [22:20:11]wFMCommunicate OK [22:20:11]wFMCommunicate request_size=255 [22:20:11]MH_SAM_APDU [22:20:11]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 01 00 00 F4 03 04 00 18 F0 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 27 04 04 00 F3 42 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 11 04 10 00 30 [22:20:11]Write to MH i2c: E2 02 01 4D 02 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 01 00 00 F4 03 04 00 18 F0 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 27 04 04 00 F3 42 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 11 04 10 00 30 00 00 0F [22:20:11]Write i2c OK [22:20:11]MH_I2C_Read... [22:20:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:20:12]Read from MH i2c: E2 [22:20:12]MH_I2C_Read... [22:20:12]Read from MH i2c: E2 03 00 [22:20:12]MH_I2C_Read... [22:20:12]Read from MH i2c: E2 03 00 4D 02 00 90 00 C3 [22:20:12]RAPDU: 90 00 [22:20:12]wFMCommunicate OK [22:20:12]wFMCommunicate request_size=38 [22:20:12]MH_SAM_APDU [22:20:12]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F5 42 02 00 35 04 06 00 70 B5 4D 48 2A CB [22:20:12]Write to MH i2c: E2 29 00 4E 02 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F5 42 02 00 35 04 06 00 70 B5 4D 48 2A CB 00 00 3B [22:20:12]Write i2c OK [22:20:12]MH_I2C_Read... [22:20:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:20:12]Read from MH i2c: E2 [22:20:12]MH_I2C_Read... [22:20:12]Read from MH i2c: E2 03 00 [22:20:12]MH_I2C_Read... [22:20:12]Read from MH i2c: E2 03 00 4E 02 00 90 00 C4 [22:20:12]RAPDU: 90 00 [22:20:12]wFMCommunicate OK [22:20:12]wFMCommunicate request_size=4 [22:20:12]MH_SAM_APDU [22:20:12]CAPDU: 80 0D 03 02 [22:20:12]Write to MH i2c: E2 08 00 4F 02 80 0D 03 02 00 00 00 00 CC [22:20:12]Write i2c OK [22:20:12]MH_I2C_Read... [22:20:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:20:12]Read from MH i2c: E2 [22:20:12]MH_I2C_Read... [22:20:12]Read from MH i2c: E2 0B 00 [22:20:12]MH_I2C_Read... [22:20:12]Read from MH i2c: E2 0B 00 4F 02 00 6D BB 1C 28 62 37 64 84 90 00 BA [22:20:12]RAPDU: 6D BB 1C 28 62 37 64 84 90 00 [22:20:12]wFMCommunicate OK [22:20:12]SAM_PROTO_SignData done [22:20:12]FM_MakeSignedData done [22:20:12]CreateOFDProtocolMessage [22:20:12]wFMCommunicate request_size=4 [22:20:12]MH_SAM_APDU [22:20:12]CAPDU: 80 11 00 00 [22:20:12]Write to MH i2c: E2 08 00 50 02 80 11 00 00 00 00 00 00 CC [22:20:12]Write i2c OK [22:20:12]MH_I2C_Read... [22:20:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:20:12]Read from MH i2c: E2 [22:20:12]MH_I2C_Read... [22:20:12]Read from MH i2c: E2 17 00 [22:20:12]MH_I2C_Read... [22:20:12]Read from MH i2c: E2 17 00 50 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 1F [22:20:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:20:12]wFMCommunicate OK [22:20:12]CreateOFDProtocolMessage done [22:20:12]OFDSenderStorePacket 148213 [22:20:12]StoreOFDPacket docnum=148213 [22:20:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 2B 01 00 00 5E 12 23 01 ED 4E 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 01 00 00 F4 03 04 00 18 F0 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 27 04 04 00 F3 42 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F5 42 02 00 35 04 06 00 70 B5 4D 48 2A CB 6D BB 1C 28 62 37 64 84 [22:20:12]CheckFolder [22:20:12]dirname=/storage/ofd_packets [22:20:12]CheckFolder done [22:20:12]ProducePacketName [22:20:12]name=ofd_packets/00148213 [22:20:12]NVStorageSaveData ofd_packets/00148213 [22:20:12]File name is /storage/ofd_packets/00148213 [22:20:12]Write 329 bytes [22:20:12]NVStorageSaveData done [22:20:12]OFDSenderStorePacket done [22:20:12]KKMCreateOFDPacket done [22:20:12]NVStorageSaveData kkm_last_timestamp [22:20:12]File name is /storage/kkm_last_timestamp [22:20:12]Write 4 bytes [22:20:12]NVStorageSaveData done [22:20:12]ExternCall_PrintAddStr [22:20:12]wPrintStart [22:20:12]Write to MH i2c: 01 00 00 51 02 53 [22:20:12]Write i2c OK [22:20:12]MH_I2C_Read... [22:20:12]Read from MH i2c: 01 [22:20:12]MH_I2C_Read... [22:20:12]Read from MH i2c: 01 07 00 [22:20:12]MH_I2C_Read... [22:20:12]Read from MH i2c: 01 07 00 51 02 00 00 00 00 00 FF 0F 68 [22:20:12]RasterBufferAndPrint [22:20:12]line Счет N : (1)979151 [22:20:12]line ИНН: 02508201610067 [22:20:12]line Контрольно-Кассовый Чек [22:20:12]line ВОЗВРАТ ПРОДАЖИ [22:20:12]line ТРК (МРК, ГНК) : 41 [22:20:12]line Товар: 2710124130 [22:20:12]line Аи-92-К-5 [22:20:12]line 4.820 * 66.40 [22:20:12]line = 320.05 [22:20:12]line НДС 12% НСП 1% [22:20:12]line > о реализуемом товаре [22:20:12]line ОКРУГЛЕНИЕ: -0.05 [22:20:12]line ИТОГО: 320.00 [22:20:12]line НСП 1% : 2.83 [22:20:12]line НДС 12% : 33.99 [22:20:12]line Наличными: 320.00 [22:20:12]line Безнал.: 0.00 [22:20:12]line Место: АЗС № 68 "Партнер Нефть" [22:20:12]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:20:12]line СНО: Общий режим [22:20:12]line Чек 405 02.06.2024 22:20 [22:20:12]line Смена: 366 ФФД: 1.0 [22:20:12]line ЗНМ: 0300000035 [22:20:12]line РНМ: 0000000000092720 [22:20:12]line Версия ККМ: 001 [22:20:12]line ФД осн.: 148211 [22:20:12]line ФМ осн.: 0000000000875057 [22:20:12]line ФМ: 0000000000875057 [22:20:12]line ФД: 148213 [22:20:12]line ФПД: 123923987966667 [22:20:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T222008&type=2&operation_type=1&fn_number=0000000000875057&fd_number=148213&fm=123923987966667&tin=02508201610067®Number=0000000000092720&sum=32000 [22:20:12]OFD Sender: Processing packet 148213 [packets to send 99, broken 98] [22:20:12]ProducePacketName [22:20:12]name=ofd_packets/00148213 [22:20:12]OFD Sender: To server: pG, [22:20:12]CommunicateWithHost lk.salyk.kg:30040 [22:20:12]ConnectInit lk.salyk.kg [22:20:12]written 0, free lines is 4095 [22:20:12]Connected sock=11 [22:20:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 2B 01 00 00 5E 12 23 01 ED 4E 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 12 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 05 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 01 00 00 F4 03 04 00 18 F0 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 27 04 04 00 F3 42 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F5 42 02 00 35 04 06 00 70 B5 4D 48 2A CB 6D BB 1C 28 62 37 64 84 Write to MH i2c: [22:20:13]01 00 00 7C 02 7E [22:20:13]Write i2c OK [22:20:13]MH_I2C_Read... [22:20:13]Read from MH i2c: 01 [22:20:13]MH_I2C_Read... [22:20:13]Read from MH i2c: 01 07 00 [22:20:13]MH_I2C_Read... [22:20:13]Read from MH i2c: 01 07 00 7C 02 00 00 00 00 00 4B 0D DD [22:20:13]RasterBufferAndPrint [22:20:13]line [22:20:13]line [22:20:13]line [22:20:13]line [22:20:13]line [22:20:13]written 0, free lines is 3443 [22:20:13]MH_Cut [22:20:13]Write to MH i2c: D1 01 00 83 02 01 57 [22:20:13]Write i2c OK [22:20:13]MH_I2C_Read... [22:20:13]Read from MH i2c: D1 [22:20:13]MH_I2C_Read... [22:20:13]Read from MH i2c: D1 01 00 [22:20:13]MH_I2C_Read... [22:20:13]Read from MH i2c: D1 01 00 83 02 00 56 [22:20:13]Write to MH i2c: 01 00 00 84 02 86 [22:20:13]Write i2c OK [22:20:13]MH_I2C_Read... [22:20:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 92 41 47 00 D6 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F5 42 02 00 F4 03 04 00 44 97 5C 66 B6 04 01 00 00 15 53 05 49 48 F4 B0 A4 [22:20:13]CommunicateWithHost err = 0 [22:20:13]CheckOFDResponse [22:20:13]1017 (14) - 77093643461234 [22:20:13]1041 (16) - 0000000000875057 [22:20:13]1040 (4) - 148213 [22:20:13]1012 (4) - 02.06.2024 16:01 [22:20:14]1206 (1) - 0 [22:20:14]OFD Sender: Remove packet 148213 [22:20:14]ProducePacketName [22:20:14]name=ofd_packets/00148213 [22:20:14]NVStorageDeleteData [22:20:14]OFD Sender: No OFD packet to send [22:20:14]*** Cut start [22:20:14]*** Partial cut [22:20:14]*** CUTSNS_PIN = 1 [22:20:14]*** CUTSNS_PIN = 0 [22:20:14]*** Brake cut motor [22:20:15]Read from MH i2c: 01 [22:20:15]MH_I2C_Read... [22:20:15]*** Stop cut motor [22:20:15]*** Cut end [22:20:15]Read from MH i2c: 01 07 00 [22:20:15]MH_I2C_Read... [22:20:15]Read from MH i2c: 01 07 00 84 02 00 00 00 00 00 FF 0F 9B [22:20:15]process_action close_receipt done [22:20:15]requested_data is exist [22:20:15]produce_requested_data [22:20:15]requested_item fm.sn is exist - process it [22:20:15]wFMCommunicate request_size=4 [22:20:15]MH_SAM_APDU [22:20:15]CAPDU: 80 11 00 00 [22:20:15]Write to MH i2c: E2 08 00 85 02 80 11 00 00 00 00 00 00 01 [22:20:15]Write i2c OK [22:20:15]MH_I2C_Read... [22:20:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:20:15]Read from MH i2c: E2 [22:20:15]MH_I2C_Read... [22:20:15]Read from MH i2c: E2 17 00 [22:20:15]MH_I2C_Read... [22:20:15]Read from MH i2c: E2 17 00 85 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 54 [22:20:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:20:15]wFMCommunicate OK [22:20:15]requested_item fd.num is exist - process it [22:20:15]SAM_PROTO_GetFieldsCounters [22:20:15]wFMCommunicate request_size=4 [22:20:15]MH_SAM_APDU [22:20:15]CAPDU: 80 13 00 00 [22:20:15]Write to MH i2c: E2 08 00 86 02 80 13 00 00 00 00 00 00 04 [22:20:15]Write i2c OK [22:20:15]MH_I2C_Read... [22:20:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:20:15]Read from MH i2c: E2 [22:20:15]MH_I2C_Read... [22:20:15]Read from MH i2c: E2 62 00 [22:20:15]MH_I2C_Read... [22:20:15]Read from MH i2c: E2 62 00 86 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F5 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 95 01 00 00 5E 04 04 00 95 01 00 00 57 04 04 00 96 01 00 00 19 04 04 00 00 00 00 00 90 00 8A [22:20:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F5 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 95 01 00 00 5E 04 04 00 95 01 00 00 57 04 04 00 96 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:20:15]wFMCommunicate OK [22:20:15]SAM_PROTO_GetFieldsCounters done [22:20:15]requested_item shift.num is exist - process it [22:20:15]requested_item shift.opened is exist - process it [22:20:15]req_shift_opened [22:20:15]FM_GetShiftState [22:20:15]SAM_PROTO_GetShiftState [22:20:15]wFMCommunicate request_size=4 [22:20:15]MH_SAM_APDU [22:20:15]CAPDU: 80 13 01 00 [22:20:15]Write to MH i2c: E2 08 00 87 02 80 13 01 00 00 00 00 00 06 [22:20:15]Write i2c OK [22:20:15]MH_I2C_Read... [22:20:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:20:15]Read from MH i2c: E2 [22:20:15]MH_I2C_Read... [22:20:15]Read from MH i2c: E2 0E 00 [22:20:15]MH_I2C_Read... [22:20:15]Read from MH i2c: E2 0E 00 87 02 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 1E [22:20:15]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [22:20:15]wFMCommunicate OK [22:20:15]SAM_PROTO_GetShiftState done [22:20:15]FM_GetShiftState done [22:20:15]req_shift_opened done [22:20:15]requested_item shift.open_date is exist - process it [22:20:15]req_shift_open_date [22:20:15]req_shift_open_date done [22:20:15]produce_requested_data done [22:20:15]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148213,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [22:20:15]process_action_free close_receipt [22:20:15]json_value_free [22:20:15]json_value_free done [22:20:15]process_json_proto returns [22:20:15]Send response to host [22:20:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148213,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [22:20:15]free response buf [22:20:15]execute_script done [22:20:15]execute_script returns [22:20:15]free content buf [22:20:15]Sock 10.Close socket [22:20:15]Sock 10.Thread stoped [22:20:18]accept exits with 9 [22:20:18]New connection [22:20:18]New thread 3067432292 created [22:20:18]Thread 3067288932 joined [22:20:18]Waiting for new connection... [22:20:18] Sock 9.Parse request [22:20:18]Sock 9.Check first char [22:20:18]Sock 9.First char is OK [22:20:18]request: POST /json_proto HTTP/1.0 [22:20:18]Method: POST [22:20:18]URL: /json_proto [22:20:18]Method is POST - this is cgi request [22:20:18]url: /json_proto [22:20:18]query_string will be loaded in cgi processing [22:20:18]execute_cgi json_proto POST (null) [22:20:18]execute_cgi path=json_proto method=POST [22:20:18]POST find Content-Length [22:20:18]Host: 172.17.38.4:8080 [22:20:18]Content-Length: 670 [22:20:18]Content-Type: application/json [22:20:18] [22:20:18]POST finish read [22:20:18]Found Content-Length = 670 [22:20:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.40, "quantity" : 4.750, "sum" : 320.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:20:18]execute_script... [22:20:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.40, "quantity" : 4.750, "sum" : 320.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:20:18]POST & json_proto [22:20:18]process_json_proto [22:20:18]json parsed OK: [22:20:18]protocol is kg_v1.0 [22:20:18]action value=close_receipt [22:20:18]process_action close_receipt [22:20:18]cmd_close_receipt [22:20:18]MH_GetDate [22:20:18]Write to MH i2c: F0 00 00 88 02 79 [22:20:18]Write i2c OK [22:20:18]MH_I2C_Read... [22:20:18]Read from MH i2c: F0 [22:20:18]MH_I2C_Read... [22:20:18]Read from MH i2c: F0 09 00 [22:20:18]MH_I2C_Read... [22:20:18]Read from MH i2c: F0 09 00 88 02 00 23 F0 5C 66 CC 51 87 64 5F [22:20:18]GetLastDocTimeStamp 1717366808 [22:20:18]current date 1717366819 [22:20:18]FM_GetShiftState [22:20:18]SAM_PROTO_GetShiftState [22:20:18]wFMCommunicate request_size=4 [22:20:18]MH_SAM_APDU [22:20:18]CAPDU: 80 13 01 00 [22:20:18]Write to MH i2c: E2 08 00 89 02 80 13 01 00 00 00 00 00 08 [22:20:19]Write i2c OK [22:20:19]MH_I2C_Read... [22:20:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:20:19]Read from MH i2c: E2 [22:20:19]MH_I2C_Read... [22:20:19]Read from MH i2c: E2 0E 00 [22:20:19]MH_I2C_Read... [22:20:19]Read from MH i2c: E2 0E 00 89 02 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 20 [22:20:19]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [22:20:19]wFMCommunicate OK [22:20:19]SAM_PROTO_GetShiftState done [22:20:19]FM_GetShiftState done [22:20:19]opened in 1717287824 [22:20:19]opened+sec_in_day 1717374224 [22:20:19]quantity*price = 32015 [22:20:19]sum+1 = 32016 [22:20:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.83 НДС 12% : 34.00 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 406 02.06.2024 22:20 Смена: 366 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148214 ФПД: 168157881669986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T222019&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148214&fm=168157881669986&tin=02508201610067®Number=0000000000092720&sum=32000 [22:20:21]StoreToDocumentArchive [22:20:21]shift 366 fd 148214 [22:20:21]save to /storage/0366/doc_00148214 [22:20:21]save last doc name /storage/0366/doc_00148214 to /storage/kkm_last_doc_name [22:20:21]save OK [22:20:21]Clear old archive folders... [22:20:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:20:21]tlvbuf is 012B1800 [22:20:21]SAM_PROTO_ClearQueue [22:20:21]wFMCommunicate request_size=4 [22:20:21]MH_SAM_APDU [22:20:21]CAPDU: 80 09 00 00 [22:20:21]Write to MH i2c: E2 08 00 96 02 80 09 00 00 00 00 00 00 0A [22:20:21]Write i2c OK [22:20:21]MH_I2C_Read... [22:20:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:20:21]Read from MH i2c: E2 [22:20:21]MH_I2C_Read... [22:20:21]Read from MH i2c: E2 03 00 [22:20:21]MH_I2C_Read... [22:20:21]Read from MH i2c: E2 03 00 96 02 00 90 00 0C [22:20:21]RAPDU: 90 00 [22:20:21]wFMCommunicate OK [22:20:21]SAM_PROTO_ClearQueue done [22:20:21]KKMCreateOFDPacket [22:20:21]OFDProtocolAddRootSTLVToBuf [22:20:21]FM_MakeSignedData [22:20:21]FM_MakeSignedData [22:20:21]SAM_PROTO_SignData [22:20:21]wFMCommunicate request_size=4 [22:20:21]MH_SAM_APDU [22:20:21]CAPDU: 80 0D 01 02 [22:20:21]Write to MH i2c: E2 08 00 97 02 80 0D 01 02 00 00 00 00 12 [22:20:21]Write i2c OK [22:20:21]MH_I2C_Read... [22:20:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:20:21]Read from MH i2c: E2 [22:20:21]MH_I2C_Read... [22:20:21]Read from MH i2c: E2 03 00 [22:20:21]MH_I2C_Read... [22:20:21]Read from MH i2c: E2 03 00 97 02 00 90 00 0D [22:20:21]RAPDU: 90 00 [22:20:21]wFMCommunicate OK [22:20:21]wFMCommunicate request_size=255 [22:20:21]MH_SAM_APDU [22:20:21]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 12 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 0F 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 01 00 00 F4 03 04 00 23 F0 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F6 42 02 00 35 04 06 00 [22:20:21]Write to MH i2c: E2 02 01 98 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 12 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 0F 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 01 00 00 F4 03 04 00 23 F0 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F6 42 02 00 35 04 06 00 00 00 CE [22:20:22]Write i2c OK [22:20:22]MH_I2C_Read... [22:20:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:20:22]Read from MH i2c: E2 [22:20:22]MH_I2C_Read... [22:20:22]Read from MH i2c: E2 03 00 [22:20:22]MH_I2C_Read... [22:20:22]Read from MH i2c: E2 03 00 98 02 00 90 00 0E [22:20:22]RAPDU: 90 00 [22:20:22]wFMCommunicate OK [22:20:22]wFMCommunicate request_size=11 [22:20:22]MH_SAM_APDU [22:20:22]CAPDU: 80 0D 02 02 06 98 F0 4E CD 99 62 [22:20:22]Write to MH i2c: E2 0E 00 99 02 80 0D 02 02 06 00 98 F0 4E CD 99 62 00 00 BF [22:20:22]Write i2c OK [22:20:22]MH_I2C_Read... [22:20:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:20:22]Read from MH i2c: E2 [22:20:22]MH_I2C_Read... [22:20:22]Read from MH i2c: E2 03 00 [22:20:22]MH_I2C_Read... [22:20:22]Read from MH i2c: E2 03 00 99 02 00 90 00 0F [22:20:22]RAPDU: 90 00 [22:20:22]wFMCommunicate OK [22:20:22]wFMCommunicate request_size=4 [22:20:22]MH_SAM_APDU [22:20:22]CAPDU: 80 0D 03 02 [22:20:22]Write to MH i2c: E2 08 00 9A 02 80 0D 03 02 00 00 00 00 17 [22:20:22]Write i2c OK [22:20:22]MH_I2C_Read... [22:20:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:20:22]Read from MH i2c: E2 [22:20:22]MH_I2C_Read... [22:20:22]Read from MH i2c: E2 0B 00 [22:20:22]MH_I2C_Read... [22:20:22]Read from MH i2c: E2 0B 00 9A 02 00 07 1F 40 BC F9 CA 4A 1C 90 00 63 [22:20:22]RAPDU: 07 1F 40 BC F9 CA 4A 1C 90 00 [22:20:22]wFMCommunicate OK [22:20:22]SAM_PROTO_SignData done [22:20:22]FM_MakeSignedData done [22:20:22]CreateOFDProtocolMessage [22:20:22]wFMCommunicate request_size=4 [22:20:22]MH_SAM_APDU [22:20:22]CAPDU: 80 11 00 00 [22:20:22]Write to MH i2c: E2 08 00 9B 02 80 11 00 00 00 00 00 00 17 [22:20:22]Write i2c OK [22:20:22]MH_I2C_Read... [22:20:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:20:22]Read from MH i2c: E2 [22:20:22]MH_I2C_Read... [22:20:22]Read from MH i2c: E2 17 00 [22:20:22]MH_I2C_Read... [22:20:22]Read from MH i2c: E2 17 00 9B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 6A [22:20:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:20:22]wFMCommunicate OK [22:20:22]CreateOFDProtocolMessage done [22:20:22]OFDSenderStorePacket 148214 [22:20:22]StoreOFDPacket docnum=148214 [22:20:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 22 53 08 01 AF 45 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 12 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 0F 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 01 00 00 F4 03 04 00 23 F0 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F6 42 02 00 35 04 06 00 98 F0 4E CD 99 62 07 1F 40 BC F9 CA 4A 1C [22:20:22]CheckFolder [22:20:22]dirname=/storage/ofd_packets [22:20:22]CheckFolder done [22:20:22]ProducePacketName [22:20:22]name=ofd_packets/00148214 [22:20:22]NVStorageSaveData ofd_packets/00148214 [22:20:22]File name is /storage/ofd_packets/00148214 [22:20:22]Write 302 bytes [22:20:22]NVStorageSaveData done [22:20:22]OFDSenderStorePacket done [22:20:22]KKMCreateOFDPacket done [22:20:22]NVStorageSaveData kkm_last_timestamp [22:20:22]File name is /storage/kkm_last_timestamp [22:20:22]Write 4 bytes [22:20:22]NVStorageSaveData done [22:20:22]ExternCall_PrintAddStr [22:20:22]wPrintStart [22:20:22]Write to MH i2c: 01 00 00 9C 02 9E [22:20:22]OFD Sender: Processing packet 148214 [packets to send 99, broken 98] [22:20:22]ProducePacketName [22:20:22]name=ofd_packets/00148214 [22:20:22]OFD Sender: To server: pG, [22:20:22]CommunicateWithHost lk.salyk.kg:30040 [22:20:22]ConnectInit lk.salyk.kg [22:20:22]Write i2c OK [22:20:22]MH_I2C_Read... [22:20:22]Read from MH i2c: 01 [22:20:22]MH_I2C_Read... [22:20:22]Read from MH i2c: 01 07 00 [22:20:22]MH_I2C_Read... [22:20:22]Read from MH i2c: 01 07 00 9C 02 00 00 00 00 00 FF 0F B3 [22:20:23]RasterBufferAndPrint [22:20:23]line Счет N : (1)979153 [22:20:23]line ИНН: 02508201610067 [22:20:23]line Контрольно-Кассовый Чек [22:20:23]line ПРОДАЖА [22:20:23]line ТРК (МРК, ГНК) : 43 [22:20:23]line Товар: 2710124130 [22:20:23]line SUPER 92-К-5 [22:20:23]line 4.750 * 67.40 [22:20:23]line = 320.15 [22:20:23]line НДС 12% НСП 1% [22:20:23]line > о реализуемом товаре [22:20:23]line ОКРУГЛЕНИЕ: -0.15 [22:20:23]line ИТОГО: 320.00 [22:20:23]line Внесено: 320.00 [22:20:23]line СДАЧА: 0.00 [22:20:23]line НСП 1% : 2.83 [22:20:23]line НДС 12% : 34.00 [22:20:23]line Наличными: 320.00 [22:20:23]line Безнал.: 0.00 [22:20:23]line Место: АЗС № 68 "Партнер Нефть" [22:20:23]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:20:23]line СНО: Общий режим [22:20:23]line Чек 406 02.06.2024 22:20 [22:20:23]line Смена: 366 ФФД: 1.0 [22:20:23]line ЗНМ: 0300000035 [22:20:23]line РНМ: 0000000000092720 [22:20:23]line Версия ККМ: 001 [22:20:23]line ФМ: 0000000000875057 [22:20:23]line ФД: 148214 [22:20:23]line ФПД: 168157881669986 [22:20:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T222019&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148214&fm=168157881669986&tin=02508201610067®Number=0000000000092720&sum=32000 [22:20:23]Connected sock=11 [22:20:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 22 53 08 01 AF 45 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 written 0, free lines is 4095 [22:20:23]30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 12 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 0F 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 01 00 00 F4 03 04 00 23 F0 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F6 42 02 00 35 04 06 00 98 F0 4E CD 99 62 07 1F 40 BC F9 CA 4A 1C [22:20:23]Write to MH i2c: 01 00 00 C7 02 C9 [22:20:23]Write i2c OK [22:20:23]MH_I2C_Read... [22:20:23]Read from MH i2c: 01 [22:20:23]MH_I2C_Read... [22:20:23]Read from MH i2c: 01 07 00 [22:20:23]MH_I2C_Read... [22:20:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 14 BF 47 00 91 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F6 42 02 00 F4 03 04 00 4E 97 5C 66 B6 Read from MH i2c: 04 01 01 07 00 00 00 EC C1 88 E0 1F 28 D8 3C C7 [22:20:24]02 CommunicateWithHost err = 0 [22:20:24]00 CheckOFDResponse [22:20:24]00 1017 (14) - 77093643461234 [22:20:24]00 1041 (16) - 0000000000875057 [22:20:24]00 1040 (4) - 148214 [22:20:24]00 1012 (4) - 02.06.2024 16:01 [22:20:24]7D 0C 59 [22:20:24]RasterBufferAndPrint [22:20:24]line [22:20:24]line [22:20:24]1206 (1) - 0 [22:20:24]line [22:20:24]OFD Sender: Remove packet 148214 [22:20:24]line [22:20:24]ProducePacketName [22:20:24]line [22:20:24]name=ofd_packets/00148214 [22:20:24]NVStorageDeleteData [22:20:24]written 0, free lines is 3563 [22:20:24]MH_Cut [22:20:24]Write to MH i2c: D1 01 00 CE 02 01 A2 [22:20:24]Write i2c OK [22:20:24]MH_I2C_Read... [22:20:24]Read from MH i2c: D1 [22:20:24]MH_I2C_Read... [22:20:24]Read from MH i2c: D1 01 00 [22:20:24]MH_I2C_Read... [22:20:24]Read from MH i2c: D1 01 00 CE 02 00 A1 [22:20:24]Write to MH i2c: 01 00 00 CF 02 D1 [22:20:24]Write i2c OK [22:20:24]MH_I2C_Read... [22:20:24]OFD Sender: No OFD packet to send [22:20:24]*** Cut start [22:20:24]*** Partial cut [22:20:24]*** CUTSNS_PIN = 1 [22:20:24]*** CUTSNS_PIN = 0 [22:20:25]*** Brake cut motor [22:20:25]Read from MH i2c: 01 [22:20:25]MH_I2C_Read... [22:20:25]*** Stop cut motor [22:20:25]*** Cut end [22:20:25]Read from MH i2c: 01 07 00 [22:20:25]MH_I2C_Read... [22:20:25]Read from MH i2c: 01 07 00 CF 02 00 00 00 00 00 FF 0F E6 [22:20:25]process_action close_receipt done [22:20:25]requested_data is exist [22:20:25]produce_requested_data [22:20:25]requested_item fm.sn is exist - process it [22:20:25]wFMCommunicate request_size=4 [22:20:25]MH_SAM_APDU [22:20:25]CAPDU: 80 11 00 00 [22:20:25]Write to MH i2c: E2 08 00 D0 02 80 11 00 00 00 00 00 00 4C [22:20:25]Write i2c OK [22:20:25]MH_I2C_Read... [22:20:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:20:25]Read from MH i2c: E2 [22:20:25]MH_I2C_Read... [22:20:25]Read from MH i2c: E2 17 00 [22:20:25]MH_I2C_Read... [22:20:25]Read from MH i2c: E2 17 00 D0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 9F [22:20:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:20:25]wFMCommunicate OK [22:20:25]requested_item fd.num is exist - process it [22:20:25]SAM_PROTO_GetFieldsCounters [22:20:25]wFMCommunicate request_size=4 [22:20:25]MH_SAM_APDU [22:20:25]CAPDU: 80 13 00 00 [22:20:25]Write to MH i2c: E2 08 00 D1 02 80 13 00 00 00 00 00 00 4F [22:20:25]Write i2c OK [22:20:25]MH_I2C_Read... [22:20:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:20:25]Read from MH i2c: E2 [22:20:25]MH_I2C_Read... [22:20:25]Read from MH i2c: E2 62 00 [22:20:25]MH_I2C_Read... [22:20:25]Read from MH i2c: E2 62 00 D1 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F6 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 96 01 00 00 5E 04 04 00 96 01 00 00 57 04 04 00 97 01 00 00 19 04 04 00 00 00 00 00 90 00 D9 [22:20:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F6 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 96 01 00 00 5E 04 04 00 96 01 00 00 57 04 04 00 97 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:20:26]wFMCommunicate OK [22:20:26]SAM_PROTO_GetFieldsCounters done [22:20:26]requested_item shift.num is exist - process it [22:20:26]requested_item shift.opened is exist - process it [22:20:26]req_shift_opened [22:20:26]FM_GetShiftState [22:20:26]SAM_PROTO_GetShiftState [22:20:26]wFMCommunicate request_size=4 [22:20:26]MH_SAM_APDU [22:20:26]CAPDU: 80 13 01 00 [22:20:26]Write to MH i2c: E2 08 00 D2 02 80 13 01 00 00 00 00 00 51 [22:20:26]Write i2c OK [22:20:26]MH_I2C_Read... [22:20:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:20:26]Read from MH i2c: E2 [22:20:26]MH_I2C_Read... [22:20:26]Read from MH i2c: E2 0E 00 [22:20:26]MH_I2C_Read... [22:20:26]Read from MH i2c: E2 0E 00 D2 02 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 69 [22:20:26]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [22:20:26]wFMCommunicate OK [22:20:26]SAM_PROTO_GetShiftState done [22:20:26]FM_GetShiftState done [22:20:26]req_shift_opened done [22:20:26]requested_item shift.open_date is exist - process it [22:20:26]req_shift_open_date [22:20:26]req_shift_open_date done [22:20:26]produce_requested_data done [22:20:26]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148214,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [22:20:26]process_action_free close_receipt [22:20:26]json_value_free [22:20:26]json_value_free done [22:20:26]process_json_proto returns [22:20:26]Send response to host [22:20:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148214,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [22:20:26]free response buf [22:20:26]execute_script done [22:20:26]execute_script returns [22:20:26]free content buf [22:20:26]Sock 9.Close socket [22:20:26]Sock 9.Thread stoped [22:20:29]OFD Sender: No OFD packet to send [22:20:34]OFD Sender: No OFD packet to send [22:20:39]OFD Sender: No OFD packet to send [22:20:44]OFD Sender: No OFD packet to send [22:20:49]OFD Sender: No OFD packet to send [22:20:54]OFD Sender: No OFD packet to send [22:20:59]OFD Sender: No OFD packet to send [22:21:04]OFD Sender: No OFD packet to send [22:21:09]OFD Sender: No OFD packet to send [22:21:14]OFD Sender: No OFD packet to send [22:21:19]OFD Sender: No OFD packet to send [22:21:24]OFD Sender: No OFD packet to send [22:21:29]OFD Sender: No OFD packet to send [22:21:34]OFD Sender: No OFD packet to send [22:21:35]accept exits with 10 [22:21:35]New connection [22:21:35]New thread 3067288932 created [22:21:35]Thread 3067432292 joined [22:21:35]Waiting for new connection... [22:21:35] Sock 10.Parse request [22:21:35]Sock 10.Check first char [22:21:35]Sock 10.First char is OK [22:21:35]request: POST /json_proto HTTP/1.0 [22:21:35]Method: POST [22:21:35]URL: /json_proto [22:21:35]Method is POST - this is cgi request [22:21:35]url: /json_proto [22:21:35]query_string will be loaded in cgi processing [22:21:35]execute_cgi json_proto POST (null) [22:21:35]execute_cgi path=json_proto method=POST [22:21:35]POST find Content-Length [22:21:35]Host: 172.17.38.4:8080 [22:21:35]Content-Length: 682 [22:21:35]Content-Type: application/json [22:21:35] [22:21:35]POST finish read [22:21:35]Found Content-Length = 682 [22:21:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:35]execute_script... [22:21:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:35]POST & json_proto [22:21:35]process_json_proto [22:21:35]json parsed OK: [22:21:35]protocol is kg_v1.0 [22:21:35]action value=close_receipt [22:21:35]process_action close_receipt [22:21:35]cmd_close_receipt [22:21:35]MH_GetDate [22:21:35]Write to MH i2c: F0 00 00 D3 02 C4 [22:21:35]Write i2c OK [22:21:35]MH_I2C_Read... [22:21:35]Read from MH i2c: F0 [22:21:35]MH_I2C_Read... [22:21:35]Read from MH i2c: F0 09 00 [22:21:35]MH_I2C_Read... [22:21:35]Read from MH i2c: F0 09 00 D3 02 00 6F F0 5C 66 CC 51 87 64 F6 [22:21:35]GetLastDocTimeStamp 1717366819 [22:21:35]current date 1717366895 [22:21:35]FM_GetShiftState [22:21:35]SAM_PROTO_GetShiftState [22:21:35]wFMCommunicate request_size=4 [22:21:35]MH_SAM_APDU [22:21:35]CAPDU: 80 13 01 00 [22:21:35]Write to MH i2c: E2 08 00 D4 02 80 13 01 00 00 00 00 00 53 [22:21:35]Write i2c OK [22:21:35]MH_I2C_Read... [22:21:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:35]Read from MH i2c: E2 [22:21:35]MH_I2C_Read... [22:21:35]Read from MH i2c: E2 0E 00 [22:21:35]MH_I2C_Read... [22:21:35]Read from MH i2c: E2 0E 00 D4 02 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 6B [22:21:35]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [22:21:35]wFMCommunicate OK [22:21:35]SAM_PROTO_GetShiftState done [22:21:35]FM_GetShiftState done [22:21:35]opened in 1717287824 [22:21:35]opened+sec_in_day 1717374224 [22:21:35]quantity*price = 100064 [22:21:35]sum+1 = 100066 [22:21:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 407 02.06.2024 22:21 Смена: 366 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148215 ФПД: 180396320700446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T222135&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148215&fm=180396320700446&tin=02508201610067®Number=0000000000092720&sum=100000 [22:21:37]StoreToDocumentArchive [22:21:37]shift 366 fd 148215 [22:21:37]save to /storage/0366/doc_00148215 [22:21:37]save last doc name /storage/0366/doc_00148215 to /storage/kkm_last_doc_name [22:21:37]save OK [22:21:37]Clear old archive folders... [22:21:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:21:37]tlvbuf is 012C87C0 [22:21:37]SAM_PROTO_ClearQueue [22:21:37]wFMCommunicate request_size=4 [22:21:37]MH_SAM_APDU [22:21:37]CAPDU: 80 09 00 00 [22:21:37]Write to MH i2c: E2 08 00 E1 02 80 09 00 00 00 00 00 00 55 [22:21:37]Write i2c OK [22:21:37]MH_I2C_Read... [22:21:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:21:37]Read from MH i2c: E2 [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: E2 03 00 [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: E2 03 00 E1 02 00 90 00 57 [22:21:37]RAPDU: 90 00 [22:21:37]wFMCommunicate OK [22:21:37]SAM_PROTO_ClearQueue done [22:21:37]KKMCreateOFDPacket [22:21:37]OFDProtocolAddRootSTLVToBuf [22:21:37]FM_MakeSignedData [22:21:37]FM_MakeSignedData [22:21:37]SAM_PROTO_SignData [22:21:37]wFMCommunicate request_size=4 [22:21:37]MH_SAM_APDU [22:21:37]CAPDU: 80 0D 01 02 [22:21:37]Write to MH i2c: E2 08 00 E2 02 80 0D 01 02 00 00 00 00 5D [22:21:37]Write i2c OK [22:21:37]MH_I2C_Read... [22:21:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:21:37]Read from MH i2c: E2 [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: E2 03 00 [22:21:37]MH_I2C_Read... [22:21:37]Read from MH i2c: E2 03 00 E2 02 00 90 00 58 [22:21:37]RAPDU: 90 00 [22:21:37]wFMCommunicate OK [22:21:37]wFMCommunicate request_size=255 [22:21:37]MH_SAM_APDU [22:21:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 6F F0 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F7 42 02 00 35 04 06 00 A4 [22:21:38]Write to MH i2c: E2 02 01 E3 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 6F F0 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F7 42 02 00 35 04 06 00 A4 00 00 63 [22:21:38]Write i2c OK [22:21:38]MH_I2C_Read... [22:21:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:38]Read from MH i2c: E2 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: E2 03 00 [22:21:38]MH_I2C_Read... [22:21:38]Read from MH i2c: E2 03 00 E3 02 00 90 00 59 [22:21:38]RAPDU: 90 00 [22:21:38]wFMCommunicate OK [22:21:38]wFMCommunicate request_size=10 [22:21:38]MH_SAM_APDU [22:21:38]CAPDU: 80 0D 02 02 05 11 CA 9D 38 1E [22:21:38]Write to MH i2c: E2 0D 00 E4 02 80 0D 02 02 05 00 11 CA 9D 38 1E 00 00 38 [22:21:38]Write i2c OK [22:21:38]MH_I2C_Read... [22:21:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:39]Read from MH i2c: E2 [22:21:39]MH_I2C_Read... [22:21:39]Read from MH i2c: E2 03 00 [22:21:39]MH_I2C_Read... [22:21:39]Read from MH i2c: E2 03 00 E4 02 00 90 00 5A [22:21:39]RAPDU: 90 00 [22:21:39]wFMCommunicate OK [22:21:39]wFMCommunicate request_size=4 [22:21:39]MH_SAM_APDU [22:21:39]CAPDU: 80 0D 03 02 [22:21:39]Write to MH i2c: E2 08 00 E5 02 80 0D 03 02 00 00 00 00 62 [22:21:39]Write i2c OK [22:21:39]MH_I2C_Read... [22:21:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:21:39]Read from MH i2c: E2 [22:21:39]MH_I2C_Read... [22:21:39]Read from MH i2c: E2 0B 00 [22:21:39]MH_I2C_Read... [22:21:39]Read from MH i2c: E2 0B 00 E5 02 00 9A 18 E3 DA B0 79 46 D7 90 00 18 [22:21:39]RAPDU: 9A 18 E3 DA B0 79 46 D7 90 00 [22:21:39]wFMCommunicate OK [22:21:39]SAM_PROTO_SignData done [22:21:39]FM_MakeSignedData done [22:21:39]CreateOFDProtocolMessage [22:21:39]wFMCommunicate request_size=4 [22:21:39]MH_SAM_APDU [22:21:39]CAPDU: 80 11 00 00 [22:21:39]Write to MH i2c: E2 08 00 E6 02 80 11 00 00 00 00 00 00 62 [22:21:39]Write i2c OK [22:21:39]MH_I2C_Read... [22:21:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:39]Read from MH i2c: E2 [22:21:39]MH_I2C_Read... [22:21:39]Read from MH i2c: E2 17 00 [22:21:39]MH_I2C_Read... [22:21:39]Read from MH i2c: E2 17 00 E6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B5 [22:21:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:21:39]wFMCommunicate OK [22:21:39]CreateOFDProtocolMessage done [22:21:39]OFDSenderStorePacket 148215 [22:21:39]StoreOFDPacket docnum=148215 [22:21:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 46 33 07 01 51 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 6F F0 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F7 42 02 00 35 04 06 00 A4 11 CA 9D 38 1E 9A 18 E3 DA B0 79 46 D7 [22:21:39]CheckFolder [22:21:39]dirname=/storage/ofd_packets [22:21:39]CheckFolder done [22:21:39]ProducePacketName [22:21:39]name=ofd_packets/00148215 [22:21:39]NVStorageSaveData ofd_packets/00148215 [22:21:39]File name is /storage/ofd_packets/00148215 [22:21:39]Write 301 bytes [22:21:39]NVStorageSaveData done [22:21:39]OFDSenderStorePacket done [22:21:39]KKMCreateOFDPacket done [22:21:39]NVStorageSaveData kkm_last_timestamp [22:21:39]File name is /storage/kkm_last_timestamp [22:21:39]Write 4 bytes [22:21:39]NVStorageSaveData done [22:21:39]ExternCall_PrintAddStr [22:21:39]wPrintStart [22:21:39]Write to MH i2c: 01 00 00 E7 02 E9 [22:21:39]OFD Sender: Processing packet 148215 [packets to send 99, broken 98] [22:21:39]ProducePacketName [22:21:39]name=ofd_packets/00148215 [22:21:39]OFD Sender: To server: pG, [22:21:39]CommunicateWithHost lk.salyk.kg:30040 [22:21:39]ConnectInit lk.salyk.kg [22:21:39]Write i2c OK [22:21:39]MH_I2C_Read... [22:21:39]Read from MH i2c: 01 [22:21:39]MH_I2C_Read... [22:21:39]Read from MH i2c: 01 07 00 [22:21:39]MH_I2C_Read... [22:21:39]Read from MH i2c: 01 07 00 E7 02 00 00 00 00 00 FF 0F FE [22:21:39]RasterBufferAndPrint [22:21:39]line Счет N : (1)979154 [22:21:39]line ИНН: 02508201610067 [22:21:39]line Контрольно-Кассовый Чек [22:21:39]line ПРОДАЖА [22:21:39]line ТРК (МРК, ГНК) : 22 [22:21:39]line Товар: 2710124130 [22:21:39]line Аи-92-К-5 [22:21:39]line 15.070 * 66.40 [22:21:39]line = 1000.65 [22:21:39]line НДС 12% НСП 1% [22:21:39]line > о реализуемом товаре [22:21:39]line ОКРУГЛЕНИЕ: -0.65 [22:21:39]line ИТОГО: 1000.00 [22:21:39]line Внесено: 1000.00 [22:21:39]line СДАЧА: 0.00 [22:21:39]line НСП 1% : 8.85 [22:21:39]line НДС 12% : 106.26 [22:21:39]line Наличными: 1000.00 [22:21:39]line Безнал.: 0.00 [22:21:39]line Место: АЗС № 68 "Партнер Нефть" [22:21:39]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:21:39]line СНО: Общий режим [22:21:39]line Чек 407 02.06.2024 22:21 [22:21:39]line Смена: 366 ФФД: 1.0 [22:21:39]line ЗНМ: 0300000035 [22:21:39]line РНМ: 0000000000092720 [22:21:39]line Версия ККМ: 001 [22:21:39]line ФМ: 0000000000875057 [22:21:39]line ФД: 148215 [22:21:39]line ФПД: 180396320700446 [22:21:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T222135&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148215&fm=180396320700446&tin=02508201610067®Number=0000000000092720&sum=100000 [22:21:39]Connected sock=11 [22:21:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 46 33 07 01 51 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A written 0, free lines is 4095 [22:21:39]00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 01 00 00 F4 03 04 00 6F F0 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F7 42 02 00 35 04 06 00 A4 11 CA 9D 38 1E 9A 18 E3 DA B0 79 46 D7 [22:21:40]Write to MH i2c: 01 00 00 12 03 15 [22:21:40]Write i2c OK [22:21:40]MH_I2C_Read... [22:21:40]Read from MH i2c: 01 [22:21:40]MH_I2C_Read... [22:21:40]Read from MH i2c: 01 07 00 [22:21:40]MH_I2C_Read... [22:21:40]Read from MH i2c: 01 07 00 12 03 00 00 00 00 00 79 0C A1 [22:21:40]RasterBufferAndPrint [22:21:40]line [22:21:40]line [22:21:40]line [22:21:40]line [22:21:40]line [22:21:40]written 0, free lines is 3242 [22:21:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 52 39 47 00 26 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F7 42 02 MH_Cut [22:21:40]00 Write to MH i2c: F4 D1 03 01 00 19 03 01 EE [22:21:40]04 00 9B 97 5C 66 B6 04 01 00 00 D9 85 01 37 9A 97 FF 63 [22:21:40]Write i2c OK [22:21:40]CommunicateWithHost err = 0 [22:21:40]MH_I2C_Read... [22:21:40]CheckOFDResponse [22:21:40]Read from MH i2c: 1017 (14) - 77093643461234 [22:21:40]D1 1041 (16) - 0000000000875057 [22:21:40] [22:21:40]1040 (4) - 148215 [22:21:40]MH_I2C_Read... [22:21:40]1012 (4) - 02.06.2024 16:02 [22:21:40]1206 (1) - 0 [22:21:40]OFD Sender: Remove packet 148215 [22:21:40]ProducePacketName [22:21:40]name=ofd_packets/00148215 [22:21:40]NVStorageDeleteData [22:21:40]Read from MH i2c: D1 01 00 [22:21:40]MH_I2C_Read... [22:21:40]Read from MH i2c: D1 01 00 19 03 00 ED [22:21:40]Write to MH i2c: 01 00 00 1A 03 1D [22:21:40]Write i2c OK [22:21:40]MH_I2C_Read... [22:21:41]OFD Sender: No OFD packet to send [22:21:41]*** Cut start [22:21:41]*** Partial cut [22:21:41]*** CUTSNS_PIN = 1 [22:21:41]*** CUTSNS_PIN = 0 [22:21:41]*** Brake cut motor [22:21:42]Read from MH i2c: 01 [22:21:42]MH_I2C_Read... [22:21:42]*** Stop cut motor [22:21:42]*** Cut end [22:21:42]Read from MH i2c: 01 07 00 [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: 01 07 00 1A 03 00 00 00 00 00 FF 0F 32 [22:21:42]process_action close_receipt done [22:21:42]requested_data is exist [22:21:42]produce_requested_data [22:21:42]requested_item fm.sn is exist - process it [22:21:42]wFMCommunicate request_size=4 [22:21:42]MH_SAM_APDU [22:21:42]CAPDU: 80 11 00 00 [22:21:42]Write to MH i2c: E2 08 00 1B 03 80 11 00 00 00 00 00 00 98 [22:21:42]Write i2c OK [22:21:42]MH_I2C_Read... [22:21:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:42]Read from MH i2c: E2 [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: E2 17 00 [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: E2 17 00 1B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 EB [22:21:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:21:42]wFMCommunicate OK [22:21:42]requested_item fd.num is exist - process it [22:21:42]SAM_PROTO_GetFieldsCounters [22:21:42]wFMCommunicate request_size=4 [22:21:42]MH_SAM_APDU [22:21:42]CAPDU: 80 13 00 00 [22:21:42]Write to MH i2c: E2 08 00 1C 03 80 13 00 00 00 00 00 00 9B [22:21:42]Write i2c OK [22:21:42]MH_I2C_Read... [22:21:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:21:42]Read from MH i2c: E2 [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: E2 62 00 [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: E2 62 00 1C 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F7 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 98 01 00 00 19 04 04 00 00 00 00 00 90 00 29 [22:21:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F7 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 97 01 00 00 5E 04 04 00 97 01 00 00 57 04 04 00 98 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:21:42]wFMCommunicate OK [22:21:42]SAM_PROTO_GetFieldsCounters done [22:21:42]requested_item shift.num is exist - process it [22:21:42]requested_item shift.opened is exist - process it [22:21:42]req_shift_opened [22:21:42]FM_GetShiftState [22:21:42]SAM_PROTO_GetShiftState [22:21:42]wFMCommunicate request_size=4 [22:21:42]MH_SAM_APDU [22:21:42]CAPDU: 80 13 01 00 [22:21:42]Write to MH i2c: E2 08 00 1D 03 80 13 01 00 00 00 00 00 9D [22:21:42]Write i2c OK [22:21:42]MH_I2C_Read... [22:21:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:42]Read from MH i2c: E2 [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: E2 0E 00 [22:21:42]MH_I2C_Read... [22:21:42]Read from MH i2c: E2 0E 00 1D 03 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 B5 [22:21:42]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [22:21:42]wFMCommunicate OK [22:21:42]SAM_PROTO_GetShiftState done [22:21:42]FM_GetShiftState done [22:21:42]req_shift_opened done [22:21:42]requested_item shift.open_date is exist - process it [22:21:42]req_shift_open_date [22:21:42]req_shift_open_date done [22:21:42]produce_requested_data done [22:21:42]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148215,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [22:21:42]process_action_free close_receipt [22:21:42]json_value_free [22:21:42]json_value_free done [22:21:42]process_json_proto returns [22:21:42]Send response to host [22:21:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148215,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [22:21:42]free response buf [22:21:42]execute_script done [22:21:42]execute_script returns [22:21:42]free content buf [22:21:42]Sock 10.Close socket [22:21:42]Sock 10.Thread stoped [22:21:46]OFD Sender: No OFD packet to send [22:21:48]ConnectInit Can't connect to host [22:21:51]OFD Sender: No OFD packet to send [22:21:56]OFD Sender: No OFD packet to send [22:22:01]OFD Sender: No OFD packet to send [22:22:06]OFD Sender: No OFD packet to send [22:22:11]OFD Sender: No OFD packet to send [22:22:16]OFD Sender: No OFD packet to send [22:22:21]OFD Sender: No OFD packet to send [22:22:26]OFD Sender: No OFD packet to send [22:22:31]OFD Sender: No OFD packet to send [22:22:36]OFD Sender: No OFD packet to send [22:22:41]OFD Sender: No OFD packet to send [22:22:46]OFD Sender: No OFD packet to send [22:22:51]OFD Sender: No OFD packet to send [22:22:56]OFD Sender: No OFD packet to send [22:23:01]OFD Sender: No OFD packet to send [22:23:06]OFD Sender: No OFD packet to send [22:23:11]OFD Sender: No OFD packet to send [22:23:16]OFD Sender: No OFD packet to send [22:23:21]OFD Sender: No OFD packet to send [22:23:26]OFD Sender: No OFD packet to send [22:23:31]OFD Sender: No OFD packet to send [22:23:36]OFD Sender: No OFD packet to send [22:23:41]OFD Sender: No OFD packet to send [22:23:46]OFD Sender: No OFD packet to send [22:23:51]OFD Sender: No OFD packet to send [22:23:56]OFD Sender: No OFD packet to send [22:24:01]OFD Sender: No OFD packet to send [22:24:06]OFD Sender: No OFD packet to send [22:24:06]ConnectInit Can't connect to host [22:24:11]OFD Sender: No OFD packet to send [22:24:16]OFD Sender: No OFD packet to send [22:24:21]OFD Sender: No OFD packet to send [22:24:26]OFD Sender: No OFD packet to send [22:24:31]OFD Sender: No OFD packet to send [22:24:36]OFD Sender: No OFD packet to send [22:24:41]OFD Sender: No OFD packet to send [22:24:46]OFD Sender: No OFD packet to send [22:24:51]OFD Sender: No OFD packet to send [22:24:56]OFD Sender: No OFD packet to send [22:25:01]OFD Sender: No OFD packet to send [22:25:06]OFD Sender: No OFD packet to send [22:25:11]OFD Sender: No OFD packet to send [22:25:16]OFD Sender: No OFD packet to send [22:25:21]OFD Sender: No OFD packet to send [22:25:26]OFD Sender: No OFD packet to send [22:25:31]OFD Sender: No OFD packet to send [22:25:36]OFD Sender: No OFD packet to send [22:25:41]OFD Sender: No OFD packet to send [22:25:46]OFD Sender: No OFD packet to send [22:25:51]OFD Sender: No OFD packet to send [22:25:56]OFD Sender: No OFD packet to send [22:26:01]OFD Sender: No OFD packet to send [22:26:06]OFD Sender: No OFD packet to send [22:26:11]OFD Sender: No OFD packet to send [22:26:16]OFD Sender: No OFD packet to send [22:26:21]OFD Sender: No OFD packet to send [22:26:24]ConnectInit Can't connect to host [22:26:26]OFD Sender: No OFD packet to send [22:26:31]OFD Sender: No OFD packet to send [22:26:36]OFD Sender: No OFD packet to send [22:26:41]OFD Sender: No OFD packet to send [22:26:46]OFD Sender: No OFD packet to send [22:26:51]OFD Sender: No OFD packet to send [22:26:56]OFD Sender: No OFD packet to send [22:27:01]OFD Sender: No OFD packet to send [22:27:06]OFD Sender: No OFD packet to send [22:27:11]OFD Sender: No OFD packet to send [22:27:16]OFD Sender: No OFD packet to send [22:27:19]accept exits with 9 [22:27:19]New connection [22:27:19]New thread 3067432292 created [22:27:19]Thread 3067288932 joined [22:27:19]Waiting for new connection... [22:27:19] Sock 9.Parse request [22:27:19]Sock 9.Check first char [22:27:19]Sock 9.First char is OK [22:27:19]request: POST /json_proto HTTP/1.0 [22:27:19]Method: POST [22:27:19]URL: /json_proto [22:27:19]Method is POST - this is cgi request [22:27:19]url: /json_proto [22:27:19]query_string will be loaded in cgi processing [22:27:19]execute_cgi json_proto POST (null) [22:27:19]execute_cgi path=json_proto method=POST [22:27:19]POST find Content-Length [22:27:19]Host: 172.17.38.4:8080 [22:27:19]Content-Length: 677 [22:27:19]Content-Type: application/json [22:27:19] [22:27:19]POST finish read [22:27:19]Found Content-Length = 677 [22:27:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:19]execute_script... [22:27:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:19]POST & json_proto [22:27:19]process_json_proto [22:27:19]json parsed OK: [22:27:19]protocol is kg_v1.0 [22:27:19]action value=close_receipt [22:27:19]process_action close_receipt [22:27:19]cmd_close_receipt [22:27:19]MH_GetDate [22:27:19]Write to MH i2c: F0 00 00 1E 03 10 [22:27:19]Write i2c OK [22:27:19]MH_I2C_Read... [22:27:19]Read from MH i2c: F0 [22:27:19]MH_I2C_Read... [22:27:19]Read from MH i2c: F0 09 00 [22:27:19]MH_I2C_Read... [22:27:19]Read from MH i2c: F0 09 00 1E 03 00 C7 F1 5C 66 CC 51 87 64 9B [22:27:19]GetLastDocTimeStamp 1717366895 [22:27:19]current date 1717367239 [22:27:19]FM_GetShiftState [22:27:19]SAM_PROTO_GetShiftState [22:27:19]wFMCommunicate request_size=4 [22:27:19]MH_SAM_APDU [22:27:19]CAPDU: 80 13 01 00 [22:27:19]Write to MH i2c: E2 08 00 1F 03 80 13 01 00 00 00 00 00 9F [22:27:19]Write i2c OK [22:27:19]MH_I2C_Read... [22:27:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:19]Read from MH i2c: E2 [22:27:19]MH_I2C_Read... [22:27:19]Read from MH i2c: E2 0E 00 [22:27:19]MH_I2C_Read... [22:27:19]Read from MH i2c: E2 0E 00 1F 03 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 B7 [22:27:19]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [22:27:19]wFMCommunicate OK [22:27:19]SAM_PROTO_GetShiftState done [22:27:19]FM_GetShiftState done [22:27:19]opened in 1717287824 [22:27:19]opened+sec_in_day 1717374224 [22:27:19]quantity*price = 60025 [22:27:19]sum+1 = 60027 [22:27:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 408 02.06.2024 22:27 Смена: 366 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148216 ФПД: 40952318839183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T222719&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148216&fm=40952318839183&tin=02508201610067®Number=0000000000092720&sum=60000 [22:27:21]StoreToDocumentArchive [22:27:21]shift 366 fd 148216 [22:27:21]save to /storage/0366/doc_00148216 [22:27:21]save last doc name /storage/0366/doc_00148216 to /storage/kkm_last_doc_name [22:27:21]save OK [22:27:21]Clear old archive folders... [22:27:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:27:21]tlvbuf is 011BD750 [22:27:21]SAM_PROTO_ClearQueue [22:27:21]wFMCommunicate request_size=4 [22:27:21]MH_SAM_APDU [22:27:21]CAPDU: 80 09 00 00 [22:27:22]Write to MH i2c: E2 08 00 2C 03 80 09 00 00 00 00 00 00 A1 [22:27:22]Write i2c OK [22:27:22]MH_I2C_Read... [22:27:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:27:22]Read from MH i2c: E2 [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: E2 03 00 [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: E2 03 00 2C 03 00 90 00 A3 [22:27:22]RAPDU: 90 00 [22:27:22]wFMCommunicate OK [22:27:22]SAM_PROTO_ClearQueue done [22:27:22]KKMCreateOFDPacket [22:27:22]OFDProtocolAddRootSTLVToBuf [22:27:22]FM_MakeSignedData [22:27:22]FM_MakeSignedData [22:27:22]SAM_PROTO_SignData [22:27:22]wFMCommunicate request_size=4 [22:27:22]MH_SAM_APDU [22:27:22]CAPDU: 80 0D 01 02 [22:27:22]Write to MH i2c: E2 08 00 2D 03 80 0D 01 02 00 00 00 00 A9 [22:27:22]Write i2c OK [22:27:22]MH_I2C_Read... [22:27:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:27:22]Read from MH i2c: E2 [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: E2 03 00 [22:27:22]MH_I2C_Read... [22:27:22]Read from MH i2c: E2 03 00 2D 03 00 90 00 A4 [22:27:22]RAPDU: 90 00 [22:27:22]wFMCommunicate OK [22:27:22]wFMCommunicate request_size=255 [22:27:22]MH_SAM_APDU [22:27:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 01 00 00 F4 03 04 00 C7 F1 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F8 42 02 00 35 04 06 00 25 [22:27:22]Write to MH i2c: E2 02 01 2E 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 01 00 00 F4 03 04 00 C7 F1 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F8 42 02 00 35 04 06 00 25 00 00 18 [22:27:23]Write i2c OK [22:27:23]MH_I2C_Read... [22:27:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:23]Read from MH i2c: E2 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 03 00 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 03 00 2E 03 00 90 00 A5 [22:27:23]RAPDU: 90 00 [22:27:23]wFMCommunicate OK [22:27:23]wFMCommunicate request_size=10 [22:27:23]MH_SAM_APDU [22:27:23]CAPDU: 80 0D 02 02 05 3E F4 6A C9 8F [22:27:23]Write to MH i2c: E2 0D 00 2F 03 80 0D 02 02 05 00 3E F4 6A C9 8F 00 00 AA [22:27:23]Write i2c OK [22:27:23]MH_I2C_Read... [22:27:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:23]Read from MH i2c: E2 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 03 00 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 03 00 2F 03 00 90 00 A6 [22:27:23]RAPDU: 90 00 [22:27:23]wFMCommunicate OK [22:27:23]wFMCommunicate request_size=4 [22:27:23]MH_SAM_APDU [22:27:23]CAPDU: 80 0D 03 02 [22:27:23]Write to MH i2c: E2 08 00 30 03 80 0D 03 02 00 00 00 00 AE [22:27:23]Write i2c OK [22:27:23]MH_I2C_Read... [22:27:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:27:23]Read from MH i2c: E2 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 0B 00 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 0B 00 30 03 00 40 0B 6F D6 00 39 70 58 90 00 40 [22:27:23]RAPDU: 40 0B 6F D6 00 39 70 58 90 00 [22:27:23]wFMCommunicate OK [22:27:23]SAM_PROTO_SignData done [22:27:23]FM_MakeSignedData done [22:27:23]CreateOFDProtocolMessage [22:27:23]wFMCommunicate request_size=4 [22:27:23]MH_SAM_APDU [22:27:23]CAPDU: 80 11 00 00 [22:27:23]Write to MH i2c: E2 08 00 31 03 80 11 00 00 00 00 00 00 AE [22:27:23]Write i2c OK [22:27:23]MH_I2C_Read... [22:27:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:23]Read from MH i2c: E2 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 17 00 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: E2 17 00 31 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 01 [22:27:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:27:23]wFMCommunicate OK [22:27:23]CreateOFDProtocolMessage done [22:27:23]OFDSenderStorePacket 148216 [22:27:23]StoreOFDPacket docnum=148216 [22:27:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 E9 B4 07 01 42 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 01 00 00 F4 03 04 00 C7 F1 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F8 42 02 00 35 04 06 00 25 3E F4 6A C9 8F 40 0B 6F D6 00 39 70 58 [22:27:23]CheckFolder [22:27:23]dirname=/storage/ofd_packets [22:27:23]CheckFolder done [22:27:23]ProducePacketName [22:27:23]name=ofd_packets/00148216 [22:27:23]NVStorageSaveData ofd_packets/00148216 [22:27:23]File name is /storage/ofd_packets/00148216 [22:27:23]Write 301 bytes [22:27:23]NVStorageSaveData done [22:27:23]OFDSenderStorePacket done [22:27:23]KKMCreateOFDPacket done [22:27:23]NVStorageSaveData kkm_last_timestamp [22:27:23]File name is /storage/kkm_last_timestamp [22:27:23]Write 4 bytes [22:27:23]NVStorageSaveData done [22:27:23]OFD Sender: Processing packet 148216 [packets to send 99, broken 98] [22:27:23]ProducePacketName [22:27:23]name=ofd_packets/00148216 [22:27:23]OFD Sender: To server: pG, [22:27:23]CommunicateWithHost lk.salyk.kg:30040 [22:27:23]ConnectInit lk.salyk.kg [22:27:23]ExternCall_PrintAddStr [22:27:23]wPrintStart [22:27:23]Write to MH i2c: 01 00 00 32 03 35 [22:27:23]Write i2c OK [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: 01 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: 01 07 00 [22:27:23]MH_I2C_Read... [22:27:23]Read from MH i2c: 01 07 00 32 03 00 00 00 00 00 FF 0F 4A [22:27:23]RasterBufferAndPrint [22:27:23]line Счет N : (1)979155 [22:27:23]line ИНН: 02508201610067 [22:27:23]line Контрольно-Кассовый Чек [22:27:23]line ПРОДАЖА [22:27:23]line ТРК (МРК, ГНК) : 12 [22:27:23]line Товар: 2710124130 [22:27:23]line Аи-92-К-5 [22:27:23]line 9.040 * 66.40 [22:27:23]line = 600.26 [22:27:23]line НДС 12% НСП 1% [22:27:23]line > о реализуемом товаре [22:27:23]line ОКРУГЛЕНИЕ: -0.26 [22:27:23]line ИТОГО: 600.00 [22:27:23]line Внесено: 600.00 [22:27:23]line СДАЧА: 0.00 [22:27:23]line НСП 1% : 5.31 [22:27:23]line НДС 12% : 63.74 [22:27:23]line Наличными: 600.00 [22:27:23]line Безнал.: 0.00 [22:27:23]line Место: АЗС № 68 "Партнер Нефть" [22:27:23]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:27:23]line СНО: Общий режим [22:27:23]line Чек 408 02.06.2024 22:27 [22:27:23]line Смена: 366 ФФД: 1.0 [22:27:23]line ЗНМ: 0300000035 [22:27:23]line РНМ: 0000000000092720 [22:27:23]line Версия ККМ: 001 [22:27:23]line ФМ: 0000000000875057 [22:27:23]line ФД: 148216 [22:27:23]line ФПД: 40952318839183 [22:27:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T222719&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148216&fm=40952318839183&tin=02508201610067®Number=0000000000092720&sum=60000 [22:27:23]Connected sock=11 [22:27:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 E9 B4 07 01 42 77 5A written 0, free lines is 4095 [22:27:24]03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 01 00 00 F4 03 04 00 C7 F1 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F8 42 02 00 35 04 Write to MH i2c: 06 01 00 25 3E F4 00 6A 00 C9 8F 40 0B 6F D6 00 39 5D 70 03 58 60 [22:27:24] [22:27:24]Write i2c OK [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: 01 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: 01 07 00 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: 01 07 00 5D 03 00 00 00 00 00 93 0C 06 [22:27:24]RasterBufferAndPrint [22:27:24]line [22:27:24]line [22:27:24]line [22:27:24]line [22:27:24]line [22:27:24]written 0, free lines is 3278 [22:27:24]MH_Cut [22:27:24]Write to MH i2c: D1 01 00 64 03 01 39 [22:27:24]Write i2c OK [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: D1 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: D1 01 00 [22:27:24]MH_I2C_Read... [22:27:24]Read from MH i2c: D1 01 00 64 03 00 38 [22:27:24]Write to MH i2c: 01 00 00 65 03 68 [22:27:24]Write i2c OK [22:27:24]MH_I2C_Read... [22:27:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 61 50 47 00 20 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F8 42 02 00 F4 03 04 00 F3 98 5C 66 B6 04 01 00 00 AD 0B 94 B2 E8 7A 1A 08 [22:27:24]CommunicateWithHost err = 0 [22:27:24]CheckOFDResponse [22:27:24]1017 (14) - 77093643461234 [22:27:24]1041 (16) - 0000000000875057 [22:27:24]1040 (4) - 148216 [22:27:24]1012 (4) - 02.06.2024 16:08 [22:27:24]1206 (1) - 0 [22:27:24]OFD Sender: Remove packet 148216 [22:27:24]ProducePacketName [22:27:25]name=ofd_packets/00148216 [22:27:25]NVStorageDeleteData [22:27:25]OFD Sender: No OFD packet to send [22:27:25]*** Cut start [22:27:25]*** Partial cut [22:27:25]*** CUTSNS_PIN = 1 [22:27:25]*** CUTSNS_PIN = 0 [22:27:26]*** Brake cut motor [22:27:26]Read from MH i2c: 01 [22:27:26]MH_I2C_Read... [22:27:26]*** Stop cut motor [22:27:26]*** Cut end [22:27:26]Read from MH i2c: 01 07 00 [22:27:26]MH_I2C_Read... [22:27:26]Read from MH i2c: 01 07 00 65 03 00 00 00 00 00 FF 0F 7D [22:27:26]process_action close_receipt done [22:27:26]requested_data is exist [22:27:26]produce_requested_data [22:27:26]requested_item fm.sn is exist - process it [22:27:26]wFMCommunicate request_size=4 [22:27:26]MH_SAM_APDU [22:27:26]CAPDU: 80 11 00 00 [22:27:26]Write to MH i2c: E2 08 00 66 03 80 11 00 00 00 00 00 00 E3 [22:27:26]Write i2c OK [22:27:26]MH_I2C_Read... [22:27:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:26]Read from MH i2c: E2 [22:27:26]MH_I2C_Read... [22:27:26]Read from MH i2c: E2 17 00 [22:27:26]MH_I2C_Read... [22:27:26]Read from MH i2c: E2 17 00 66 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 36 [22:27:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:27:26]wFMCommunicate OK [22:27:26]requested_item fd.num is exist - process it [22:27:26]SAM_PROTO_GetFieldsCounters [22:27:26]wFMCommunicate request_size=4 [22:27:26]MH_SAM_APDU [22:27:26]CAPDU: 80 13 00 00 [22:27:26]Write to MH i2c: E2 08 00 67 03 80 13 00 00 00 00 00 00 E6 [22:27:26]Write i2c OK [22:27:26]MH_I2C_Read... [22:27:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:27:26]Read from MH i2c: E2 [22:27:26]MH_I2C_Read... [22:27:26]Read from MH i2c: E2 62 00 [22:27:26]MH_I2C_Read... [22:27:26]Read from MH i2c: E2 62 00 67 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F8 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 98 01 00 00 5E 04 04 00 98 01 00 00 57 04 04 00 99 01 00 00 19 04 04 00 00 00 00 00 90 00 78 [22: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 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F8 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 98 01 00 00 5E 04 04 00 98 01 00 00 57 04 04 00 99 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:27:27]wFMCommunicate OK [22:27:27]SAM_PROTO_GetFieldsCounters done [22:27:27]requested_item shift.num is exist - process it [22:27:27]requested_item shift.opened is exist - process it [22:27:27]req_shift_opened [22:27:27]FM_GetShiftState [22:27:27]SAM_PROTO_GetShiftState [22:27:27]wFMCommunicate request_size=4 [22:27:27]MH_SAM_APDU [22:27:27]CAPDU: 80 13 01 00 [22:27:27]Write to MH i2c: E2 08 00 68 03 80 13 01 00 00 00 00 00 E8 [22:27:27]Write i2c OK [22:27:27]MH_I2C_Read... [22:27:27]Read from MH i2c: E2 [22:27:27]MH_I2C_Read... [22:27:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:27]Read from MH i2c: E2 0E 00 [22:27:27]MH_I2C_Read... [22:27:27]Read from MH i2c: E2 0E 00 68 03 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 00 [22:27:27]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [22:27:27]wFMCommunicate OK [22:27:27]SAM_PROTO_GetShiftState done [22:27:27]FM_GetShiftState done [22:27:27]req_shift_opened done [22:27:27]requested_item shift.open_date is exist - process it [22:27:27]req_shift_open_date [22:27:27]req_shift_open_date done [22:27:27]produce_requested_data done [22:27:27]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148216,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [22:27:27]process_action_free close_receipt [22:27:27]json_value_free [22:27:27]json_value_free done [22:27:27]process_json_proto returns [22:27:27]Send response to host [22:27:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148216,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [22:27:27]free response buf [22:27:27]execute_script done [22:27:27]execute_script returns [22:27:27]free content buf [22:27:27]Sock 9.Close socket [22:27:27]Sock 9.Thread stoped [22:27:30]OFD Sender: No OFD packet to send [22:27:35]OFD Sender: No OFD packet to send [22:27:40]OFD Sender: No OFD packet to send [22:27:45]OFD Sender: No OFD packet to send [22:27:50]OFD Sender: No OFD packet to send [22:27:55]OFD Sender: No OFD packet to send [22:28:00]OFD Sender: No OFD packet to send [22:28:05]OFD Sender: No OFD packet to send [22:28:10]OFD Sender: No OFD packet to send [22:28:15]OFD Sender: No OFD packet to send [22:28:20]OFD Sender: No OFD packet to send [22:28:25]OFD Sender: No OFD packet to send [22:28:30]OFD Sender: No OFD packet to send [22:28:35]OFD Sender: No OFD packet to send [22:28:40]OFD Sender: No OFD packet to send [22:28:42]ConnectInit Can't connect to host [22:28:45]OFD Sender: No OFD packet to send [22:28:50]OFD Sender: No OFD packet to send [22:28:55]OFD Sender: No OFD packet to send [22:29:00]OFD Sender: No OFD packet to send [22:29:05]OFD Sender: No OFD packet to send [22:29:10]OFD Sender: No OFD packet to send [22:29:15]OFD Sender: No OFD packet to send [22:29:20]OFD Sender: No OFD packet to send [22:29:25]OFD Sender: No OFD packet to send [22:29:30]OFD Sender: No OFD packet to send [22:29:35]OFD Sender: No OFD packet to send [22:29:40]OFD Sender: No OFD packet to send [22:29:45]OFD Sender: No OFD packet to send [22:29:50]OFD Sender: No OFD packet to send [22:29:55]OFD Sender: No OFD packet to send [22:30:00]OFD Sender: No OFD packet to send [22:30:05]OFD Sender: No OFD packet to send [22:30:10]OFD Sender: No OFD packet to send [22:30:15]OFD Sender: No OFD packet to send [22:30:20]OFD Sender: No OFD packet to send [22:30:25]OFD Sender: No OFD packet to send [22:30:30]OFD Sender: No OFD packet to send [22:30:35]OFD Sender: No OFD packet to send [22:30:40]OFD Sender: No OFD packet to send [22:30:45]OFD Sender: No OFD packet to send [22:30:50]OFD Sender: No OFD packet to send [22:30:55]OFD Sender: No OFD packet to send [22:31:00]OFD Sender: No OFD packet to send [22:31:01]ConnectInit Can't connect to host [22:31:05]OFD Sender: No OFD packet to send [22:31:10]OFD Sender: No OFD packet to send [22:31:15]OFD Sender: No OFD packet to send [22:31:20]OFD Sender: No OFD packet to send [22:31:25]OFD Sender: No OFD packet to send [22:31:30]OFD Sender: No OFD packet to send [22:31:35]OFD Sender: No OFD packet to send [22:31:40]OFD Sender: No OFD packet to send [22:31:45]OFD Sender: No OFD packet to send [22:31:50]OFD Sender: No OFD packet to send [22:31:55]OFD Sender: No OFD packet to send [22:32:00]OFD Sender: No OFD packet to send [22:32:05]OFD Sender: No OFD packet to send [22:32:10]OFD Sender: No OFD packet to send [22:32:15]OFD Sender: No OFD packet to send [22:32:20]OFD Sender: No OFD packet to send [22:32:25]OFD Sender: No OFD packet to send [22:32:30]OFD Sender: No OFD packet to send [22:32:35]OFD Sender: No OFD packet to send [22:32:40]OFD Sender: No OFD packet to send [22:32:45]OFD Sender: No OFD packet to send [22:32:50]OFD Sender: No OFD packet to send [22:32:55]OFD Sender: No OFD packet to send [22:33:00]OFD Sender: No OFD packet to send [22:33:05]OFD Sender: No OFD packet to send [22:33:10]OFD Sender: No OFD packet to send [22:33:15]OFD Sender: No OFD packet to send [22:33:19]ConnectInit Can't connect to host [22:33:21]OFD Sender: No OFD packet to send [22:33:26]OFD Sender: No OFD packet to send [22:33:31]OFD Sender: No OFD packet to send [22:33:36]OFD Sender: No OFD packet to send [22:33:41]OFD Sender: No OFD packet to send [22:33:46]OFD Sender: No OFD packet to send [22:33:51]OFD Sender: No OFD packet to send [22:33:56]OFD Sender: No OFD packet to send [22:34:01]OFD Sender: No OFD packet to send [22:34:06]OFD Sender: No OFD packet to send [22:34:11]OFD Sender: No OFD packet to send [22:34:16]OFD Sender: No OFD packet to send [22:34:21]OFD Sender: No OFD packet to send [22:34:26]OFD Sender: No OFD packet to send [22:34:31]OFD Sender: No OFD packet to send [22:34:36]OFD Sender: No OFD packet to send [22:34:41]OFD Sender: No OFD packet to send [22:34:46]OFD Sender: No OFD packet to send [22:34:51]OFD Sender: No OFD packet to send [22:34:56]OFD Sender: No OFD packet to send [22:35:01]OFD Sender: No OFD packet to send [22:35:06]OFD Sender: No OFD packet to send [22:35:11]OFD Sender: No OFD packet to send [22:35:16]OFD Sender: No OFD packet to send [22:35:21]OFD Sender: No OFD packet to send [22:35:21]accept exits with 10 [22:35:21]New connection [22:35:21]New thread 3067288932 created [22:35:21]Thread 3067432292 joined [22:35:21]Waiting for new connection... [22:35:21] Sock 10.Parse request [22:35:21]Sock 10.Check first char [22:35:21]Sock 10.First char is OK [22:35:21]request: POST /json_proto HTTP/1.0 [22:35:21]Method: POST [22:35:21]URL: /json_proto [22:35:21]Method is POST - this is cgi request [22:35:21]url: /json_proto [22:35:21]query_string will be loaded in cgi processing [22:35:21]execute_cgi json_proto POST (null) [22:35:21]execute_cgi path=json_proto method=POST [22:35:21]POST find Content-Length [22:35:21]Host: 172.17.38.4:8080 [22:35:21]Content-Length: 677 [22:35:21]Content-Type: application/json [22:35:21] [22:35:21]POST finish read [22:35:21]Found Content-Length = 677 [22:35:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:35:21]execute_script... [22:35:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:35:21]POST & json_proto [22:35:21]process_json_proto [22:35:21]json parsed OK: [22:35:21]protocol is kg_v1.0 [22:35:21]action value=close_receipt [22:35:21]process_action close_receipt [22:35:21]cmd_close_receipt [22:35:21]MH_GetDate [22:35:21]Write to MH i2c: F0 00 00 69 03 5B [22:35:21]Write i2c OK [22:35:21]MH_I2C_Read... [22:35:21]Read from MH i2c: F0 [22:35:21]MH_I2C_Read... [22:35:21]Read from MH i2c: F0 09 00 [22:35:21]MH_I2C_Read... [22:35:21]Read from MH i2c: F0 09 00 69 03 00 A9 F3 5C 66 CC 51 87 64 CA [22:35:21]GetLastDocTimeStamp 1717367239 [22:35:21]current date 1717367721 [22:35:21]FM_GetShiftState [22:35:21]SAM_PROTO_GetShiftState [22:35:21]wFMCommunicate request_size=4 [22:35:21]MH_SAM_APDU [22:35:21]CAPDU: 80 13 01 00 [22:35:21]Write to MH i2c: E2 08 00 6A 03 80 13 01 00 00 00 00 00 EA [22:35:21]Write i2c OK [22:35:21]MH_I2C_Read... [22:35:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:21]Read from MH i2c: E2 [22:35:21]MH_I2C_Read... [22:35:21]Read from MH i2c: E2 0E 00 [22:35:21]MH_I2C_Read... [22:35:21]Read from MH i2c: E2 0E 00 6A 03 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 02 [22:35:22]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [22:35:22]wFMCommunicate OK [22:35:22]SAM_PROTO_GetShiftState done [22:35:22]FM_GetShiftState done [22:35:22]opened in 1717287824 [22:35:22]opened+sec_in_day 1717374224 [22:35:22]quantity*price = 35059 [22:35:22]sum+1 = 35060 [22:35:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 409 02.06.2024 22:35 Смена: 366 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148217 ФПД: 42029872190604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T223522&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148217&fm=42029872190604&tin=02508201610067®Number=0000000000092720&sum=35000 [22:35:24]StoreToDocumentArchive [22:35:24]shift 366 fd 148217 [22:35:24]save to /storage/0366/doc_00148217 [22:35:24]save last doc name /storage/0366/doc_00148217 to /storage/kkm_last_doc_name [22:35:24]save OK [22:35:24]Clear old archive folders... [22:35:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:35:24]tlvbuf is 011E5FA0 [22:35:24]SAM_PROTO_ClearQueue [22:35:24]wFMCommunicate request_size=4 [22:35:24]MH_SAM_APDU [22:35:24]CAPDU: 80 09 00 00 [22:35:24]Write to MH i2c: E2 08 00 77 03 80 09 00 00 00 00 00 00 EC [22:35:24]Write i2c OK [22:35:24]MH_I2C_Read... [22:35:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:35:24]Read from MH i2c: E2 [22:35:24]MH_I2C_Read... [22:35:24]Read from MH i2c: E2 03 00 [22:35:24]MH_I2C_Read... [22:35:24]Read from MH i2c: E2 03 00 77 03 00 90 00 EE [22:35:24]RAPDU: 90 00 [22:35:24]wFMCommunicate OK [22:35:24]SAM_PROTO_ClearQueue done [22:35:24]KKMCreateOFDPacket [22:35:24]OFDProtocolAddRootSTLVToBuf [22:35:24]FM_MakeSignedData [22:35:24]FM_MakeSignedData [22:35:24]SAM_PROTO_SignData [22:35:24]wFMCommunicate request_size=4 [22:35:24]MH_SAM_APDU [22:35:24]CAPDU: 80 0D 01 02 [22:35:24]Write to MH i2c: E2 08 00 78 03 80 0D 01 02 00 00 00 00 F4 [22:35:24]Write i2c OK [22:35:24]MH_I2C_Read... [22:35:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:35:24]Read from MH i2c: E2 [22:35:24]MH_I2C_Read... [22:35:24]Read from MH i2c: E2 03 00 [22:35:24]MH_I2C_Read... [22:35:24]Read from MH i2c: E2 03 00 78 03 00 90 00 EF [22:35:24]RAPDU: 90 00 [22:35:24]wFMCommunicate OK [22:35:24]wFMCommunicate request_size=255 [22:35:24]MH_SAM_APDU [22:35:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 AA F3 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F9 42 02 00 35 04 06 00 26 [22:35:24]Write to MH i2c: E2 02 01 79 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 AA F3 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F9 42 02 00 35 04 06 00 26 00 00 4C [22:35:25]Write i2c OK [22:35:25]MH_I2C_Read... [22:35:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:25]Read from MH i2c: E2 [22:35:25]MH_I2C_Read... [22:35:25]Read from MH i2c: E2 03 00 [22:35:25]MH_I2C_Read... [22:35:25]Read from MH i2c: E2 03 00 79 03 00 90 00 F0 [22:35:25]RAPDU: 90 00 [22:35:25]wFMCommunicate OK [22:35:25]wFMCommunicate request_size=10 [22:35:25]MH_SAM_APDU [22:35:25]CAPDU: 80 0D 02 02 05 39 D7 9A 14 8C [22:35:25]Write to MH i2c: E2 0D 00 7A 03 80 0D 02 02 05 00 39 D7 9A 14 8C 00 00 4B [22:35:25]Write i2c OK [22:35:25]MH_I2C_Read... [22:35:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:25]Read from MH i2c: E2 [22:35:25]MH_I2C_Read... [22:35:25]Read from MH i2c: E2 03 00 [22:35:25]MH_I2C_Read... [22:35:25]Read from MH i2c: E2 03 00 7A 03 00 90 00 F1 [22:35:25]RAPDU: 90 00 [22:35:25]wFMCommunicate OK [22:35:25]wFMCommunicate request_size=4 [22:35:25]MH_SAM_APDU [22:35:25]CAPDU: 80 0D 03 02 [22:35:25]Write to MH i2c: E2 08 00 7B 03 80 0D 03 02 00 00 00 00 F9 [22:35:25]Write i2c OK [22:35:25]MH_I2C_Read... [22:35:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:35:25]Read from MH i2c: E2 [22:35:25]MH_I2C_Read... [22:35:25]Read from MH i2c: E2 0B 00 [22:35:25]MH_I2C_Read... [22:35:25]Read from MH i2c: E2 0B 00 7B 03 00 43 82 9E D1 E6 F4 17 8C 90 00 AB [22:35:25]RAPDU: 43 82 9E D1 E6 F4 17 8C 90 00 [22:35:25]wFMCommunicate OK [22:35:25]SAM_PROTO_SignData done [22:35:25]FM_MakeSignedData done [22:35:25]CreateOFDProtocolMessage [22:35:25]wFMCommunicate request_size=4 [22:35:25]MH_SAM_APDU [22:35:25]CAPDU: 80 11 00 00 [22:35:25]Write to MH i2c: E2 08 00 7C 03 80 11 00 00 00 00 00 00 F9 [22:35:25]Write i2c OK [22:35:25]MH_I2C_Read... [22:35:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:26]Read from MH i2c: E2 [22:35:26]MH_I2C_Read... [22:35:26]Read from MH i2c: E2 17 00 [22:35:26]MH_I2C_Read... [22:35:26]Read from MH i2c: E2 17 00 7C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 4C [22:35:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:35:26]wFMCommunicate OK [22:35:26]CreateOFDProtocolMessage done [22:35:26]OFDSenderStorePacket 148217 [22:35:26]StoreOFDPacket docnum=148217 [22:35:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 FD E7 07 01 EA 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 AA F3 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 F9 42 02 00 35 04 06 00 26 39 D7 9A 14 8C 43 82 9E D1 E6 F4 17 8C [22:35:26]CheckFolder [22:35:26]dirname=/storage/ofd_packets [22:35:26]CheckFolder done [22:35:26]ProducePacketName [22:35:26]name=ofd_packets/00148217 [22:35:26]NVStorageSaveData ofd_packets/00148217 [22:35:26]File name is /storage/ofd_packets/00148217 [22:35:26]Write 301 bytes [22:35:26]NVStorageSaveData done [22:35:26]OFDSenderStorePacket done [22:35:26]KKMCreateOFDPacket done [22:35:26]NVStorageSaveData kkm_last_timestamp [22:35:26]File name is /storage/kkm_last_timestamp [22:35:26]Write 4 bytes [22:35:26]NVStorageSaveData done [22:35:26]ExternCall_PrintAddStr [22:35:26]wPrintStart [22:35:26]Write to MH i2c: 01 00 00 7D 03 80 [22:35:26]Write i2c OK [22:35:26]MH_I2C_Read... [22:35:26]Read from MH i2c: 01 [22:35:26]MH_I2C_Read... [22:35:26]Read from MH i2c: 01 07 00 [22:35:26]MH_I2C_Read... [22:35:26]Read from MH i2c: 01 07 00 7D 03 00 00 00 00 00 FF 0F 95 [22:35:26]RasterBufferAndPrint [22:35:26]line Счет N : (1)979156 [22:35:26]line ИНН: 02508201610067 [22:35:26]line Контрольно-Кассовый Чек [22:35:26]line ПРОДАЖА [22:35:26]line ТРК (МРК, ГНК) : 22 [22:35:26]line Товар: 2710124130 [22:35:26]line Аи-92-К-5 [22:35:26]line 5.280 * 66.40 [22:35:26]line = 350.59 [22:35:26]line НДС 12% НСП 1% [22:35:26]line > о реализуемом товаре [22:35:26]line ОКРУГЛЕНИЕ: -0.59 [22:35:26]line ИТОГО: 350.00 [22:35:26]line Внесено: 350.00 [22:35:26]line СДАЧА: 0.00 [22:35:26]line НСП 1% : 3.10 [22:35:26]line НДС 12% : 37.23 [22:35:26]line Наличными: 350.00 [22:35:26]line Безнал.: 0.00 [22:35:26]line Место: АЗС № 68 "Партнер Нефть" [22:35:26]OFD Sender: Processing packet 148217 [packets to send 99, broken 98] [22:35:26]ProducePacketName [22:35:26]name=ofd_packets/00148217 [22:35:26]OFD Sender: To server: pG, [22:35:26]CommunicateWithHost lk.salyk.kg:30040 [22:35:26]ConnectInit lk.salyk.kg [22:35:26]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:35:26]line СНО: Общий режим [22:35:26]line Чек 409 02.06.2024 22:35 [22:35:26]line Смена: 366 ФФД: 1.0 [22:35:26]line ЗНМ: 0300000035 [22:35:26]line РНМ: 0000000000092720 [22:35:26]line Версия ККМ: 001 [22:35:26]line ФМ: 0000000000875057 [22:35:26]line ФД: 148217 [22:35:26]line ФПД: 42029872190604 [22:35:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T223522&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148217&fm=42029872190604&tin=02508201610067®Number=0000000000092720&sum=35000 [22:35:26]written 0, free lines is 4095 [22:35:26]Connected sock=11 [22:35:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 FD E7 07 01 EA 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 01 00 00 F4 03 04 00 AA F3 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 Write to MH i2c: 30 01 30 00 39 00 32 A8 37 03 32 AB 30 11 04 10 00 30 30 30 [22:35:26]30 Write i2c OK [22:35:26]30 MH_I2C_Read... [22:35:26]30 30 30 30 30 38 37 35 Read from MH i2c: 30 01 35 [22:35:26]37 MH_I2C_Read... [22:35:26]10 Read from MH i2c: 04 01 04 07 00 00 F9 [22:35:26]MH_I2C_Read... [22:35:26]Read from MH i2c: 01 07 00 A8 03 42 00 02 00 00 00 00 00 0E 0D CD [22:35:27]RasterBufferAndPrint [22:35:27]35 line [22:35:27]04 line [22:35:27]06 line [22:35:27]00 line [22:35:27]26 line [22:35:27]39 written 0, free lines is 3459 [22:35:27]D7 9A 14 8C 43 82 9E D1 E6 F4 17 8C MH_Cut [22:35:27] [22:35:27]Write to MH i2c: D1 01 00 AF 03 01 84 [22:35:27]Write i2c OK [22:35:27]MH_I2C_Read... [22:35:27]Read from MH i2c: D1 [22:35:27]MH_I2C_Read... [22:35:27]Read from MH i2c: D1 01 00 [22:35:27]MH_I2C_Read... [22:35:27]Read from MH i2c: D1 01 00 AF 03 00 83 [22:35:27]Write to MH i2c: 01 00 00 B0 03 B3 [22:35:27]Write i2c OK [22:35:27]MH_I2C_Read... [22:35:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 B7 B6 47 00 F4 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 35 30 35 37 10 04 04 00 F9 42 02 00 F4 03 04 00 D6 9A 5C 66 B6 04 01 00 00 08 E5 33 57 91 D7 9B 23 [22:35:27]CommunicateWithHost err = 0 [22:35:27]CheckOFDResponse [22:35:27]1017 (14) - 77093643461234 [22:35:27]1041 (16) - 0000000000875057 [22:35:27]1040 (4) - 148217 [22:35:27]1012 (4) - 02.06.2024 16:16 [22:35:27]1206 (1) - 0 [22:35:27]OFD Sender: Remove packet 148217 [22:35:27]ProducePacketName [22:35:27]name=ofd_packets/00148217 [22:35:27]NVStorageDeleteData [22:35:28]*** Cut start [22:35:28]*** Partial cut [22:35:28]*** CUTSNS_PIN = 1 [22:35:28]*** CUTSNS_PIN = 0 [22:35:28]OFD Sender: No OFD packet to send [22:35:28]*** Brake cut motor [22:35:28]Read from MH i2c: 01 [22:35:28]MH_I2C_Read... [22:35:28]*** Stop cut motor [22:35:28]*** Cut end [22:35:28]Read from MH i2c: 01 07 00 [22:35:28]MH_I2C_Read... [22:35:28]Read from MH i2c: 01 07 00 B0 03 00 00 00 00 00 FF 0F C8 [22:35:28]process_action close_receipt done [22:35:28]requested_data is exist [22:35:28]produce_requested_data [22:35:28]requested_item fm.sn is exist - process it [22:35:28]wFMCommunicate request_size=4 [22:35:28]MH_SAM_APDU [22:35:28]CAPDU: 80 11 00 00 [22:35:28]Write to MH i2c: E2 08 00 B1 03 80 11 00 00 00 00 00 00 2E [22:35:28]Write i2c OK [22:35:28]MH_I2C_Read... [22:35:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:28]Read from MH i2c: E2 [22:35:28]MH_I2C_Read... [22:35:28]Read from MH i2c: E2 17 00 [22:35:28]MH_I2C_Read... [22:35:28]Read from MH i2c: E2 17 00 B1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 81 [22:35:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:35:28]wFMCommunicate OK [22:35:28]requested_item fd.num is exist - process it [22:35:28]SAM_PROTO_GetFieldsCounters [22:35:28]wFMCommunicate request_size=4 [22:35:28]MH_SAM_APDU [22:35:28]CAPDU: 80 13 00 00 [22:35:28]Write to MH i2c: E2 08 00 B2 03 80 13 00 00 00 00 00 00 31 [22:35:28]Write i2c OK [22:35:28]MH_I2C_Read... [22:35:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:35:29]Read from MH i2c: E2 [22:35:29]MH_I2C_Read... [22:35:29]Read from MH i2c: E2 62 00 [22:35:29]MH_I2C_Read... [22:35:29]Read from MH i2c: E2 62 00 B2 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F9 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 99 01 00 00 5E 04 04 00 99 01 00 00 57 04 04 00 9A 01 00 00 19 04 04 00 00 00 00 00 90 00 C7 [22:35:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F9 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 99 01 00 00 5E 04 04 00 99 01 00 00 57 04 04 00 9A 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:35:29]wFMCommunicate OK [22:35:29]SAM_PROTO_GetFieldsCounters done [22:35:29]requested_item shift.num is exist - process it [22:35:29]requested_item shift.opened is exist - process it [22:35:29]req_shift_opened [22:35:29]FM_GetShiftState [22:35:29]SAM_PROTO_GetShiftState [22:35:29]wFMCommunicate request_size=4 [22:35:29]MH_SAM_APDU [22:35:29]CAPDU: 80 13 01 00 [22:35:29]Write to MH i2c: E2 08 00 B3 03 80 13 01 00 00 00 00 00 33 [22:35:29]Write i2c OK [22:35:29]MH_I2C_Read... [22:35:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:29]Read from MH i2c: E2 [22:35:29]MH_I2C_Read... [22:35:29]Read from MH i2c: E2 0E 00 [22:35:29]MH_I2C_Read... [22:35:29]Read from MH i2c: E2 0E 00 B3 03 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 4B [22:35:29]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [22:35:29]wFMCommunicate OK [22:35:29]SAM_PROTO_GetShiftState done [22:35:29]FM_GetShiftState done [22:35:29]req_shift_opened done [22:35:29]requested_item shift.open_date is exist - process it [22:35:29]req_shift_open_date [22:35:29]req_shift_open_date done [22:35:29]produce_requested_data done [22:35:29]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148217,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [22:35:29]process_action_free close_receipt [22:35:29]json_value_free [22:35:29]json_value_free done [22:35:29]process_json_proto returns [22:35:29]Send response to host [22:35:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148217,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [22:35:29]free response buf [22:35:29]execute_script done [22:35:29]execute_script returns [22:35:29]free content buf [22:35:29]Sock 10.Close socket [22:35:29]Sock 10.Thread stoped [22:35:33]OFD Sender: No OFD packet to send [22:35:37]ConnectInit Can't connect to host [22:35:38]OFD Sender: No OFD packet to send [22:35:43]OFD Sender: No OFD packet to send [22:35:48]OFD Sender: No OFD packet to send [22:35:53]OFD Sender: No OFD packet to send [22:35:58]OFD Sender: No OFD packet to send [22:36:03]OFD Sender: No OFD packet to send [22:36:08]OFD Sender: No OFD packet to send [22:36:13]OFD Sender: No OFD packet to send [22:36:18]OFD Sender: No OFD packet to send [22:36:23]OFD Sender: No OFD packet to send [22:36:28]OFD Sender: No OFD packet to send [22:36:33]OFD Sender: No OFD packet to send [22:36:38]OFD Sender: No OFD packet to send [22:36:43]OFD Sender: No OFD packet to send [22:36:48]OFD Sender: No OFD packet to send [22:36:53]OFD Sender: No OFD packet to send [22:36:58]OFD Sender: No OFD packet to send [22:37:03]OFD Sender: No OFD packet to send [22:37:08]OFD Sender: No OFD packet to send [22:37:13]OFD Sender: No OFD packet to send [22:37:18]OFD Sender: No OFD packet to send [22:37:23]OFD Sender: No OFD packet to send [22:37:28]OFD Sender: No OFD packet to send [22:37:33]OFD Sender: No OFD packet to send [22:37:38]OFD Sender: No OFD packet to send [22:37:43]OFD Sender: No OFD packet to send [22:37:48]OFD Sender: No OFD packet to send [22:37:53]OFD Sender: No OFD packet to send [22:37:55]ConnectInit Can't connect to host [22:37:58]OFD Sender: No OFD packet to send [22:38:03]OFD Sender: No OFD packet to send [22:38:08]OFD Sender: No OFD packet to send [22:38:13]OFD Sender: No OFD packet to send [22:38:18]OFD Sender: No OFD packet to send [22:38:23]OFD Sender: No OFD packet to send [22:38:28]OFD Sender: No OFD packet to send [22:38:33]OFD Sender: No OFD packet to send [22:38:38]OFD Sender: No OFD packet to send [22:38:43]OFD Sender: No OFD packet to send [22:38:48]OFD Sender: No OFD packet to send [22:38:53]OFD Sender: No OFD packet to send [22:38:58]OFD Sender: No OFD packet to send [22:39:03]OFD Sender: No OFD packet to send [22:39:08]OFD Sender: No OFD packet to send [22:39:13]OFD Sender: No OFD packet to send [22:39:18]OFD Sender: No OFD packet to send [22:39:23]OFD Sender: No OFD packet to send [22:39:28]OFD Sender: No OFD packet to send [22:39:33]OFD Sender: No OFD packet to send [22:39:38]OFD Sender: No OFD packet to send [22:39:43]OFD Sender: No OFD packet to send [22:39:48]OFD Sender: No OFD packet to send [22:39:53]OFD Sender: No OFD packet to send [22:39:58]OFD Sender: No OFD packet to send [22:40:02]accept exits with 9 [22:40:02]New connection [22:40:02]New thread 3067432292 created [22:40:02]Thread 3067288932 joined [22:40:02]Waiting for new connection... [22:40:02] Sock 9.Parse request [22:40:02]Sock 9.Check first char [22:40:02]Sock 9.First char is OK [22:40:02]request: POST /json_proto HTTP/1.0 [22:40:02]Method: POST [22:40:02]URL: /json_proto [22:40:02]Method is POST - this is cgi request [22:40:02]url: /json_proto [22:40:02]query_string will be loaded in cgi processing [22:40:02]execute_cgi json_proto POST (null) [22:40:02]execute_cgi path=json_proto method=POST [22:40:02]POST find Content-Length [22:40:02]Host: 172.17.38.4:8080 [22:40:02]Content-Length: 1207 [22:40:02]Content-Type: application/json [22:40:02] [22:40:02]POST finish read [22:40:02]Found Content-Length = 1207 [22:40:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u043E\u0433\u0442\u0443\u0440\u0431\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)979157\u000A02.06.2024 22:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1992.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03858\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:02]execute_script... [22:40:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 68\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0414\u043E\u0433\u0442\u0443\u0440\u0431\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)979157\u000A02.06.2024 22:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 66.40\u000A\u0418\u0422\u041E\u0413: 1992.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03858\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:02]POST & json_proto [22:40:02]process_json_proto [22:40:02]json parsed OK: [22:40:02]protocol is kg_v1.0 [22:40:02]action value=print_text [22:40:02]process_action print_text [22:40:02]cmd_print_text [22:40:02]ExternCall_PrintAddStr [22:40:02]wPrintStart [22:40:02]Write to MH i2c: 01 00 00 B4 03 B7 [22:40:02]Write i2c OK [22:40:02]MH_I2C_Read... [22:40:02]Read from MH i2c: 01 [22:40:02]MH_I2C_Read... [22:40:02]Read from MH i2c: 01 07 00 [22:40:02]MH_I2C_Read... [22:40:02]Read from MH i2c: 01 07 00 B4 03 00 00 00 00 00 FF 0F CC [22:40:02]RasterBufferAndPrint [22:40:02]line *****ТОВАРНЫЙ ЧЕК***** [22:40:02]line АЗС 68 [22:40:02]line Партнер нефть [22:40:02]line 02508201610067 [22:40:02]line Кассир : Догтурбаев А. [22:40:02]line Счет N : (1)979157 [22:40:02]line 02.06.2024 22:20 [22:40:02]line ПРОДАЖА [22:40:02]line ТРК (МРК, ГНК): 12 [22:40:02]line Вид ГСМ : 2710124130 [22:40:02]line Аи-92-К-5 [22:40:02]line 30.000 x 66.40 [22:40:02]line ИТОГ: 1992.00 [22:40:02]line Тип оплаты: Талоны: Топливная Карта [22:40:02]line 03858 [22:40:02]line ______________________ [22:40:02]line (подпись) [22:40:02]written 0, free lines is 4095 [22:40:02]Write to MH i2c: 01 00 00 C8 03 CB [22:40:02]Write i2c OK [22:40:02]MH_I2C_Read... [22:40:02]Read from MH i2c: 01 [22:40:02]MH_I2C_Read... [22:40:02]Read from MH i2c: 01 07 00 [22:40:02]MH_I2C_Read... [22:40:02]Read from MH i2c: 01 07 00 C8 03 00 00 00 00 00 1B 0E FB [22:40:02]RasterBufferAndPrint [22:40:02]line [22:40:02]line [22:40:02]line [22:40:02]line [22:40:02]line [22:40:02]written 0, free lines is 3665 [22:40:02]MH_Cut [22:40:02]Write to MH i2c: D1 01 00 CF 03 01 A4 [22:40:02]Write i2c OK [22:40:02]MH_I2C_Read... [22:40:02]Read from MH i2c: D1 [22:40:02]MH_I2C_Read... [22:40:02]Read from MH i2c: D1 01 00 [22:40:02]MH_I2C_Read... [22:40:02]Read from MH i2c: D1 01 00 CF 03 00 A3 [22:40:02]Write to MH i2c: 01 00 00 D0 03 D3 [22:40:02]Write i2c OK [22:40:02]MH_I2C_Read... [22:40:03]*** Cut start [22:40:03]*** Partial cut [22:40:03]*** CUTSNS_PIN = 1 [22:40:03]*** CUTSNS_PIN = 0 [22:40:03]OFD Sender: No OFD packet to send [22:40:03]*** Brake cut motor [22:40:04]Read from MH i2c: 01 [22:40:04]MH_I2C_Read... [22:40:04]*** Stop cut motor [22:40:04]*** Cut end [22:40:04]Read from MH i2c: 01 07 00 [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: 01 07 00 D0 03 00 00 00 00 00 FF 0F E8 [22:40:04]process_action print_text done [22:40:04]requested_data is exist [22:40:04]produce_requested_data [22:40:04]requested_item fm.sn is exist - process it [22:40:04]wFMCommunicate request_size=4 [22:40:04]MH_SAM_APDU [22:40:04]CAPDU: 80 11 00 00 [22:40:04]Write to MH i2c: E2 08 00 D1 03 80 11 00 00 00 00 00 00 4E [22:40:04]Write i2c OK [22:40:04]MH_I2C_Read... [22:40:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:04]Read from MH i2c: E2 [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: E2 17 00 [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: E2 17 00 D1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A1 [22:40:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:40:04]wFMCommunicate OK [22:40:04]requested_item fd.num is exist - process it [22:40:04]SAM_PROTO_GetFieldsCounters [22:40:04]wFMCommunicate request_size=4 [22:40:04]MH_SAM_APDU [22:40:04]CAPDU: 80 13 00 00 [22:40:04]Write to MH i2c: E2 08 00 D2 03 80 13 00 00 00 00 00 00 51 [22:40:04]Write i2c OK [22:40:04]MH_I2C_Read... [22:40:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:40:04]Read from MH i2c: E2 [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: E2 62 00 [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: E2 62 00 D2 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F9 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 99 01 00 00 5E 04 04 00 99 01 00 00 57 04 04 00 9A 01 00 00 19 04 04 00 00 00 00 00 90 00 E7 [22:40:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 F9 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 99 01 00 00 5E 04 04 00 99 01 00 00 57 04 04 00 9A 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:40:04]wFMCommunicate OK [22:40:04]SAM_PROTO_GetFieldsCounters done [22:40:04]requested_item shift.num is exist - process it [22:40:04]requested_item shift.opened is exist - process it [22:40:04]req_shift_opened [22:40:04]FM_GetShiftState [22:40:04]SAM_PROTO_GetShiftState [22:40:04]wFMCommunicate request_size=4 [22:40:04]MH_SAM_APDU [22:40:04]CAPDU: 80 13 01 00 [22:40:04]Write to MH i2c: E2 08 00 D3 03 80 13 01 00 00 00 00 00 53 [22:40:04]Write i2c OK [22:40:04]MH_I2C_Read... [22:40:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:04]Read from MH i2c: E2 [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: E2 0E 00 [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: E2 0E 00 D3 03 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 6B [22:40:04]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [22:40:04]wFMCommunicate OK [22:40:04]SAM_PROTO_GetShiftState done [22:40:04]FM_GetShiftState done [22:40:04]req_shift_opened done [22:40:04]requested_item shift.open_date is exist - process it [22:40:04]req_shift_open_date [22:40:04]req_shift_open_date done [22:40:04]produce_requested_data done [22:40:04]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148217,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [22:40:04]process_action_free print_text [22:40:04]json_value_free [22:40:04]json_value_free done [22:40:04]process_json_proto returns [22:40:04]Send response to host [22:40:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148217,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [22:40:04]free response buf [22:40:04]execute_script done [22:40:04]execute_script returns [22:40:04]free content buf [22:40:04]Sock 9.Close socket [22:40:04]Sock 9.Thread stoped [22:40:08]OFD Sender: No OFD packet to send [22:40:12]accept exits with 10 [22:40:12]New connection [22:40:12]New thread 3067288932 created [22:40:12]Thread 3067432292 joined [22:40:12]Waiting for new connection... [22:40:12] Sock 10.Parse request [22:40:12]Sock 10.Check first char [22:40:12]Sock 10.First char is OK [22:40:12]request: POST /json_proto HTTP/1.0 [22:40:12]Method: POST [22:40:12]URL: /json_proto [22:40:12]Method is POST - this is cgi request [22:40:12]url: /json_proto [22:40:12]query_string will be loaded in cgi processing [22:40:12]execute_cgi json_proto POST (null) [22:40:12]execute_cgi path=json_proto method=POST [22:40:12]POST find Content-Length [22:40:12]Host: 172.17.38.4:8080 [22:40:12]Content-Length: 677 [22:40:12]Content-Type: application/json [22:40:12] [22:40:12]POST finish read [22:40:12]Found Content-Length = 677 [22:40:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.620, "sum" : 240.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:12]execute_script... [22:40:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.620, "sum" : 240.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:12]POST & json_proto [22:40:12]process_json_proto [22:40:12]json parsed OK: [22:40:12]protocol is kg_v1.0 [22:40:12]action value=close_receipt [22:40:12]process_action close_receipt [22:40:12]cmd_close_receipt [22:40:12]MH_GetDate [22:40:12]Write to MH i2c: F0 00 00 D4 03 C6 [22:40:12]Write i2c OK [22:40:12]MH_I2C_Read... [22:40:12]Read from MH i2c: F0 [22:40:12]MH_I2C_Read... [22:40:12]Read from MH i2c: F0 09 00 [22:40:12]MH_I2C_Read... [22:40:12]Read from MH i2c: F0 09 00 D4 03 00 CC F4 5C 66 CC 51 87 64 59 [22:40:12]GetLastDocTimeStamp 1717367722 [22:40:12]current date 1717368012 [22:40:12]FM_GetShiftState [22:40:12]SAM_PROTO_GetShiftState [22:40:12]wFMCommunicate request_size=4 [22:40:12]MH_SAM_APDU [22:40:12]CAPDU: 80 13 01 00 [22:40:12]Write to MH i2c: E2 08 00 D5 03 80 13 01 00 00 00 00 00 55 [22:40:12]Write i2c OK [22:40:12]MH_I2C_Read... [22:40:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:12]Read from MH i2c: E2 [22:40:12]MH_I2C_Read... [22:40:12]Read from MH i2c: E2 0E 00 [22:40:12]MH_I2C_Read... [22:40:12]Read from MH i2c: E2 0E 00 D5 03 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 6D [22:40:12]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [22:40:12]wFMCommunicate OK [22:40:12]SAM_PROTO_GetShiftState done [22:40:12]FM_GetShiftState done [22:40:12]opened in 1717287824 [22:40:12]opened+sec_in_day 1717374224 [22:40:12]quantity*price = 24036 [22:40:12]sum+1 = 24038 [22:40:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.13 НДС 12% : 25.53 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 410 02.06.2024 22:40 Смена: 366 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148218 ФПД: 131345973168031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T224013&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148218&fm=131345973168031&tin=02508201610067®Number=0000000000092720&sum=24000 [22:40:15]StoreToDocumentArchive [22:40:15]shift 366 fd 148218 [22:40:15]save to /storage/0366/doc_00148218 [22:40:15]save last doc name /storage/0366/doc_00148218 to /storage/kkm_last_doc_name [22:40:15]save OK [22:40:15]Clear old archive folders... [22:40:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:40:15]tlvbuf is 011F52B0 [22:40:15]SAM_PROTO_ClearQueue [22:40:15]wFMCommunicate request_size=4 [22:40:15]MH_SAM_APDU [22:40:15]CAPDU: 80 09 00 00 [22:40:15]Write to MH i2c: E2 08 00 E2 03 80 09 00 00 00 00 00 00 57 [22:40:15]Write i2c OK [22:40:15]MH_I2C_Read... [22:40:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:40:15]Read from MH i2c: E2 [22:40:15]MH_I2C_Read... [22:40:15]Read from MH i2c: E2 03 00 [22:40:15]MH_I2C_Read... [22:40:15]Read from MH i2c: E2 03 00 E2 03 00 90 00 59 [22:40:15]RAPDU: 90 00 [22:40:15]wFMCommunicate OK [22:40:15]SAM_PROTO_ClearQueue done [22:40:15]KKMCreateOFDPacket [22:40:15]OFDProtocolAddRootSTLVToBuf [22:40:15]FM_MakeSignedData [22:40:15]FM_MakeSignedData [22:40:15]SAM_PROTO_SignData [22:40:15]wFMCommunicate request_size=4 [22:40:15]MH_SAM_APDU [22:40:15]CAPDU: 80 0D 01 02 [22:40:15]Write to MH i2c: E2 08 00 E3 03 80 0D 01 02 00 00 00 00 5F [22:40:15]Write i2c OK [22:40:15]MH_I2C_Read... [22:40:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:40:15]Read from MH i2c: E2 [22:40:15]MH_I2C_Read... [22:40:15]Read from MH i2c: E2 03 00 [22:40:15]MH_I2C_Read... [22:40:15]Read from MH i2c: E2 03 00 E3 03 00 90 00 5A [22:40:15]RAPDU: 90 00 [22:40:15]wFMCommunicate OK [22:40:15]wFMCommunicate request_size=255 [22:40:15]MH_SAM_APDU [22:40:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 9A 01 00 00 F4 03 04 00 CD F4 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FA 42 02 00 35 04 06 00 77 [22:40:16]Write to MH i2c: E2 02 01 E4 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 9A 01 00 00 F4 03 04 00 CD F4 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FA 42 02 00 35 04 06 00 77 00 00 34 [22:40:16]Write i2c OK [22:40:16]MH_I2C_Read... [22:40:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:16]Read from MH i2c: E2 [22:40:16]MH_I2C_Read... [22:40:16]Read from MH i2c: E2 03 00 [22:40:16]MH_I2C_Read... [22:40:16]Read from MH i2c: E2 03 00 E4 03 00 90 00 5B [22:40:16]RAPDU: 90 00 [22:40:16]wFMCommunicate OK [22:40:16]wFMCommunicate request_size=10 [22:40:16]MH_SAM_APDU [22:40:16]CAPDU: 80 0D 02 02 05 75 5E 12 C7 9F [22:40:16]Write to MH i2c: E2 0D 00 E5 03 80 0D 02 02 05 00 75 5E 12 C7 9F 00 00 B7 [22:40:16]Write i2c OK [22:40:16]MH_I2C_Read... [22:40:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:16]Read from MH i2c: E2 [22:40:16]MH_I2C_Read... [22:40:16]Read from MH i2c: E2 03 00 [22:40:16]MH_I2C_Read... [22:40:16]Read from MH i2c: E2 03 00 E5 03 00 90 00 5C [22:40:16]RAPDU: 90 00 [22:40:16]wFMCommunicate OK [22:40:16]wFMCommunicate request_size=4 [22:40:16]MH_SAM_APDU [22:40:16]CAPDU: 80 0D 03 02 [22:40:16]Write to MH i2c: E2 08 00 E6 03 80 0D 03 02 00 00 00 00 64 [22:40:16]Write i2c OK [22:40:16]MH_I2C_Read... [22:40:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:40:16]Read from MH i2c: E2 [22:40:16]MH_I2C_Read... [22:40:16]Read from MH i2c: E2 0B 00 [22:40:16]MH_I2C_Read... [22:40:16]Read from MH i2c: E2 0B 00 E6 03 00 7C A5 1B F5 85 B9 05 B2 90 00 8B [22:40:17]RAPDU: 7C A5 1B F5 85 B9 05 B2 90 00 [22:40:17]wFMCommunicate OK [22:40:17]SAM_PROTO_SignData done [22:40:17]FM_MakeSignedData done [22:40:17]CreateOFDProtocolMessage [22:40:17]wFMCommunicate request_size=4 [22:40:17]MH_SAM_APDU [22:40:17]CAPDU: 80 11 00 00 [22:40:17]Write to MH i2c: E2 08 00 E7 03 80 11 00 00 00 00 00 00 64 [22:40:17]Write i2c OK [22:40:17]MH_I2C_Read... [22:40:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:17]Read from MH i2c: E2 [22:40:17]MH_I2C_Read... [22:40:17]Read from MH i2c: E2 17 00 [22:40:17]MH_I2C_Read... [22:40:17]Read from MH i2c: E2 17 00 E7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B7 [22:40:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:40:17]wFMCommunicate OK [22:40:17]CreateOFDProtocolMessage done [22:40:17]OFDSenderStorePacket 148218 [22:40:17]StoreOFDPacket docnum=148218 [22:40:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 E0 B7 07 01 26 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 9A 01 00 00 F4 03 04 00 CD F4 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FA 42 02 00 35 04 06 00 77 75 5E 12 C7 9F 7C A5 1B F5 85 B9 05 B2 [22:40:17]CheckFolder [22:40:17]dirname=/storage/ofd_packets [22:40:17]CheckFolder done [22:40:17]ProducePacketName [22:40:17]name=ofd_packets/00148218 [22:40:17]NVStorageSaveData ofd_packets/00148218 [22:40:17]File name is /storage/ofd_packets/00148218 [22:40:17]Write 301 bytes [22:40:17]NVStorageSaveData done [22:40:17]OFDSenderStorePacket done [22:40:17]KKMCreateOFDPacket done [22:40:17]NVStorageSaveData kkm_last_timestamp [22:40:17]File name is /storage/kkm_last_timestamp [22:40:17]Write 4 bytes [22:40:17]NVStorageSaveData done [22:40:17]ExternCall_PrintAddStr [22:40:17]wPrintStart [22:40:17]Write to MH i2c: 01 00 00 E8 03 EB [22:40:17]Write i2c OK [22:40:17]MH_I2C_Read... [22:40:17]Read from MH i2c: 01 [22:40:17]MH_I2C_Read... [22:40:17]Read from MH i2c: 01 07 00 [22:40:17]MH_I2C_Read... [22:40:17]Read from MH i2c: 01 07 00 E8 03 00 00 00 00 00 FF 0F 00 [22:40:17]RasterBufferAndPrint [22:40:17]line Счет N : (1)979158 [22:40:17]line ИНН: 02508201610067 [22:40:17]line Контрольно-Кассовый Чек [22:40:17]line ПРОДАЖА [22:40:17]line ТРК (МРК, ГНК) : 31 [22:40:17]line Товар: 2710124130 [22:40:17]line Аи-92-К-5 [22:40:17]line 3.620 * 66.40 [22:40:17]line = 240.37 [22:40:17]line НДС 12% НСП 1% [22:40:17]line > о реализуемом товаре [22:40:17]line ОКРУГЛЕНИЕ: -0.37 [22:40:17]line ИТОГО: 240.00 [22:40:17]line Внесено: 240.00 [22:40:17]line СДАЧА: 0.00 [22:40:17]line НСП 1% : 2.13 [22:40:17]line НДС 12% : 25.53 [22:40:17]line Наличными: 240.00 [22:40:17]OFD Sender: Processing packet 148218 [packets to send 99, broken 98] [22:40:17]line Безнал.: 0.00 [22:40:17]ProducePacketName [22:40:17]line Место: АЗС № 68 "Партнер Нефть" [22:40:17]name=ofd_packets/00148218 [22:40:17]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:40:17]line СНО: Общий режим [22:40:17]line Чек 410 02.06.2024 22:40 [22:40:17]line Смена: 366 ФФД: 1.0 [22:40:17]line ЗНМ: 0300000035 [22:40:17]line РНМ: 0000000000092720 [22:40:17]line Версия ККМ: 001 [22:40:17]OFD Sender: To server: pG, [22:40:17]line ФМ: 0000000000875057 [22:40:17]CommunicateWithHost lk.salyk.kg:30040 [22:40:17]line ФД: 148218 [22:40:17]ConnectInit lk.salyk.kg [22:40:17]line ФПД: 131345973168031 [22:40:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T224013&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148218&fm=131345973168031&tin=02508201610067®Number=0000000000092720&sum=24000 [22:40:17]written 0, free lines is 4095 [22:40:17]Connected sock=8 [22:40:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 E0 B7 07 01 26 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 0E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E5 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 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 9A 01 00 00 F4 03 04 00 CD F4 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 Write to MH i2c: 10 01 00 00 30 30 30 30 30 30 30 30 00 30 13 30 04 30 39 32 37 32 30 11 17 04 [22:40:17]10 00 30 30 30 30 30 30 30 30 Write i2c OK [22:40:17]30 MH_I2C_Read... [22:40:17]30 38 37 35 30 35 37 10 04 Read from MH i2c: 04 01 00 [22:40:17]FA MH_I2C_Read... [22:40:17]42 02 00 35 04 Read from MH i2c: 06 01 00 07 77 75 5E 12 C7 9F 7C 00 A5 [22:40:18]1B MH_I2C_Read... [22:40:18]F5 85 B9 05 B2 [22:40:18]Read from MH i2c: 01 07 00 13 04 00 00 00 00 00 90 0C BA [22:40:18]RasterBufferAndPrint [22:40:18]line [22:40:18]line [22:40:18]line [22:40:18]line [22:40:18]line [22:40:18]written 0, free lines is 3362 [22:40:18]MH_Cut [22:40:18]Write to MH i2c: D1 01 00 1A 04 01 F0 [22:40:18]Write i2c OK [22:40:18]MH_I2C_Read... [22:40:18]Read from MH i2c: D1 [22:40:18]MH_I2C_Read... [22:40:18]Read from MH i2c: D1 01 00 [22:40:18]MH_I2C_Read... [22:40:18]Read from MH i2c: D1 01 00 1A 04 00 EF [22:40:18]Write to MH i2c: 01 00 00 1B 04 1F [22:40:18]Write i2c OK [22:40:18]MH_I2C_Read... [22:40:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 FE 93 47 00 EA 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FA 42 02 00 F4 03 04 00 F9 9B 5C 66 B6 04 01 00 00 7F 22 CE DD 86 E7 03 B9 [22:40:18]CommunicateWithHost err = 0 [22:40:18]CheckOFDResponse [22:40:18]1017 (14) - 77093643461234 [22:40:18]1041 (16) - 0000000000875057 [22:40:18]1040 (4) - 148218 [22:40:18]1012 (4) - 02.06.2024 16:21 [22:40:18]1206 (1) - 0 [22:40:18]OFD Sender: Remove packet 148218 [22:40:18]ProducePacketName [22:40:18]name=ofd_packets/00148218 [22:40:18]NVStorageDeleteData [22:40:19]*** Cut start [22:40:19]*** Partial cut [22:40:19]*** CUTSNS_PIN = 1 [22:40:19]OFD Sender: No OFD packet to send [22:40:19]*** CUTSNS_PIN = 0 [22:40:19]*** Brake cut motor [22:40:19]Read from MH i2c: 01 [22:40:19]MH_I2C_Read... [22:40:19]*** Stop cut motor [22:40:19]*** Cut end [22:40:19]Read from MH i2c: 01 07 00 [22:40:19]MH_I2C_Read... [22:40:19]Read from MH i2c: 01 07 00 1B 04 00 00 00 00 00 FF 0F 34 [22:40:19]process_action close_receipt done [22:40:19]requested_data is exist [22:40:19]produce_requested_data [22:40:19]requested_item fm.sn is exist - process it [22:40:19]wFMCommunicate request_size=4 [22:40:19]MH_SAM_APDU [22:40:19]CAPDU: 80 11 00 00 [22:40:19]Write to MH i2c: E2 08 00 1C 04 80 11 00 00 00 00 00 00 9A [22:40:19]Write i2c OK [22:40:19]MH_I2C_Read... [22:40:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:19]Read from MH i2c: E2 [22:40:19]MH_I2C_Read... [22:40:19]Read from MH i2c: E2 17 00 [22:40:19]MH_I2C_Read... [22:40:19]Read from MH i2c: E2 17 00 1C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 ED [22:40:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:40:20]wFMCommunicate OK [22:40:20]requested_item fd.num is exist - process it [22:40:20]SAM_PROTO_GetFieldsCounters [22:40:20]wFMCommunicate request_size=4 [22:40:20]MH_SAM_APDU [22:40:20]CAPDU: 80 13 00 00 [22:40:20]Write to MH i2c: E2 08 00 1D 04 80 13 00 00 00 00 00 00 9D [22:40:20]Write i2c OK [22:40:20]MH_I2C_Read... [22:40:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:40:20]Read from MH i2c: E2 [22:40:20]MH_I2C_Read... [22:40:20]Read from MH i2c: E2 62 00 [22:40:20]MH_I2C_Read... [22:40:20]Read from MH i2c: E2 62 00 1D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FA 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 9A 01 00 00 5E 04 04 00 9A 01 00 00 57 04 04 00 9B 01 00 00 19 04 04 00 00 00 00 00 90 00 37 [22:40:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FA 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 9A 01 00 00 5E 04 04 00 9A 01 00 00 57 04 04 00 9B 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:40:20]wFMCommunicate OK [22:40:20]SAM_PROTO_GetFieldsCounters done [22:40:20]requested_item shift.num is exist - process it [22:40:20]requested_item shift.opened is exist - process it [22:40:20]req_shift_opened [22:40:20]FM_GetShiftState [22:40:20]SAM_PROTO_GetShiftState [22:40:20]wFMCommunicate request_size=4 [22:40:20]MH_SAM_APDU [22:40:20]CAPDU: 80 13 01 00 [22:40:20]Write to MH i2c: E2 08 00 1E 04 80 13 01 00 00 00 00 00 9F [22:40:20]Write i2c OK [22:40:20]MH_I2C_Read... [22:40:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:20]Read from MH i2c: E2 [22:40:20]MH_I2C_Read... [22:40:20]Read from MH i2c: E2 0E 00 [22:40:20]MH_I2C_Read... [22:40:20]Read from MH i2c: E2 0E 00 1E 04 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 B7 [22:40:20]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [22:40:20]wFMCommunicate OK [22:40:20]SAM_PROTO_GetShiftState done [22:40:20]FM_GetShiftState done [22:40:20]req_shift_opened done [22:40:20]requested_item shift.open_date is exist - process it [22:40:20]req_shift_open_date [22:40:20]req_shift_open_date done [22:40:20]produce_requested_data done [22:40:20]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148218,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [22:40:20]process_action_free close_receipt [22:40:20]json_value_free [22:40:20]json_value_free done [22:40:20]process_json_proto returns [22:40:20]Send response to host [22:40:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148218,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [22:40:20]free response buf [22:40:20]execute_script done [22:40:20]execute_script returns [22:40:20]free content buf [22:40:20]Sock 10.Close socket [22:40:20]Sock 10.Thread stoped [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]OFD Sender: No OFD packet to send [22:42:44]OFD Sender: No OFD packet to send [22:42:49]OFD Sender: No OFD packet to send [22:42:54]OFD Sender: No OFD packet to send [22:42:59]OFD Sender: No OFD packet to send [22:43:04]OFD Sender: No OFD packet to send [22:43:09]OFD Sender: No OFD packet to send [22:43:14]OFD Sender: No OFD packet to send [22:43:19]OFD Sender: No OFD packet to send [22:43:24]OFD Sender: No OFD packet to send [22:43:29]OFD Sender: No OFD packet to send [22:43:34]OFD Sender: No OFD packet to send [22:43:39]OFD Sender: No OFD packet to send [22:43:44]OFD Sender: No OFD packet to send [22:43:49]OFD Sender: No OFD packet to send [22:43:54]OFD Sender: No OFD packet to send [22:43:59]OFD Sender: No OFD packet to send [22:44:04]OFD Sender: No OFD packet to send [22:44:09]OFD Sender: No OFD packet to send [22:44:14]OFD Sender: No OFD packet to send [22:44:19]OFD Sender: No OFD packet to send [22:44:24]OFD Sender: No OFD packet to send [22:44:29]OFD Sender: No OFD packet to send [22:44:34]OFD Sender: No OFD packet to send [22:44:39]OFD Sender: No OFD packet to send [22:44:44]OFD Sender: No OFD packet to send [22:44:49]OFD Sender: No OFD packet to send [22:44:54]OFD Sender: No OFD packet to send [22:44:59]OFD Sender: No OFD packet to send [22:45:04]OFD Sender: No OFD packet to send [22:45:09]OFD Sender: No OFD packet to send [22:45:14]OFD Sender: No OFD packet to send [22:45:19]OFD Sender: No OFD packet to send [22:45:24]OFD Sender: No OFD packet to send [22:45:29]OFD Sender: No OFD packet to send [22:45:34]OFD Sender: No OFD packet to send [22:45:39]OFD Sender: No OFD packet to send [22:45:44]OFD Sender: No OFD packet to send [22:45:49]OFD Sender: No OFD packet to send [22:45:54]OFD Sender: No OFD packet to send [22:45:59]OFD Sender: No OFD packet to send [22:46:04]OFD Sender: No OFD packet to send [22:46:09]OFD Sender: No OFD packet to send [22:46:14]OFD Sender: No OFD packet to send [22:46:19]OFD Sender: No OFD packet to send [22:46:24]OFD Sender: No OFD packet to send [22:46:29]OFD Sender: No OFD packet to send [22:46:34]OFD Sender: No OFD packet to send [22:46:39]OFD Sender: No OFD packet to send [22:46:44]OFD Sender: No OFD packet to send [22:46:49]OFD Sender: No OFD packet to send [22:46:54]OFD Sender: No OFD packet to send [22:46:59]OFD Sender: No OFD packet to send [22:47:04]OFD Sender: No OFD packet to send [22:47:09]OFD Sender: No OFD packet to send [22:47:14]OFD Sender: No OFD packet to send [22:47:19]OFD Sender: No OFD packet to send [22:47:24]OFD Sender: No OFD packet to send [22:47:29]OFD Sender: No OFD packet to send [22:47:34]OFD Sender: No OFD packet to send [22:47:39]OFD Sender: No OFD packet to send [22:47:44]OFD Sender: No OFD packet to send [22:47:49]OFD Sender: No OFD packet to send [22:47:54]OFD Sender: No OFD packet to send [22:47:59]OFD Sender: No OFD packet to send [22:48:04]OFD Sender: No OFD packet to send [22:48:09]OFD Sender: No OFD packet to send [22:48:14]OFD Sender: No OFD packet to send [22:48:19]OFD Sender: No OFD packet to send [22:48:24]OFD Sender: No OFD packet to send [22:48:27]accept exits with 9 [22:48:27]New connection [22:48:27]New thread 3067432292 created [22:48:27]Thread 3067288932 joined [22:48:27]Waiting for new connection... [22:48:27] Sock 9.Parse request [22:48:27]Sock 9.Check first char [22:48:27]Sock 9.First char is OK [22:48:27]request: POST /json_proto HTTP/1.0 [22:48:27]Method: POST [22:48:27]URL: /json_proto [22:48:27]Method is POST - this is cgi request [22:48:27]url: /json_proto [22:48:27]query_string will be loaded in cgi processing [22:48:27]execute_cgi json_proto POST (null) [22:48:27]execute_cgi path=json_proto method=POST [22:48:27]POST find Content-Length [22:48:27]Host: 172.17.38.4:8080 [22:48:27]Content-Length: 790 [22:48:27]Content-Type: application/json [22:48:27] [22:48:27]POST finish read [22:48:27]Found Content-Length = 790 [22:48:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:48:27]execute_script... [22:48:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.66 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:48:27]POST & json_proto [22:48:27]process_json_proto [22:48:27]json parsed OK: [22:48:27]protocol is kg_v1.0 [22:48:27]action value=close_receipt [22:48:27]process_action close_receipt [22:48:27]cmd_close_receipt [22:48:27]MH_GetDate [22:48:27]Write to MH i2c: F0 00 00 1F 04 12 [22:48:27]Write i2c OK [22:48:27]MH_I2C_Read... [22:48:27]Read from MH i2c: F0 [22:48:27]MH_I2C_Read... [22:48:27]Read from MH i2c: F0 09 00 [22:48:27]MH_I2C_Read... [22:48:27]Read from MH i2c: F0 09 00 1F 04 00 BB F6 5C 66 CC 51 87 64 96 [22:48:27]GetLastDocTimeStamp 1717368013 [22:48:27]current date 1717368507 [22:48:27]FM_GetShiftState [22:48:27]SAM_PROTO_GetShiftState [22:48:27]wFMCommunicate request_size=4 [22:48:27]MH_SAM_APDU [22:48:27]CAPDU: 80 13 01 00 [22:48:27]Write to MH i2c: E2 08 00 20 04 80 13 01 00 00 00 00 00 A1 [22:48:27]Write i2c OK [22:48:27]MH_I2C_Read... [22:48:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:27]Read from MH i2c: E2 [22:48:27]MH_I2C_Read... [22:48:27]Read from MH i2c: E2 0E 00 [22:48:27]MH_I2C_Read... [22:48:27]Read from MH i2c: E2 0E 00 20 04 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 B9 [22:48:27]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [22:48:27]wFMCommunicate OK [22:48:27]SAM_PROTO_GetShiftState done [22:48:27]FM_GetShiftState done [22:48:27]opened in 1717287824 [22:48:27]opened+sec_in_day 1717374224 [22:48:27]quantity*price = 50065 [22:48:27]sum+1 = 50067 [22:48:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.66 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 0.00 Безнал.: 500.66 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 411 02.06.2024 22:48 Смена: 366 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148219 ФПД: 83679046985231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T224827&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148219&fm=83679046985231&tin=02508201610067®Number=0000000000092720&sum=50066 [22:48:28]StoreToDocumentArchive [22:48:28]shift 366 fd 148219 [22:48:28]save to /storage/0366/doc_00148219 [22:48:28]save last doc name /storage/0366/doc_00148219 to /storage/kkm_last_doc_name [22:48:28]save OK [22:48:28]Clear old archive folders... [22:48:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:48:28]tlvbuf is 0127B480 [22:48:28]SAM_PROTO_ClearQueue [22:48:28]wFMCommunicate request_size=4 [22:48:28]MH_SAM_APDU [22:48:28]CAPDU: 80 09 00 00 [22:48:28]Write to MH i2c: E2 08 00 2D 04 80 09 00 00 00 00 00 00 A3 [22:48:28]Write i2c OK [22:48:28]MH_I2C_Read... [22:48:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:48:28]Read from MH i2c: E2 [22:48:28]MH_I2C_Read... [22:48:28]Read from MH i2c: E2 03 00 [22:48:28]MH_I2C_Read... [22:48:28]Read from MH i2c: E2 03 00 2D 04 00 90 00 A5 [22:48:28]RAPDU: 90 00 [22:48:28]wFMCommunicate OK [22:48:28]SAM_PROTO_ClearQueue done [22:48:28]KKMCreateOFDPacket [22:48:28]OFDProtocolAddRootSTLVToBuf [22:48:28]FM_MakeSignedData [22:48:28]FM_MakeSignedData [22:48:28]SAM_PROTO_SignData [22:48:28]wFMCommunicate request_size=4 [22:48:28]MH_SAM_APDU [22:48:28]CAPDU: 80 0D 01 02 [22:48:28]Write to MH i2c: E2 08 00 2E 04 80 0D 01 02 00 00 00 00 AB [22:48:28]Write i2c OK [22:48:28]MH_I2C_Read... [22:48:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:48:28]Read from MH i2c: E2 [22:48:28]MH_I2C_Read... [22:48:28]Read from MH i2c: E2 03 00 [22:48:28]MH_I2C_Read... [22:48:28]Read from MH i2c: E2 03 00 2E 04 00 90 00 A6 [22:48:28]RAPDU: 90 00 [22:48:28]wFMCommunicate OK [22:48:28]wFMCommunicate request_size=255 [22:48:28]MH_SAM_APDU [22:48:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 BB F6 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FB 42 02 00 35 04 06 00 4C [22:48:28]Write to MH i2c: E2 02 01 2F 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 BB F6 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FB 42 02 00 35 04 06 00 4C 00 00 E7 [22:48:29]Write i2c OK [22:48:29]MH_I2C_Read... [22:48:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:29]Read from MH i2c: E2 [22:48:29]MH_I2C_Read... [22:48:29]Read from MH i2c: E2 03 00 [22:48:29]MH_I2C_Read... [22:48:29]Read from MH i2c: E2 03 00 2F 04 00 90 00 A7 [22:48:29]RAPDU: 90 00 [22:48:29]wFMCommunicate OK [22:48:29]wFMCommunicate request_size=10 [22:48:29]MH_SAM_APDU [22:48:29]CAPDU: 80 0D 02 02 05 1B 0B DE E6 0F [22:48:29]Write to MH i2c: E2 0D 00 30 04 80 0D 02 02 05 00 1B 0B DE E6 0F 00 00 B1 [22:48:29]Write i2c OK [22:48:29]MH_I2C_Read... [22:48:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:29]Read from MH i2c: E2 [22:48:29]MH_I2C_Read... [22:48:29]Read from MH i2c: E2 03 00 [22:48:29]MH_I2C_Read... [22:48:29]Read from MH i2c: E2 03 00 30 04 00 90 00 A8 [22:48:29]RAPDU: 90 00 [22:48:29]wFMCommunicate OK [22:48:29]wFMCommunicate request_size=4 [22:48:29]MH_SAM_APDU [22:48:29]CAPDU: 80 0D 03 02 [22:48:29]Write to MH i2c: E2 08 00 31 04 80 0D 03 02 00 00 00 00 B0 [22:48:29]Write i2c OK [22:48:29]MH_I2C_Read... [22:48:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:48:29]Read from MH i2c: E2 [22:48:29]MH_I2C_Read... [22:48:29]Read from MH i2c: E2 0B 00 [22:48:29]MH_I2C_Read... [22:48:29]Read from MH i2c: E2 0B 00 31 04 00 74 A1 1E 12 A3 FF CF C6 90 00 2D [22:48:29]RAPDU: 74 A1 1E 12 A3 FF CF C6 90 00 [22:48:29]wFMCommunicate OK [22:48:29]SAM_PROTO_SignData done [22:48:29]FM_MakeSignedData done [22:48:29]CreateOFDProtocolMessage [22:48:29]wFMCommunicate request_size=4 [22:48:29]MH_SAM_APDU [22:48:29]CAPDU: 80 11 00 00 [22:48:29]Write to MH i2c: E2 08 00 32 04 80 11 00 00 00 00 00 00 B0 [22:48:29]Write i2c OK [22:48:29]MH_I2C_Read... [22:48:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:29]Read from MH i2c: E2 [22:48:29]MH_I2C_Read... [22:48:29]Read from MH i2c: E2 17 00 [22:48:29]MH_I2C_Read... [22:48:29]Read from MH i2c: E2 17 00 32 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 03 [22:48:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:48:29]wFMCommunicate OK [22:48:29]CreateOFDProtocolMessage done [22:48:29]OFDSenderStorePacket 148219 [22:48:29]StoreOFDPacket docnum=148219 [22:48:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 9C 15 07 01 A0 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 BB F6 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FB 42 02 00 35 04 06 00 4C 1B 0B DE E6 0F 74 A1 1E 12 A3 FF CF C6 [22:48:29]CheckFolder [22:48:29]dirname=/storage/ofd_packets [22:48:29]CheckFolder done [22:48:29]ProducePacketName [22:48:29]name=ofd_packets/00148219 [22:48:29]NVStorageSaveData ofd_packets/00148219 [22:48:29]File name is /storage/ofd_packets/00148219 [22:48:29]Write 301 bytes [22:48:29]NVStorageSaveData done [22:48:29]OFDSenderStorePacket done [22:48:29]KKMCreateOFDPacket done [22:48:29]NVStorageSaveData kkm_last_timestamp [22:48:29]File name is /storage/kkm_last_timestamp [22:48:29]Write 4 bytes [22:48:29]NVStorageSaveData done [22:48:29]ExternCall_PrintAddStr [22:48:29]wPrintStart [22:48:29]Write to MH i2c: 01 00 00 33 04 37 [22:48:29]Write i2c OK [22:48:29]MH_I2C_Read... [22:48:29]Read from MH i2c: 01 [22:48:29]MH_I2C_Read... [22:48:29]Read from MH i2c: 01 07 00 [22:48:29]MH_I2C_Read... [22:48:29]Read from MH i2c: 01 07 00 33 04 00 00 00 00 00 FF 0F 4C [22:48:29]RasterBufferAndPrint [22:48:29]line Счет N : (1)979159 [22:48:29]line ИНН: 02508201610067 [22:48:29]line Контрольно-Кассовый Чек [22:48:29]line ПРОДАЖА [22:48:29]line ТРК (МРК, ГНК) : 12 [22:48:29]line Товар: 2710124130 [22:48:29]line Аи-92-К-5 [22:48:29]line 7.540 * 66.40 [22:48:29]line = 500.66 [22:48:29]line НДС 12% НСП 1% [22:48:29]line > о реализуемом товаре [22:48:29]line ИТОГО: 500.66 [22:48:29]line НСП 1% : 4.43 [22:48:29]line НДС 12% : 53.17 [22:48:29]line Наличными: 0.00 [22:48:29]line Безнал.: 500.66 [22:48:29]line Место: АЗС № 68 "Партнер Нефть" [22:48:29]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:48:29]line СНО: Общий режим [22:48:29]line Чек 411 02.06.2024 22:48 [22:48:29]line Смена: 366 ФФД: 1.0 [22:48:29]line ЗНМ: 0300000035 [22:48:29]line РНМ: 0000000000092720 [22:48:29]line Версия ККМ: 001 [22:48:29]line Платежная система: KICB Банк [22:48:29]line ФМ: 0000000000875057 [22:48:29]line ФД: 148219 [22:48:29]line ФПД: 83679046985231 [22:48:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T224827&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148219&fm=83679046985231&tin=02508201610067®Number=0000000000092720&sum=50066 [22:48:29]OFD Sender: Processing packet 148219 [packets to send 99, broken 98] [22:48:29]ProducePacketName [22:48:29]name=ofd_packets/00148219 [22:48:29]OFD Sender: To server: pG, [22:48:29]CommunicateWithHost lk.salyk.kg:30040 [22:48:29]ConnectInit lk.salyk.kg [22:48:29]written 0, free lines is 4095 [22:48:29]Connected sock=10 [22:48:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 9C 15 07 01 A0 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 01 00 00 F4 03 04 00 BB F6 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FB 42 02 00 35 04 06 00 4C 1B 0B DE E6 0F 74 A1 1E 12 A3 FF CF C6 [22:48:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 FC 89 47 00 D9 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 35 30 35 37 10 04 04 00 FB 42 02 00 F4 03 04 00 E4 9D 5C 66 B6 04 01 00 00 11 CF A8 E7 7A 08 BB 70 [22:48:30]CommunicateWithHost err = 0 [22:48:30]CheckOFDResponse [22:48:30]1017 (14) - 77093643461234 [22:48:30]1041 (16) - 0000000000875057 [22:48:30]1040 (4) - 148219 [22:48:30]1012 (4) - 02.06.2024 16:29 [22:48:30]1206 (1) - 0 [22:48:30]OFD Sender: Remove packet 148219 [22:48:30]ProducePacketName [22:48:30]name=ofd_packets/00148219 [22:48:30]NVStorageDeleteData [22:48:30]Write to MH i2c: 01 00 00 5D 04 61 [22:48:30]Write i2c OK [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: 01 [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: 01 07 00 [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: 01 07 00 5D 04 00 00 00 00 00 8F 0C 03 [22:48:30]RasterBufferAndPrint [22:48:30]line [22:48:30]line [22:48:30]line [22:48:30]line [22:48:30]line [22:48:30]written 0, free lines is 3217 [22:48:30]MH_Cut [22:48:30]Write to MH i2c: D1 01 00 64 04 01 3A [22:48:30]Write i2c OK [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: D1 [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: D1 01 00 [22:48:30]MH_I2C_Read... [22:48:30]Read from MH i2c: D1 01 00 64 04 00 39 [22:48:30]Write to MH i2c: 01 00 00 65 04 69 [22:48:30]Write i2c OK [22:48:30]MH_I2C_Read... [22:48:30]OFD Sender: No OFD packet to send [22:48:31]*** Cut start [22:48:31]*** Partial cut [22:48:31]*** CUTSNS_PIN = 1 [22:48:31]*** CUTSNS_PIN = 0 [22:48:31]*** Brake cut motor [22:48:32]Read from MH i2c: 01 [22:48:32]MH_I2C_Read... [22:48:32]*** Stop cut motor [22:48:32]*** Cut end [22:48:32]Read from MH i2c: 01 07 00 [22:48:32]MH_I2C_Read... [22:48:32]Read from MH i2c: 01 07 00 65 04 00 00 00 00 00 FF 0F 7E [22:48:32]process_action close_receipt done [22:48:32]requested_data is exist [22:48:32]produce_requested_data [22:48:32]requested_item fm.sn is exist - process it [22:48:32]wFMCommunicate request_size=4 [22:48:32]MH_SAM_APDU [22:48:32]CAPDU: 80 11 00 00 [22:48:32]Write to MH i2c: E2 08 00 66 04 80 11 00 00 00 00 00 00 E4 [22:48:32]Write i2c OK [22:48:32]MH_I2C_Read... [22:48:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:32]Read from MH i2c: E2 [22:48:32]MH_I2C_Read... [22:48:32]Read from MH i2c: E2 17 00 [22:48:32]MH_I2C_Read... [22:48:32]Read from MH i2c: E2 17 00 66 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 37 [22:48:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:48:32]wFMCommunicate OK [22:48:32]requested_item fd.num is exist - process it [22:48:32]SAM_PROTO_GetFieldsCounters [22:48:32]wFMCommunicate request_size=4 [22:48:32]MH_SAM_APDU [22:48:32]CAPDU: 80 13 00 00 [22:48:32]Write to MH i2c: E2 08 00 67 04 80 13 00 00 00 00 00 00 E7 [22:48:32]Write i2c OK [22:48:32]MH_I2C_Read... [22:48:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:48:32]Read from MH i2c: E2 [22:48:32]MH_I2C_Read... [22:48:32]Read from MH i2c: E2 62 00 [22:48:32]MH_I2C_Read... [22:48:32]Read from MH i2c: E2 62 00 67 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FB 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 9B 01 00 00 5E 04 04 00 9B 01 00 00 57 04 04 00 9C 01 00 00 19 04 04 00 00 00 00 00 90 00 85 [22:48:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FB 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 9B 01 00 00 5E 04 04 00 9B 01 00 00 57 04 04 00 9C 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:48:32]wFMCommunicate OK [22:48:32]SAM_PROTO_GetFieldsCounters done [22:48:32]requested_item shift.num is exist - process it [22:48:32]requested_item shift.opened is exist - process it [22:48:32]req_shift_opened [22:48:32]FM_GetShiftState [22:48:32]SAM_PROTO_GetShiftState [22:48:32]wFMCommunicate request_size=4 [22:48:32]MH_SAM_APDU [22:48:32]CAPDU: 80 13 01 00 [22:48:32]Write to MH i2c: E2 08 00 68 04 80 13 01 00 00 00 00 00 E9 [22:48:32]Write i2c OK [22:48:32]MH_I2C_Read... [22:48:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:32]Read from MH i2c: E2 [22:48:32]MH_I2C_Read... [22:48:32]Read from MH i2c: E2 0E 00 [22:48:32]MH_I2C_Read... [22:48:32]Read from MH i2c: E2 0E 00 68 04 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 01 [22:48:32]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [22:48:32]wFMCommunicate OK [22:48:32]SAM_PROTO_GetShiftState done [22:48:32]FM_GetShiftState done [22:48:32]req_shift_opened done [22:48:32]requested_item shift.open_date is exist - process it [22:48:32]req_shift_open_date [22:48:32]req_shift_open_date done [22:48:32]produce_requested_data done [22:48:32]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148219,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [22:48:32]process_action_free close_receipt [22:48:32]json_value_free [22:48:32]json_value_free done [22:48:32]process_json_proto returns [22:48:32]Send response to host [22:48:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148219,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [22:48:32]free response buf [22:48:32]execute_script done [22:48:32]execute_script returns [22:48:32]free content buf [22:48:32]Sock 9.Close socket [22:48:32]Sock 9.Thread stoped [22:48:35]OFD Sender: No OFD packet to send [22:48:40]OFD Sender: No OFD packet to send [22:48:45]OFD Sender: No OFD packet to send [22:48:47]accept exits with 8 [22:48:47]New connection [22:48:47]New thread 3067288932 created [22:48:47]Thread 3067432292 joined [22:48:47]Waiting for new connection... [22:48:47] Sock 8.Parse request [22:48:47]Sock 8.Check first char [22:48:47]Sock 8.First char is OK [22:48:47]request: POST /json_proto HTTP/1.0 [22:48:47]Method: POST [22:48:47]URL: /json_proto [22:48:47]Method is POST - this is cgi request [22:48:47]url: /json_proto [22:48:47]query_string will be loaded in cgi processing [22:48:47]execute_cgi json_proto POST (null) [22:48:47]execute_cgi path=json_proto method=POST [22:48:47]POST find Content-Length [22:48:47]Host: 172.17.38.4:8080 [22:48:47]Content-Length: 677 [22:48:47]Content-Type: application/json [22:48:47] [22:48:47]POST finish read [22:48:47]Found Content-Length = 677 [22:48:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:48:47]execute_script... [22:48:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:48:47]POST & json_proto [22:48:47]process_json_proto [22:48:47]json parsed OK: [22:48:47]protocol is kg_v1.0 [22:48:47]action value=close_receipt [22:48:47]process_action close_receipt [22:48:47]cmd_close_receipt [22:48:47]MH_GetDate [22:48:47]Write to MH i2c: F0 00 00 69 04 5C [22:48:47]Write i2c OK [22:48:47]MH_I2C_Read... [22:48:47]Read from MH i2c: F0 [22:48:47]MH_I2C_Read... [22:48:47]Read from MH i2c: F0 09 00 [22:48:47]MH_I2C_Read... [22:48:47]Read from MH i2c: F0 09 00 69 04 00 CF F6 5C 66 CC 51 87 64 F4 [22:48:47]GetLastDocTimeStamp 1717368507 [22:48:47]current date 1717368527 [22:48:47]FM_GetShiftState [22:48:47]SAM_PROTO_GetShiftState [22:48:47]wFMCommunicate request_size=4 [22:48:47]MH_SAM_APDU [22:48:47]CAPDU: 80 13 01 00 [22:48:47]Write to MH i2c: E2 08 00 6A 04 80 13 01 00 00 00 00 00 EB [22:48:47]Write i2c OK [22:48:47]MH_I2C_Read... [22:48:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:47]Read from MH i2c: E2 [22:48:47]MH_I2C_Read... [22:48:47]Read from MH i2c: E2 0E 00 [22:48:47]MH_I2C_Read... [22:48:47]Read from MH i2c: E2 0E 00 6A 04 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 03 [22:48:47]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [22:48:47]wFMCommunicate OK [22:48:47]SAM_PROTO_GetShiftState done [22:48:47]FM_GetShiftState done [22:48:47]opened in 1717287824 [22:48:47]opened+sec_in_day 1717374224 [22:48:47]quantity*price = 20052 [22:48:47]sum+1 = 20054 [22:48:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 412 02.06.2024 22:48 Смена: 366 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148220 ФПД: 104748090264982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T224847&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148220&fm=104748090264982&tin=02508201610067®Number=0000000000092720&sum=20000 [22:48:48]StoreToDocumentArchive [22:48:48]shift 366 fd 148220 [22:48:48]save to /storage/0366/doc_00148220 [22:48:48]save last doc name /storage/0366/doc_00148220 to /storage/kkm_last_doc_name [22:48:48]save OK [22:48:48]Clear old archive folders... [22:48:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:48:48]tlvbuf is 0112DA00 [22:48:48]SAM_PROTO_ClearQueue [22:48:48]wFMCommunicate request_size=4 [22:48:48]MH_SAM_APDU [22:48:48]CAPDU: 80 09 00 00 [22:48:48]Write to MH i2c: E2 08 00 77 04 80 09 00 00 00 00 00 00 ED [22:48:48]Write i2c OK [22:48:48]MH_I2C_Read... [22:48:48]Read from MH i2c: E2 [22:48:48]MH_I2C_Read... [22:48:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:48:48]Read from MH i2c: E2 03 00 [22:48:48]MH_I2C_Read... [22:48:48]Read from MH i2c: E2 03 00 77 04 00 90 00 EF [22:48:48]RAPDU: 90 00 [22:48:48]wFMCommunicate OK [22:48:48]SAM_PROTO_ClearQueue done [22:48:48]KKMCreateOFDPacket [22:48:48]OFDProtocolAddRootSTLVToBuf [22:48:48]FM_MakeSignedData [22:48:48]FM_MakeSignedData [22:48:48]SAM_PROTO_SignData [22:48:48]wFMCommunicate request_size=4 [22:48:48]MH_SAM_APDU [22:48:48]CAPDU: 80 0D 01 02 [22:48:48]Write to MH i2c: E2 08 00 78 04 80 0D 01 02 00 00 00 00 F5 [22:48:48]Write i2c OK [22:48:48]MH_I2C_Read... [22:48:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:48:48]Read from MH i2c: E2 [22:48:48]MH_I2C_Read... [22:48:48]Read from MH i2c: E2 03 00 [22:48:48]MH_I2C_Read... [22:48:48]Read from MH i2c: E2 03 00 78 04 00 90 00 F0 [22:48:48]RAPDU: 90 00 [22:48:48]wFMCommunicate OK [22:48:48]wFMCommunicate request_size=255 [22:48:48]MH_SAM_APDU [22:48:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 CF F6 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FC 42 02 00 35 04 06 00 5F [22:48:48]Write to MH i2c: E2 02 01 79 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 CF F6 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FC 42 02 00 35 04 06 00 5F 00 00 95 [22:48:48]Write i2c OK [22:48:48]MH_I2C_Read... [22:48:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:49]Read from MH i2c: E2 [22:48:49]MH_I2C_Read... [22:48:49]Read from MH i2c: E2 03 00 [22:48:49]MH_I2C_Read... [22:48:49]Read from MH i2c: E2 03 00 79 04 00 90 00 F1 [22:48:49]RAPDU: 90 00 [22:48:49]wFMCommunicate OK [22:48:49]wFMCommunicate request_size=10 [22:48:49]MH_SAM_APDU [22:48:49]CAPDU: 80 0D 02 02 05 44 90 B6 0D 96 [22:48:49]Write to MH i2c: E2 0D 00 7A 04 80 0D 02 02 05 00 44 90 B6 0D 96 00 00 2F [22:48:49]Write i2c OK [22:48:49]MH_I2C_Read... [22:48:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:49]Read from MH i2c: E2 [22:48:49]MH_I2C_Read... [22:48:49]Read from MH i2c: E2 03 00 [22:48:49]MH_I2C_Read... [22:48:49]Read from MH i2c: E2 03 00 7A 04 00 90 00 F2 [22:48:49]RAPDU: 90 00 [22:48:49]wFMCommunicate OK [22:48:49]wFMCommunicate request_size=4 [22:48:49]MH_SAM_APDU [22:48:49]CAPDU: 80 0D 03 02 [22:48:49]Write to MH i2c: E2 08 00 7B 04 80 0D 03 02 00 00 00 00 FA [22:48:49]Write i2c OK [22:48:49]MH_I2C_Read... [22:48:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:48:49]Read from MH i2c: E2 [22:48:49]MH_I2C_Read... [22:48:49]Read from MH i2c: E2 0B 00 [22:48:49]MH_I2C_Read... [22:48:49]Read from MH i2c: E2 0B 00 7B 04 00 86 E2 EB 07 7E C3 6B 44 90 00 45 [22:48:49]RAPDU: 86 E2 EB 07 7E C3 6B 44 90 00 [22:48:49]wFMCommunicate OK [22:48:49]SAM_PROTO_SignData done [22:48:49]FM_MakeSignedData done [22:48:49]CreateOFDProtocolMessage [22:48:49]wFMCommunicate request_size=4 [22:48:49]MH_SAM_APDU [22:48:49]CAPDU: 80 11 00 00 [22:48:49]Write to MH i2c: E2 08 00 7C 04 80 11 00 00 00 00 00 00 FA [22:48:49]Write i2c OK [22:48:49]MH_I2C_Read... [22:48:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:49]Read from MH i2c: E2 [22:48:49]MH_I2C_Read... [22:48:49]Read from MH i2c: E2 17 00 [22:48:49]MH_I2C_Read... [22:48:49]Read from MH i2c: E2 17 00 7C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 4D [22:48:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:48:49]wFMCommunicate OK [22:48:49]CreateOFDProtocolMessage done [22:48:49]OFDSenderStorePacket 148220 [22:48:49]StoreOFDPacket docnum=148220 [22:48:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 AB 3A 07 01 C5 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 CF F6 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FC 42 02 00 35 04 06 00 5F 44 90 B6 0D 96 86 E2 EB 07 7E C3 6B 44 [22:48:49]CheckFolder [22:48:49]dirname=/storage/ofd_packets [22:48:49]CheckFolder done [22:48:49]ProducePacketName [22:48:49]name=ofd_packets/00148220 [22:48:49]NVStorageSaveData ofd_packets/00148220 [22:48:49]File name is /storage/ofd_packets/00148220 [22:48:49]Write 301 bytes [22:48:49]NVStorageSaveData done [22:48:49]OFDSenderStorePacket done [22:48:49]KKMCreateOFDPacket done [22:48:49]NVStorageSaveData kkm_last_timestamp [22:48:49]File name is /storage/kkm_last_timestamp [22:48:49]Write 4 bytes [22:48:49]NVStorageSaveData done [22:48:49]ExternCall_PrintAddStr [22:48:49]wPrintStart [22:48:49]Write to MH i2c: 01 00 00 7D 04 81 [22:48:49]Write i2c OK [22:48:49]MH_I2C_Read... [22:48:49]Read from MH i2c: 01 [22:48:49]MH_I2C_Read... [22:48:49]Read from MH i2c: 01 07 00 [22:48:49]MH_I2C_Read... [22:48:49]Read from MH i2c: 01 07 00 7D 04 00 00 00 00 00 FF 0F 96 [22:48:49]RasterBufferAndPrint [22:48:49]line Счет N : (1)979160 [22:48:49]line ИНН: 02508201610067 [22:48:49]line Контрольно-Кассовый Чек [22:48:49]line ПРОДАЖА [22:48:49]line ТРК (МРК, ГНК) : 31 [22:48:49]line Товар: 2710124130 [22:48:49]line Аи-92-К-5 [22:48:49]line 3.020 * 66.40 [22:48:49]line = 200.53 [22:48:49]line НДС 12% НСП 1% [22:48:49]line > о реализуемом товаре [22:48:49]line ОКРУГЛЕНИЕ: -0.53 [22:48:49]line ИТОГО: 200.00 [22:48:49]line Внесено: 200.00 [22:48:49]line СДАЧА: 0.00 [22:48:49]line НСП 1% : 1.77 [22:48:49]line НДС 12% : 21.29 [22:48:49]line Наличными: 200.00 [22:48:49]line Безнал.: 0.00 [22:48:49]line Место: АЗС № 68 "Партнер Нефть" [22:48:49]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:48:49]line СНО: Общий режим [22:48:49]line Чек 412 02.06.2024 22:48 [22:48:49]line Смена: 366 ФФД: 1.0 [22:48:49]line ЗНМ: 0300000035 [22:48:49]line РНМ: 0000000000092720 [22:48:49]line Версия ККМ: 001 [22:48:49]line ФМ: 0000000000875057 [22:48:49]line ФД: 148220 [22:48:49]line ФПД: 104748090264982 [22:48:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T224847&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148220&fm=104748090264982&tin=02508201610067®Number=0000000000092720&sum=20000 [22:48:49]OFD Sender: Processing packet 148220 [packets to send 99, broken 98] [22:48:49]ProducePacketName [22:48:49]name=ofd_packets/00148220 [22:48:49]OFD Sender: To server: pG, [22:48:49]CommunicateWithHost lk.salyk.kg:30040 [22:48:49]ConnectInit lk.salyk.kg [22:48:49]written 0, free lines is 4095 [22:48:49]Connected sock=10 [22:48:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 AB 3A 07 01 C5 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 01 00 00 F4 03 04 00 CF F6 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FC 42 02 00 35 04 06 00 5F 44 90 B6 0D 96 86 E2 EB 07 7E C3 6B 44 [22:48:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 EF 11 47 00 F9 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 35 30 35 37 10 04 04 00 FC 42 02 00 F4 03 04 00 F8 9D 5C 66 B6 04 01 00 00 A7 46 79 DF F2 E7 81 9B [22:48:49]CommunicateWithHost err = 0 [22:48:49]CheckOFDResponse [22:48:49]1017 (14) - 77093643461234 [22:48:49]1041 (16) - 0000000000875057 [22:48:49]1040 (4) - 148220 [22:48:49]1012 (4) - 02.06.2024 16:29 [22:48:49]1206 (1) - 0 [22:48:49]OFD Sender: Remove packet 148220 [22:48:49]ProducePacketName [22:48:49]name=ofd_packets/00148220 [22:48:49]NVStorageDeleteData [22:48:50]Write to MH i2c: 01 00 00 A8 04 AC [22:48:50]Write i2c OK [22:48:50]MH_I2C_Read... [22:48:50]Read from MH i2c: 01 [22:48:50]MH_I2C_Read... [22:48:50]Read from MH i2c: 01 07 00 [22:48:50]MH_I2C_Read... [22:48:50]Read from MH i2c: 01 07 00 A8 04 00 00 00 00 00 6B 0C 2A [22:48:50]RasterBufferAndPrint [22:48:50]line [22:48:50]line [22:48:50]line [22:48:50]line [22:48:50]line [22:48:50]written 0, free lines is 3183 [22:48:50]MH_Cut [22:48:50]Write to MH i2c: D1 01 00 AF 04 01 85 [22:48:50]Write i2c OK [22:48:50]MH_I2C_Read... [22:48:50]Read from MH i2c: D1 [22:48:50]MH_I2C_Read... [22:48:50]Read from MH i2c: D1 01 00 [22:48:50]MH_I2C_Read... [22:48:50]Read from MH i2c: D1 01 00 AF 04 00 84 [22:48:50]Write to MH i2c: 01 00 00 B0 04 B4 [22:48:50]Write i2c OK [22:48:50]MH_I2C_Read... [22:48:50]OFD Sender: No OFD packet to send [22:48:51]*** Cut start [22:48:51]*** Partial cut [22:48:51]*** CUTSNS_PIN = 1 [22:48:51]*** CUTSNS_PIN = 0 [22:48:51]*** Brake cut motor [22:48:52]Read from MH i2c: 01 [22:48:52]MH_I2C_Read... [22:48:52]*** Stop cut motor [22:48:52]*** Cut end [22:48:52]Read from MH i2c: 01 07 00 [22:48:52]MH_I2C_Read... [22:48:52]Read from MH i2c: 01 07 00 B0 04 00 00 00 00 00 FF 0F C9 [22:48:52]process_action close_receipt done [22:48:52]requested_data is exist [22:48:52]produce_requested_data [22:48:52]requested_item fm.sn is exist - process it [22:48:52]wFMCommunicate request_size=4 [22:48:52]MH_SAM_APDU [22:48:52]CAPDU: 80 11 00 00 [22:48:52]Write to MH i2c: E2 08 00 B1 04 80 11 00 00 00 00 00 00 2F [22:48:52]Write i2c OK [22:48:52]MH_I2C_Read... [22:48:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:52]Read from MH i2c: E2 [22:48:52]MH_I2C_Read... [22:48:52]Read from MH i2c: E2 17 00 [22:48:52]MH_I2C_Read... [22:48:52]Read from MH i2c: E2 17 00 B1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 82 [22:48:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:48:52]wFMCommunicate OK [22:48:52]requested_item fd.num is exist - process it [22:48:52]SAM_PROTO_GetFieldsCounters [22:48:52]wFMCommunicate request_size=4 [22:48:52]MH_SAM_APDU [22:48:52]CAPDU: 80 13 00 00 [22:48:52]Write to MH i2c: E2 08 00 B2 04 80 13 00 00 00 00 00 00 32 [22:48:52]Write i2c OK [22:48:52]MH_I2C_Read... [22:48:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:48:52]Read from MH i2c: E2 [22:48:52]MH_I2C_Read... [22:48:52]Read from MH i2c: E2 62 00 [22:48:52]MH_I2C_Read... [22:48:52]Read from MH i2c: E2 62 00 B2 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FC 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 9C 01 00 00 5E 04 04 00 9C 01 00 00 57 04 04 00 9D 01 00 00 19 04 04 00 00 00 00 00 90 00 D4 [22:48:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FC 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 9C 01 00 00 5E 04 04 00 9C 01 00 00 57 04 04 00 9D 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:48:52]wFMCommunicate OK [22:48:52]SAM_PROTO_GetFieldsCounters done [22:48:52]requested_item shift.num is exist - process it [22:48:52]requested_item shift.opened is exist - process it [22:48:52]req_shift_opened [22:48:52]FM_GetShiftState [22:48:52]SAM_PROTO_GetShiftState [22:48:52]wFMCommunicate request_size=4 [22:48:52]MH_SAM_APDU [22:48:52]CAPDU: 80 13 01 00 [22:48:52]Write to MH i2c: E2 08 00 B3 04 80 13 01 00 00 00 00 00 34 [22:48:52]Write i2c OK [22:48:52]MH_I2C_Read... [22:48:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:52]Read from MH i2c: E2 [22:48:52]MH_I2C_Read... [22:48:52]Read from MH i2c: E2 0E 00 [22:48:52]MH_I2C_Read... [22:48:52]Read from MH i2c: E2 0E 00 B3 04 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 4C [22:48:52]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [22:48:52]wFMCommunicate OK [22:48:52]SAM_PROTO_GetShiftState done [22:48:52]FM_GetShiftState done [22:48:52]req_shift_opened done [22:48:52]requested_item shift.open_date is exist - process it [22:48:52]req_shift_open_date [22:48:52]req_shift_open_date done [22:48:52]produce_requested_data done [22:48:52]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148220,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [22:48:52]process_action_free close_receipt [22:48:52]json_value_free [22:48:52]json_value_free done [22:48:52]process_json_proto returns [22:48:52]Send response to host [22:48:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148220,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [22:48:52]free response buf [22:48:52]execute_script done [22:48:52]execute_script returns [22:48:52]free content buf [22:48:52]Sock 8.Close socket [22:48:52]Sock 8.Thread stoped [22:48:55]OFD Sender: No OFD packet to send [22:49:00]OFD Sender: No OFD packet to send [22:49:05]OFD Sender: No OFD packet to send [22:49:10]OFD Sender: No OFD packet to send [22:49:15]OFD Sender: No OFD packet to send [22:49:20]OFD Sender: No OFD packet to send [22:49:25]OFD Sender: No OFD packet to send [22:49:30]OFD Sender: No OFD packet to send [22:49:35]OFD Sender: No OFD packet to send [22:49:40]OFD Sender: No OFD packet to send [22:49:45]OFD Sender: No OFD packet to send [22:49:50]OFD Sender: No OFD packet to send [22:49:55]OFD Sender: No OFD packet to send [22:50:00]OFD Sender: No OFD packet to send [22:50:05]OFD Sender: No OFD packet to send [22:50:10]OFD Sender: No OFD packet to send [22:50:15]OFD Sender: No OFD packet to send [22:50:20]OFD Sender: No OFD packet to send [22:50:25]OFD Sender: No OFD packet to send [22:50:30]OFD Sender: No OFD packet to send [22:50:35]OFD Sender: No OFD packet to send [22:50:40]OFD Sender: No OFD packet to send [22:50:45]OFD Sender: No OFD packet to send [22:50:50]OFD Sender: No OFD packet to send [22:50:55]OFD Sender: No OFD packet to send [22:51:00]OFD Sender: No OFD packet to send [22:51:05]OFD Sender: No OFD packet to send [22:51:10]OFD Sender: No OFD packet to send [22:51:15]OFD Sender: No OFD packet to send [22:51:20]OFD Sender: No OFD packet to send [22:51:25]OFD Sender: No OFD packet to send [22:51:30]OFD Sender: No OFD packet to send [22:51:35]OFD Sender: No OFD packet to send [22:51:40]OFD Sender: No OFD packet to send [22:51:45]OFD Sender: No OFD packet to send [22:51:50]OFD Sender: No OFD packet to send [22:51:55]OFD Sender: No OFD packet to send [22:52:00]OFD Sender: No OFD packet to send [22:52:05]OFD Sender: No OFD packet to send [22:52:10]OFD Sender: No OFD packet to send [22:52:15]OFD Sender: No OFD packet to send [22:52:20]OFD Sender: No OFD packet to send [22:52:25]OFD Sender: No OFD packet to send [22:52:30]OFD Sender: No OFD packet to send [22:52:35]OFD Sender: No OFD packet to send [22:52:40]OFD Sender: No OFD packet to send [22:52:45]OFD Sender: No OFD packet to send [22:52:50]OFD Sender: No OFD packet to send [22:52:55]OFD Sender: No OFD packet to send [22:53:00]OFD Sender: No OFD packet to send [22:53:05]OFD Sender: No OFD packet to send [22:53:10]OFD Sender: No OFD packet to send [22:53:15]OFD Sender: No OFD packet to send [22:53:20]OFD Sender: No OFD packet to send [22:53:25]OFD Sender: No OFD packet to send [22:53:30]OFD Sender: No OFD packet to send [22:53:35]OFD Sender: No OFD packet to send [22:53:40]OFD Sender: No OFD packet to send [22:53:45]OFD Sender: No OFD packet to send [22:53:50]OFD Sender: No OFD packet to send [22:53:55]OFD Sender: No OFD packet to send [22:54:00]OFD Sender: No OFD packet to send [22:54:05]OFD Sender: No OFD packet to send [22:54:10]OFD Sender: No OFD packet to send [22:54:15]OFD Sender: No OFD packet to send [22:54:20]OFD Sender: No OFD packet to send [22:54:25]OFD Sender: No OFD packet to send [22:54:30]OFD Sender: No OFD packet to send [22:54:35]OFD Sender: No OFD packet to send [22:54:40]OFD Sender: No OFD packet to send [22:54:45]OFD Sender: No OFD packet to send [22:54:50]OFD Sender: No OFD packet to send [22:54:55]OFD Sender: No OFD packet to send [22:55:00]OFD Sender: No OFD packet to send [22:55:05]OFD Sender: No OFD packet to send [22:55:10]OFD Sender: No OFD packet to send [22:55:15]OFD Sender: No OFD packet to send [22:55:16]accept exits with 9 [22:55:16]New connection [22:55:16]New thread 3067432292 created [22:55:16]Thread 3067288932 joined [22:55:16]Waiting for new connection... [22:55:16] Sock 9.Parse request [22:55:16]Sock 9.Check first char [22:55:16]Sock 9.First char is OK [22:55:16]request: POST /json_proto HTTP/1.0 [22:55:16]Method: POST [22:55:16]URL: /json_proto [22:55:16]Method is POST - this is cgi request [22:55:16]url: /json_proto [22:55:16]query_string will be loaded in cgi processing [22:55:16]execute_cgi json_proto POST (null) [22:55:16]execute_cgi path=json_proto method=POST [22:55:16]POST find Content-Length [22:55:16]Host: 172.17.38.4:8080 [22:55:16]Content-Length: 670 [22:55:16]Content-Type: application/json [22:55:16] [22:55:16]POST finish read [22:55:16]Found Content-Length = 670 [22:55:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.40, "quantity" : 9.350, "sum" : 630.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 630.00, "total" : 630.00, "payments": [ { "type": 0, "sum" : 630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:16]execute_script... [22:55:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 67.40, "quantity" : 9.350, "sum" : 630.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 630.00, "total" : 630.00, "payments": [ { "type": 0, "sum" : 630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:16]POST & json_proto [22:55:16]process_json_proto [22:55:16]json parsed OK: [22:55:16]protocol is kg_v1.0 [22:55:16]action value=close_receipt [22:55:16]process_action close_receipt [22:55:16]cmd_close_receipt [22:55:16]MH_GetDate [22:55:16]Write to MH i2c: F0 00 00 B4 04 A7 [22:55:16]Write i2c OK [22:55:16]MH_I2C_Read... [22:55:16]Read from MH i2c: F0 [22:55:16]MH_I2C_Read... [22:55:16]Read from MH i2c: F0 09 00 [22:55:16]MH_I2C_Read... [22:55:16]Read from MH i2c: F0 09 00 B4 04 00 55 F8 5C 66 CC 51 87 64 C7 [22:55:16]GetLastDocTimeStamp 1717368527 [22:55:16]current date 1717368917 [22:55:16]FM_GetShiftState [22:55:16]SAM_PROTO_GetShiftState [22:55:16]wFMCommunicate request_size=4 [22:55:16]MH_SAM_APDU [22:55:16]CAPDU: 80 13 01 00 [22:55:16]Write to MH i2c: E2 08 00 B5 04 80 13 01 00 00 00 00 00 36 [22:55:16]Write i2c OK [22:55:16]MH_I2C_Read... [22:55:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:17]Read from MH i2c: E2 [22:55:17]MH_I2C_Read... [22:55:17]Read from MH i2c: E2 0E 00 [22:55:17]MH_I2C_Read... [22:55:17]Read from MH i2c: E2 0E 00 B5 04 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 4E [22:55:17]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [22:55:17]wFMCommunicate OK [22:55:17]SAM_PROTO_GetShiftState done [22:55:17]FM_GetShiftState done [22:55:17]opened in 1717287824 [22:55:17]opened+sec_in_day 1717374224 [22:55:17]quantity*price = 63019 [22:55:17]sum+1 = 63020 [22:55:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 630.00 Внесено: 630.00 СДАЧА: 0.00 НСП 1% : 5.58 НДС 12% : 66.92 Наличными: 630.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 413 02.06.2024 22:55 Смена: 366 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148221 ФПД: 273898229010644 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T225517&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148221&fm=273898229010644&tin=02508201610067®Number=0000000000092720&sum=63000 [22:55:18]StoreToDocumentArchive [22:55:18]shift 366 fd 148221 [22:55:18]save to /storage/0366/doc_00148221 [22:55:18]save last doc name /storage/0366/doc_00148221 to /storage/kkm_last_doc_name [22:55:18]save OK [22:55:18]Clear old archive folders... [22:55:18]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:55:18]tlvbuf is B6F4FBA0 [22:55:18]SAM_PROTO_ClearQueue [22:55:18]wFMCommunicate request_size=4 [22:55:18]MH_SAM_APDU [22:55:18]CAPDU: 80 09 00 00 [22:55:18]Write to MH i2c: E2 08 00 C2 04 80 09 00 00 00 00 00 00 38 [22:55:18]Write i2c OK [22:55:18]MH_I2C_Read... [22:55:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:55:18]Read from MH i2c: E2 [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: E2 03 00 [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: E2 03 00 C2 04 00 90 00 3A [22:55:18]RAPDU: 90 00 [22:55:18]wFMCommunicate OK [22:55:18]SAM_PROTO_ClearQueue done [22:55:18]KKMCreateOFDPacket [22:55:18]OFDProtocolAddRootSTLVToBuf [22:55:18]FM_MakeSignedData [22:55:18]FM_MakeSignedData [22:55:18]SAM_PROTO_SignData [22:55:18]wFMCommunicate request_size=4 [22:55:18]MH_SAM_APDU [22:55:18]CAPDU: 80 0D 01 02 [22:55:18]Write to MH i2c: E2 08 00 C3 04 80 0D 01 02 00 00 00 00 40 [22:55:18]Write i2c OK [22:55:18]MH_I2C_Read... [22:55:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:55:18]Read from MH i2c: E2 [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: E2 03 00 [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: E2 03 00 C3 04 00 90 00 3B [22:55:18]RAPDU: 90 00 [22:55:18]wFMCommunicate OK [22:55:18]wFMCommunicate request_size=255 [22:55:18]MH_SAM_APDU [22:55:18]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 2B F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1A 00 00 00 00 07 04 06 00 18 F6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 01 00 00 F4 03 04 00 55 F8 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FD 42 02 00 35 04 06 00 [22:55:18]Write to MH i2c: E2 02 01 C4 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 2B F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1A 00 00 00 00 07 04 06 00 18 F6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 01 00 00 F4 03 04 00 55 F8 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FD 42 02 00 35 04 06 00 00 00 02 [22:55:18]Write i2c OK [22:55:18]MH_I2C_Read... [22:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:18]Read from MH i2c: E2 [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: E2 03 00 [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: E2 03 00 C4 04 00 90 00 3C [22:55:18]RAPDU: 90 00 [22:55:18]wFMCommunicate OK [22:55:18]wFMCommunicate request_size=11 [22:55:18]MH_SAM_APDU [22:55:18]CAPDU: 80 0D 02 02 06 F9 1B E6 A5 10 D4 [22:55:18]Write to MH i2c: E2 0E 00 C5 04 80 0D 02 02 06 00 F9 1B E6 A5 10 D4 00 00 D2 [22:55:18]Write i2c OK [22:55:18]MH_I2C_Read... [22:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:18]Read from MH i2c: E2 [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: E2 03 00 [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: E2 03 00 C5 04 00 90 00 3D [22:55:18]RAPDU: 90 00 [22:55:18]wFMCommunicate OK [22:55:18]wFMCommunicate request_size=4 [22:55:18]MH_SAM_APDU [22:55:18]CAPDU: 80 0D 03 02 [22:55:18]Write to MH i2c: E2 08 00 C6 04 80 0D 03 02 00 00 00 00 45 [22:55:18]Write i2c OK [22:55:18]MH_I2C_Read... [22:55:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:55:18]Read from MH i2c: E2 [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: E2 0B 00 [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: E2 0B 00 C6 04 00 9D 12 27 FF 5A 5E BB D4 90 00 62 [22:55:18]RAPDU: 9D 12 27 FF 5A 5E BB D4 90 00 [22:55:18]wFMCommunicate OK [22:55:18]SAM_PROTO_SignData done [22:55:18]FM_MakeSignedData done [22:55:18]CreateOFDProtocolMessage [22:55:18]wFMCommunicate request_size=4 [22:55:18]MH_SAM_APDU [22:55:18]CAPDU: 80 11 00 00 [22:55:18]Write to MH i2c: E2 08 00 C7 04 80 11 00 00 00 00 00 00 45 [22:55:18]Write i2c OK [22:55:18]MH_I2C_Read... [22:55:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:18]Read from MH i2c: E2 [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: E2 17 00 [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: E2 17 00 C7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 98 [22:55:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:55:18]wFMCommunicate OK [22:55:18]CreateOFDProtocolMessage done [22:55:18]OFDSenderStorePacket 148221 [22:55:18]StoreOFDPacket docnum=148221 [22:55:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 0D C4 08 01 03 31 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 2B F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1A 00 00 00 00 07 04 06 00 18 F6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 01 00 00 F4 03 04 00 55 F8 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FD 42 02 00 35 04 06 00 F9 1B E6 A5 10 D4 9D 12 27 FF 5A 5E BB D4 [22:55:18]CheckFolder [22:55:18]dirname=/storage/ofd_packets [22:55:18]CheckFolder done [22:55:18]ProducePacketName [22:55:18]name=ofd_packets/00148221 [22:55:18]NVStorageSaveData ofd_packets/00148221 [22:55:18]File name is /storage/ofd_packets/00148221 [22:55:18]Write 302 bytes [22:55:18]NVStorageSaveData done [22:55:18]OFDSenderStorePacket done [22:55:18]KKMCreateOFDPacket done [22:55:18]NVStorageSaveData kkm_last_timestamp [22:55:18]File name is /storage/kkm_last_timestamp [22:55:18]Write 4 bytes [22:55:18]NVStorageSaveData done [22:55:18]ExternCall_PrintAddStr [22:55:18]wPrintStart [22:55:18]Write to MH i2c: 01 00 00 C8 04 CC [22:55:18]Write i2c OK [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: 01 [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: 01 07 00 [22:55:18]MH_I2C_Read... [22:55:18]Read from MH i2c: 01 07 00 C8 04 00 00 00 00 00 FF 0F E1 [22:55:18]RasterBufferAndPrint [22:55:18]line Счет N : (1)979161 [22:55:18]line ИНН: 02508201610067 [22:55:18]line Контрольно-Кассовый Чек [22:55:18]line ПРОДАЖА [22:55:18]line ТРК (МРК, ГНК) : 43 [22:55:18]line Товар: 2710124130 [22:55:18]line SUPER 92-К-5 [22:55:18]line 9.350 * 67.40 [22:55:18]line = 630.19 [22:55:18]line НДС 12% НСП 1% [22:55:18]line > о реализуемом товаре [22:55:18]line ОКРУГЛЕНИЕ: -0.19 [22:55:18]line ИТОГО: 630.00 [22:55:18]line Внесено: 630.00 [22:55:18]line СДАЧА: 0.00 [22:55:18]line НСП 1% : 5.58 [22:55:18]line НДС 12% : 66.92 [22:55:18]line Наличными: 630.00 [22:55:18]line Безнал.: 0.00 [22:55:18]line Место: АЗС № 68 "Партнер Нефть" [22:55:18]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [22:55:18]line СНО: Общий режим [22:55:18]line Чек 413 02.06.2024 22:55 [22:55:18]line Смена: 366 ФФД: 1.0 [22:55:18]line ЗНМ: 0300000035 [22:55:18]line РНМ: 0000000000092720 [22:55:18]line Версия ККМ: 001 [22:55:18]line ФМ: 0000000000875057 [22:55:18]line ФД: 148221 [22:55:18]line ФПД: 273898229010644 [22:55:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T225517&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148221&fm=273898229010644&tin=02508201610067®Number=0000000000092720&sum=63000 [22:55:18]OFD Sender: Processing packet 148221 [packets to send 99, broken 98] [22:55:18]ProducePacketName [22:55:18]name=ofd_packets/00148221 [22:55:18]OFD Sender: To server: pG, [22:55:18]CommunicateWithHost lk.salyk.kg:30040 [22:55:18]ConnectInit lk.salyk.kg [22:55:18]written 0, free lines is 4095 [22:55:19]Connected sock=10 [22:55:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 01 00 00 0D C4 08 01 03 31 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 24 00 00 00 00 00 37 04 06 00 54 1A 00 00 00 00 13 04 06 00 2B F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1A 00 00 00 00 07 04 06 00 18 F6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 01 00 00 F4 03 04 00 55 F8 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FD 42 02 00 35 04 06 00 F9 1B E6 A5 10 D4 9D 12 27 FF 5A 5E BB D4 [22:55:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 D4 CB 47 00 7A 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FD 42 02 00 F4 03 04 00 7E 9F 5C 66 B6 04 01 00 00 FE 58 9B 3B 1E 52 79 F4 [22:55:19]CommunicateWithHost err = 0 [22:55:19]CheckOFDResponse [22:55:19]1017 (14) - 77093643461234 [22:55:19]1041 (16) - 0000000000875057 [22:55:19]1040 (4) - 148221 [22:55:19]1012 (4) - 02.06.2024 16:36 [22:55:19]1206 (1) - 0 [22:55:19]OFD Sender: Remove packet 148221 [22:55:19]ProducePacketName [22:55:19]name=ofd_packets/00148221 [22:55:19]NVStorageDeleteData [22:55:19]Write to MH i2c: 01 00 00 F3 04 F7 [22:55:19]Write i2c OK [22:55:19]MH_I2C_Read... [22:55:19]Read from MH i2c: 01 [22:55:19]MH_I2C_Read... [22:55:19]Read from MH i2c: 01 07 00 [22:55:19]MH_I2C_Read... [22:55:19]Read from MH i2c: 01 07 00 F3 04 00 00 00 00 00 6A 0C 74 [22:55:19]RasterBufferAndPrint [22:55:19]line [22:55:19]line [22:55:19]line [22:55:19]line [22:55:19]line [22:55:19]written 0, free lines is 3181 [22:55:19]MH_Cut [22:55:19]Write to MH i2c: D1 01 00 FA 04 01 D0 [22:55:19]Write i2c OK [22:55:19]MH_I2C_Read... [22:55:19]Read from MH i2c: D1 [22:55:19]MH_I2C_Read... [22:55:19]Read from MH i2c: D1 01 00 [22:55:19]MH_I2C_Read... [22:55:19]Read from MH i2c: D1 01 00 FA 04 00 CF [22:55:19]Write to MH i2c: 01 00 00 FB 04 FF [22:55:19]Write i2c OK [22:55:19]MH_I2C_Read... [22:55:19]OFD Sender: No OFD packet to send [22:55:20]*** Cut start [22:55:20]*** Partial cut [22:55:20]*** CUTSNS_PIN = 1 [22:55:20]*** CUTSNS_PIN = 0 [22:55:20]*** Brake cut motor [22:55:21]Read from MH i2c: 01 [22:55:21]MH_I2C_Read... [22:55:21]*** Stop cut motor [22:55:21]*** Cut end [22:55:21]Read from MH i2c: 01 07 00 [22:55:21]MH_I2C_Read... [22:55:21]Read from MH i2c: 01 07 00 FB 04 00 00 00 00 00 FF 0F 14 [22:55:21]process_action close_receipt done [22:55:21]requested_data is exist [22:55:21]produce_requested_data [22:55:21]requested_item fm.sn is exist - process it [22:55:21]wFMCommunicate request_size=4 [22:55:21]MH_SAM_APDU [22:55:21]CAPDU: 80 11 00 00 [22:55:21]Write to MH i2c: E2 08 00 FC 04 80 11 00 00 00 00 00 00 7A [22:55:21]Write i2c OK [22:55:21]MH_I2C_Read... [22:55:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:21]Read from MH i2c: E2 [22:55:21]MH_I2C_Read... [22:55:21]Read from MH i2c: E2 17 00 [22:55:21]MH_I2C_Read... [22:55:21]Read from MH i2c: E2 17 00 FC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 CD [22:55:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [22:55:21]wFMCommunicate OK [22:55:21]requested_item fd.num is exist - process it [22:55:21]SAM_PROTO_GetFieldsCounters [22:55:21]wFMCommunicate request_size=4 [22:55:21]MH_SAM_APDU [22:55:21]CAPDU: 80 13 00 00 [22:55:21]Write to MH i2c: E2 08 00 FD 04 80 13 00 00 00 00 00 00 7D [22:55:21]Write i2c OK [22:55:21]MH_I2C_Read... [22:55:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:55:21]Read from MH i2c: E2 [22:55:21]MH_I2C_Read... [22:55:21]Read from MH i2c: E2 62 00 [22:55:21]MH_I2C_Read... [22:55:21]Read from MH i2c: E2 62 00 FD 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FD 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 9D 01 00 00 5E 04 04 00 9D 01 00 00 57 04 04 00 9E 01 00 00 19 04 04 00 00 00 00 00 90 00 23 [22:55:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FD 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 9D 01 00 00 5E 04 04 00 9D 01 00 00 57 04 04 00 9E 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:55:21]wFMCommunicate OK [22:55:21]SAM_PROTO_GetFieldsCounters done [22:55:21]requested_item shift.num is exist - process it [22:55:21]requested_item shift.opened is exist - process it [22:55:21]req_shift_opened [22:55:21]FM_GetShiftState [22:55:21]SAM_PROTO_GetShiftState [22:55:21]wFMCommunicate request_size=4 [22:55:21]MH_SAM_APDU [22:55:21]CAPDU: 80 13 01 00 [22:55:21]Write to MH i2c: E2 08 00 FE 04 80 13 01 00 00 00 00 00 7F [22:55:21]Write i2c OK [22:55:21]MH_I2C_Read... [22:55:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:21]Read from MH i2c: E2 [22:55:21]MH_I2C_Read... [22:55:21]Read from MH i2c: E2 0E 00 [22:55:21]MH_I2C_Read... [22:55:21]Read from MH i2c: E2 0E 00 FE 04 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 97 [22:55:21]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [22:55:21]wFMCommunicate OK [22:55:21]SAM_PROTO_GetShiftState done [22:55:21]FM_GetShiftState done [22:55:21]req_shift_opened done [22:55:21]requested_item shift.open_date is exist - process it [22:55:21]req_shift_open_date [22:55:21]req_shift_open_date done [22:55:21]produce_requested_data done [22:55:21]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148221,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [22:55:21]process_action_free close_receipt [22:55:21]json_value_free [22:55:21]json_value_free done [22:55:21]process_json_proto returns [22:55:21]Send response to host [22:55:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148221,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [22:55:21]free response buf [22:55:21]execute_script done [22:55:21]execute_script returns [22:55:21]free content buf [22:55:21]Sock 9.Close socket [22:55:21]Sock 9.Thread stoped [22:55:24]OFD Sender: No OFD packet to send [22:55:29]OFD Sender: No OFD packet to send [22:55:34]OFD Sender: No OFD packet to send [22:55:39]OFD Sender: No OFD packet to send [22:55:44]OFD Sender: No OFD packet to send [22:55:49]OFD Sender: No OFD packet to send [22:55:54]OFD Sender: No OFD packet to send [22:55:59]OFD Sender: No OFD packet to send [22:56:04]OFD Sender: No OFD packet to send [22:56:09]OFD Sender: No OFD packet to send [22:56:14]OFD Sender: No OFD packet to send [22:56:19]OFD Sender: No OFD packet to send [22:56:24]OFD Sender: No OFD packet to send [22:56:29]OFD Sender: No OFD packet to send [22:56:34]OFD Sender: No OFD packet to send [22:56:39]OFD Sender: No OFD packet to send [22:56:44]OFD Sender: No OFD packet to send [22:56:49]OFD Sender: No OFD packet to send [22:56:54]OFD Sender: No OFD packet to send [22:56:59]OFD Sender: No OFD packet to send [22:57:04]OFD Sender: No OFD packet to send [22:57:09]OFD Sender: No OFD packet to send [22:57:14]OFD Sender: No OFD packet to send [22:57:19]OFD Sender: No OFD packet to send [22:57:24]OFD Sender: No OFD packet to send [22:57:29]OFD Sender: No OFD packet to send [22:57:34]OFD Sender: No OFD packet to send [22:57:39]OFD Sender: No OFD packet to send [22:57:44]OFD Sender: No OFD packet to send [22:57:49]OFD Sender: No OFD packet to send [22:57:54]OFD Sender: No OFD packet to send [22:57:59]OFD Sender: No OFD packet to send [22:58:04]OFD Sender: No OFD packet to send [22:58:09]OFD Sender: No OFD packet to send [22:58:14]OFD Sender: No OFD packet to send [22:58:19]OFD Sender: No OFD packet to send [22:58:24]OFD Sender: No OFD packet to send [22:58:29]OFD Sender: No OFD packet to send [22:58:34]OFD Sender: No OFD packet to send [22:58:39]OFD Sender: No OFD packet to send [22:58:44]OFD Sender: No OFD packet to send [22:58:49]OFD Sender: No OFD packet to send [22:58:54]OFD Sender: No OFD packet to send [22:58:59]OFD Sender: No OFD packet to send [22:59:05]OFD Sender: No OFD packet to send [22:59:10]OFD Sender: No OFD packet to send [22:59:15]OFD Sender: No OFD packet to send [22:59:20]OFD Sender: No OFD packet to send [22:59:25]OFD Sender: No OFD packet to send [22:59:30]OFD Sender: No OFD packet to send [22:59:35]OFD Sender: No OFD packet to send [22:59:40]OFD Sender: No OFD packet to send [22:59:45]OFD Sender: No OFD packet to send [22:59:50]OFD Sender: No OFD packet to send [22:59:55]OFD Sender: No OFD packet to send [23:00:00]OFD Sender: No OFD packet to send [23:00:05]OFD Sender: No OFD packet to send [23:00:10]OFD Sender: No OFD packet to send [23:00:15]OFD Sender: No OFD packet to send [23:00:20]OFD Sender: No OFD packet to send [23:00:25]OFD Sender: No OFD packet to send [23:00:30]OFD Sender: No OFD packet to send [23:00:35]OFD Sender: No OFD packet to send [23:00:40]OFD Sender: No OFD packet to send [23:00:45]OFD Sender: No OFD packet to send [23:00:50]OFD Sender: No OFD packet to send [23:00:55]OFD Sender: No OFD packet to send [23:01:00]OFD Sender: No OFD packet to send [23:01:05]OFD Sender: No OFD packet to send [23:01:10]OFD Sender: No OFD packet to send [23:01:15]OFD Sender: No OFD packet to send [23:01:20]OFD Sender: No OFD packet to send [23:01:25]OFD Sender: No OFD packet to send [23:01:30]OFD Sender: No OFD packet to send [23:01:35]OFD Sender: No OFD packet to send [23:01:40]OFD Sender: No OFD packet to send [23:01:45]OFD Sender: No OFD packet to send [23:01:50]OFD Sender: No OFD packet to send [23:01:55]OFD Sender: No OFD packet to send [23:02:00]OFD Sender: No OFD packet to send [23:02:05]OFD Sender: No OFD packet to send [23:02:10]OFD Sender: No OFD packet to send [23:02:15]OFD Sender: No OFD packet to send [23:02:20]OFD Sender: No OFD packet to send [23:02:25]OFD Sender: No OFD packet to send [23:02:30]OFD Sender: No OFD packet to send [23:02:35]OFD Sender: No OFD packet to send [23:02:40]OFD Sender: No OFD packet to send [23:02:45]OFD Sender: No OFD packet to send [23:02:50]OFD Sender: No OFD packet to send [23:02:55]OFD Sender: No OFD packet to send [23:03:00]OFD Sender: No OFD packet to send [23:03:05]OFD Sender: No OFD packet to send [23:03:10]OFD Sender: No OFD packet to send [23:03:15]OFD Sender: No OFD packet to send [23:03:20]OFD Sender: No OFD packet to send [23:03:25]OFD Sender: No OFD packet to send [23:03:30]OFD Sender: No OFD packet to send [23:03:35]OFD Sender: No OFD packet to send [23:03:40]OFD Sender: No OFD packet to send [23:03:45]OFD Sender: No OFD packet to send [23:03:50]OFD Sender: No OFD packet to send [23:03:55]OFD Sender: No OFD packet to send [23:04:00]OFD Sender: No OFD packet to send [23:04:05]OFD Sender: No OFD packet to send [23:04:10]OFD Sender: No OFD packet to send [23:04:15]OFD Sender: No OFD packet to send [23:04:20]OFD Sender: No OFD packet to send [23:04:24]accept exits with 8 [23:04:24]New connection [23:04:24]New thread 3067288932 created [23:04:24]Thread 3067432292 joined [23:04:24]Waiting for new connection... [23:04:24] Sock 8.Parse request [23:04:24]Sock 8.Check first char [23:04:24]Sock 8.First char is OK [23:04:24]request: POST /json_proto HTTP/1.0 [23:04:24]Method: POST [23:04:24]URL: /json_proto [23:04:24]Method is POST - this is cgi request [23:04:24]url: /json_proto [23:04:24]query_string will be loaded in cgi processing [23:04:24]execute_cgi json_proto POST (null) [23:04:24]execute_cgi path=json_proto method=POST [23:04:24]POST find Content-Length [23:04:24]Host: 172.17.38.4:8080 [23:04:24]Content-Length: 793 [23:04:24]Content-Type: application/json [23:04:24] [23:04:24]POST finish read [23:04:24]Found Content-Length = 793 [23:04:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 20.000, "sum" : 1328.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:24]execute_script... [23:04:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 20.000, "sum" : 1328.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1328.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:24]POST & json_proto [23:04:24]process_json_proto [23:04:24]json parsed OK: [23:04:24]protocol is kg_v1.0 [23:04:24]action value=close_receipt [23:04:24]process_action close_receipt [23:04:24]cmd_close_receipt [23:04:24]MH_GetDate [23:04:24]Write to MH i2c: F0 00 00 FF 04 F2 [23:04:24]Write i2c OK [23:04:24]MH_I2C_Read... [23:04:24]Read from MH i2c: F0 [23:04:24]MH_I2C_Read... [23:04:24]Read from MH i2c: F0 09 00 [23:04:24]MH_I2C_Read... [23:04:24]Read from MH i2c: F0 09 00 FF 04 00 78 FA 5C 66 CC 51 87 64 37 [23:04:24]GetLastDocTimeStamp 1717368917 [23:04:24]current date 1717369464 [23:04:24]FM_GetShiftState [23:04:24]SAM_PROTO_GetShiftState [23:04:24]wFMCommunicate request_size=4 [23:04:24]MH_SAM_APDU [23:04:24]CAPDU: 80 13 01 00 [23:04:24]Write to MH i2c: E2 08 00 00 05 80 13 01 00 00 00 00 00 82 [23:04:24]Write i2c OK [23:04:24]MH_I2C_Read... [23:04:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:24]Read from MH i2c: E2 [23:04:24]MH_I2C_Read... [23:04:24]Read from MH i2c: E2 0E 00 [23:04:24]MH_I2C_Read... [23:04:24]Read from MH i2c: E2 0E 00 00 05 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 9A [23:04:24]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [23:04:24]wFMCommunicate OK [23:04:24]SAM_PROTO_GetShiftState done [23:04:24]FM_GetShiftState done [23:04:24]opened in 1717287824 [23:04:24]opened+sec_in_day 1717374224 [23:04:24]quantity*price = 132800 [23:04:24]sum+1 = 132801 [23:04:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1328.00 НСП 1% : 11.75 НДС 12% : 141.03 Наличными: 0.00 Безнал.: 1328.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 414 02.06.2024 23:04 Смена: 366 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148222 ФПД: 233079812462274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T230424&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148222&fm=233079812462274&tin=02508201610067®Number=0000000000092720&sum=132800 [23:04:25]StoreToDocumentArchive [23:04:25]shift 366 fd 148222 [23:04:25]save to /storage/0366/doc_00148222 [23:04:25]save last doc name /storage/0366/doc_00148222 to /storage/kkm_last_doc_name [23:04:25]save OK [23:04:25]Clear old archive folders... [23:04:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:04:25]tlvbuf is 01226060 [23:04:25]SAM_PROTO_ClearQueue [23:04:25]wFMCommunicate request_size=4 [23:04:25]MH_SAM_APDU [23:04:25]CAPDU: 80 09 00 00 [23:04:25]Write to MH i2c: E2 08 00 0D 05 80 09 00 00 00 00 00 00 84 [23:04:25]Write i2c OK [23:04:25]MH_I2C_Read... [23:04:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:04:25]Read from MH i2c: E2 [23:04:25]MH_I2C_Read... [23:04:25]Read from MH i2c: E2 03 00 [23:04:25]MH_I2C_Read... [23:04:25]Read from MH i2c: E2 03 00 0D 05 00 90 00 86 [23:04:25]RAPDU: 90 00 [23:04:25]wFMCommunicate OK [23:04:25]SAM_PROTO_ClearQueue done [23:04:25]KKMCreateOFDPacket [23:04:25]OFDProtocolAddRootSTLVToBuf [23:04:25]FM_MakeSignedData [23:04:25]FM_MakeSignedData [23:04:25]SAM_PROTO_SignData [23:04:25]wFMCommunicate request_size=4 [23:04:25]MH_SAM_APDU [23:04:25]CAPDU: 80 0D 01 02 [23:04:25]Write to MH i2c: E2 08 00 0E 05 80 0D 01 02 00 00 00 00 8C [23:04:25]Write i2c OK [23:04:25]MH_I2C_Read... [23:04:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:04:25]Read from MH i2c: E2 [23:04:25]MH_I2C_Read... [23:04:25]Read from MH i2c: E2 03 00 [23:04:25]MH_I2C_Read... [23:04:25]Read from MH i2c: E2 03 00 0E 05 00 90 00 87 [23:04:25]RAPDU: 90 00 [23:04:25]wFMCommunicate OK [23:04:25]wFMCommunicate request_size=255 [23:04:25]MH_SAM_APDU [23:04:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 06 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 78 FA 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FE 42 02 00 35 04 06 00 D3 [23:04:25]Write to MH i2c: E2 02 01 0F 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 06 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 78 FA 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FE 42 02 00 35 04 06 00 D3 00 00 A0 [23:04:25]Write i2c OK [23:04:25]MH_I2C_Read... [23:04:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:25]Read from MH i2c: E2 [23:04:25]MH_I2C_Read... [23:04:25]Read from MH i2c: E2 03 00 [23:04:25]MH_I2C_Read... [23:04:25]Read from MH i2c: E2 03 00 0F 05 00 90 00 88 [23:04:25]RAPDU: 90 00 [23:04:25]wFMCommunicate OK [23:04:25]wFMCommunicate request_size=10 [23:04:25]MH_SAM_APDU [23:04:25]CAPDU: 80 0D 02 02 05 FC 1F 6D 16 C2 [23:04:25]Write to MH i2c: E2 0D 00 10 05 80 0D 02 02 05 00 FC 1F 6D 16 C2 00 00 F9 [23:04:25]Write i2c OK [23:04:25]MH_I2C_Read... [23:04:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:25]Read from MH i2c: E2 [23:04:25]MH_I2C_Read... [23:04:25]Read from MH i2c: E2 03 00 [23:04:25]MH_I2C_Read... [23:04:25]Read from MH i2c: E2 03 00 10 05 00 90 00 89 [23:04:25]RAPDU: 90 00 [23:04:25]wFMCommunicate OK [23:04:25]wFMCommunicate request_size=4 [23:04:25]MH_SAM_APDU [23:04:25]CAPDU: 80 0D 03 02 [23:04:25]Write to MH i2c: E2 08 00 11 05 80 0D 03 02 00 00 00 00 91 [23:04:25]Write i2c OK [23:04:25]MH_I2C_Read... [23:04:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:04:25]Read from MH i2c: E2 [23:04:25]MH_I2C_Read... [23:04:25]Read from MH i2c: E2 0B 00 [23:04:25]MH_I2C_Read... [23:04:25]Read from MH i2c: E2 0B 00 11 05 00 05 76 48 23 0E 6A 81 E0 90 00 51 [23:04:25]RAPDU: 05 76 48 23 0E 6A 81 E0 90 00 [23:04:25]wFMCommunicate OK [23:04:25]SAM_PROTO_SignData done [23:04:25]FM_MakeSignedData done [23:04:25]CreateOFDProtocolMessage [23:04:25]wFMCommunicate request_size=4 [23:04:25]MH_SAM_APDU [23:04:25]CAPDU: 80 11 00 00 [23:04:25]Write to MH i2c: E2 08 00 12 05 80 11 00 00 00 00 00 00 91 [23:04:26]Write i2c OK [23:04:26]MH_I2C_Read... [23:04:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:26]Read from MH i2c: E2 [23:04:26]MH_I2C_Read... [23:04:26]Read from MH i2c: E2 17 00 [23:04:26]MH_I2C_Read... [23:04:26]Read from MH i2c: E2 17 00 12 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 E4 [23:04:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:04:26]wFMCommunicate OK [23:04:26]CreateOFDProtocolMessage done [23:04:26]OFDSenderStorePacket 148222 [23:04:26]StoreOFDPacket docnum=148222 [23:04:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 31 AC 07 01 CD FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 06 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 78 FA 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FE 42 02 00 35 04 06 00 D3 FC 1F 6D 16 C2 05 76 48 23 0E 6A 81 E0 [23:04:26]CheckFolder [23:04:26]dirname=/storage/ofd_packets [23:04:26]CheckFolder done [23:04:26]ProducePacketName [23:04:26]name=ofd_packets/00148222 [23:04:26]NVStorageSaveData ofd_packets/00148222 [23:04:26]File name is /storage/ofd_packets/00148222 [23:04:26]Write 301 bytes [23:04:26]NVStorageSaveData done [23:04:26]OFDSenderStorePacket done [23:04:26]KKMCreateOFDPacket done [23:04:26]NVStorageSaveData kkm_last_timestamp [23:04:26]File name is /storage/kkm_last_timestamp [23:04:26]Write 4 bytes [23:04:26]NVStorageSaveData done [23:04:26]ExternCall_PrintAddStr [23:04:26]wPrintStart [23:04:26]Write to MH i2c: 01 00 00 13 05 18 [23:04:26]Write i2c OK [23:04:26]MH_I2C_Read... [23:04:26]Read from MH i2c: 01 [23:04:26]MH_I2C_Read... [23:04:26]Read from MH i2c: 01 07 00 [23:04:26]MH_I2C_Read... [23:04:26]Read from MH i2c: 01 07 00 13 05 00 00 00 00 00 FF 0F 2D [23:04:26]RasterBufferAndPrint [23:04:26]line Счет N : (1)979162 [23:04:26]line ИНН: 02508201610067 [23:04:26]line Контрольно-Кассовый Чек [23:04:26]line ПРОДАЖА [23:04:26]line ТРК (МРК, ГНК) : 12 [23:04:26]line Товар: 2710124130 [23:04:26]line Аи-92-К-5 [23:04:26]line 20.000 * 66.40 [23:04:26]line = 1328.00 [23:04:26]line НДС 12% НСП 1% [23:04:26]line > о реализуемом товаре [23:04:26]line ИТОГО: 1328.00 [23:04:26]line НСП 1% : 11.75 [23:04:26]line НДС 12% : 141.03 [23:04:26]line Наличными: 0.00 [23:04:26]line Безнал.: 1328.00 [23:04:26]line Место: АЗС № 68 "Партнер Нефть" [23:04:26]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [23:04:26]line СНО: Общий режим [23:04:26]line Чек 414 02.06.2024 23:04 [23:04:26]line Смена: 366 ФФД: 1.0 [23:04:26]line ЗНМ: 0300000035 [23:04:26]line РНМ: 0000000000092720 [23:04:26]line Версия ККМ: 001 [23:04:26]line Платежная система: KICB Банк [23:04:26]line ФМ: 0000000000875057 [23:04:26]line ФД: 148222 [23:04:26]line ФПД: 233079812462274 [23:04:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T230424&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148222&fm=233079812462274&tin=02508201610067®Number=0000000000092720&sum=132800 [23:04:26]OFD Sender: Processing packet 148222 [packets to send 99, broken 98] [23:04:26]ProducePacketName [23:04:26]name=ofd_packets/00148222 [23:04:26]OFD Sender: To server: pG, [23:04:26]CommunicateWithHost lk.salyk.kg:30040 [23:04:26]ConnectInit lk.salyk.kg [23:04:26]written 0, free lines is 4095 [23:04:26]Connected sock=10 [23:04:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 31 AC 07 01 CD FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 C0 06 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 06 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 37 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C0 06 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 01 00 00 F4 03 04 00 78 FA 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FE 42 02 00 35 04 06 00 D3 FC 1F 6D 16 C2 05 76 48 23 0E 6A 81 E0 [23:04:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 DE A7 47 00 26 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FE 42 02 00 F4 03 04 00 A1 A1 5C 66 B6 04 01 00 00 BE DC FF 95 CA 9B 73 E3 [23:04:26]CommunicateWithHost err = 0 [23:04:26]CheckOFDResponse [23:04:26]1017 (14) - 77093643461234 [23:04:26]1041 (16) - 0000000000875057 [23:04:26]1040 (4) - 148222 [23:04:26]1012 (4) - 02.06.2024 16:45 [23:04:26]1206 (1) - 0 [23:04:26]OFD Sender: Remove packet 148222 [23:04:26]ProducePacketName [23:04:26]name=ofd_packets/00148222 [23:04:26]NVStorageDeleteData [23:04:26]Write to MH i2c: 01 00 00 3D 05 42 [23:04:26]Write i2c OK [23:04:26]MH_I2C_Read... [23:04:26]Read from MH i2c: 01 [23:04:26]MH_I2C_Read... [23:04:26]Read from MH i2c: 01 07 00 [23:04:26]MH_I2C_Read... [23:04:26]Read from MH i2c: 01 07 00 3D 05 00 00 00 00 00 7C 0C D1 [23:04:26]RasterBufferAndPrint [23:04:26]line [23:04:26]line [23:04:26]line [23:04:26]line [23:04:26]line [23:04:26]written 0, free lines is 3199 [23:04:26]MH_Cut [23:04:26]Write to MH i2c: D1 01 00 44 05 01 1B [23:04:26]Write i2c OK [23:04:26]MH_I2C_Read... [23:04:26]Read from MH i2c: D1 [23:04:26]MH_I2C_Read... [23:04:26]Read from MH i2c: D1 01 00 [23:04:26]MH_I2C_Read... [23:04:26]Read from MH i2c: D1 01 00 44 05 00 1A [23:04:26]Write to MH i2c: 01 00 00 45 05 4A [23:04:26]Write i2c OK [23:04:26]MH_I2C_Read... [23:04:27]OFD Sender: No OFD packet to send [23:04:28]*** Cut start [23:04:28]*** Partial cut [23:04:28]*** CUTSNS_PIN = 1 [23:04:28]*** CUTSNS_PIN = 0 [23:04:28]*** Brake cut motor [23:04:28]Read from MH i2c: 01 [23:04:28]MH_I2C_Read... [23:04:28]*** Stop cut motor [23:04:28]*** Cut end [23:04:28]Read from MH i2c: 01 07 00 [23:04:28]MH_I2C_Read... [23:04:28]Read from MH i2c: 01 07 00 45 05 00 00 00 00 00 FF 0F 5F [23:04:28]process_action close_receipt done [23:04:28]requested_data is exist [23:04:28]produce_requested_data [23:04:28]requested_item fm.sn is exist - process it [23:04:28]wFMCommunicate request_size=4 [23:04:28]MH_SAM_APDU [23:04:28]CAPDU: 80 11 00 00 [23:04:28]Write to MH i2c: E2 08 00 46 05 80 11 00 00 00 00 00 00 C5 [23:04:28]Write i2c OK [23:04:28]MH_I2C_Read... [23:04:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:28]Read from MH i2c: E2 [23:04:28]MH_I2C_Read... [23:04:28]Read from MH i2c: E2 17 00 [23:04:28]MH_I2C_Read... [23:04:28]Read from MH i2c: E2 17 00 46 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 18 [23:04:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:04:28]wFMCommunicate OK [23:04:28]requested_item fd.num is exist - process it [23:04:28]SAM_PROTO_GetFieldsCounters [23:04:28]wFMCommunicate request_size=4 [23:04:28]MH_SAM_APDU [23:04:28]CAPDU: 80 13 00 00 [23:04:28]Write to MH i2c: E2 08 00 47 05 80 13 00 00 00 00 00 00 C8 [23:04:28]Write i2c OK [23:04:28]MH_I2C_Read... [23:04:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:04:28]Read from MH i2c: E2 [23:04:28]MH_I2C_Read... [23:04:28]Read from MH i2c: E2 62 00 [23:04:28]MH_I2C_Read... [23:04:28]Read from MH i2c: E2 62 00 47 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FE 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 9E 01 00 00 5E 04 04 00 9E 01 00 00 57 04 04 00 9F 01 00 00 19 04 04 00 00 00 00 00 90 00 72 [23:04:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FE 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 9E 01 00 00 5E 04 04 00 9E 01 00 00 57 04 04 00 9F 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:04:28]wFMCommunicate OK [23:04:28]SAM_PROTO_GetFieldsCounters done [23:04:28]requested_item shift.num is exist - process it [23:04:28]requested_item shift.opened is exist - process it [23:04:28]req_shift_opened [23:04:28]FM_GetShiftState [23:04:28]SAM_PROTO_GetShiftState [23:04:28]wFMCommunicate request_size=4 [23:04:28]MH_SAM_APDU [23:04:28]CAPDU: 80 13 01 00 [23:04:28]Write to MH i2c: E2 08 00 48 05 80 13 01 00 00 00 00 00 CA [23:04:28]Write i2c OK [23:04:28]MH_I2C_Read... [23:04:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:29]Read from MH i2c: E2 [23:04:29]MH_I2C_Read... [23:04:29]Read from MH i2c: E2 0E 00 [23:04:29]MH_I2C_Read... [23:04:29]Read from MH i2c: E2 0E 00 48 05 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 E2 [23:04:29]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [23:04:29]wFMCommunicate OK [23:04:29]SAM_PROTO_GetShiftState done [23:04:29]FM_GetShiftState done [23:04:29]req_shift_opened done [23:04:29]requested_item shift.open_date is exist - process it [23:04:29]req_shift_open_date [23:04:29]req_shift_open_date done [23:04:29]produce_requested_data done [23:04:29]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148222,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [23:04:29]process_action_free close_receipt [23:04:29]json_value_free [23:04:29]json_value_free done [23:04:29]process_json_proto returns [23:04:29]Send response to host [23:04:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148222,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [23:04:29]free response buf [23:04:29]execute_script done [23:04:29]execute_script returns [23:04:29]free content buf [23:04:29]Sock 8.Close socket [23:04:29]Sock 8.Thread stoped [23:04:32]OFD Sender: No OFD packet to send [23:04:37]OFD Sender: No OFD packet to send [23:04:42]OFD Sender: No OFD packet to send [23:04:47]OFD Sender: No OFD packet to send [23:04:52]OFD Sender: No OFD packet to send [23:04:57]OFD Sender: No OFD packet to send [23:05:02]OFD Sender: No OFD packet to send [23:05:07]OFD Sender: No OFD packet to send [23:05:12]OFD Sender: No OFD packet to send [23:05:17]OFD Sender: No OFD packet to send [23:05:22]OFD Sender: No OFD packet to send [23:05:27]OFD Sender: No OFD packet to send [23:05:32]OFD Sender: No OFD packet to send [23:05:37]OFD Sender: No OFD packet to send [23:05:42]OFD Sender: No OFD packet to send [23:05:47]OFD Sender: No OFD packet to send [23:05:47]accept exits with 9 [23:05:47]New connection [23:05:47]New thread 3067432292 created [23:05:47]Thread 3067288932 joined [23:05:47]Waiting for new connection... [23:05:47] Sock 9.Parse request [23:05:47]Sock 9.Check first char [23:05:47]Sock 9.First char is OK [23:05:47]request: POST /json_proto HTTP/1.0 [23:05:47]Method: POST [23:05:47]URL: /json_proto [23:05:47]Method is POST - this is cgi request [23:05:47]url: /json_proto [23:05:47]query_string will be loaded in cgi processing [23:05:47]execute_cgi json_proto POST (null) [23:05:47]execute_cgi path=json_proto method=POST [23:05:47]POST find Content-Length [23:05:47]Host: 172.17.38.4:8080 [23:05:47]Content-Length: 1044 [23:05:47]Content-Type: application/json [23:05:47] [23:05:47]POST finish read [23:05:47]Found Content-Length = 1044 [23:05:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11867", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 251.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:05:47]execute_script... [23:05: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)11867", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 113.00, "quantity" : 1.000, "sum" : 113.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: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 251.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:05:47]POST & json_proto [23:05:47]process_json_proto [23:05:47]json parsed OK: [23:05:47]protocol is kg_v1.0 [23:05:47]action value=close_receipt [23:05:47]process_action close_receipt [23:05:47]cmd_close_receipt [23:05:47]MH_GetDate [23:05:47]Write to MH i2c: F0 00 00 49 05 3D [23:05:47]Write i2c OK [23:05:47]MH_I2C_Read... [23:05:47]Read from MH i2c: F0 [23:05:47]MH_I2C_Read... [23:05:47]Read from MH i2c: F0 09 00 [23:05:47]MH_I2C_Read... [23:05:47]Read from MH i2c: F0 09 00 49 05 00 CC FA 5C 66 CC 51 87 64 D6 [23:05:47]GetLastDocTimeStamp 1717369464 [23:05:47]current date 1717369548 [23:05:47]FM_GetShiftState [23:05:47]SAM_PROTO_GetShiftState [23:05:47]wFMCommunicate request_size=4 [23:05:47]MH_SAM_APDU [23:05:47]CAPDU: 80 13 01 00 [23:05:47]Write to MH i2c: E2 08 00 4A 05 80 13 01 00 00 00 00 00 CC [23:05:47]Write i2c OK [23:05:47]MH_I2C_Read... [23:05:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:47]Read from MH i2c: E2 [23:05:47]MH_I2C_Read... [23:05:47]Read from MH i2c: E2 0E 00 [23:05:47]MH_I2C_Read... [23:05:47]Read from MH i2c: E2 0E 00 4A 05 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 E4 [23:05:47]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [23:05:47]wFMCommunicate OK [23:05:47]SAM_PROTO_GetShiftState done [23:05:47]FM_GetShiftState done [23:05:47]opened in 1717287824 [23:05:47]opened+sec_in_day 1717374224 [23:05:47]quantity*price = 13800 [23:05:47]sum+1 = 13801 [23:05:47]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 113.00 = 113.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 251.00 НСП 1% : 2.22 НДС 12% : 26.65 Наличными: 0.00 Безнал.: 251.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 415 02.06.2024 23:05 Смена: 366 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148223 ФПД: 120350206465078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T230548&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148223&fm=120350206465078&tin=02508201610067®Number=0000000000092720&sum=25100 0 [23:05:49]StoreToDocumentArchive [23:05:49]shift 366 fd 148223 [23:05:49]save to /storage/0366/doc_00148223 [23:05:49]save last doc name /storage/0366/doc_00148223 to /storage/kkm_last_doc_name [23:05:49]save OK [23:05:49]Clear old archive folders... [23:05:49]ProcessDocumentItem done err = 0, tmpTLVsize=380 [23:05:49]tlvbuf is 01323470 [23:05:49]SAM_PROTO_ClearQueue [23:05:49]wFMCommunicate request_size=4 [23:05:49]MH_SAM_APDU [23:05:49]CAPDU: 80 09 00 00 [23:05:49]Write to MH i2c: E2 08 00 57 05 80 09 00 00 00 00 00 00 CE [23:05:49]Write i2c OK [23:05:49]MH_I2C_Read... [23:05:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:05:49]Read from MH i2c: E2 [23:05:49]MH_I2C_Read... [23:05:49]Read from MH i2c: E2 03 00 [23:05:49]MH_I2C_Read... [23:05:49]Read from MH i2c: E2 03 00 57 05 00 90 00 D0 [23:05:49]RAPDU: 90 00 [23:05:49]wFMCommunicate OK [23:05:49]SAM_PROTO_ClearQueue done [23:05:49]KKMCreateOFDPacket [23:05:49]OFDProtocolAddRootSTLVToBuf [23:05:49]FM_MakeSignedData [23:05:49]FM_MakeSignedData [23:05:49]SAM_PROTO_SignData [23:05:49]wFMCommunicate request_size=4 [23:05:49]MH_SAM_APDU [23:05:49]CAPDU: 80 0D 01 02 [23:05:49]Write to MH i2c: E2 08 00 58 05 80 0D 01 02 00 00 00 00 D6 [23:05:49]Write i2c OK [23:05:49]MH_I2C_Read... [23:05:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:05:49]Read from MH i2c: E2 [23:05:49]MH_I2C_Read... [23:05:49]Read from MH i2c: E2 03 00 [23:05:49]MH_I2C_Read... [23:05:49]Read from MH i2c: E2 03 00 58 05 00 90 00 D1 [23:05:49]RAPDU: 90 00 [23:05:49]wFMCommunicate OK [23:05:49]wFMCommunicate request_size=255 [23:05:49]MH_SAM_APDU [23:05:49]CAPDU: 80 0D 02 02 FA 03 00 7C 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 [23:05:49]Write to MH i2c: E2 02 01 59 05 80 0D 02 02 FA 00 03 00 7C 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 47 [23:05:49]Write i2c OK [23:05:49]MH_I2C_Read... [23:05:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:49]Read from MH i2c: E2 [23:05:49]MH_I2C_Read... [23:05:49]Read from MH i2c: E2 03 00 [23:05:49]MH_I2C_Read... [23:05:49]Read from MH i2c: E2 03 00 59 05 00 90 00 D2 [23:05:49]RAPDU: 90 00 [23:05:49]wFMCommunicate OK [23:05:49]wFMCommunicate request_size=139 [23:05:49]MH_SAM_APDU [23:05:49]CAPDU: 80 0D 02 02 86 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 62 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 CC FA 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FF 42 02 00 35 04 06 00 6D 75 37 4E 14 36 [23:05:49]Write to MH i2c: E2 8E 00 5A 05 80 0D 02 02 86 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 62 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 CC FA 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FF 42 02 00 35 04 06 00 6D 75 37 4E 14 36 00 00 79 [23:05:49]Write i2c OK [23:05:49]MH_I2C_Read... [23:05:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:49]Read from MH i2c: E2 [23:05:49]MH_I2C_Read... [23:05:49]Read from MH i2c: E2 03 00 [23:05:49]MH_I2C_Read... [23:05:49]Read from MH i2c: E2 03 00 5A 05 00 90 00 D3 [23:05:49]RAPDU: 90 00 [23:05:49]wFMCommunicate OK [23:05:49]wFMCommunicate request_size=4 [23:05:49]MH_SAM_APDU [23:05:49]CAPDU: 80 0D 03 02 [23:05:49]Write to MH i2c: E2 08 00 5B 05 80 0D 03 02 00 00 00 00 DB [23:05:49]Write i2c OK [23:05:49]MH_I2C_Read... [23:05:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:05:49]Read from MH i2c: E2 [23:05:49]MH_I2C_Read... [23:05:49]Read from MH i2c: E2 0B 00 [23:05:49]MH_I2C_Read... [23:05:49]Read from MH i2c: E2 0B 00 5B 05 00 65 D2 31 23 8E 73 38 16 90 00 B6 [23:05:49]RAPDU: 65 D2 31 23 8E 73 38 16 90 00 [23:05:49]wFMCommunicate OK [23:05:49]SAM_PROTO_SignData done [23:05:49]FM_MakeSignedData done [23:05:49]CreateOFDProtocolMessage [23:05:49]wFMCommunicate request_size=4 [23:05:49]MH_SAM_APDU [23:05:49]CAPDU: 80 11 00 00 [23:05:49]Write to MH i2c: E2 08 00 5C 05 80 11 00 00 00 00 00 00 DB [23:05:49]Write i2c OK [23:05:49]MH_I2C_Read... [23:05:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:49]Read from MH i2c: E2 [23:05:49]MH_I2C_Read... [23:05:49]Read from MH i2c: E2 17 00 [23:05:49]MH_I2C_Read... [23:05:49]Read from MH i2c: E2 17 00 5C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 2E [23:05:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:05:49]wFMCommunicate OK [23:05:49]CreateOFDProtocolMessage done [23:05:49]OFDSenderStorePacket 148223 [23:05:49]StoreOFDPacket docnum=148223 [23:05:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 01 00 00 13 55 88 01 2F 80 5A 03 01 00 03 00 7C 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 62 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 CC FA 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FF 42 02 00 35 04 06 00 6D 75 37 4E 14 36 65 D2 31 23 8E 73 38 16 [23:05:49]CheckFolder [23:05:49]dirname=/storage/ofd_packets [23:05:49]CheckFolder done [23:05:49]ProducePacketName [23:05:49]name=ofd_packets/00148223 [23:05:49]NVStorageSaveData ofd_packets/00148223 [23:05:49]File name is /storage/ofd_packets/00148223 [23:05:49]Write 430 bytes [23:05:49]NVStorageSaveData done [23:05:49]OFDSenderStorePacket done [23:05:49]KKMCreateOFDPacket done [23:05:50]NVStorageSaveData kkm_last_timestamp [23:05:50]File name is /storage/kkm_last_timestamp [23:05:50]Write 4 bytes [23:05:50]NVStorageSaveData done [23:05:50]ExternCall_PrintAddStr [23:05:50]wPrintStart [23:05:50]Write to MH i2c: 01 00 00 5D 05 62 [23:05:50]OFD Sender: Processing packet 148223 [packets to send 99, broken 98] [23:05:50]ProducePacketName [23:05:50]name=ofd_packets/00148223 [23:05:50]OFD Sender: To server: pG, [23:05:50]CommunicateWithHost lk.salyk.kg:30040 [23:05:50]ConnectInit lk.salyk.kg [23:05:50]Write i2c OK [23:05:50]MH_I2C_Read... [23:05:50]Read from MH i2c: 01 [23:05:50]MH_I2C_Read... [23:05:50]Read from MH i2c: 01 07 00 [23:05:50]MH_I2C_Read... [23:05:50]Read from MH i2c: 01 07 00 5D 05 00 00 00 00 00 FF 0F 77 [23:05:50]RasterBufferAndPrint [23:05:50]line Счет N : (3)11867 [23:05:50]line ИНН: 02508201610067 [23:05:50]line Контрольно-Кассовый Чек [23:05:50]line ПРОДАЖА [23:05:50]line Товар: 4640030091607 [23:05:50]line Сигареты ESSE Exchange [23:05:50]line 1.000 * 138.00 [23:05:50]line = 138.00 [23:05:50]line НДС 12% НСП 1% [23:05:50]line > о реализуемом товаре [23:05:50]line Товар: 5449000054227 [23:05:50]line Напиток Кока-Кола 1л [23:05:50]line 1.000 * 113.00 [23:05:50]line = 113.00 [23:05:50]line НДС 12% НСП 1% [23:05:50]line > о реализуемом товаре [23:05:50]line ИТОГО: 251.00 [23:05:50]line НСП 1% : 2.22 [23:05:50]line НДС 12% : 26.65 [23:05:50]line Наличными: 0.00 [23:05:50]line Безнал.: 251.00 [23:05:50]line Место: АЗС № 68 "Партнер Нефть" [23:05:50]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [23:05:50]line СНО: Общий режим [23:05:50]line Чек 415 02.06.2024 23:05 [23:05:50]line Смена: 366 ФФД: 1.0 [23:05:50]line ЗНМ: 0300000035 [23:05:50]line РНМ: 0000000000092720 [23:05:50]line Версия ККМ: 001 [23:05:50]line Платежная система: KICB Банк [23:05:50]line ФМ: 0000000000875057 [23:05:50]line ФД: 148223 [23:05:50]line ФПД: 120350206465078 [23:05:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T230548&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148223&fm=120350206465078&tin=02508201610067®Number=0000000000092720&sum=25100 [23:05:50]line 0 [23:05:50]written 0, free lines is 4095 [23:05:50]Connected sock=10 [23:05:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 01 00 00 13 55 88 01 2F 80 5A 03 01 00 03 00 7C 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 24 2C 00 00 00 00 13 04 06 00 24 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 62 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 62 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 01 00 00 F4 03 04 00 CC FA 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FF 42 02 00 35 04 06 00 6D 75 37 4E 14 36 65 D2 31 23 8E 73 38 16 [23:05:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 72 F7 47 00 E6 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 FF 42 02 00 F4 03 04 00 F5 A1 5C 66 B6 04 01 00 00 25 6D 6C 52 06 45 28 FA [23:05:50]CommunicateWithHost err = 0 [23:05:50]CheckOFDResponse [23:05:50]1017 (14) - 77093643461234 [23:05:50]1041 (16) - 0000000000875057 [23:05:50]1040 (4) - 148223 [23:05:50]1012 (4) - 02.06.2024 16:46 [23:05:50]1206 (1) - 0 [23:05:50]OFD Sender: Remove packet 148223 [23:05:50]ProducePacketName [23:05:50]name=ofd_packets/00148223 [23:05:50]NVStorageDeleteData [23:05:50]Write to MH i2c: 01 00 00 8D 05 92 [23:05:50]Write i2c OK [23:05:50]MH_I2C_Read... [23:05:50]Read from MH i2c: 01 [23:05:50]MH_I2C_Read... [23:05:50]Read from MH i2c: 01 07 00 [23:05:50]MH_I2C_Read... [23:05:50]Read from MH i2c: 01 07 00 8D 05 00 00 00 00 00 EE 0B 92 [23:05:50]RasterBufferAndPrint [23:05:50]line [23:05:50]line [23:05:50]line [23:05:50]line [23:05:50]line [23:05:50]written 0, free lines is 3057 [23:05:50]MH_Cut [23:05:50]Write to MH i2c: D1 01 00 94 05 01 6B [23:05:50]Write i2c OK [23:05:50]MH_I2C_Read... [23:05:50]Read from MH i2c: D1 [23:05:50]MH_I2C_Read... [23:05:50]Read from MH i2c: D1 01 00 [23:05:50]MH_I2C_Read... [23:05:50]Read from MH i2c: D1 01 00 94 05 00 6A [23:05:50]Write to MH i2c: 01 00 00 95 05 9A [23:05:50]Write i2c OK [23:05:50]MH_I2C_Read... [23:05:50]OFD Sender: No OFD packet to send [23:05:51]*** Cut start [23:05:51]*** Partial cut [23:05:51]*** CUTSNS_PIN = 1 [23:05:52]*** CUTSNS_PIN = 0 [23:05:52]*** Brake cut motor [23:05:52]Read from MH i2c: 01 [23:05:52]MH_I2C_Read... [23:05:52]*** Stop cut motor [23:05:52]*** Cut end [23:05:52]Read from MH i2c: 01 07 00 [23:05:52]MH_I2C_Read... [23:05:52]Read from MH i2c: 01 07 00 95 05 00 00 00 00 00 FF 0F AF [23:05:52]process_action close_receipt done [23:05:52]requested_data is exist [23:05:52]produce_requested_data [23:05:52]requested_item fm.sn is exist - process it [23:05:52]wFMCommunicate request_size=4 [23:05:52]MH_SAM_APDU [23:05:52]CAPDU: 80 11 00 00 [23:05:52]Write to MH i2c: E2 08 00 96 05 80 11 00 00 00 00 00 00 15 [23:05:52]Write i2c OK [23:05:52]MH_I2C_Read... [23:05:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:52]Read from MH i2c: E2 [23:05:52]MH_I2C_Read... [23:05:52]Read from MH i2c: E2 17 00 [23:05:52]MH_I2C_Read... [23:05:52]Read from MH i2c: E2 17 00 96 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 68 [23:05:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:05:52]wFMCommunicate OK [23:05:52]requested_item fd.num is exist - process it [23:05:52]SAM_PROTO_GetFieldsCounters [23:05:52]wFMCommunicate request_size=4 [23:05:52]MH_SAM_APDU [23:05:52]CAPDU: 80 13 00 00 [23:05:52]Write to MH i2c: E2 08 00 97 05 80 13 00 00 00 00 00 00 18 [23:05:52]Write i2c OK [23:05:52]MH_I2C_Read... [23:05:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:05:52]Read from MH i2c: E2 [23:05:52]MH_I2C_Read... [23:05:52]Read from MH i2c: E2 62 00 [23:05:52]MH_I2C_Read... [23:05:52]Read from MH i2c: E2 62 00 97 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FF 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 9F 01 00 00 5E 04 04 00 9F 01 00 00 57 04 04 00 A0 01 00 00 19 04 04 00 00 00 00 00 90 00 C6 [23:05:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 FF 42 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 9F 01 00 00 5E 04 04 00 9F 01 00 00 57 04 04 00 A0 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:05:52]wFMCommunicate OK [23:05:52]SAM_PROTO_GetFieldsCounters done [23:05:52]requested_item shift.num is exist - process it [23:05:52]requested_item shift.opened is exist - process it [23:05:52]req_shift_opened [23:05:52]FM_GetShiftState [23:05:52]SAM_PROTO_GetShiftState [23:05:52]wFMCommunicate request_size=4 [23:05:52]MH_SAM_APDU [23:05:52]CAPDU: 80 13 01 00 [23:05:52]Write to MH i2c: E2 08 00 98 05 80 13 01 00 00 00 00 00 1A [23:05:52]Write i2c OK [23:05:52]MH_I2C_Read... [23:05:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:52]Read from MH i2c: E2 [23:05:52]MH_I2C_Read... [23:05:52]Read from MH i2c: E2 0E 00 [23:05:52]MH_I2C_Read... [23:05:52]Read from MH i2c: E2 0E 00 98 05 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 32 [23:05:52]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [23:05:52]wFMCommunicate OK [23:05:52]SAM_PROTO_GetShiftState done [23:05:52]FM_GetShiftState done [23:05:52]req_shift_opened done [23:05:52]requested_item shift.open_date is exist - process it [23:05:52]req_shift_open_date [23:05:52]req_shift_open_date done [23:05:52]produce_requested_data done [23:05:52]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148223,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [23:05:52]process_action_free close_receipt [23:05:52]json_value_free [23:05:52]json_value_free done [23:05:52]process_json_proto returns [23:05:52]Send response to host [23:05:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148223,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [23:05:52]free response buf [23:05:52]execute_script done [23:05:52]execute_script returns [23:05:52]free content buf [23:05:52]Sock 9.Close socket [23:05:52]Sock 9.Thread stoped [23:05:55]OFD Sender: No OFD packet to send [23:06:00]OFD Sender: No OFD packet to send [23:06:05]OFD Sender: No OFD packet to send [23:06:10]OFD Sender: No OFD packet to send [23:06:15]OFD Sender: No OFD packet to send [23:06:20]OFD Sender: No OFD packet to send [23:06:25]OFD Sender: No OFD packet to send [23:06:30]OFD Sender: No OFD packet to send [23:06:35]OFD Sender: No OFD packet to send [23:06:40]OFD Sender: No OFD packet to send [23:06:45]OFD Sender: No OFD packet to send [23:06:50]OFD Sender: No OFD packet to send [23:06:55]OFD Sender: No OFD packet to send [23:07:00]OFD Sender: No OFD packet to send [23:07:05]OFD Sender: No OFD packet to send [23:07:10]OFD Sender: No OFD packet to send [23:07:15]OFD Sender: No OFD packet to send [23:07:20]OFD Sender: No OFD packet to send [23:07:25]OFD Sender: No OFD packet to send [23:07:30]OFD Sender: No OFD packet to send [23:07:35]OFD Sender: No OFD packet to send [23:07:40]OFD Sender: No OFD packet to send [23:07:45]OFD Sender: No OFD packet to send [23:07:50]OFD Sender: No OFD packet to send [23:07:55]OFD Sender: No OFD packet to send [23:08:00]OFD Sender: No OFD packet to send [23:08: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:36]OFD Sender: No OFD packet to send [23:13:41]OFD Sender: No OFD packet to send [23:13:46]OFD Sender: No OFD packet to send [23:13:51]OFD Sender: No OFD packet to send [23:13:56]OFD Sender: No OFD packet to send [23:14:01]OFD Sender: No OFD packet to send [23:14:06]OFD Sender: No OFD packet to send [23:14:11]OFD Sender: No OFD packet to send [23:14:16]OFD Sender: No OFD packet to send [23:14:21]OFD Sender: No OFD packet to send [23:14:26]OFD Sender: No OFD packet to send [23:14:31]OFD Sender: No OFD packet to send [23:14:36]OFD Sender: No OFD packet to send [23:14:41]OFD Sender: No OFD packet to send [23:14:46]OFD Sender: No OFD packet to send [23:14:51]OFD Sender: No OFD packet to send [23:14:56]OFD Sender: No OFD packet to send [23:15:01]OFD Sender: No OFD packet to send [23:15:06]OFD Sender: No OFD packet to send [23:15:11]OFD Sender: No OFD packet to send [23:15:14]accept exits with 8 [23:15:14]New connection [23:15:14]New thread 3067288932 created [23:15:14]Thread 3067432292 joined [23:15:14]Waiting for new connection... [23:15:14] Sock 8.Parse request [23:15:14]Sock 8.Check first char [23:15:14]Sock 8.First char is OK [23:15:14]request: POST /json_proto HTTP/1.0 [23:15:14]Method: POST [23:15:14]URL: /json_proto [23:15:14]Method is POST - this is cgi request [23:15:14]url: /json_proto [23:15:14]query_string will be loaded in cgi processing [23:15:14]execute_cgi json_proto POST (null) [23:15:14]execute_cgi path=json_proto method=POST [23:15:14]POST find Content-Length [23:15:14]Host: 172.17.38.4:8080 [23:15:14]Content-Length: 771 [23:15:14]Content-Type: application/json [23:15:14] [23:15:14]POST finish read [23:15:14]Found Content-Length = 771 [23:15:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Balance KG", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:15:14]execute_script... [23:15:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 4.520, "sum" : 300.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Balance KG", "payments": [ { "type": 1, "sum" : 300.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:15:14]POST & json_proto [23:15:14]process_json_proto [23:15:14]json parsed OK: [23:15:14]protocol is kg_v1.0 [23:15:14]action value=close_receipt [23:15:14]process_action close_receipt [23:15:14]cmd_close_receipt [23:15:14]MH_GetDate [23:15:14]Write to MH i2c: F0 00 00 99 05 8D [23:15:14]Write i2c OK [23:15:14]MH_I2C_Read... [23:15:14]Read from MH i2c: F0 [23:15:14]MH_I2C_Read... [23:15:14]Read from MH i2c: F0 09 00 [23:15:14]MH_I2C_Read... [23:15:14]Read from MH i2c: F0 09 00 99 05 00 03 FD 5C 66 CC 51 87 64 60 [23:15:14]GetLastDocTimeStamp 1717369548 [23:15:14]current date 1717370115 [23:15:14]FM_GetShiftState [23:15:14]SAM_PROTO_GetShiftState [23:15:14]wFMCommunicate request_size=4 [23:15:14]MH_SAM_APDU [23:15:14]CAPDU: 80 13 01 00 [23:15:14]Write to MH i2c: E2 08 00 9A 05 80 13 01 00 00 00 00 00 1C [23:15:14]Write i2c OK [23:15:14]MH_I2C_Read... [23:15:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:15:14]Read from MH i2c: E2 [23:15:14]MH_I2C_Read... [23:15:14]Read from MH i2c: E2 0E 00 [23:15:14]MH_I2C_Read... [23:15:14]Read from MH i2c: E2 0E 00 9A 05 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 34 [23:15:14]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [23:15:14]wFMCommunicate OK [23:15:14]SAM_PROTO_GetShiftState done [23:15:14]FM_GetShiftState done [23:15:14]opened in 1717287824 [23:15:14]opened+sec_in_day 1717374224 [23:15:14]quantity*price = 30012 [23:15:14]sum+1 = 30014 [23:15:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.13 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 0.00 Безнал.: 300.13 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 416 02.06.2024 23:15 Смена: 366 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: Balance KG ФМ: 0000000000875057 ФД: 148224 ФПД: 255291565513617 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T231515&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148224&fm=255291565513617&tin=02508201610067®Number=0000000000092720&sum=30013 [23:15:16]StoreToDocumentArchive [23:15:16]shift 366 fd 148224 [23:15:16]save to /storage/0366/doc_00148224 [23:15:16]save last doc name /storage/0366/doc_00148224 to /storage/kkm_last_doc_name [23:15:16]save OK [23:15:16]Clear old archive folders... [23:15:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:15:16]tlvbuf is 0131B6D0 [23:15:16]SAM_PROTO_ClearQueue [23:15:16]wFMCommunicate request_size=4 [23:15:16]MH_SAM_APDU [23:15:16]CAPDU: 80 09 00 00 [23:15:16]Write to MH i2c: E2 08 00 A7 05 80 09 00 00 00 00 00 00 1E [23:15:16]Write i2c OK [23:15:16]MH_I2C_Read... [23:15:16]Read from MH i2c: E2 [23:15:16]MH_I2C_Read... [23:15:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:15:16]Read from MH i2c: E2 03 00 [23:15:16]MH_I2C_Read... [23:15:16]Read from MH i2c: E2 03 00 A7 05 00 90 00 20 [23:15:16]RAPDU: 90 00 [23:15:16]wFMCommunicate OK [23:15:16]SAM_PROTO_ClearQueue done [23:15:16]KKMCreateOFDPacket [23:15:16]OFDProtocolAddRootSTLVToBuf [23:15:16]FM_MakeSignedData [23:15:16]FM_MakeSignedData [23:15:16]SAM_PROTO_SignData [23:15:16]wFMCommunicate request_size=4 [23:15:16]MH_SAM_APDU [23:15:16]CAPDU: 80 0D 01 02 [23:15:16]Write to MH i2c: E2 08 00 A8 05 80 0D 01 02 00 00 00 00 26 [23:15:16]Write i2c OK [23:15:16]MH_I2C_Read... [23:15:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:15:16]Read from MH i2c: E2 [23:15:16]MH_I2C_Read... [23:15:16]Read from MH i2c: E2 03 00 [23:15:16]MH_I2C_Read... [23:15:16]Read from MH i2c: E2 03 00 A8 05 00 90 00 21 [23:15:16]RAPDU: 90 00 [23:15:16]wFMCommunicate OK [23:15:16]wFMCommunicate request_size=255 [23:15:16]MH_SAM_APDU [23:15:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 03 FD 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 00 43 02 00 35 04 06 00 E8 [23:15:16]Write to MH i2c: E2 02 01 A9 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 03 FD 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 00 43 02 00 35 04 06 00 E8 00 00 8C [23:15:16]Write i2c OK [23:15:16]MH_I2C_Read... [23:15:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:15:16]Read from MH i2c: E2 [23:15:16]MH_I2C_Read... [23:15:16]Read from MH i2c: E2 03 00 [23:15:16]MH_I2C_Read... [23:15:16]Read from MH i2c: E2 03 00 A9 05 00 90 00 22 [23:15:16]RAPDU: 90 00 [23:15:16]wFMCommunicate OK [23:15:16]wFMCommunicate request_size=10 [23:15:16]MH_SAM_APDU [23:15:16]CAPDU: 80 0D 02 02 05 2F B3 13 9B 91 [23:15:16]Write to MH i2c: E2 0D 00 AA 05 80 0D 02 02 05 00 2F B3 13 9B 91 00 00 54 [23:15:16]Write i2c OK [23:15:16]MH_I2C_Read... [23:15:16]OFD Sender: No OFD packet to send [23:15:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:15:16]Read from MH i2c: E2 [23:15:16]MH_I2C_Read... [23:15:16]Read from MH i2c: E2 03 00 [23:15:16]MH_I2C_Read... [23:15:16]Read from MH i2c: E2 03 00 AA 05 00 90 00 23 [23:15:16]RAPDU: 90 00 [23:15:16]wFMCommunicate OK [23:15:16]wFMCommunicate request_size=4 [23:15:16]MH_SAM_APDU [23:15:16]CAPDU: 80 0D 03 02 [23:15:16]Write to MH i2c: E2 08 00 AB 05 80 0D 03 02 00 00 00 00 2B [23:15:16]Write i2c OK [23:15:16]MH_I2C_Read... [23:15:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:15:16]Read from MH i2c: E2 [23:15:16]MH_I2C_Read... [23:15:16]Read from MH i2c: E2 0B 00 [23:15:16]MH_I2C_Read... [23:15:16]Read from MH i2c: E2 0B 00 AB 05 00 EF 56 71 4F F6 D5 1E 76 90 00 90 [23:15:16]RAPDU: EF 56 71 4F F6 D5 1E 76 90 00 [23:15:16]wFMCommunicate OK [23:15:16]SAM_PROTO_SignData done [23:15:16]FM_MakeSignedData done [23:15:16]CreateOFDProtocolMessage [23:15:16]wFMCommunicate request_size=4 [23:15:16]MH_SAM_APDU [23:15:16]CAPDU: 80 11 00 00 [23:15:16]Write to MH i2c: E2 08 00 AC 05 80 11 00 00 00 00 00 00 2B [23:15:16]Write i2c OK [23:15:16]MH_I2C_Read... [23:15:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:15:16]Read from MH i2c: E2 [23:15:16]MH_I2C_Read... [23:15:16]Read from MH i2c: E2 17 00 [23:15:16]MH_I2C_Read... [23:15:16]Read from MH i2c: E2 17 00 AC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 7E [23:15:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:15:16]wFMCommunicate OK [23:15:16]CreateOFDProtocolMessage done [23:15:16]OFDSenderStorePacket 148224 [23:15:16]StoreOFDPacket docnum=148224 [23:15:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 68 4B 07 01 7A F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 03 FD 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 00 43 02 00 35 04 06 00 E8 2F B3 13 9B 91 EF 56 71 4F F6 D5 1E 76 [23:15:16]CheckFolder [23:15:16]dirname=/storage/ofd_packets [23:15:16]CheckFolder done [23:15:16]ProducePacketName [23:15:16]name=ofd_packets/00148224 [23:15:16]NVStorageSaveData ofd_packets/00148224 [23:15:16]File name is /storage/ofd_packets/00148224 [23:15:16]Write 301 bytes [23:15:16]NVStorageSaveData done [23:15:16]OFDSenderStorePacket done [23:15:16]KKMCreateOFDPacket done [23:15:16]NVStorageSaveData kkm_last_timestamp [23:15:16]File name is /storage/kkm_last_timestamp [23:15:16]Write 4 bytes [23:15:16]NVStorageSaveData done [23:15:16]ExternCall_PrintAddStr [23:15:16]wPrintStart [23:15:16]Write to MH i2c: 01 00 00 AD 05 B2 [23:15:16]Write i2c OK [23:15:16]MH_I2C_Read... [23:15:16]Read from MH i2c: 01 [23:15:16]MH_I2C_Read... [23:15:16]Read from MH i2c: 01 07 00 [23:15:16]MH_I2C_Read... [23:15:16]Read from MH i2c: 01 07 00 AD 05 00 00 00 00 00 FF 0F C7 [23:15:16]RasterBufferAndPrint [23:15:16]line Счет N : (1)979163 [23:15:16]line ИНН: 02508201610067 [23:15:16]line Контрольно-Кассовый Чек [23:15:16]line ПРОДАЖА [23:15:16]line ТРК (МРК, ГНК) : 41 [23:15:16]line Товар: 2710124130 [23:15:16]line Аи-92-К-5 [23:15:16]line 4.520 * 66.40 [23:15:16]line = 300.13 [23:15:16]line НДС 12% НСП 1% [23:15:16]line > о реализуемом товаре [23:15:16]line ИТОГО: 300.13 [23:15:16]line НСП 1% : 2.66 [23:15:16]line НДС 12% : 31.87 [23:15:16]line Наличными: 0.00 [23:15:16]line Безнал.: 300.13 [23:15:16]line Место: АЗС № 68 "Партнер Нефть" [23:15:16]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [23:15:16]line СНО: Общий режим [23:15:16]line Чек 416 02.06.2024 23:15 [23:15:16]line Смена: 366 ФФД: 1.0 [23:15:16]line ЗНМ: 0300000035 [23:15:16]line РНМ: 0000000000092720 [23:15:16]line Версия ККМ: 001 [23:15:16]line Платежная система: Balance KG [23:15:16]line ФМ: 0000000000875057 [23:15:16]line ФД: 148224 [23:15:16]line ФПД: 255291565513617 [23:15:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T231515&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148224&fm=255291565513617&tin=02508201610067®Number=0000000000092720&sum=30013 [23:15:16]OFD Sender: Processing packet 148224 [packets to send 99, broken 98] [23:15:16]ProducePacketName [23:15:16]name=ofd_packets/00148224 [23:15:16]OFD Sender: To server: pG, [23:15:16]CommunicateWithHost lk.salyk.kg:30040 [23:15:16]ConnectInit lk.salyk.kg [23:15:16]written 0, free lines is 4095 [23:15:17]Connected sock=10 [23:15:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 68 4B 07 01 7A F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A8 11 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 3D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 01 00 00 F4 03 04 00 03 FD 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 00 43 02 00 35 04 06 00 E8 2F B3 13 9B 91 EF 56 71 4F F6 D5 1E 76 [23:15:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 7B E0 47 00 61 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 35 30 35 37 10 04 04 00 00 43 02 00 F4 03 04 00 2C A4 5C 66 B6 04 01 00 00 92 B2 01 8E 3A 46 CA 66 [23:15:17]CommunicateWithHost err = 0 [23:15:17]CheckOFDResponse [23:15:17]1017 (14) - 77093643461234 [23:15:17]1041 (16) - 0000000000875057 [23:15:17]1040 (4) - 148224 [23:15:17]1012 (4) - 02.06.2024 16:56 [23:15:17]1206 (1) - 0 [23:15:17]OFD Sender: Remove packet 148224 [23:15:17]ProducePacketName [23:15:17]name=ofd_packets/00148224 [23:15:17]NVStorageDeleteData [23:15:17]Write to MH i2c: 01 00 00 D7 05 DC [23:15:17]Write i2c OK [23:15:17]MH_I2C_Read... [23:15:17]Read from MH i2c: 01 [23:15:17]MH_I2C_Read... [23:15:17]Read from MH i2c: 01 07 00 [23:15:17]MH_I2C_Read... [23:15:17]Read from MH i2c: 01 07 00 D7 05 00 00 00 00 00 86 0C 75 [23:15:17]RasterBufferAndPrint [23:15:17]line [23:15:17]line [23:15:17]line [23:15:17]line [23:15:17]line [23:15:17]written 0, free lines is 3209 [23:15:17]MH_Cut [23:15:17]Write to MH i2c: D1 01 00 DE 05 01 B5 [23:15:17]Write i2c OK [23:15:17]MH_I2C_Read... [23:15:17]Read from MH i2c: D1 [23:15:17]MH_I2C_Read... [23:15:17]Read from MH i2c: D1 01 00 [23:15:17]MH_I2C_Read... [23:15:17]Read from MH i2c: D1 01 00 DE 05 00 B4 [23:15:17]Write to MH i2c: 01 00 00 DF 05 E4 [23:15:17]Write i2c OK [23:15:17]MH_I2C_Read... [23:15:17]OFD Sender: No OFD packet to send [23:15:18]*** Cut start [23:15:18]*** Partial cut [23:15:18]*** CUTSNS_PIN = 1 [23:15:18]*** CUTSNS_PIN = 0 [23:15:18]*** Brake cut motor [23:15:19]Read from MH i2c: 01 [23:15:19]MH_I2C_Read... [23:15:19]*** Stop cut motor [23:15:19]*** Cut end [23:15:19]Read from MH i2c: 01 07 00 [23:15:19]MH_I2C_Read... [23:15:19]Read from MH i2c: 01 07 00 DF 05 00 00 00 00 00 FF 0F F9 [23:15:19]process_action close_receipt done [23:15:19]requested_data is exist [23:15:19]produce_requested_data [23:15:19]requested_item fm.sn is exist - process it [23:15:19]wFMCommunicate request_size=4 [23:15:19]MH_SAM_APDU [23:15:19]CAPDU: 80 11 00 00 [23:15:19]Write to MH i2c: E2 08 00 E0 05 80 11 00 00 00 00 00 00 5F [23:15:19]Write i2c OK [23:15:19]MH_I2C_Read... [23:15:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:15:19]Read from MH i2c: E2 [23:15:19]MH_I2C_Read... [23:15:19]Read from MH i2c: E2 17 00 [23:15:19]MH_I2C_Read... [23:15:19]Read from MH i2c: E2 17 00 E0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 B2 [23:15:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:15:19]wFMCommunicate OK [23:15:19]requested_item fd.num is exist - process it [23:15:19]SAM_PROTO_GetFieldsCounters [23:15:19]wFMCommunicate request_size=4 [23:15:19]MH_SAM_APDU [23:15:19]CAPDU: 80 13 00 00 [23:15:19]Write to MH i2c: E2 08 00 E1 05 80 13 00 00 00 00 00 00 62 [23:15:19]Write i2c OK [23:15:19]MH_I2C_Read... [23:15:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:15:19]Read from MH i2c: E2 [23:15:19]MH_I2C_Read... [23:15:19]Read from MH i2c: E2 62 00 [23:15:19]MH_I2C_Read... [23:15:19]Read from MH i2c: E2 62 00 E1 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 00 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 A0 01 00 00 5E 04 04 00 A0 01 00 00 57 04 04 00 A1 01 00 00 19 04 04 00 00 00 00 00 90 00 15 [23:15:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 00 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 A0 01 00 00 5E 04 04 00 A0 01 00 00 57 04 04 00 A1 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:15:19]wFMCommunicate OK [23:15:19]SAM_PROTO_GetFieldsCounters done [23:15:19]requested_item shift.num is exist - process it [23:15:19]requested_item shift.opened is exist - process it [23:15:19]req_shift_opened [23:15:19]FM_GetShiftState [23:15:19]SAM_PROTO_GetShiftState [23:15:19]wFMCommunicate request_size=4 [23:15:19]MH_SAM_APDU [23:15:19]CAPDU: 80 13 01 00 [23:15:19]Write to MH i2c: E2 08 00 E2 05 80 13 01 00 00 00 00 00 64 [23:15:19]Write i2c OK [23:15:19]MH_I2C_Read... [23:15:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:15:19]Read from MH i2c: E2 [23:15:19]MH_I2C_Read... [23:15:19]Read from MH i2c: E2 0E 00 [23:15:19]MH_I2C_Read... [23:15:19]Read from MH i2c: E2 0E 00 E2 05 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 7C [23:15:19]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [23:15:19]wFMCommunicate OK [23:15:19]SAM_PROTO_GetShiftState done [23:15:19]FM_GetShiftState done [23:15:19]req_shift_opened done [23:15:19]requested_item shift.open_date is exist - process it [23:15:19]req_shift_open_date [23:15:19]req_shift_open_date done [23:15:19]produce_requested_data done [23:15:19]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148224,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [23:15:19]process_action_free close_receipt [23:15:19]json_value_free [23:15:19]json_value_free done [23:15:19]process_json_proto returns [23:15:19]Send response to host [23:15:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148224,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [23:15:19]free response buf [23:15:19]execute_script done [23:15:19]execute_script returns [23:15:19]free content buf [23:15:19]Sock 8.Close socket [23:15:19]Sock 8.Thread stoped [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:18]OFD Sender: No OFD packet to send [23:19:23]OFD Sender: No OFD packet to send [23:19:28]OFD Sender: No OFD packet to send [23:19:33]OFD Sender: No OFD packet to send [23:19:38]OFD Sender: No OFD packet to send [23:19:43]OFD Sender: No OFD packet to send [23:19:48]OFD Sender: No OFD packet to send [23:19:53]OFD Sender: No OFD packet to send [23:19:58]OFD Sender: No OFD packet to send [23:20:03]accept exits with 9 [23:20:03]New connection [23:20:03]New thread 3067432292 created [23:20:03]Thread 3067288932 joined [23:20:03]Waiting for new connection... [23:20:03] Sock 9.Parse request [23:20:03]Sock 9.Check first char [23:20:03]Sock 9.First char is OK [23:20:03]request: POST /json_proto HTTP/1.0 [23:20:03]Method: POST [23:20:03]URL: /json_proto [23:20:03]Method is POST - this is cgi request [23:20:03]url: /json_proto [23:20:03]query_string will be loaded in cgi processing [23:20:03]execute_cgi json_proto POST (null) [23:20:03]execute_cgi path=json_proto method=POST [23:20:03]POST find Content-Length [23:20:03]Host: 172.17.38.4:8080 [23:20:03]Content-Length: 851 [23:20:03]Content-Type: application/json [23:20:03] [23:20:03]POST finish read [23:20:03]Found Content-Length = 851 [23:20:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11868", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 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" : 261.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:20:03]execute_script... [23:20: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)11868", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 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" : 261.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:20:03]POST & json_proto [23:20:03]process_json_proto [23:20:03]json parsed OK: [23:20:03]protocol is kg_v1.0 [23:20:03]action value=close_receipt [23:20:03]process_action close_receipt [23:20:03]cmd_close_receipt [23:20:03]MH_GetDate [23:20:03]Write to MH i2c: F0 00 00 E3 05 D7 [23:20:03]Write i2c OK [23:20:03]MH_I2C_Read... [23:20:03]Read from MH i2c: F0 [23:20:03]MH_I2C_Read... [23:20:03]Read from MH i2c: F0 09 00 [23:20:03]MH_I2C_Read... [23:20:03]Read from MH i2c: F0 09 00 E3 05 00 23 FE 5C 66 CC 51 87 64 CB [23:20:03]GetLastDocTimeStamp 1717370115 [23:20:03]current date 1717370403 [23:20:03]FM_GetShiftState [23:20:03]SAM_PROTO_GetShiftState [23:20:03]wFMCommunicate request_size=4 [23:20:03]MH_SAM_APDU [23:20:03]CAPDU: 80 13 01 00 [23:20:03]Write to MH i2c: E2 08 00 E4 05 80 13 01 00 00 00 00 00 66 [23:20:03]Write i2c OK [23:20:03]MH_I2C_Read... [23:20:03]OFD Sender: No OFD packet to send [23:20:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:03]Read from MH i2c: E2 [23:20:03]MH_I2C_Read... [23:20:03]Read from MH i2c: E2 0E 00 [23:20:03]MH_I2C_Read... [23:20:03]Read from MH i2c: E2 0E 00 E4 05 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 7E [23:20:03]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [23:20:03]wFMCommunicate OK [23:20:03]SAM_PROTO_GetShiftState done [23:20:03]FM_GetShiftState done [23:20:03]opened in 1717287824 [23:20:03]opened+sec_in_day 1717374224 [23:20:03]quantity*price = 15100 [23:20:03]sum+1 = 15101 [23:20:03]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 261.00 НСП 1% : 2.31 НДС 12% : 27.71 Наличными: 261.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 417 02.06.2024 23:20 Смена: 366 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148225 ФПД: 226457548031138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T232003&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148225&fm=226457548031138&tin=02508201610067®Number=0000000000092720&sum=26100 0 [23:20:04]StoreToDocumentArchive [23:20:04]shift 366 fd 148225 [23:20:04]save to /storage/0366/doc_00148225 [23:20:04]save last doc name /storage/0366/doc_00148225 to /storage/kkm_last_doc_name [23:20:04]save OK [23:20:04]Clear old archive folders... [23:20:04]ProcessDocumentItem done err = 0, tmpTLVsize=370 [23:20:04]tlvbuf is 0131ECE0 [23:20:04]SAM_PROTO_ClearQueue [23:20:04]wFMCommunicate request_size=4 [23:20:04]MH_SAM_APDU [23:20:04]CAPDU: 80 09 00 00 [23:20:04]Write to MH i2c: E2 08 00 F1 05 80 09 00 00 00 00 00 00 68 [23:20:04]Write i2c OK [23:20:04]MH_I2C_Read... [23:20:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:20:04]Read from MH i2c: E2 [23:20:04]MH_I2C_Read... [23:20:04]Read from MH i2c: E2 03 00 [23:20:04]MH_I2C_Read... [23:20:04]Read from MH i2c: E2 03 00 F1 05 00 90 00 6A [23:20:04]RAPDU: 90 00 [23:20:04]wFMCommunicate OK [23:20:04]SAM_PROTO_ClearQueue done [23:20:04]KKMCreateOFDPacket [23:20:04]OFDProtocolAddRootSTLVToBuf [23:20:04]FM_MakeSignedData [23:20:04]FM_MakeSignedData [23:20:04]SAM_PROTO_SignData [23:20:04]wFMCommunicate request_size=4 [23:20:04]MH_SAM_APDU [23:20:04]CAPDU: 80 0D 01 02 [23:20:04]Write to MH i2c: E2 08 00 F2 05 80 0D 01 02 00 00 00 00 70 [23:20:04]Write i2c OK [23:20:04]MH_I2C_Read... [23:20:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:20:04]Read from MH i2c: E2 [23:20:04]MH_I2C_Read... [23:20:04]Read from MH i2c: E2 03 00 [23:20:04]MH_I2C_Read... [23:20:04]Read from MH i2c: E2 03 00 F2 05 00 90 00 6B [23:20:04]RAPDU: 90 00 [23:20:04]wFMCommunicate OK [23:20:04]wFMCommunicate request_size=255 [23:20:04]MH_SAM_APDU [23:20:04]CAPDU: 80 0D 02 02 FA 03 00 72 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 F4 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 [23:20:04]Write to MH i2c: E2 02 01 F3 05 80 0D 02 02 FA 00 03 00 72 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 F4 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 00 00 50 [23:20:04]Write i2c OK [23:20:04]MH_I2C_Read... [23:20:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:04]Read from MH i2c: E2 [23:20:04]MH_I2C_Read... [23:20:04]Read from MH i2c: E2 03 00 [23:20:04]MH_I2C_Read... [23:20:04]Read from MH i2c: E2 03 00 F3 05 00 90 00 6C [23:20:04]RAPDU: 90 00 [23:20:04]wFMCommunicate OK [23:20:04]wFMCommunicate request_size=129 [23:20:04]MH_SAM_APDU [23:20:04]CAPDU: 80 0D 02 02 7C 01 F3 03 06 00 D3 0A 00 00 00 00 07 04 06 00 F4 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 A1 01 00 00 F4 03 04 00 23 FE 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 01 43 02 00 35 04 06 00 CD F6 41 B5 04 A2 [23:20:04]Write to MH i2c: E2 84 00 F4 05 80 0D 02 02 7C 00 01 F3 03 06 00 D3 0A 00 00 00 00 07 04 06 00 F4 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 A1 01 00 00 F4 03 04 00 23 FE 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 01 43 02 00 35 04 06 00 CD F6 41 B5 04 A2 00 00 6C [23:20:04]Write i2c OK [23:20:04]MH_I2C_Read... [23:20:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:04]Read from MH i2c: E2 [23:20:04]MH_I2C_Read... [23:20:04]Read from MH i2c: E2 03 00 [23:20:04]MH_I2C_Read... [23:20:04]Read from MH i2c: E2 03 00 F4 05 00 90 00 6D [23:20:04]RAPDU: 90 00 [23:20:04]wFMCommunicate OK [23:20:04]wFMCommunicate request_size=4 [23:20:04]MH_SAM_APDU [23:20:04]CAPDU: 80 0D 03 02 [23:20:04]Write to MH i2c: E2 08 00 F5 05 80 0D 03 02 00 00 00 00 75 [23:20:04]Write i2c OK [23:20:04]MH_I2C_Read... [23:20:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:20:04]Read from MH i2c: E2 [23:20:04]MH_I2C_Read... [23:20:04]Read from MH i2c: E2 0B 00 [23:20:04]MH_I2C_Read... [23:20:04]Read from MH i2c: E2 0B 00 F5 05 00 0B 0E 01 FF 49 6F 63 75 90 00 1F [23:20:04]RAPDU: 0B 0E 01 FF 49 6F 63 75 90 00 [23:20:04]wFMCommunicate OK [23:20:04]SAM_PROTO_SignData done [23:20:04]FM_MakeSignedData done [23:20:04]CreateOFDProtocolMessage [23:20:04]wFMCommunicate request_size=4 [23:20:04]MH_SAM_APDU [23:20:04]CAPDU: 80 11 00 00 [23:20:04]Write to MH i2c: E2 08 00 F6 05 80 11 00 00 00 00 00 00 75 [23:20:04]Write i2c OK [23:20:04]MH_I2C_Read... [23:20:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:04]Read from MH i2c: E2 [23:20:04]MH_I2C_Read... [23:20:04]Read from MH i2c: E2 17 00 [23:20:04]MH_I2C_Read... [23:20:04]Read from MH i2c: E2 17 00 F6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C8 [23:20:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:20:04]wFMCommunicate OK [23:20:04]CreateOFDProtocolMessage done [23:20:04]OFDSenderStorePacket 148225 [23:20:04]StoreOFDPacket docnum=148225 [23:20:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 86 01 00 00 38 4C 7E 01 99 5B 5A 03 01 00 03 00 72 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 F4 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 0A 00 00 00 00 07 04 06 00 F4 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 A1 01 00 00 F4 03 04 00 23 FE 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 01 43 02 00 35 04 06 00 CD F6 41 B5 04 A2 0B 0E 01 FF 49 6F 63 75 [23:20:04]CheckFolder [23:20:04]dirname=/storage/ofd_packets [23:20:04]CheckFolder done [23:20:04]ProducePacketName [23:20:04]name=ofd_packets/00148225 [23:20:04]NVStorageSaveData ofd_packets/00148225 [23:20:04]File name is /storage/ofd_packets/00148225 [23:20:04]Write 420 bytes [23:20:04]NVStorageSaveData done [23:20:04]OFDSenderStorePacket done [23:20:04]KKMCreateOFDPacket done [23:20:04]NVStorageSaveData kkm_last_timestamp [23:20:04]File name is /storage/kkm_last_timestamp [23:20:04]Write 4 bytes [23:20:04]NVStorageSaveData done [23:20:04]ExternCall_PrintAddStr [23:20:04]wPrintStart [23:20:04]Write to MH i2c: 01 00 00 F7 05 FC [23:20:04]Write i2c OK [23:20:04]MH_I2C_Read... [23:20:04]Read from MH i2c: 01 [23:20:04]MH_I2C_Read... [23:20:04]Read from MH i2c: 01 07 00 [23:20:04]MH_I2C_Read... [23:20:04]Read from MH i2c: 01 07 00 F7 05 00 00 00 00 00 FF 0F 11 [23:20:04]RasterBufferAndPrint [23:20:04]line Счет N : (3)11868 [23:20:04]line ИНН: 02508201610067 [23:20:04]line Контрольно-Кассовый Чек [23:20:04]line ПРОДАЖА [23:20:04]line Товар: 48741958 [23:20:04]line Сигареты Parliament Aqua Blue [23:20:05]line 1.000 * 151.00 [23:20:05]line = 151.00 [23:20:05]line НДС 12% НСП 1% [23:20:05]line > о реализуемом товаре [23:20:05]line Товар: 4870001570071 [23:20:05]line Напиток Pepsi 1л [23:20:05]line 1.000 * 110.00 [23:20:05]line = 110.00 [23:20:05]line НДС 12% НСП 1% [23:20:05]line > о реализуемом товаре [23:20:05]line ИТОГО: 261.00 [23:20:05]line НСП 1% : 2.31 [23:20:05]line НДС 12% : 27.71 [23:20:05]line Наличными: 261.00 [23:20:05]line Безнал.: 0.00 [23:20:05]line Место: АЗС № 68 "Партнер Нефть" [23:20:05]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [23:20:05]line СНО: Общий режим [23:20:05]line Чек 417 02.06.2024 23:20 [23:20:05]line Смена: 366 ФФД: 1.0 [23:20:05]line ЗНМ: 0300000035 [23:20:05]line РНМ: 0000000000092720 [23:20:05]line Версия ККМ: 001 [23:20:05]line ФМ: 0000000000875057 [23:20:05]line ФД: 148225 [23:20:05]line ФПД: 226457548031138 [23:20:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T232003&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148225&fm=226457548031138&tin=02508201610067®Number=0000000000092720&sum=26100 [23:20:05]line 0 [23:20:05]OFD Sender: Processing packet 148225 [packets to send 99, broken 98] [23:20:05]ProducePacketName [23:20:05]name=ofd_packets/00148225 [23:20:05]OFD Sender: To server: pG, [23:20:05]CommunicateWithHost lk.salyk.kg:30040 [23:20:05]ConnectInit lk.salyk.kg [23:20:05]written 0, free lines is 4095 [23:20:05]Connected sock=10 [23:20:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 86 01 00 00 38 4C 7E 01 99 5B 5A 03 01 00 03 00 72 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 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 F4 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 0A 00 00 00 00 07 04 06 00 F4 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 A1 01 00 00 F4 03 04 00 23 FE 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 01 43 02 00 35 04 06 00 CD F6 41 B5 04 A2 0B 0E 01 FF 49 6F 63 75 [23:20:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 D7 F4 47 00 1B 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 01 43 02 00 F4 03 04 00 4C A5 5C 66 B6 04 01 00 00 81 7E 72 AE 7A 69 32 F7 [23:20:05]CommunicateWithHost err = 0 [23:20:05]CheckOFDResponse [23:20:05]1017 (14) - 77093643461234 [23:20:05]1041 (16) - 0000000000875057 [23:20:05]1040 (4) - 148225 [23:20:05]1012 (4) - 02.06.2024 17:01 [23:20:05]1206 (1) - 0 [23:20:05]OFD Sender: Remove packet 148225 [23:20:05]ProducePacketName [23:20:05]name=ofd_packets/00148225 [23:20:05]NVStorageDeleteData [23:20:05]Write to MH i2c: 01 00 00 26 06 2C [23:20:05]Write i2c OK [23:20:05]MH_I2C_Read... [23:20:05]Read from MH i2c: 01 [23:20:05]MH_I2C_Read... [23:20:05]Read from MH i2c: 01 07 00 [23:20:05]MH_I2C_Read... [23:20:05]Read from MH i2c: 01 07 00 26 06 00 00 00 00 00 F2 0B 30 [23:20:05]RasterBufferAndPrint [23:20:05]line [23:20:05]line [23:20:05]line [23:20:05]line [23:20:05]line [23:20:05]written 0, free lines is 3062 [23:20:05]MH_Cut [23:20:05]Write to MH i2c: D1 01 00 2D 06 01 05 [23:20:05]Write i2c OK [23:20:05]MH_I2C_Read... [23:20:05]Read from MH i2c: D1 [23:20:05]MH_I2C_Read... [23:20:05]Read from MH i2c: D1 01 00 [23:20:05]MH_I2C_Read... [23:20:05]Read from MH i2c: D1 01 00 2D 06 00 04 [23:20:05]Write to MH i2c: 01 00 00 2E 06 34 [23:20:05]Write i2c OK [23:20:05]MH_I2C_Read... [23:20:05]OFD Sender: No OFD packet to send [23:20:07]*** Cut start [23:20:07]*** Partial cut [23:20:07]*** CUTSNS_PIN = 1 [23:20:07]*** CUTSNS_PIN = 0 [23:20:07]*** Brake cut motor [23:20:07]Read from MH i2c: 01 [23:20:07]MH_I2C_Read... [23:20:07]*** Stop cut motor [23:20:07]*** Cut end [23:20:07]Read from MH i2c: 01 07 00 [23:20:07]MH_I2C_Read... [23:20:07]Read from MH i2c: 01 07 00 2E 06 00 00 00 00 00 FF 0F 49 [23:20:07]process_action close_receipt done [23:20:07]requested_data is exist [23:20:07]produce_requested_data [23:20:07]requested_item fm.sn is exist - process it [23:20:07]wFMCommunicate request_size=4 [23:20:07]MH_SAM_APDU [23:20:07]CAPDU: 80 11 00 00 [23:20:07]Write to MH i2c: E2 08 00 2F 06 80 11 00 00 00 00 00 00 AF [23:20:07]Write i2c OK [23:20:07]MH_I2C_Read... [23:20:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:07]Read from MH i2c: E2 [23:20:07]MH_I2C_Read... [23:20:07]Read from MH i2c: E2 17 00 [23:20:07]MH_I2C_Read... [23:20:07]Read from MH i2c: E2 17 00 2F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 02 [23:20:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:20:07]wFMCommunicate OK [23:20:07]requested_item fd.num is exist - process it [23:20:07]SAM_PROTO_GetFieldsCounters [23:20:07]wFMCommunicate request_size=4 [23:20:07]MH_SAM_APDU [23:20:07]CAPDU: 80 13 00 00 [23:20:07]Write to MH i2c: E2 08 00 30 06 80 13 00 00 00 00 00 00 B2 [23:20:07]Write i2c OK [23:20:07]MH_I2C_Read... [23:20:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:20:07]Read from MH i2c: E2 [23:20:07]MH_I2C_Read... [23:20:07]Read from MH i2c: E2 62 00 [23:20:07]MH_I2C_Read... [23:20:07]Read from MH i2c: E2 62 00 30 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 01 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 A1 01 00 00 5E 04 04 00 A1 01 00 00 57 04 04 00 A2 01 00 00 19 04 04 00 00 00 00 00 90 00 69 [23:20:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 01 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 A1 01 00 00 5E 04 04 00 A1 01 00 00 57 04 04 00 A2 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:20:07]wFMCommunicate OK [23:20:07]SAM_PROTO_GetFieldsCounters done [23:20:07]requested_item shift.num is exist - process it [23:20:07]requested_item shift.opened is exist - process it [23:20:07]req_shift_opened [23:20:07]FM_GetShiftState [23:20:07]SAM_PROTO_GetShiftState [23:20:07]wFMCommunicate request_size=4 [23:20:07]MH_SAM_APDU [23:20:07]CAPDU: 80 13 01 00 [23:20:07]Write to MH i2c: E2 08 00 31 06 80 13 01 00 00 00 00 00 B4 [23:20:07]Write i2c OK [23:20:07]MH_I2C_Read... [23:20:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:07]Read from MH i2c: E2 [23:20:07]MH_I2C_Read... [23:20:07]Read from MH i2c: E2 0E 00 [23:20:07]MH_I2C_Read... [23:20:07]Read from MH i2c: E2 0E 00 31 06 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 CC [23:20:07]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [23:20:07]wFMCommunicate OK [23:20:07]SAM_PROTO_GetShiftState done [23:20:07]FM_GetShiftState done [23:20:07]req_shift_opened done [23:20:07]requested_item shift.open_date is exist - process it [23:20:07]req_shift_open_date [23:20:07]req_shift_open_date done [23:20:07]produce_requested_data done [23:20:07]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148225,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [23:20:07]process_action_free close_receipt [23:20:07]json_value_free [23:20:07]json_value_free done [23:20:07]process_json_proto returns [23:20:07]Send response to host [23:20:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148225,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [23:20:07]free response buf [23:20:07]execute_script done [23:20:07]execute_script returns [23:20:07]free content buf [23:20:07]Sock 9.Close socket [23:20:07]Sock 9.Thread stoped [23:20:10]OFD Sender: No OFD packet to send [23:20:15]accept exits with 8 [23:20:15]New connection [23:20:15]New thread 3067288932 created [23:20:15]Thread 3067432292 joined [23:20:15]Waiting for new connection... [23:20:15] Sock 8.Parse request [23:20:15]Sock 8.Check first char [23:20:15]Sock 8.First char is OK [23:20:15]request: POST /json_proto HTTP/1.0 [23:20:15]Method: POST [23:20:15]URL: /json_proto [23:20:15]Method is POST - this is cgi request [23:20:15]url: /json_proto [23:20:15]query_string will be loaded in cgi processing [23:20:15]execute_cgi json_proto POST (null) [23:20:15]execute_cgi path=json_proto method=POST [23:20:15]POST find Content-Length [23:20:15]Host: 172.17.38.4:8080 [23:20:15]Content-Length: 677 [23:20:15]Content-Type: application/json [23:20:15] [23:20:15]POST finish read [23:20:15]Found Content-Length = 677 [23:20:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:20:15]execute_script... [23:20:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 3.020, "sum" : 200.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:20:15]POST & json_proto [23:20:15]process_json_proto [23:20:15]json parsed OK: [23:20:15]protocol is kg_v1.0 [23:20:15]action value=close_receipt [23:20:15]process_action close_receipt [23:20:15]cmd_close_receipt [23:20:15]MH_GetDate [23:20:15]Write to MH i2c: F0 00 00 32 06 27 [23:20:15]Write i2c OK [23:20:15]MH_I2C_Read... [23:20:15]Read from MH i2c: F0 [23:20:15]MH_I2C_Read... [23:20:15]Read from MH i2c: F0 09 00 [23:20:15]MH_I2C_Read... [23:20:15]Read from MH i2c: F0 09 00 32 06 00 2F FE 5C 66 CC 51 87 64 27 [23:20:15]GetLastDocTimeStamp 1717370403 [23:20:15]current date 1717370415 [23:20:15]FM_GetShiftState [23:20:15]SAM_PROTO_GetShiftState [23:20:15]wFMCommunicate request_size=4 [23:20:15]MH_SAM_APDU [23:20:15]CAPDU: 80 13 01 00 [23:20:15]Write to MH i2c: E2 08 00 33 06 80 13 01 00 00 00 00 00 B6 [23:20:15]Write i2c OK [23:20:15]MH_I2C_Read... [23:20:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:15]Read from MH i2c: E2 [23:20:15]MH_I2C_Read... [23:20:15]Read from MH i2c: E2 0E 00 [23:20:15]MH_I2C_Read... [23:20:15]Read from MH i2c: E2 0E 00 33 06 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 CE [23:20:15]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [23:20:15]wFMCommunicate OK [23:20:15]SAM_PROTO_GetShiftState done [23:20:15]FM_GetShiftState done [23:20:15]opened in 1717287824 [23:20:15]opened+sec_in_day 1717374224 [23:20:15]quantity*price = 20052 [23:20:15]sum+1 = 20054 [23:20:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 418 02.06.2024 23:20 Смена: 366 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148226 ФПД: 138802059716270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T232015&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148226&fm=138802059716270&tin=02508201610067®Number=0000000000092720&sum=20000 [23:20:16]StoreToDocumentArchive [23:20:16]shift 366 fd 148226 [23:20:16]save to /storage/0366/doc_00148226 [23:20:16]save last doc name /storage/0366/doc_00148226 to /storage/kkm_last_doc_name [23:20:16]save OK [23:20:16]Clear old archive folders... [23:20:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:20:16]tlvbuf is 0112A440 [23:20:16]SAM_PROTO_ClearQueue [23:20:16]wFMCommunicate request_size=4 [23:20:16]MH_SAM_APDU [23:20:16]CAPDU: 80 09 00 00 [23:20:16]Write to MH i2c: E2 08 00 40 06 80 09 00 00 00 00 00 00 B8 [23:20:16]Write i2c OK [23:20:16]MH_I2C_Read... [23:20:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:20:16]Read from MH i2c: E2 [23:20:16]MH_I2C_Read... [23:20:16]Read from MH i2c: E2 03 00 [23:20:16]MH_I2C_Read... [23:20:16]Read from MH i2c: E2 03 00 40 06 00 90 00 BA [23:20:16]RAPDU: 90 00 [23:20:16]wFMCommunicate OK [23:20:16]SAM_PROTO_ClearQueue done [23:20:16]KKMCreateOFDPacket [23:20:16]OFDProtocolAddRootSTLVToBuf [23:20:16]FM_MakeSignedData [23:20:16]FM_MakeSignedData [23:20:16]SAM_PROTO_SignData [23:20:16]wFMCommunicate request_size=4 [23:20:16]MH_SAM_APDU [23:20:16]CAPDU: 80 0D 01 02 [23:20:16]Write to MH i2c: E2 08 00 41 06 80 0D 01 02 00 00 00 00 C0 [23:20:16]Write i2c OK [23:20:16]MH_I2C_Read... [23:20:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:20:16]Read from MH i2c: E2 [23:20:16]MH_I2C_Read... [23:20:16]Read from MH i2c: E2 03 00 [23:20:16]MH_I2C_Read... [23:20:16]Read from MH i2c: E2 03 00 41 06 00 90 00 BB [23:20:16]RAPDU: 90 00 [23:20:16]wFMCommunicate OK [23:20:16]wFMCommunicate request_size=255 [23:20:16]MH_SAM_APDU [23:20:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 01 00 00 F4 03 04 00 2F FE 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 02 43 02 00 35 04 06 00 7E [23:20:16]Write to MH i2c: E2 02 01 42 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 01 00 00 F4 03 04 00 2F FE 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 02 43 02 00 35 04 06 00 7E 00 00 F4 [23:20:16]Write i2c OK [23:20:16]MH_I2C_Read... [23:20:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:16]Read from MH i2c: E2 [23:20:16]MH_I2C_Read... [23:20:16]Read from MH i2c: E2 03 00 [23:20:16]MH_I2C_Read... [23:20:16]Read from MH i2c: E2 03 00 42 06 00 90 00 BC [23:20:16]RAPDU: 90 00 [23:20:16]wFMCommunicate OK [23:20:16]wFMCommunicate request_size=10 [23:20:16]MH_SAM_APDU [23:20:16]CAPDU: 80 0D 02 02 05 3D 5F 76 A6 AE [23:20:16]Write to MH i2c: E2 0D 00 43 06 80 0D 02 02 05 00 3D 5F 76 A6 AE 00 00 33 [23:20:16]Write i2c OK [23:20:16]MH_I2C_Read... [23:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:17]Read from MH i2c: E2 [23:20:17]MH_I2C_Read... [23:20:17]Read from MH i2c: E2 03 00 [23:20:17]MH_I2C_Read... [23:20:17]Read from MH i2c: E2 03 00 43 06 00 90 00 BD [23:20:17]RAPDU: 90 00 [23:20:17]wFMCommunicate OK [23:20:17]wFMCommunicate request_size=4 [23:20:17]MH_SAM_APDU [23:20:17]CAPDU: 80 0D 03 02 [23:20:17]Write to MH i2c: E2 08 00 44 06 80 0D 03 02 00 00 00 00 C5 [23:20:17]Write i2c OK [23:20:17]MH_I2C_Read... [23:20:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:20:17]Read from MH i2c: E2 [23:20:17]MH_I2C_Read... [23:20:17]Read from MH i2c: E2 0B 00 [23:20:17]MH_I2C_Read... [23:20:17]Read from MH i2c: E2 0B 00 44 06 00 B6 94 D5 E2 82 5D 79 78 90 00 97 [23:20:17]RAPDU: B6 94 D5 E2 82 5D 79 78 90 00 [23:20:17]wFMCommunicate OK [23:20:17]SAM_PROTO_SignData done [23:20:17]FM_MakeSignedData done [23:20:17]CreateOFDProtocolMessage [23:20:17]wFMCommunicate request_size=4 [23:20:17]MH_SAM_APDU [23:20:17]CAPDU: 80 11 00 00 [23:20:17]Write to MH i2c: E2 08 00 45 06 80 11 00 00 00 00 00 00 C5 [23:20:17]Write i2c OK [23:20:17]MH_I2C_Read... [23:20:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:17]Read from MH i2c: E2 [23:20:17]MH_I2C_Read... [23:20:17]Read from MH i2c: E2 17 00 [23:20:17]MH_I2C_Read... [23:20:17]Read from MH i2c: E2 17 00 45 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 18 [23:20:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:20:17]wFMCommunicate OK [23:20:17]CreateOFDProtocolMessage done [23:20:17]OFDSenderStorePacket 148226 [23:20:17]StoreOFDPacket docnum=148226 [23:20:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 5F F1 07 01 B2 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 01 00 00 F4 03 04 00 2F FE 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 02 43 02 00 35 04 06 00 7E 3D 5F 76 A6 AE B6 94 D5 E2 82 5D 79 78 [23:20:17]CheckFolder [23:20:17]dirname=/storage/ofd_packets [23:20:17]CheckFolder done [23:20:17]ProducePacketName [23:20:17]name=ofd_packets/00148226 [23:20:17]NVStorageSaveData ofd_packets/00148226 [23:20:17]File name is /storage/ofd_packets/00148226 [23:20:17]Write 301 bytes [23:20:17]NVStorageSaveData done [23:20:17]OFDSenderStorePacket done [23:20:17]KKMCreateOFDPacket done [23:20:17]NVStorageSaveData kkm_last_timestamp [23:20:17]File name is /storage/kkm_last_timestamp [23:20:17]Write 4 bytes [23:20:17]NVStorageSaveData done [23:20:17]ExternCall_PrintAddStr [23:20:17]wPrintStart [23:20:17]Write to MH i2c: 01 00 00 46 06 4C [23:20:17]Write i2c OK [23:20:17]MH_I2C_Read... [23:20:17]Read from MH i2c: 01 [23:20:17]MH_I2C_Read... [23:20:17]Read from MH i2c: 01 07 00 [23:20:17]MH_I2C_Read... [23:20:17]Read from MH i2c: 01 07 00 46 06 00 00 00 00 00 FF 0F 61 [23:20:17]RasterBufferAndPrint [23:20:17]line Счет N : (1)979164 [23:20:17]line ИНН: 02508201610067 [23:20:17]line Контрольно-Кассовый Чек [23:20:17]line ПРОДАЖА [23:20:17]line ТРК (МРК, ГНК) : 41 [23:20:17]line Товар: 2710124130 [23:20:17]line Аи-92-К-5 [23:20:17]line 3.020 * 66.40 [23:20:17]line = 200.53 [23:20:17]line НДС 12% НСП 1% [23:20:17]line > о реализуемом товаре [23:20:17]line ОКРУГЛЕНИЕ: -0.53 [23:20:17]line ИТОГО: 200.00 [23:20:17]line Внесено: 200.00 [23:20:17]line СДАЧА: 0.00 [23:20:17]line НСП 1% : 1.77 [23:20:17]line НДС 12% : 21.29 [23:20:17]line Наличными: 200.00 [23:20:17]line Безнал.: 0.00 [23:20:17]line Место: АЗС № 68 "Партнер Нефть" [23:20:17]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [23:20:17]line СНО: Общий режим [23:20:17]line Чек 418 02.06.2024 23:20 [23:20:17]line Смена: 366 ФФД: 1.0 [23:20:17]line ЗНМ: 0300000035 [23:20:17]line РНМ: 0000000000092720 [23:20:17]line Версия ККМ: 001 [23:20:17]line ФМ: 0000000000875057 [23:20:17]line ФД: 148226 [23:20:17]line ФПД: 138802059716270 [23:20:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T232015&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148226&fm=138802059716270&tin=02508201610067®Number=0000000000092720&sum=20000 [23:20:17]written 0, free lines is 4095 [23:20:17]OFD Sender: Processing packet 148226 [packets to send 99, broken 98] [23:20:17]ProducePacketName [23:20:17]name=ofd_packets/00148226 [23:20:17]OFD Sender: To server: pG, [23:20:17]CommunicateWithHost lk.salyk.kg:30040 [23:20:17]ConnectInit lk.salyk.kg [23:20:17]Connected sock=10 [23:20:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 5F F1 07 01 B2 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 55 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 01 00 00 F4 03 04 00 2F FE 5C 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 02 43 02 00 35 04 06 00 7E 3D 5F 76 A6 AE B6 94 D5 E2 82 5D 79 78 [23:20:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 FA 62 47 00 AC 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 02 43 02 00 F4 03 04 00 58 A5 5C 66 B6 04 01 00 00 E0 E0 2C CF 83 84 F1 1D [23:20:17]CommunicateWithHost err = 0 [23:20:17]CheckOFDResponse [23:20:17]1017 (14) - 77093643461234 [23:20:17]1041 (16) - 0000000000875057 [23:20:17]1040 (4) - 148226 [23:20:17]1012 (4) - 02.06.2024 17:01 [23:20:17]1206 (1) - 0 [23:20:17]OFD Sender: Remove packet 148226 [23:20:17]ProducePacketName [23:20:17]name=ofd_packets/00148226 [23:20:17]NVStorageDeleteData [23:20:17]Write to MH i2c: 01 00 00 71 06 77 [23:20:17]Write i2c OK [23:20:17]MH_I2C_Read... [23:20:17]Read from MH i2c: 01 [23:20:17]MH_I2C_Read... [23:20:17]Read from MH i2c: 01 07 00 [23:20:17]MH_I2C_Read... [23:20:17]Read from MH i2c: 01 07 00 71 06 00 00 00 00 00 68 0C F2 [23:20:17]RasterBufferAndPrint [23:20:17]line [23:20:17]line [23:20:17]line [23:20:17]line [23:20:17]line [23:20:17]written 0, free lines is 3180 [23:20:17]MH_Cut [23:20:17]Write to MH i2c: D1 01 00 78 06 01 50 [23:20:17]Write i2c OK [23:20:17]MH_I2C_Read... [23:20:17]Read from MH i2c: D1 [23:20:17]MH_I2C_Read... [23:20:17]Read from MH i2c: D1 01 00 [23:20:17]MH_I2C_Read... [23:20:17]Read from MH i2c: D1 01 00 78 06 00 4F [23:20:17]Write to MH i2c: 01 00 00 79 06 7F [23:20:17]Write i2c OK [23:20:17]MH_I2C_Read... [23:20:17]OFD Sender: No OFD packet to send [23:20:18]*** Cut start [23:20:18]*** Partial cut [23:20:18]*** CUTSNS_PIN = 1 [23:20:18]*** CUTSNS_PIN = 0 [23:20:19]*** Brake cut motor [23:20:19]Read from MH i2c: 01 [23:20:19]MH_I2C_Read... [23:20:19]*** Stop cut motor [23:20:19]*** Cut end [23:20:19]Read from MH i2c: 01 07 00 [23:20:19]MH_I2C_Read... [23:20:19]Read from MH i2c: 01 07 00 79 06 00 00 00 00 00 FF 0F 94 [23:20:19]process_action close_receipt done [23:20:19]requested_data is exist [23:20:19]produce_requested_data [23:20:19]requested_item fm.sn is exist - process it [23:20:19]wFMCommunicate request_size=4 [23:20:19]MH_SAM_APDU [23:20:19]CAPDU: 80 11 00 00 [23:20:19]Write to MH i2c: E2 08 00 7A 06 80 11 00 00 00 00 00 00 FA [23:20:19]Write i2c OK [23:20:19]MH_I2C_Read... [23:20:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:19]Read from MH i2c: E2 [23:20:19]MH_I2C_Read... [23:20:19]Read from MH i2c: E2 17 00 [23:20:19]MH_I2C_Read... [23:20:19]Read from MH i2c: E2 17 00 7A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 4D [23:20:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:20:19]wFMCommunicate OK [23:20:19]requested_item fd.num is exist - process it [23:20:19]SAM_PROTO_GetFieldsCounters [23:20:19]wFMCommunicate request_size=4 [23:20:19]MH_SAM_APDU [23:20:19]CAPDU: 80 13 00 00 [23:20:19]Write to MH i2c: E2 08 00 7B 06 80 13 00 00 00 00 00 00 FD [23:20:19]Write i2c OK [23:20:19]MH_I2C_Read... [23:20:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:20:19]Read from MH i2c: E2 [23:20:19]MH_I2C_Read... [23:20:19]Read from MH i2c: E2 62 00 [23:20:19]MH_I2C_Read... [23:20:19]Read from MH i2c: E2 62 00 7B 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 02 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 A2 01 00 00 5E 04 04 00 A2 01 00 00 57 04 04 00 A3 01 00 00 19 04 04 00 00 00 00 00 90 00 B8 [23:20:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 02 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 A2 01 00 00 5E 04 04 00 A2 01 00 00 57 04 04 00 A3 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:20:19]wFMCommunicate OK [23:20:19]SAM_PROTO_GetFieldsCounters done [23:20:19]requested_item shift.num is exist - process it [23:20:19]requested_item shift.opened is exist - process it [23:20:19]req_shift_opened [23:20:19]FM_GetShiftState [23:20:19]SAM_PROTO_GetShiftState [23:20:19]wFMCommunicate request_size=4 [23:20:19]MH_SAM_APDU [23:20:19]CAPDU: 80 13 01 00 [23:20:19]Write to MH i2c: E2 08 00 7C 06 80 13 01 00 00 00 00 00 FF [23:20:19]Write i2c OK [23:20:19]MH_I2C_Read... [23:20:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:19]Read from MH i2c: E2 [23:20:19]MH_I2C_Read... [23:20:19]Read from MH i2c: E2 0E 00 [23:20:19]MH_I2C_Read... [23:20:19]Read from MH i2c: E2 0E 00 7C 06 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 17 [23:20:19]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [23:20:19]wFMCommunicate OK [23:20:19]SAM_PROTO_GetShiftState done [23:20:19]FM_GetShiftState done [23:20:19]req_shift_opened done [23:20:19]requested_item shift.open_date is exist - process it [23:20:19]req_shift_open_date [23:20:19]req_shift_open_date done [23:20:19]produce_requested_data done [23:20:19]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148226,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [23:20:19]process_action_free close_receipt [23:20:19]json_value_free [23:20:19]json_value_free done [23:20:19]process_json_proto returns [23:20:19]Send response to host [23:20:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148226,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [23:20:19]free response buf [23:20:19]execute_script done [23:20:19]execute_script returns [23:20:19]free content buf [23:20:19]Sock 8.Close socket [23:20:19]Sock 8.Thread stoped [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:38]OFD Sender: No OFD packet to send [23:20:43]OFD Sender: No OFD packet to send [23:20:48]OFD Sender: No OFD packet to send [23:20:53]OFD Sender: No OFD packet to send [23:20:58]OFD Sender: No OFD packet to send [23:21:03]OFD Sender: No OFD packet to send [23:21:08]OFD Sender: No OFD packet to send [23:21:13]OFD Sender: No OFD packet to send [23:21:18]OFD Sender: No OFD packet to send [23:21:23]OFD Sender: No OFD packet to send [23:21:28]OFD Sender: No OFD packet to send [23:21:33]OFD Sender: No OFD packet to send [23:21:38]OFD Sender: No OFD packet to send [23:21:43]OFD Sender: No OFD packet to send [23:21:48]OFD Sender: No OFD packet to send [23:21:53]OFD Sender: No OFD packet to send [23:21:58]OFD Sender: No OFD packet to send [23:22:03]OFD Sender: No OFD packet to send [23:22:08]OFD Sender: No OFD packet to send [23:22:13]OFD Sender: No OFD packet to send [23:22:18]OFD Sender: No OFD packet to send [23:22:23]OFD Sender: No OFD packet to send [23:22:28]OFD Sender: No OFD packet to send [23:22:33]OFD Sender: No OFD packet to send [23:22:38]OFD Sender: No OFD packet to send [23:22:43]OFD Sender: No OFD packet to send [23:22:48]OFD Sender: No OFD packet to send [23:22:53]OFD Sender: No OFD packet to send [23:22:58]OFD Sender: No OFD packet to send [23:23:03]OFD Sender: No OFD packet to send [23:23:08]OFD Sender: No OFD packet to send [23:23:13]OFD Sender: No OFD packet to send [23:23:18]OFD Sender: No OFD packet to send [23:23:23]OFD Sender: No OFD packet to send [23:23:28]OFD Sender: No OFD packet to send [23:23:33]OFD Sender: No OFD packet to send [23:23:38]OFD Sender: No OFD packet to send [23:23:43]OFD Sender: No OFD packet to send [23:23:48]OFD Sender: No OFD packet to send [23:23:53]OFD Sender: No OFD packet to send [23:23:58]OFD Sender: No OFD packet to send [23:24:03]OFD Sender: No OFD packet to send [23:24:08]OFD Sender: No OFD packet to send [23:24:13]OFD Sender: No OFD packet to send [23:24:18]OFD Sender: No OFD packet to send [23:24:23]OFD Sender: No OFD packet to send [23:24:28]OFD Sender: No OFD packet to send [23:24:33]OFD Sender: No OFD packet to send [23:24:38]OFD Sender: No OFD packet to send [23:24:43]OFD Sender: No OFD packet to send [23:24:48]OFD Sender: No OFD packet to send [23:24:53]OFD Sender: No OFD packet to send [23:24:58]OFD Sender: No OFD packet to send [23:25:03]OFD Sender: No OFD packet to send [23:25:08]OFD Sender: No OFD packet to send [23:25:13]OFD Sender: No OFD packet to send [23:25:18]OFD Sender: No OFD packet to send [23:25:23]OFD Sender: No OFD packet to send [23:25:28]OFD Sender: No OFD packet to send [23:25:33]OFD Sender: No OFD packet to send [23:25:38]OFD Sender: No OFD packet to send [23:25:43]OFD Sender: No OFD packet to send [23:25:48]OFD Sender: No OFD packet to send [23:25:53]OFD Sender: No OFD packet to send [23:25:58]OFD Sender: No OFD packet to send [23:26:03]OFD Sender: No OFD packet to send [23:26:08]OFD Sender: No OFD packet to send [23:26:13]OFD Sender: No OFD packet to send [23:26:18]OFD Sender: No OFD packet to send [23:26:23]OFD Sender: No OFD packet to send [23:26:28]OFD Sender: No OFD packet to send [23:26:33]OFD Sender: No OFD packet to send [23:26:38]OFD Sender: No OFD packet to send [23:26:43]OFD Sender: No OFD packet to send [23:26:48]OFD Sender: No OFD packet to send [23:26:53]OFD Sender: No OFD packet to send [23:26:58]OFD Sender: No OFD packet to send [23:27:03]OFD Sender: No OFD packet to send [23:27:08]OFD Sender: No OFD packet to send [23:27:13]OFD Sender: No OFD packet to send [23:27:18]OFD Sender: No OFD packet to send [23:27:23]OFD Sender: No OFD packet to send [23:27:28]OFD Sender: No OFD packet to send [23:27:33]OFD Sender: No OFD packet to send [23:27:38]OFD Sender: No OFD packet to send [23:27:43]OFD Sender: No OFD packet to send [23:27:48]OFD Sender: No OFD packet to send [23:27:53]OFD Sender: No OFD packet to send [23:27:58]OFD Sender: No OFD packet to send [23:28:03]OFD Sender: No OFD packet to send [23:28:08]OFD Sender: No OFD packet to send [23:28:13]OFD Sender: No OFD packet to send [23:28:18]OFD Sender: No OFD packet to send [23:28:23]OFD Sender: No OFD packet to send [23:28:28]OFD Sender: No OFD packet to send [23:28:33]OFD Sender: No OFD packet to send [23:28:38]OFD Sender: No OFD packet to send [23:28:43]OFD Sender: No OFD packet to send [23:28:48]OFD Sender: No OFD packet to send [23:28:53]OFD Sender: No OFD packet to send [23:28:58]OFD Sender: No OFD packet to send [23:29:03]OFD Sender: No OFD packet to send [23:29:08]OFD Sender: No OFD packet to send [23:29:13]OFD Sender: No OFD packet to send [23:29:18]OFD Sender: No OFD packet to send [23:29:19]accept exits with 9 [23:29:19]New connection [23:29:19]New thread 3067432292 created [23:29:19]Thread 3067288932 joined [23:29:19]Waiting for new connection... [23:29:19] Sock 9.Parse request [23:29:19]Sock 9.Check first char [23:29:19]Sock 9.First char is OK [23:29:19]request: POST /json_proto HTTP/1.0 [23:29:19]Method: POST [23:29:19]URL: /json_proto [23:29:19]Method is POST - this is cgi request [23:29:19]url: /json_proto [23:29:19]query_string will be loaded in cgi processing [23:29:19]execute_cgi json_proto POST (null) [23:29:19]execute_cgi path=json_proto method=POST [23:29:19]POST find Content-Length [23:29:19]Host: 172.17.38.4:8080 [23:29:19]Content-Length: 790 [23:29:19]Content-Type: application/json [23:29:19] [23:29:19]POST finish read [23:29:19]Found Content-Length = 790 [23:29:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 350.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:29:19]execute_script... [23:29:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 5.280, "sum" : 350.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 350.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:29:19]POST & json_proto [23:29:19]process_json_proto [23:29:19]json parsed OK: [23:29:19]protocol is kg_v1.0 [23:29:19]action value=close_receipt [23:29:19]process_action close_receipt [23:29:19]cmd_close_receipt [23:29:19]MH_GetDate [23:29:19]Write to MH i2c: F0 00 00 7D 06 72 [23:29:19]Write i2c OK [23:29:19]MH_I2C_Read... [23:29:19]Read from MH i2c: F0 [23:29:19]MH_I2C_Read... [23:29:19]Read from MH i2c: F0 09 00 [23:29:19]MH_I2C_Read... [23:29:19]Read from MH i2c: F0 09 00 7D 06 00 4F 00 5D 66 CC 51 87 64 95 [23:29:19]GetLastDocTimeStamp 1717370415 [23:29:19]current date 1717370959 [23:29:19]FM_GetShiftState [23:29:19]SAM_PROTO_GetShiftState [23:29:19]wFMCommunicate request_size=4 [23:29:19]MH_SAM_APDU [23:29:19]CAPDU: 80 13 01 00 [23:29:19]Write to MH i2c: E2 08 00 7E 06 80 13 01 00 00 00 00 00 01 [23:29:19]Write i2c OK [23:29:19]MH_I2C_Read... [23:29:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:29:19]Read from MH i2c: E2 [23:29:19]MH_I2C_Read... [23:29:19]Read from MH i2c: E2 0E 00 [23:29:19]MH_I2C_Read... [23:29:19]Read from MH i2c: E2 0E 00 7E 06 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 19 [23:29:19]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [23:29:19]wFMCommunicate OK [23:29:19]SAM_PROTO_GetShiftState done [23:29:19]FM_GetShiftState done [23:29:19]opened in 1717287824 [23:29:19]opened+sec_in_day 1717374224 [23:29:19]quantity*price = 35059 [23:29:19]sum+1 = 35060 [23:29:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.59 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 0.00 Безнал.: 350.59 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 419 02.06.2024 23:29 Смена: 366 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148227 ФПД: 103082745650684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T232919&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148227&fm=103082745650684&tin=02508201610067®Number=0000000000092720&sum=35059 [23:29:20]StoreToDocumentArchive [23:29:20]shift 366 fd 148227 [23:29:20]save to /storage/0366/doc_00148227 [23:29:20]save last doc name /storage/0366/doc_00148227 to /storage/kkm_last_doc_name [23:29:20]save OK [23:29:20]Clear old archive folders... [23:29:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:29:20]tlvbuf is 011DD290 [23:29:20]SAM_PROTO_ClearQueue [23:29:20]wFMCommunicate request_size=4 [23:29:20]MH_SAM_APDU [23:29:20]CAPDU: 80 09 00 00 [23:29:20]Write to MH i2c: E2 08 00 8B 06 80 09 00 00 00 00 00 00 03 [23:29:20]Write i2c OK [23:29:20]MH_I2C_Read... [23:29:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:29:20]Read from MH i2c: E2 [23:29:20]MH_I2C_Read... [23:29:20]Read from MH i2c: E2 03 00 [23:29:20]MH_I2C_Read... [23:29:20]Read from MH i2c: E2 03 00 8B 06 00 90 00 05 [23:29:20]RAPDU: 90 00 [23:29:20]wFMCommunicate OK [23:29:20]SAM_PROTO_ClearQueue done [23:29:20]KKMCreateOFDPacket [23:29:20]OFDProtocolAddRootSTLVToBuf [23:29:20]FM_MakeSignedData [23:29:20]FM_MakeSignedData [23:29:20]SAM_PROTO_SignData [23:29:20]wFMCommunicate request_size=4 [23:29:20]MH_SAM_APDU [23:29:20]CAPDU: 80 0D 01 02 [23:29:20]Write to MH i2c: E2 08 00 8C 06 80 0D 01 02 00 00 00 00 0B [23:29:20]Write i2c OK [23:29:20]MH_I2C_Read... [23:29:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:29:20]Read from MH i2c: E2 [23:29:20]MH_I2C_Read... [23:29:20]Read from MH i2c: E2 03 00 [23:29:20]MH_I2C_Read... [23:29:20]Read from MH i2c: E2 03 00 8C 06 00 90 00 06 [23:29:20]RAPDU: 90 00 [23:29:20]wFMCommunicate OK [23:29:20]wFMCommunicate request_size=255 [23:29:20]MH_SAM_APDU [23:29:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F3 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 01 00 00 F4 03 04 00 4F 00 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 03 43 02 00 35 04 06 00 5D [23:29:20]Write to MH i2c: E2 02 01 8D 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F3 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 01 00 00 F4 03 04 00 4F 00 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 03 43 02 00 35 04 06 00 5D 00 00 D8 [23:29:20]Write i2c OK [23:29:20]MH_I2C_Read... [23:29:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:29:21]Read from MH i2c: E2 [23:29:21]MH_I2C_Read... [23:29:21]Read from MH i2c: E2 03 00 [23:29:21]MH_I2C_Read... [23:29:21]Read from MH i2c: E2 03 00 8D 06 00 90 00 07 [23:29:21]RAPDU: 90 00 [23:29:21]wFMCommunicate OK [23:29:21]wFMCommunicate request_size=10 [23:29:21]MH_SAM_APDU [23:29:21]CAPDU: 80 0D 02 02 05 C0 D2 6F DD FC [23:29:21]Write to MH i2c: E2 0D 00 8E 06 80 0D 02 02 05 00 C0 D2 6F DD FC 00 00 F2 [23:29:21]Write i2c OK [23:29:21]MH_I2C_Read... [23:29:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:29:21]Read from MH i2c: E2 [23:29:21]MH_I2C_Read... [23:29:21]Read from MH i2c: E2 03 00 [23:29:21]MH_I2C_Read... [23:29:21]Read from MH i2c: E2 03 00 8E 06 00 90 00 08 [23:29:21]RAPDU: 90 00 [23:29:21]wFMCommunicate OK [23:29:21]wFMCommunicate request_size=4 [23:29:21]MH_SAM_APDU [23:29:21]CAPDU: 80 0D 03 02 [23:29:21]Write to MH i2c: E2 08 00 8F 06 80 0D 03 02 00 00 00 00 10 [23:29:21]Write i2c OK [23:29:21]MH_I2C_Read... [23:29:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:29:21]Read from MH i2c: E2 [23:29:21]MH_I2C_Read... [23:29:21]Read from MH i2c: E2 0B 00 [23:29:21]MH_I2C_Read... [23:29:21]Read from MH i2c: E2 0B 00 8F 06 00 4D 30 34 49 50 FE 7E 20 90 00 F7 [23:29:21]RAPDU: 4D 30 34 49 50 FE 7E 20 90 00 [23:29:21]wFMCommunicate OK [23:29:21]SAM_PROTO_SignData done [23:29:21]FM_MakeSignedData done [23:29:21]CreateOFDProtocolMessage [23:29:21]wFMCommunicate request_size=4 [23:29:21]MH_SAM_APDU [23:29:21]CAPDU: 80 11 00 00 [23:29:21]Write to MH i2c: E2 08 00 90 06 80 11 00 00 00 00 00 00 10 [23:29:21]Write i2c OK [23:29:21]MH_I2C_Read... [23:29:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:29:21]Read from MH i2c: E2 [23:29:21]MH_I2C_Read... [23:29:21]Read from MH i2c: E2 17 00 [23:29:21]MH_I2C_Read... [23:29:21]Read from MH i2c: E2 17 00 90 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 63 [23:29:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:29:21]wFMCommunicate OK [23:29:21]CreateOFDProtocolMessage done [23:29:21]OFDSenderStorePacket 148227 [23:29:21]StoreOFDPacket docnum=148227 [23:29:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D2 BC 07 01 49 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F3 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 01 00 00 F4 03 04 00 4F 00 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 03 43 02 00 35 04 06 00 5D C0 D2 6F DD FC 4D 30 34 49 50 FE 7E 20 [23:29:21]CheckFolder [23:29:21]dirname=/storage/ofd_packets [23:29:21]CheckFolder done [23:29:21]ProducePacketName [23:29:21]name=ofd_packets/00148227 [23:29:21]NVStorageSaveData ofd_packets/00148227 [23:29:21]File name is /storage/ofd_packets/00148227 [23:29:21]Write 301 bytes [23:29:21]NVStorageSaveData done [23:29:21]OFDSenderStorePacket done [23:29:21]KKMCreateOFDPacket done [23:29:21]NVStorageSaveData kkm_last_timestamp [23:29:21]File name is /storage/kkm_last_timestamp [23:29:21]Write 4 bytes [23:29:21]NVStorageSaveData done [23:29:21]ExternCall_PrintAddStr [23:29:21]wPrintStart [23:29:21]Write to MH i2c: 01 00 00 91 06 97 [23:29:21]Write i2c OK [23:29:21]MH_I2C_Read... [23:29:21]Read from MH i2c: 01 [23:29:21]MH_I2C_Read... [23:29:21]Read from MH i2c: 01 07 00 [23:29:21]MH_I2C_Read... [23:29:21]Read from MH i2c: 01 07 00 91 06 00 00 00 00 00 FF 0F AC [23:29:21]RasterBufferAndPrint [23:29:21]line Счет N : (1)979165 [23:29:21]line ИНН: 02508201610067 [23:29:21]line Контрольно-Кассовый Чек [23:29:21]line ПРОДАЖА [23:29:21]line ТРК (МРК, ГНК) : 22 [23:29:21]line Товар: 2710124130 [23:29:21]line Аи-92-К-5 [23:29:21]line 5.280 * 66.40 [23:29:21]line = 350.59 [23:29:21]line НДС 12% НСП 1% [23:29:21]line > о реализуемом товаре [23:29:21]line ИТОГО: 350.59 [23:29:21]line НСП 1% : 3.10 [23:29:21]line НДС 12% : 37.23 [23:29:21]line Наличными: 0.00 [23:29:21]line Безнал.: 350.59 [23:29:21]line Место: АЗС № 68 "Партнер Нефть" [23:29:21]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [23:29:21]line СНО: Общий режим [23:29:21]line Чек 419 02.06.2024 23:29 [23:29:21]line Смена: 366 ФФД: 1.0 [23:29:21]line ЗНМ: 0300000035 [23:29:21]line РНМ: 0000000000092720 [23:29:21]line Версия ККМ: 001 [23:29:21]line Платежная система: KICB Банк [23:29:21]line ФМ: 0000000000875057 [23:29:21]line ФД: 148227 [23:29:21]line ФПД: 103082745650684 [23:29:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T232919&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148227&fm=103082745650684&tin=02508201610067®Number=0000000000092720&sum=35059 [23:29:21]OFD Sender: Processing packet 148227 [packets to send 99, broken 98] [23:29:21]ProducePacketName [23:29:21]name=ofd_packets/00148227 [23:29:21]OFD Sender: To server: pG, [23:29:21]CommunicateWithHost lk.salyk.kg:30040 [23:29:21]ConnectInit lk.salyk.kg [23:29:21]written 0, free lines is 4095 [23:29:21]Connected sock=10 [23:29:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D2 BC 07 01 49 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 F3 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F3 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F3 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 01 00 00 F4 03 04 00 4F 00 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 03 43 02 00 35 04 06 00 5D C0 D2 6F DD FC 4D 30 34 49 50 FE 7E 20 [23:29:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 E5 87 47 00 A9 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 03 43 02 00 F4 03 04 00 78 A7 5C 66 B6 04 01 00 00 52 26 E3 D9 2F 5E 66 84 [23:29:21]CommunicateWithHost err = 0 [23:29:21]CheckOFDResponse [23:29:21]1017 (14) - 77093643461234 [23:29:21]1041 (16) - 0000000000875057 [23:29:21]1040 (4) - 148227 [23:29:21]1012 (4) - 02.06.2024 17:10 [23:29:21]1206 (1) - 0 [23:29:21]OFD Sender: Remove packet 148227 [23:29:21]ProducePacketName [23:29:21]name=ofd_packets/00148227 [23:29:21]NVStorageDeleteData [23:29:21]Write to MH i2c: 01 00 00 BB 06 C1 [23:29:21]Write i2c OK [23:29:21]MH_I2C_Read... [23:29:21]Read from MH i2c: 01 [23:29:21]MH_I2C_Read... [23:29:21]Read from MH i2c: 01 07 00 [23:29:21]MH_I2C_Read... [23:29:21]Read from MH i2c: 01 07 00 BB 06 00 00 00 00 00 76 0C 4A [23:29:21]RasterBufferAndPrint [23:29:21]line [23:29:21]line [23:29:21]line [23:29:21]line [23:29:21]line [23:29:21]written 0, free lines is 3194 [23:29:21]MH_Cut [23:29:21]Write to MH i2c: D1 01 00 C2 06 01 9A [23:29:21]Write i2c OK [23:29:21]MH_I2C_Read... [23:29:21]Read from MH i2c: D1 [23:29:21]MH_I2C_Read... [23:29:21]Read from MH i2c: D1 01 00 [23:29:21]MH_I2C_Read... [23:29:21]Read from MH i2c: D1 01 00 C2 06 00 99 [23:29:21]Write to MH i2c: 01 00 00 C3 06 C9 [23:29:21]Write i2c OK [23:29:21]MH_I2C_Read... [23:29:22]OFD Sender: No OFD packet to send [23:29:23]*** Cut start [23:29:23]*** Partial cut [23:29:23]*** CUTSNS_PIN = 1 [23:29:23]*** CUTSNS_PIN = 0 [23:29:23]*** Brake cut motor [23:29:23]Read from MH i2c: 01 [23:29:23]MH_I2C_Read... [23:29:23]*** Stop cut motor [23:29:23]*** Cut end [23:29:23]Read from MH i2c: 01 07 00 [23:29:23]MH_I2C_Read... [23:29:23]Read from MH i2c: 01 07 00 C3 06 00 00 00 00 00 FF 0F DE [23:29:23]process_action close_receipt done [23:29:23]requested_data is exist [23:29:23]produce_requested_data [23:29:23]requested_item fm.sn is exist - process it [23:29:23]wFMCommunicate request_size=4 [23:29:23]MH_SAM_APDU [23:29:23]CAPDU: 80 11 00 00 [23:29:23]Write to MH i2c: E2 08 00 C4 06 80 11 00 00 00 00 00 00 44 [23:29:23]Write i2c OK [23:29:23]MH_I2C_Read... [23:29:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:29:23]Read from MH i2c: E2 [23:29:23]MH_I2C_Read... [23:29:23]Read from MH i2c: E2 17 00 [23:29:23]MH_I2C_Read... [23:29:23]Read from MH i2c: E2 17 00 C4 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 97 [23:29:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:29:23]wFMCommunicate OK [23:29:23]requested_item fd.num is exist - process it [23:29:23]SAM_PROTO_GetFieldsCounters [23:29:23]wFMCommunicate request_size=4 [23:29:23]MH_SAM_APDU [23:29:23]CAPDU: 80 13 00 00 [23:29:23]Write to MH i2c: E2 08 00 C5 06 80 13 00 00 00 00 00 00 47 [23:29:23]Write i2c OK [23:29:23]MH_I2C_Read... [23:29:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:29:24]Read from MH i2c: E2 [23:29:24]MH_I2C_Read... [23:29:24]Read from MH i2c: E2 62 00 [23:29:24]MH_I2C_Read... [23:29:24]Read from MH i2c: E2 62 00 C5 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 03 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 A3 01 00 00 5E 04 04 00 A3 01 00 00 57 04 04 00 A4 01 00 00 19 04 04 00 00 00 00 00 90 00 06 [23:29:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 03 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 A3 01 00 00 5E 04 04 00 A3 01 00 00 57 04 04 00 A4 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:29:24]wFMCommunicate OK [23:29:24]SAM_PROTO_GetFieldsCounters done [23:29:24]requested_item shift.num is exist - process it [23:29:24]requested_item shift.opened is exist - process it [23:29:24]req_shift_opened [23:29:24]FM_GetShiftState [23:29:24]SAM_PROTO_GetShiftState [23:29:24]wFMCommunicate request_size=4 [23:29:24]MH_SAM_APDU [23:29:24]CAPDU: 80 13 01 00 [23:29:24]Write to MH i2c: E2 08 00 C6 06 80 13 01 00 00 00 00 00 49 [23:29:24]Write i2c OK [23:29:24]MH_I2C_Read... [23:29:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:29:24]Read from MH i2c: E2 [23:29:24]MH_I2C_Read... [23:29:24]Read from MH i2c: E2 0E 00 [23:29:24]MH_I2C_Read... [23:29:24]Read from MH i2c: E2 0E 00 C6 06 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 61 [23:29:24]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [23:29:24]wFMCommunicate OK [23:29:24]SAM_PROTO_GetShiftState done [23:29:24]FM_GetShiftState done [23:29:24]req_shift_opened done [23:29:24]requested_item shift.open_date is exist - process it [23:29:24]req_shift_open_date [23:29:24]req_shift_open_date done [23:29:24]produce_requested_data done [23:29:24]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148227,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [23:29:24]process_action_free close_receipt [23:29:24]json_value_free [23:29:24]json_value_free done [23:29:24]process_json_proto returns [23:29:24]Send response to host [23:29:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148227,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [23:29:24]free response buf [23:29:24]execute_script done [23:29:24]execute_script returns [23:29:24]free content buf [23:29:24]Sock 9.Close socket [23:29:24]Sock 9.Thread stoped [23:29:27]OFD Sender: No OFD packet to send [23:29:32]OFD Sender: No OFD packet to send [23:29:37]OFD Sender: No OFD packet to send [23:29:42]OFD Sender: No OFD packet to send [23:29:47]OFD Sender: No OFD packet to send [23:29:52]OFD Sender: No OFD packet to send [23:29:57]OFD Sender: No OFD packet to send [23:30:02]OFD Sender: No OFD packet to send [23:30:07]OFD Sender: No OFD packet to send [23:30:12]OFD Sender: No OFD packet to send [23:30:17]OFD Sender: No OFD packet to send [23:30:22]OFD Sender: No OFD packet to send [23:30:27]OFD Sender: No OFD packet to send [23:30:32]OFD Sender: No OFD packet to send [23:30:37]OFD Sender: No OFD packet to send [23:30:42]OFD Sender: No OFD packet to send [23:30:47]OFD Sender: No OFD packet to send [23:30:52]OFD Sender: No OFD packet to send [23:30:57]OFD Sender: No OFD packet to send [23:31:02]OFD Sender: No OFD packet to send [23:31:07]OFD Sender: No OFD packet to send [23:31:12]OFD Sender: No OFD packet to send [23:31:17]OFD Sender: No OFD packet to send [23:31:22]OFD Sender: No OFD packet to send [23:31:27]OFD Sender: No OFD packet to send [23:31:32]OFD Sender: No OFD packet to send [23:31:37]OFD Sender: No OFD packet to send [23:31:42]OFD Sender: No OFD packet to send [23:31:47]OFD Sender: No OFD packet to send [23:31:52]OFD Sender: No OFD packet to send [23:31:57]OFD Sender: No OFD packet to send [23:32:02]OFD Sender: No OFD packet to send [23:32:07]OFD Sender: No OFD packet to send [23:32:12]OFD Sender: No OFD packet to send [23:32:17]OFD Sender: No OFD packet to send [23:32:22]OFD Sender: No OFD packet to send [23:32:27]OFD Sender: No OFD packet to send [23:32:32]OFD Sender: No OFD packet to send [23:32:37]OFD Sender: No OFD packet to send [23:32:42]OFD Sender: No OFD packet to send [23:32:47]OFD Sender: No OFD packet to send [23:32:52]OFD Sender: No OFD packet to send [23:32:57]OFD Sender: No OFD packet to send [23:33:02]OFD Sender: No OFD packet to send [23:33:04]accept exits with 8 [23:33:04]New connection [23:33:04]New thread 3067288932 created [23:33:04]Thread 3067432292 joined [23:33:04]Waiting for new connection... [23:33:04] Sock 8.Parse request [23:33:04]Sock 8.Check first char [23:33:04]Sock 8.First char is OK [23:33:04]request: POST /json_proto HTTP/1.0 [23:33:04]Method: POST [23:33:04]URL: /json_proto [23:33:04]Method is POST - this is cgi request [23:33:04]url: /json_proto [23:33:04]query_string will be loaded in cgi processing [23:33:04]execute_cgi json_proto POST (null) [23:33:04]execute_cgi path=json_proto method=POST [23:33:04]POST find Content-Length [23:33:04]Host: 172.17.38.4:8080 [23:33:04]Content-Length: 677 [23:33:04]Content-Type: application/json [23:33:04] [23:33:04]POST finish read [23:33:04]Found Content-Length = 677 [23:33:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:33:04]execute_script... [23:33:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 9.040, "sum" : 600.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:33:04]POST & json_proto [23:33:04]process_json_proto [23:33:04]json parsed OK: [23:33:04]protocol is kg_v1.0 [23:33:04]action value=close_receipt [23:33:04]process_action close_receipt [23:33:04]cmd_close_receipt [23:33:04]MH_GetDate [23:33:04]Write to MH i2c: F0 00 00 C7 06 BC [23:33:04]Write i2c OK [23:33:04]MH_I2C_Read... [23:33:04]Read from MH i2c: F0 [23:33:04]MH_I2C_Read... [23:33:04]Read from MH i2c: F0 09 00 [23:33:04]MH_I2C_Read... [23:33:04]Read from MH i2c: F0 09 00 C7 06 00 30 01 5D 66 CC 51 87 64 C1 [23:33:04]GetLastDocTimeStamp 1717370959 [23:33:04]current date 1717371184 [23:33:04]FM_GetShiftState [23:33:04]SAM_PROTO_GetShiftState [23:33:04]wFMCommunicate request_size=4 [23:33:04]MH_SAM_APDU [23:33:04]CAPDU: 80 13 01 00 [23:33:04]Write to MH i2c: E2 08 00 C8 06 80 13 01 00 00 00 00 00 4B [23:33:04]Write i2c OK [23:33:04]MH_I2C_Read... [23:33:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:33:04]Read from MH i2c: E2 [23:33:04]MH_I2C_Read... [23:33:04]Read from MH i2c: E2 0E 00 [23:33:04]MH_I2C_Read... [23:33:04]Read from MH i2c: E2 0E 00 C8 06 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 63 [23:33:04]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [23:33:04]wFMCommunicate OK [23:33:04]SAM_PROTO_GetShiftState done [23:33:04]FM_GetShiftState done [23:33:04]opened in 1717287824 [23:33:04]opened+sec_in_day 1717374224 [23:33:04]quantity*price = 60025 [23:33:04]sum+1 = 60027 [23:33:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 420 02.06.2024 23:33 Смена: 366 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148228 ФПД: 155836987683010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T233304&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148228&fm=155836987683010&tin=02508201610067®Number=0000000000092720&sum=60000 [23:33:05]StoreToDocumentArchive [23:33:05]shift 366 fd 148228 [23:33:05]save to /storage/0366/doc_00148228 [23:33:05]save last doc name /storage/0366/doc_00148228 to /storage/kkm_last_doc_name [23:33:05]save OK [23:33:05]Clear old archive folders... [23:33:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:33:05]tlvbuf is 011DEC00 [23:33:05]SAM_PROTO_ClearQueue [23:33:05]wFMCommunicate request_size=4 [23:33:05]MH_SAM_APDU [23:33:05]CAPDU: 80 09 00 00 [23:33:05]Write to MH i2c: E2 08 00 D5 06 80 09 00 00 00 00 00 00 4D [23:33:05]Write i2c OK [23:33:05]MH_I2C_Read... [23:33:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:33:05]Read from MH i2c: E2 [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: E2 03 00 [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: E2 03 00 D5 06 00 90 00 4F [23:33:05]RAPDU: 90 00 [23:33:05]wFMCommunicate OK [23:33:05]SAM_PROTO_ClearQueue done [23:33:05]KKMCreateOFDPacket [23:33:05]OFDProtocolAddRootSTLVToBuf [23:33:05]FM_MakeSignedData [23:33:05]FM_MakeSignedData [23:33:05]SAM_PROTO_SignData [23:33:05]wFMCommunicate request_size=4 [23:33:05]MH_SAM_APDU [23:33:05]CAPDU: 80 0D 01 02 [23:33:05]Write to MH i2c: E2 08 00 D6 06 80 0D 01 02 00 00 00 00 55 [23:33:05]Write i2c OK [23:33:05]MH_I2C_Read... [23:33:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:33:05]Read from MH i2c: E2 [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: E2 03 00 [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: E2 03 00 D6 06 00 90 00 50 [23:33:05]RAPDU: 90 00 [23:33:05]wFMCommunicate OK [23:33:05]wFMCommunicate request_size=255 [23:33:05]MH_SAM_APDU [23:33:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 01 00 00 F4 03 04 00 30 01 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 04 43 02 00 35 04 06 00 8D [23:33:05]Write to MH i2c: E2 02 01 D7 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 01 00 00 F4 03 04 00 30 01 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 04 43 02 00 35 04 06 00 8D 00 00 BF [23:33:05]Write i2c OK [23:33:05]MH_I2C_Read... [23:33:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:33:05]Read from MH i2c: E2 [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: E2 03 00 [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: E2 03 00 D7 06 00 90 00 51 [23:33:05]RAPDU: 90 00 [23:33:05]wFMCommunicate OK [23:33:05]wFMCommunicate request_size=10 [23:33:05]MH_SAM_APDU [23:33:05]CAPDU: 80 0D 02 02 05 BB A0 4B 30 C2 [23:33:05]Write to MH i2c: E2 0D 00 D8 06 80 0D 02 02 05 00 BB A0 4B 30 C2 00 00 FA [23:33:05]Write i2c OK [23:33:05]MH_I2C_Read... [23:33:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:33:05]Read from MH i2c: E2 [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: E2 03 00 [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: E2 03 00 D8 06 00 90 00 52 [23:33:05]RAPDU: 90 00 [23:33:05]wFMCommunicate OK [23:33:05]wFMCommunicate request_size=4 [23:33:05]MH_SAM_APDU [23:33:05]CAPDU: 80 0D 03 02 [23:33:05]Write to MH i2c: E2 08 00 D9 06 80 0D 03 02 00 00 00 00 5A [23:33:05]Write i2c OK [23:33:05]MH_I2C_Read... [23:33:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:33:05]Read from MH i2c: E2 [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: E2 0B 00 [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: E2 0B 00 D9 06 00 5D E9 67 C3 B2 85 D0 F0 90 00 C2 [23:33:05]RAPDU: 5D E9 67 C3 B2 85 D0 F0 90 00 [23:33:05]wFMCommunicate OK [23:33:05]SAM_PROTO_SignData done [23:33:05]FM_MakeSignedData done [23:33:05]CreateOFDProtocolMessage [23:33:05]wFMCommunicate request_size=4 [23:33:05]MH_SAM_APDU [23:33:05]CAPDU: 80 11 00 00 [23:33:05]Write to MH i2c: E2 08 00 DA 06 80 11 00 00 00 00 00 00 5A [23:33:05]Write i2c OK [23:33:05]MH_I2C_Read... [23:33:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:33:05]Read from MH i2c: E2 [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: E2 17 00 [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: E2 17 00 DA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 AD [23:33:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:33:05]wFMCommunicate OK [23:33:05]CreateOFDProtocolMessage done [23:33:05]OFDSenderStorePacket 148228 [23:33:05]StoreOFDPacket docnum=148228 [23:33:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D4 A1 07 01 BC EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 01 00 00 F4 03 04 00 30 01 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 04 43 02 00 35 04 06 00 8D BB A0 4B 30 C2 5D E9 67 C3 B2 85 D0 F0 [23:33:05]CheckFolder [23:33:05]dirname=/storage/ofd_packets [23:33:05]CheckFolder done [23:33:05]ProducePacketName [23:33:05]name=ofd_packets/00148228 [23:33:05]NVStorageSaveData ofd_packets/00148228 [23:33:05]File name is /storage/ofd_packets/00148228 [23:33:05]Write 301 bytes [23:33:05]NVStorageSaveData done [23:33:05]OFDSenderStorePacket done [23:33:05]KKMCreateOFDPacket done [23:33:05]NVStorageSaveData kkm_last_timestamp [23:33:05]File name is /storage/kkm_last_timestamp [23:33:05]Write 4 bytes [23:33:05]NVStorageSaveData done [23:33:05]ExternCall_PrintAddStr [23:33:05]wPrintStart [23:33:05]Write to MH i2c: 01 00 00 DB 06 E1 [23:33:05]Write i2c OK [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: 01 [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: 01 07 00 [23:33:05]MH_I2C_Read... [23:33:05]Read from MH i2c: 01 07 00 DB 06 00 00 00 00 00 FF 0F F6 [23:33:05]RasterBufferAndPrint [23:33:05]line Счет N : (1)979166 [23:33:05]line ИНН: 02508201610067 [23:33:05]line Контрольно-Кассовый Чек [23:33:05]line ПРОДАЖА [23:33:05]line ТРК (МРК, ГНК) : 12 [23:33:05]line Товар: 2710124130 [23:33:05]line Аи-92-К-5 [23:33:05]line 9.040 * 66.40 [23:33:05]line = 600.26 [23:33:05]line НДС 12% НСП 1% [23:33:05]line > о реализуемом товаре [23:33:05]line ОКРУГЛЕНИЕ: -0.26 [23:33:05]line ИТОГО: 600.00 [23:33:05]line Внесено: 600.00 [23:33:05]line СДАЧА: 0.00 [23:33:05]line НСП 1% : 5.31 [23:33:05]line НДС 12% : 63.74 [23:33:05]line Наличными: 600.00 [23:33:05]line Безнал.: 0.00 [23:33:05]line Место: АЗС № 68 "Партнер Нефть" [23:33:05]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [23:33:05]line СНО: Общий режим [23:33:05]line Чек 420 02.06.2024 23:33 [23:33:05]line Смена: 366 ФФД: 1.0 [23:33:05]line ЗНМ: 0300000035 [23:33:05]line РНМ: 0000000000092720 [23:33:05]line Версия ККМ: 001 [23:33:06]line ФМ: 0000000000875057 [23:33:06]line ФД: 148228 [23:33:06]line ФПД: 155836987683010 [23:33:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T233304&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148228&fm=155836987683010&tin=02508201610067®Number=0000000000092720&sum=60000 [23:33:06]OFD Sender: Processing packet 148228 [packets to send 99, broken 98] [23:33:06]ProducePacketName [23:33:06]name=ofd_packets/00148228 [23:33:06]OFD Sender: To server: pG, [23:33:06]CommunicateWithHost lk.salyk.kg:30040 [23:33:06]ConnectInit lk.salyk.kg [23:33:06]written 0, free lines is 4095 [23:33:06]Connected sock=10 [23:33:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 D4 A1 07 01 BC EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 23 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 7A EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 01 00 00 F4 03 04 00 30 01 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 04 43 02 00 35 04 06 00 8D BB A0 4B 30 C2 5D E9 67 C3 B2 85 D0 F0 [23:33:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 AB 8D 47 00 5E F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 04 43 02 00 F4 03 04 00 59 A8 5C 66 B6 04 01 00 00 72 3A 2E E6 60 15 BE 99 [23:33:06]CommunicateWithHost err = 0 [23:33:06]CheckOFDResponse [23:33:06]1017 (14) - 77093643461234 [23:33:06]1041 (16) - 0000000000875057 [23:33:06]1040 (4) - 148228 [23:33:06]1012 (4) - 02.06.2024 17:14 [23:33:06]1206 (1) - 0 [23:33:06]OFD Sender: Remove packet 148228 [23:33:06]ProducePacketName [23:33:06]name=ofd_packets/00148228 [23:33:06]NVStorageDeleteData [23:33:06]Write to MH i2c: 01 00 00 06 07 0D [23:33:06]Write i2c OK [23:33:06]MH_I2C_Read... [23:33:06]Read from MH i2c: 01 [23:33:06]MH_I2C_Read... [23:33:06]Read from MH i2c: 01 07 00 [23:33:06]MH_I2C_Read... [23:33:06]Read from MH i2c: 01 07 00 06 07 00 00 00 00 00 6B 0C 8B [23:33:06]RasterBufferAndPrint [23:33:06]line [23:33:06]line [23:33:06]line [23:33:06]line [23:33:06]line [23:33:06]written 0, free lines is 3182 [23:33:06]MH_Cut [23:33:06]Write to MH i2c: D1 01 00 0D 07 01 E6 [23:33:06]Write i2c OK [23:33:06]MH_I2C_Read... [23:33:06]Read from MH i2c: D1 [23:33:06]MH_I2C_Read... [23:33:06]Read from MH i2c: D1 01 00 [23:33:06]MH_I2C_Read... [23:33:06]Read from MH i2c: D1 01 00 0D 07 00 E5 [23:33:06]Write to MH i2c: 01 00 00 0E 07 15 [23:33:06]Write i2c OK [23:33:06]MH_I2C_Read... [23:33:06]OFD Sender: No OFD packet to send [23:33:07]*** Cut start [23:33:07]*** Partial cut [23:33:07]*** CUTSNS_PIN = 1 [23:33:07]*** CUTSNS_PIN = 0 [23:33:08]*** Brake cut motor [23:33:08]Read from MH i2c: 01 [23:33:08]MH_I2C_Read... [23:33:08]*** Stop cut motor [23:33:08]*** Cut end [23:33:08]Read from MH i2c: 01 07 00 [23:33:08]MH_I2C_Read... [23:33:08]Read from MH i2c: 01 07 00 0E 07 00 00 00 00 00 FF 0F 2A [23:33:08]process_action close_receipt done [23:33:08]requested_data is exist [23:33:08]produce_requested_data [23:33:08]requested_item fm.sn is exist - process it [23:33:08]wFMCommunicate request_size=4 [23:33:08]MH_SAM_APDU [23:33:08]CAPDU: 80 11 00 00 [23:33:08]Write to MH i2c: E2 08 00 0F 07 80 11 00 00 00 00 00 00 90 [23:33:08]Write i2c OK [23:33:08]MH_I2C_Read... [23:33:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:33:08]Read from MH i2c: E2 [23:33:08]MH_I2C_Read... [23:33:08]Read from MH i2c: E2 17 00 [23:33:08]MH_I2C_Read... [23:33:08]Read from MH i2c: E2 17 00 0F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 E3 [23:33:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:33:08]wFMCommunicate OK [23:33:08]requested_item fd.num is exist - process it [23:33:08]SAM_PROTO_GetFieldsCounters [23:33:08]wFMCommunicate request_size=4 [23:33:08]MH_SAM_APDU [23:33:08]CAPDU: 80 13 00 00 [23:33:08]Write to MH i2c: E2 08 00 10 07 80 13 00 00 00 00 00 00 93 [23:33:08]Write i2c OK [23:33:08]MH_I2C_Read... [23:33:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:33:08]Read from MH i2c: E2 [23:33:08]MH_I2C_Read... [23:33:08]Read from MH i2c: E2 62 00 [23:33:08]MH_I2C_Read... [23:33:08]Read from MH i2c: E2 62 00 10 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 04 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 A4 01 00 00 5E 04 04 00 A4 01 00 00 57 04 04 00 A5 01 00 00 19 04 04 00 00 00 00 00 90 00 56 [23:33:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 04 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 A4 01 00 00 5E 04 04 00 A4 01 00 00 57 04 04 00 A5 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:33:08]wFMCommunicate OK [23:33:08]SAM_PROTO_GetFieldsCounters done [23:33:08]requested_item shift.num is exist - process it [23:33:08]requested_item shift.opened is exist - process it [23:33:08]req_shift_opened [23:33:08]FM_GetShiftState [23:33:08]SAM_PROTO_GetShiftState [23:33:08]wFMCommunicate request_size=4 [23:33:08]MH_SAM_APDU [23:33:08]CAPDU: 80 13 01 00 [23:33:08]Write to MH i2c: E2 08 00 11 07 80 13 01 00 00 00 00 00 95 [23:33:08]Write i2c OK [23:33:08]MH_I2C_Read... [23:33:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:33:08]Read from MH i2c: E2 [23:33:08]MH_I2C_Read... [23:33:08]Read from MH i2c: E2 0E 00 [23:33:08]MH_I2C_Read... [23:33:08]Read from MH i2c: E2 0E 00 11 07 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 AD [23:33:08]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [23:33:08]wFMCommunicate OK [23:33:08]SAM_PROTO_GetShiftState done [23:33:08]FM_GetShiftState done [23:33:08]req_shift_opened done [23:33:08]requested_item shift.open_date is exist - process it [23:33:08]req_shift_open_date [23:33:08]req_shift_open_date done [23:33:08]produce_requested_data done [23:33:08]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148228,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [23:33:08]process_action_free close_receipt [23:33:08]json_value_free [23:33:08]json_value_free done [23:33:08]process_json_proto returns [23:33:08]Send response to host [23:33:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148228,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [23:33:08]free response buf [23:33:08]execute_script done [23:33:08]execute_script returns [23:33:08]free content buf [23:33:08]Sock 8.Close socket [23:33:08]Sock 8.Thread stoped [23:33:11]OFD Sender: No OFD packet to send [23:33:16]OFD Sender: No OFD packet to send [23:33:21]OFD Sender: No OFD packet to send [23:33:26]OFD Sender: No OFD packet to send [23:33:31]OFD Sender: No OFD packet to send [23:33:36]OFD Sender: No OFD packet to send [23:33:41]OFD Sender: No OFD packet to send [23:33:46]OFD Sender: No OFD packet to send [23:33:51]OFD Sender: No OFD packet to send [23:33:56]OFD Sender: No OFD packet to send [23:34:01]OFD Sender: No OFD packet to send [23:34:06]OFD Sender: No OFD packet to send [23:34:11]OFD Sender: No OFD packet to send [23:34:17]OFD Sender: No OFD packet to send [23:34:22]OFD Sender: No OFD packet to send [23:34:27]OFD Sender: No OFD packet to send [23:34:30]accept exits with 9 [23:34:30]New connection [23:34:30]New thread 3067432292 created [23:34:30]Thread 3067288932 joined [23:34:30]Waiting for new connection... [23:34:30] Sock 9.Parse request [23:34:30]Sock 9.Check first char [23:34:30]Sock 9.First char is OK [23:34:30]request: POST /json_proto HTTP/1.0 [23:34:30]Method: POST [23:34:30]URL: /json_proto [23:34:30]Method is POST - this is cgi request [23:34:30]url: /json_proto [23:34:30]query_string will be loaded in cgi processing [23:34:30]execute_cgi json_proto POST (null) [23:34:30]execute_cgi path=json_proto method=POST [23:34:30]POST find Content-Length [23:34:30]Host: 172.17.38.4:8080 [23:34:30]Content-Length: 682 [23:34:30]Content-Type: application/json [23:34:30] [23:34:30]POST finish read [23:34:30]Found Content-Length = 682 [23:34:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:30]execute_script... [23:34:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 15.070, "sum" : 1000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:30]POST & json_proto [23:34:30]process_json_proto [23:34:30]json parsed OK: [23:34:30]protocol is kg_v1.0 [23:34:30]action value=close_receipt [23:34:30]process_action close_receipt [23:34:30]cmd_close_receipt [23:34:30]MH_GetDate [23:34:30]Write to MH i2c: F0 00 00 12 07 08 [23:34:30]Write i2c OK [23:34:30]MH_I2C_Read... [23:34:30]Read from MH i2c: F0 [23:34:30]MH_I2C_Read... [23:34:30]Read from MH i2c: F0 09 00 [23:34:30]MH_I2C_Read... [23:34:30]Read from MH i2c: F0 09 00 12 07 00 86 01 5D 66 CC 51 87 64 63 [23:34:30]GetLastDocTimeStamp 1717371184 [23:34:30]current date 1717371270 [23:34:30]FM_GetShiftState [23:34:30]SAM_PROTO_GetShiftState [23:34:30]wFMCommunicate request_size=4 [23:34:30]MH_SAM_APDU [23:34:30]CAPDU: 80 13 01 00 [23:34:30]Write to MH i2c: E2 08 00 13 07 80 13 01 00 00 00 00 00 97 [23:34:30]Write i2c OK [23:34:30]MH_I2C_Read... [23:34:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:30]Read from MH i2c: E2 [23:34:30]MH_I2C_Read... [23:34:30]Read from MH i2c: E2 0E 00 [23:34:30]MH_I2C_Read... [23:34:30]Read from MH i2c: E2 0E 00 13 07 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 AF [23:34:30]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [23:34:30]wFMCommunicate OK [23:34:30]SAM_PROTO_GetShiftState done [23:34:30]FM_GetShiftState done [23:34:30]opened in 1717287824 [23:34:30]opened+sec_in_day 1717374224 [23:34:30]quantity*price = 100064 [23:34:30]sum+1 = 100066 [23:34:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 421 02.06.2024 23:34 Смена: 366 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148229 ФПД: 51970181207020 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T233430&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148229&fm=51970181207020&tin=02508201610067®Number=0000000000092720&sum=100000 [23:34:31]StoreToDocumentArchive [23:34:31]shift 366 fd 148229 [23:34:31]save to /storage/0366/doc_00148229 [23:34:31]save last doc name /storage/0366/doc_00148229 to /storage/kkm_last_doc_name [23:34:31]save OK [23:34:31]Clear old archive folders... [23:34:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:34:31]tlvbuf is 0112A030 [23:34:31]SAM_PROTO_ClearQueue [23:34:31]wFMCommunicate request_size=4 [23:34:31]MH_SAM_APDU [23:34:31]CAPDU: 80 09 00 00 [23:34:31]Write to MH i2c: E2 08 00 20 07 80 09 00 00 00 00 00 00 99 [23:34:31]Write i2c OK [23:34:31]MH_I2C_Read... [23:34:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:34:31]Read from MH i2c: E2 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: E2 03 00 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: E2 03 00 20 07 00 90 00 9B [23:34:31]RAPDU: 90 00 [23:34:31]wFMCommunicate OK [23:34:31]SAM_PROTO_ClearQueue done [23:34:31]KKMCreateOFDPacket [23:34:31]OFDProtocolAddRootSTLVToBuf [23:34:31]FM_MakeSignedData [23:34:31]FM_MakeSignedData [23:34:31]SAM_PROTO_SignData [23:34:31]wFMCommunicate request_size=4 [23:34:31]MH_SAM_APDU [23:34:31]CAPDU: 80 0D 01 02 [23:34:31]Write to MH i2c: E2 08 00 21 07 80 0D 01 02 00 00 00 00 A1 [23:34:31]Write i2c OK [23:34:31]MH_I2C_Read... [23:34:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:34:31]Read from MH i2c: E2 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: E2 03 00 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: E2 03 00 21 07 00 90 00 9C [23:34:31]RAPDU: 90 00 [23:34:31]wFMCommunicate OK [23:34:31]wFMCommunicate request_size=255 [23:34:31]MH_SAM_APDU [23:34:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 01 00 00 F4 03 04 00 86 01 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 05 43 02 00 35 04 06 00 2F [23:34:31]Write to MH i2c: E2 02 01 22 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 01 00 00 F4 03 04 00 86 01 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 05 43 02 00 35 04 06 00 2F 00 00 78 [23:34:31]Write i2c OK [23:34:31]MH_I2C_Read... [23:34:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:31]Read from MH i2c: E2 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: E2 03 00 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: E2 03 00 22 07 00 90 00 9D [23:34:31]RAPDU: 90 00 [23:34:31]wFMCommunicate OK [23:34:31]wFMCommunicate request_size=10 [23:34:31]MH_SAM_APDU [23:34:31]CAPDU: 80 0D 02 02 05 44 40 30 93 EC [23:34:31]Write to MH i2c: E2 0D 00 23 07 80 0D 02 02 05 00 44 40 30 93 EC 00 00 E1 [23:34:31]Write i2c OK [23:34:31]MH_I2C_Read... [23:34:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:31]Read from MH i2c: E2 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: E2 03 00 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: E2 03 00 23 07 00 90 00 9E [23:34:31]RAPDU: 90 00 [23:34:31]wFMCommunicate OK [23:34:31]wFMCommunicate request_size=4 [23:34:31]MH_SAM_APDU [23:34:31]CAPDU: 80 0D 03 02 [23:34:31]Write to MH i2c: E2 08 00 24 07 80 0D 03 02 00 00 00 00 A6 [23:34:31]Write i2c OK [23:34:31]MH_I2C_Read... [23:34:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:34:31]Read from MH i2c: E2 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: E2 0B 00 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: E2 0B 00 24 07 00 5C 53 67 3C 4E C5 F2 D1 90 00 CF [23:34:31]RAPDU: 5C 53 67 3C 4E C5 F2 D1 90 00 [23:34:31]wFMCommunicate OK [23:34:31]SAM_PROTO_SignData done [23:34:31]FM_MakeSignedData done [23:34:31]CreateOFDProtocolMessage [23:34:31]wFMCommunicate request_size=4 [23:34:31]MH_SAM_APDU [23:34:31]CAPDU: 80 11 00 00 [23:34:31]Write to MH i2c: E2 08 00 25 07 80 11 00 00 00 00 00 00 A6 [23:34:31]Write i2c OK [23:34:31]MH_I2C_Read... [23:34:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:31]Read from MH i2c: E2 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: E2 17 00 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: E2 17 00 25 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F9 [23:34:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:34:31]wFMCommunicate OK [23:34:31]CreateOFDProtocolMessage done [23:34:31]OFDSenderStorePacket 148229 [23:34:31]StoreOFDPacket docnum=148229 [23:34:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 19 5A 07 01 05 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 01 00 00 F4 03 04 00 86 01 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 05 43 02 00 35 04 06 00 2F 44 40 30 93 EC 5C 53 67 3C 4E C5 F2 D1 [23:34:31]CheckFolder [23:34:31]dirname=/storage/ofd_packets [23:34:31]CheckFolder done [23:34:31]ProducePacketName [23:34:31]name=ofd_packets/00148229 [23:34:31]NVStorageSaveData ofd_packets/00148229 [23:34:31]File name is /storage/ofd_packets/00148229 [23:34:31]Write 301 bytes [23:34:31]NVStorageSaveData done [23:34:31]OFDSenderStorePacket done [23:34:31]KKMCreateOFDPacket done [23:34:31]NVStorageSaveData kkm_last_timestamp [23:34:31]File name is /storage/kkm_last_timestamp [23:34:31]Write 4 bytes [23:34:31]NVStorageSaveData done [23:34:31]ExternCall_PrintAddStr [23:34:31]wPrintStart [23:34:31]Write to MH i2c: 01 00 00 26 07 2D [23:34:31]Write i2c OK [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: 01 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: 01 07 00 [23:34:31]MH_I2C_Read... [23:34:31]Read from MH i2c: 01 07 00 26 07 00 00 00 00 00 FF 0F 42 [23:34:31]RasterBufferAndPrint [23:34:31]line Счет N : (1)979167 [23:34:31]line ИНН: 02508201610067 [23:34:31]line Контрольно-Кассовый Чек [23:34:31]line ПРОДАЖА [23:34:31]line ТРК (МРК, ГНК) : 12 [23:34:31]line Товар: 2710124130 [23:34:31]line Аи-92-К-5 [23:34:31]line 15.070 * 66.40 [23:34:31]line = 1000.65 [23:34:31]line НДС 12% НСП 1% [23:34:31]line > о реализуемом товаре [23:34:31]line ОКРУГЛЕНИЕ: -0.65 [23:34:31]line ИТОГО: 1000.00 [23:34:31]line Внесено: 1000.00 [23:34:31]line СДАЧА: 0.00 [23:34:31]line НСП 1% : 8.85 [23:34:31]line НДС 12% : 106.26 [23:34:31]line Наличными: 1000.00 [23:34:31]line Безнал.: 0.00 [23:34:31]line Место: АЗС № 68 "Партнер Нефть" [23:34:31]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [23:34:31]line СНО: Общий режим [23:34:31]line Чек 421 02.06.2024 23:34 [23:34:31]line Смена: 366 ФФД: 1.0 [23:34:31]line ЗНМ: 0300000035 [23:34:31]line РНМ: 0000000000092720 [23:34:31]line Версия ККМ: 001 [23:34:31]line ФМ: 0000000000875057 [23:34:31]line ФД: 148229 [23:34:31]line ФПД: 51970181207020 [23:34:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T233430&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148229&fm=51970181207020&tin=02508201610067®Number=0000000000092720&sum=100000 [23:34:32]OFD Sender: Processing packet 148229 [packets to send 99, broken 98] [23:34:32]ProducePacketName [23:34:32]name=ofd_packets/00148229 [23:34:32]OFD Sender: To server: pG, [23:34:32]CommunicateWithHost lk.salyk.kg:30040 [23:34:32]ConnectInit lk.salyk.kg [23:34:32]written 0, free lines is 4095 [23:34:32]Connected sock=10 [23:34:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 19 5A 07 01 05 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 E1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 01 00 00 F4 03 04 00 86 01 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 05 43 02 00 35 04 06 00 2F 44 40 30 93 EC 5C 53 67 3C 4E C5 F2 D1 [23:34:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 05 32 47 00 4E 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 05 43 02 00 F4 03 04 00 AF A8 5C 66 B6 04 01 00 00 B2 3E 02 DF 42 67 74 4C [23:34:32]CommunicateWithHost err = 0 [23:34:32]CheckOFDResponse [23:34:32]1017 (14) - 77093643461234 [23:34:32]1041 (16) - 0000000000875057 [23:34:32]1040 (4) - 148229 [23:34:32]1012 (4) - 02.06.2024 17:15 [23:34:32]1206 (1) - 0 [23:34:32]OFD Sender: Remove packet 148229 [23:34:32]ProducePacketName [23:34:32]name=ofd_packets/00148229 [23:34:32]NVStorageDeleteData [23:34:32]Write to MH i2c: 01 00 00 51 07 58 [23:34:32]Write i2c OK [23:34:32]MH_I2C_Read... [23:34:32]Read from MH i2c: 01 [23:34:32]MH_I2C_Read... [23:34:32]Read from MH i2c: 01 07 00 [23:34:32]MH_I2C_Read... [23:34:32]Read from MH i2c: 01 07 00 51 07 00 00 00 00 00 64 0C CF [23:34:32]RasterBufferAndPrint [23:34:32]line [23:34:32]line [23:34:32]line [23:34:32]line [23:34:32]line [23:34:32]written 0, free lines is 3176 [23:34:32]MH_Cut [23:34:32]Write to MH i2c: D1 01 00 58 07 01 31 [23:34:32]Write i2c OK [23:34:32]MH_I2C_Read... [23:34:32]Read from MH i2c: D1 [23:34:32]MH_I2C_Read... [23:34:32]Read from MH i2c: D1 01 00 [23:34:32]MH_I2C_Read... [23:34:32]Read from MH i2c: D1 01 00 58 07 00 30 [23:34:32]Write to MH i2c: 01 00 00 59 07 60 [23:34:32]Write i2c OK [23:34:32]MH_I2C_Read... [23:34:32]OFD Sender: No OFD packet to send [23:34:33]*** Cut start [23:34:33]*** Partial cut [23:34:33]*** CUTSNS_PIN = 1 [23:34:33]*** CUTSNS_PIN = 0 [23:34:34]*** Brake cut motor [23:34:34]Read from MH i2c: 01 [23:34:34]MH_I2C_Read... [23:34:34]*** Stop cut motor [23:34:34]*** Cut end [23:34:34]Read from MH i2c: 01 07 00 [23:34:34]MH_I2C_Read... [23:34:34]Read from MH i2c: 01 07 00 59 07 00 00 00 00 00 FF 0F 75 [23:34:34]process_action close_receipt done [23:34:34]requested_data is exist [23:34:34]produce_requested_data [23:34:34]requested_item fm.sn is exist - process it [23:34:34]wFMCommunicate request_size=4 [23:34:34]MH_SAM_APDU [23:34:34]CAPDU: 80 11 00 00 [23:34:34]Write to MH i2c: E2 08 00 5A 07 80 11 00 00 00 00 00 00 DB [23:34:34]Write i2c OK [23:34:34]MH_I2C_Read... [23:34:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:34]Read from MH i2c: E2 [23:34:34]MH_I2C_Read... [23:34:34]Read from MH i2c: E2 17 00 [23:34:34]MH_I2C_Read... [23:34:34]Read from MH i2c: E2 17 00 5A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 2E [23:34:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:34:34]wFMCommunicate OK [23:34:34]requested_item fd.num is exist - process it [23:34:34]SAM_PROTO_GetFieldsCounters [23:34:34]wFMCommunicate request_size=4 [23:34:34]MH_SAM_APDU [23:34:34]CAPDU: 80 13 00 00 [23:34:34]Write to MH i2c: E2 08 00 5B 07 80 13 00 00 00 00 00 00 DE [23:34:34]Write i2c OK [23:34:34]MH_I2C_Read... [23:34:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:34:34]Read from MH i2c: E2 [23:34:34]MH_I2C_Read... [23:34:34]Read from MH i2c: E2 62 00 [23:34:34]MH_I2C_Read... [23:34:34]Read from MH i2c: E2 62 00 5B 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 05 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 A5 01 00 00 5E 04 04 00 A5 01 00 00 57 04 04 00 A6 01 00 00 19 04 04 00 00 00 00 00 90 00 A5 [23:34:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 05 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 A5 01 00 00 5E 04 04 00 A5 01 00 00 57 04 04 00 A6 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:34:34]wFMCommunicate OK [23:34:34]SAM_PROTO_GetFieldsCounters done [23:34:34]requested_item shift.num is exist - process it [23:34:34]requested_item shift.opened is exist - process it [23:34:34]req_shift_opened [23:34:34]FM_GetShiftState [23:34:34]SAM_PROTO_GetShiftState [23:34:34]wFMCommunicate request_size=4 [23:34:34]MH_SAM_APDU [23:34:34]CAPDU: 80 13 01 00 [23:34:34]Write to MH i2c: E2 08 00 5C 07 80 13 01 00 00 00 00 00 E0 [23:34:34]Write i2c OK [23:34:34]MH_I2C_Read... [23:34:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:34]Read from MH i2c: E2 [23:34:34]MH_I2C_Read... [23:34:34]Read from MH i2c: E2 0E 00 [23:34:34]MH_I2C_Read... [23:34:34]Read from MH i2c: E2 0E 00 5C 07 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 F8 [23:34:34]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [23:34:34]wFMCommunicate OK [23:34:34]SAM_PROTO_GetShiftState done [23:34:34]FM_GetShiftState done [23:34:34]req_shift_opened done [23:34:34]requested_item shift.open_date is exist - process it [23:34:34]req_shift_open_date [23:34:34]req_shift_open_date done [23:34:34]produce_requested_data done [23:34:34]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148229,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [23:34:34]process_action_free close_receipt [23:34:34]json_value_free [23:34:34]json_value_free done [23:34:34]process_json_proto returns [23:34:34]Send response to host [23:34:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148229,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [23:34:34]free response buf [23:34:34]execute_script done [23:34:34]execute_script returns [23:34:34]free content buf [23:34:34]Sock 9.Close socket [23:34:34]Sock 9.Thread stoped [23:34:37]OFD Sender: No OFD packet to send [23:34:42]OFD Sender: No OFD packet to send [23:34:47]OFD Sender: No OFD packet to send [23:34:52]OFD Sender: No OFD packet to send [23:34:57]OFD Sender: No OFD packet to send [23:35:02]OFD Sender: No OFD packet to send [23:35:07]OFD Sender: No OFD packet to send [23:35:12]OFD Sender: No OFD packet to send [23:35:17]OFD Sender: No OFD packet to send [23:35:22]OFD Sender: No OFD packet to send [23:35:27]OFD Sender: No OFD packet to send [23:35:32]OFD Sender: No OFD packet to send [23:35:37]OFD Sender: No OFD packet to send [23:35:42]OFD Sender: No OFD packet to send [23:35:47]OFD Sender: No OFD packet to send [23:35:52]OFD Sender: No OFD packet to send [23:35:57]OFD Sender: No OFD packet to send [23:36:02]OFD Sender: No OFD packet to send [23:36:07]OFD Sender: No OFD packet to send [23:36:12]OFD Sender: No OFD packet to send [23:36:17]OFD Sender: No OFD packet to send [23:36:22]OFD Sender: No OFD packet to send [23:36:27]OFD Sender: No OFD packet to send [23:36:32]OFD Sender: No OFD packet to send [23:36:37]OFD Sender: No OFD packet to send [23:36:42]OFD Sender: No OFD packet to send [23:36:47]OFD Sender: No OFD packet to send [23:36:52]OFD Sender: No OFD packet to send [23:36:57]OFD Sender: No OFD packet to send [23:37:02]OFD Sender: No OFD packet to send [23:37:07]OFD Sender: No OFD packet to send [23:37:12]OFD Sender: No OFD packet to send [23:37:17]OFD Sender: No OFD packet to send [23:37:22]OFD Sender: No OFD packet to send [23:37:28]OFD Sender: No OFD packet to send [23:37:33]OFD Sender: No OFD packet to send [23:37:38]OFD Sender: No OFD packet to send [23:37:43]OFD Sender: No OFD packet to send [23:37:48]OFD Sender: No OFD packet to send [23:37:50]accept exits with 8 [23:37:50]New connection [23:37:50]New thread 3067288932 created [23:37:50]Thread 3067432292 joined [23:37:50]Waiting for new connection... [23:37:50] Sock 8.Parse request [23:37:50]Sock 8.Check first char [23:37:50]Sock 8.First char is OK [23:37:50]request: POST /json_proto HTTP/1.0 [23:37:50]Method: POST [23:37:50]URL: /json_proto [23:37:50]Method is POST - this is cgi request [23:37:50]url: /json_proto [23:37:50]query_string will be loaded in cgi processing [23:37:50]execute_cgi json_proto POST (null) [23:37:50]execute_cgi path=json_proto method=POST [23:37:50]POST find Content-Length [23:37:50]Host: 172.17.38.4:8080 [23:37:50]Content-Length: 677 [23:37:50]Content-Type: application/json [23:37:50] [23:37:50]POST finish read [23:37:50]Found Content-Length = 677 [23:37:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:50]execute_script... [23:37:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:50]POST & json_proto [23:37:50]process_json_proto [23:37:50]json parsed OK: [23:37:50]protocol is kg_v1.0 [23:37:50]action value=close_receipt [23:37:50]process_action close_receipt [23:37:50]cmd_close_receipt [23:37:50]MH_GetDate [23:37:50]Write to MH i2c: F0 00 00 5D 07 53 [23:37:50]Write i2c OK [23:37:50]MH_I2C_Read... [23:37:50]Read from MH i2c: F0 [23:37:50]MH_I2C_Read... [23:37:50]Read from MH i2c: F0 09 00 [23:37:50]MH_I2C_Read... [23:37:50]Read from MH i2c: F0 09 00 5D 07 00 4E 02 5D 66 CC 51 87 64 77 [23:37:50]GetLastDocTimeStamp 1717371270 [23:37:50]current date 1717371470 [23:37:50]FM_GetShiftState [23:37:50]SAM_PROTO_GetShiftState [23:37:50]wFMCommunicate request_size=4 [23:37:50]MH_SAM_APDU [23:37:50]CAPDU: 80 13 01 00 [23:37:50]Write to MH i2c: E2 08 00 5E 07 80 13 01 00 00 00 00 00 E2 [23:37:50]Write i2c OK [23:37:50]MH_I2C_Read... [23:37:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:50]Read from MH i2c: E2 [23:37:50]MH_I2C_Read... [23:37:50]Read from MH i2c: E2 0E 00 [23:37:50]MH_I2C_Read... [23:37:50]Read from MH i2c: E2 0E 00 5E 07 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 FA [23:37:50]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [23:37:50]wFMCommunicate OK [23:37:50]SAM_PROTO_GetShiftState done [23:37:50]FM_GetShiftState done [23:37:50]opened in 1717287824 [23:37:50]opened+sec_in_day 1717374224 [23:37:50]quantity*price = 50065 [23:37:50]sum+1 = 50067 [23:37:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 422 02.06.2024 23:37 Смена: 366 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148230 ФПД: 129437459155047 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T233750&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148230&fm=129437459155047&tin=02508201610067®Number=0000000000092720&sum=50000 [23:37:51]StoreToDocumentArchive [23:37:51]shift 366 fd 148230 [23:37:51]save to /storage/0366/doc_00148230 [23:37:51]save last doc name /storage/0366/doc_00148230 to /storage/kkm_last_doc_name [23:37:51]save OK [23:37:51]Clear old archive folders... [23:37:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:37:51]tlvbuf is 0112B980 [23:37:51]SAM_PROTO_ClearQueue [23:37:51]wFMCommunicate request_size=4 [23:37:51]MH_SAM_APDU [23:37:51]CAPDU: 80 09 00 00 [23:37:51]Write to MH i2c: E2 08 00 6B 07 80 09 00 00 00 00 00 00 E4 [23:37:51]Write i2c OK [23:37:51]MH_I2C_Read... [23:37:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:37:51]Read from MH i2c: E2 [23:37:51]MH_I2C_Read... [23:37:51]Read from MH i2c: E2 03 00 [23:37:51]MH_I2C_Read... [23:37:51]Read from MH i2c: E2 03 00 6B 07 00 90 00 E6 [23:37:51]RAPDU: 90 00 [23:37:51]wFMCommunicate OK [23:37:51]SAM_PROTO_ClearQueue done [23:37:51]KKMCreateOFDPacket [23:37:51]OFDProtocolAddRootSTLVToBuf [23:37:51]FM_MakeSignedData [23:37:51]FM_MakeSignedData [23:37:51]SAM_PROTO_SignData [23:37:51]wFMCommunicate request_size=4 [23:37:51]MH_SAM_APDU [23:37:51]CAPDU: 80 0D 01 02 [23:37:51]Write to MH i2c: E2 08 00 6C 07 80 0D 01 02 00 00 00 00 EC [23:37:51]Write i2c OK [23:37:51]MH_I2C_Read... [23:37:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:37:51]Read from MH i2c: E2 [23:37:51]MH_I2C_Read... [23:37:51]Read from MH i2c: E2 03 00 [23:37:51]MH_I2C_Read... [23:37:51]Read from MH i2c: E2 03 00 6C 07 00 90 00 E7 [23:37:51]RAPDU: 90 00 [23:37:51]wFMCommunicate OK [23:37:51]wFMCommunicate request_size=255 [23:37:51]MH_SAM_APDU [23:37:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 4E 02 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 06 43 02 00 35 04 06 00 75 [23:37:51]Write to MH i2c: E2 02 01 6D 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 4E 02 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 06 43 02 00 35 04 06 00 75 00 00 84 [23:37:51]Write i2c OK [23:37:51]MH_I2C_Read... [23:37:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:52]Read from MH i2c: E2 [23:37:52]MH_I2C_Read... [23:37:52]Read from MH i2c: E2 03 00 [23:37:52]MH_I2C_Read... [23:37:52]Read from MH i2c: E2 03 00 6D 07 00 90 00 E8 [23:37:52]RAPDU: 90 00 [23:37:52]wFMCommunicate OK [23:37:52]wFMCommunicate request_size=10 [23:37:52]MH_SAM_APDU [23:37:52]CAPDU: 80 0D 02 02 05 B9 01 C6 08 67 [23:37:52]Write to MH i2c: E2 0D 00 6E 07 80 0D 02 02 05 00 B9 01 C6 08 67 00 00 E8 [23:37:52]Write i2c OK [23:37:52]MH_I2C_Read... [23:37:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:52]Read from MH i2c: E2 [23:37:52]MH_I2C_Read... [23:37:52]Read from MH i2c: E2 03 00 [23:37:52]MH_I2C_Read... [23:37:52]Read from MH i2c: E2 03 00 6E 07 00 90 00 E9 [23:37:52]RAPDU: 90 00 [23:37:52]wFMCommunicate OK [23:37:52]wFMCommunicate request_size=4 [23:37:52]MH_SAM_APDU [23:37:52]CAPDU: 80 0D 03 02 [23:37:52]Write to MH i2c: E2 08 00 6F 07 80 0D 03 02 00 00 00 00 F1 [23:37:52]Write i2c OK [23:37:52]MH_I2C_Read... [23:37:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:37:52]Read from MH i2c: E2 [23:37:52]MH_I2C_Read... [23:37:52]Read from MH i2c: E2 0B 00 [23:37:52]MH_I2C_Read... [23:37:52]Read from MH i2c: E2 0B 00 6F 07 00 00 E8 8A 9D C4 FD 9F B6 90 00 17 [23:37:52]RAPDU: 00 E8 8A 9D C4 FD 9F B6 90 00 [23:37:52]wFMCommunicate OK [23:37:52]SAM_PROTO_SignData done [23:37:52]FM_MakeSignedData done [23:37:52]CreateOFDProtocolMessage [23:37:52]wFMCommunicate request_size=4 [23:37:52]MH_SAM_APDU [23:37:52]CAPDU: 80 11 00 00 [23:37:52]Write to MH i2c: E2 08 00 70 07 80 11 00 00 00 00 00 00 F1 [23:37:52]Write i2c OK [23:37:52]MH_I2C_Read... [23:37:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:52]Read from MH i2c: E2 [23:37:52]MH_I2C_Read... [23:37:52]Read from MH i2c: E2 17 00 [23:37:52]MH_I2C_Read... [23:37:52]Read from MH i2c: E2 17 00 70 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 44 [23:37:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:37:52]wFMCommunicate OK [23:37:52]CreateOFDProtocolMessage done [23:37:52]OFDSenderStorePacket 148230 [23:37:52]StoreOFDPacket docnum=148230 [23:37:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 AC 04 07 01 3F FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 4E 02 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 06 43 02 00 35 04 06 00 75 B9 01 C6 08 67 00 E8 8A 9D C4 FD 9F B6 [23:37:52]CheckFolder [23:37:52]dirname=/storage/ofd_packets [23:37:52]CheckFolder done [23:37:52]ProducePacketName [23:37:52]name=ofd_packets/00148230 [23:37:52]NVStorageSaveData ofd_packets/00148230 [23:37:52]File name is /storage/ofd_packets/00148230 [23:37:52]Write 301 bytes [23:37:52]NVStorageSaveData done [23:37:52]OFDSenderStorePacket done [23:37:52]KKMCreateOFDPacket done [23:37:52]NVStorageSaveData kkm_last_timestamp [23:37:52]File name is /storage/kkm_last_timestamp [23:37:52]Write 4 bytes [23:37:52]NVStorageSaveData done [23:37:52]ExternCall_PrintAddStr [23:37:52]wPrintStart [23:37:52]Write to MH i2c: 01 00 00 71 07 78 [23:37:52]Write i2c OK [23:37:52]MH_I2C_Read... [23:37:52]Read from MH i2c: 01 [23:37:52]MH_I2C_Read... [23:37:52]Read from MH i2c: 01 07 00 [23:37:52]MH_I2C_Read... [23:37:52]Read from MH i2c: 01 07 00 71 07 00 00 00 00 00 FF 0F 8D [23:37:52]RasterBufferAndPrint [23:37:52]line Счет N : (1)979168 [23:37:52]line ИНН: 02508201610067 [23:37:52]line Контрольно-Кассовый Чек [23:37:52]line ПРОДАЖА [23:37:52]line ТРК (МРК, ГНК) : 41 [23:37:52]line Товар: 2710124130 [23:37:52]line Аи-92-К-5 [23:37:52]line 7.540 * 66.40 [23:37:52]line = 500.66 [23:37:52]line НДС 12% НСП 1% [23:37:52]line > о реализуемом товаре [23:37:52]line ОКРУГЛЕНИЕ: -0.66 [23:37:52]line ИТОГО: 500.00 [23:37:52]line Внесено: 500.00 [23:37:52]line СДАЧА: 0.00 [23:37:52]line НСП 1% : 4.43 [23:37:52]line НДС 12% : 53.17 [23:37:52]line Наличными: 500.00 [23:37:52]line Безнал.: 0.00 [23:37:52]line Место: АЗС № 68 "Партнер Нефть" [23:37:52]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [23:37:52]line СНО: Общий режим [23:37:52]line Чек 422 02.06.2024 23:37 [23:37:52]line Смена: 366 ФФД: 1.0 [23:37:52]line ЗНМ: 0300000035 [23:37:52]line РНМ: 0000000000092720 [23:37:52]line Версия ККМ: 001 [23:37:52]line ФМ: 0000000000875057 [23:37:52]line ФД: 148230 [23:37:52]line ФПД: 129437459155047 [23:37:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T233750&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148230&fm=129437459155047&tin=02508201610067®Number=0000000000092720&sum=50000 [23:37:52]OFD Sender: Processing packet 148230 [packets to send 99, broken 98] [23:37:52]ProducePacketName [23:37:52]name=ofd_packets/00148230 [23:37:52]OFD Sender: To server: pG, [23:37:52]CommunicateWithHost lk.salyk.kg:30040 [23:37:52]ConnectInit lk.salyk.kg [23:37:52]written 0, free lines is 4095 [23:37:52]Connected sock=10 [23:37:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 AC 04 07 01 3F FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 01 00 00 F4 03 04 00 4E 02 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 06 43 02 00 35 04 06 00 75 B9 01 C6 08 67 00 E8 8A 9D C4 FD 9F B6 [23:37:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 BE 68 47 00 82 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 06 43 02 00 F4 03 04 00 77 A9 5C 66 B6 04 01 00 00 A2 51 F1 A0 D7 CA 0A C8 [23:37:52]CommunicateWithHost err = 0 [23:37:52]CheckOFDResponse [23:37:52]1017 (14) - 77093643461234 [23:37:52]1041 (16) - 0000000000875057 [23:37:52]1040 (4) - 148230 [23:37:52]1012 (4) - 02.06.2024 17:18 [23:37:52]1206 (1) - 0 [23:37:52]OFD Sender: Remove packet 148230 [23:37:52]ProducePacketName [23:37:52]name=ofd_packets/00148230 [23:37:52]NVStorageDeleteData [23:37:53]Write to MH i2c: 01 00 00 9C 07 A3 [23:37:53]Write i2c OK [23:37:53]MH_I2C_Read... [23:37:53]Read from MH i2c: 01 [23:37:53]MH_I2C_Read... [23:37:53]Read from MH i2c: 01 07 00 [23:37:53]MH_I2C_Read... [23:37:53]Read from MH i2c: 01 07 00 9C 07 00 00 00 00 00 6F 0C 25 [23:37:53]RasterBufferAndPrint [23:37:53]line [23:37:53]line [23:37:53]line [23:37:53]line [23:37:53]line [23:37:53]written 0, free lines is 3186 [23:37:53]MH_Cut [23:37:53]Write to MH i2c: D1 01 00 A3 07 01 7C [23:37:53]Write i2c OK [23:37:53]MH_I2C_Read... [23:37:53]Read from MH i2c: D1 [23:37:53]MH_I2C_Read... [23:37:53]Read from MH i2c: D1 01 00 [23:37:53]MH_I2C_Read... [23:37:53]Read from MH i2c: D1 01 00 A3 07 00 7B [23:37:53]Write to MH i2c: 01 00 00 A4 07 AB [23:37:53]Write i2c OK [23:37:53]MH_I2C_Read... [23:37:53]OFD Sender: No OFD packet to send [23:37:54]*** Cut start [23:37:54]*** Partial cut [23:37:54]*** CUTSNS_PIN = 1 [23:37:54]*** CUTSNS_PIN = 0 [23:37:54]*** Brake cut motor [23:37:54]Read from MH i2c: 01 [23:37:54]MH_I2C_Read... [23:37:54]*** Stop cut motor [23:37:54]*** Cut end [23:37:54]Read from MH i2c: 01 07 00 [23:37:54]MH_I2C_Read... [23:37:54]Read from MH i2c: 01 07 00 A4 07 00 00 00 00 00 FF 0F C0 [23:37:54]process_action close_receipt done [23:37:54]requested_data is exist [23:37:54]produce_requested_data [23:37:54]requested_item fm.sn is exist - process it [23:37:54]wFMCommunicate request_size=4 [23:37:54]MH_SAM_APDU [23:37:54]CAPDU: 80 11 00 00 [23:37:54]Write to MH i2c: E2 08 00 A5 07 80 11 00 00 00 00 00 00 26 [23:37:54]Write i2c OK [23:37:54]MH_I2C_Read... [23:37:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:54]Read from MH i2c: E2 [23:37:54]MH_I2C_Read... [23:37:54]Read from MH i2c: E2 17 00 [23:37:54]MH_I2C_Read... [23:37:54]Read from MH i2c: E2 17 00 A5 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 79 [23:37:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:37:54]wFMCommunicate OK [23:37:54]requested_item fd.num is exist - process it [23:37:54]SAM_PROTO_GetFieldsCounters [23:37:54]wFMCommunicate request_size=4 [23:37:54]MH_SAM_APDU [23:37:54]CAPDU: 80 13 00 00 [23:37:54]Write to MH i2c: E2 08 00 A6 07 80 13 00 00 00 00 00 00 29 [23:37:54]Write i2c OK [23:37:54]MH_I2C_Read... [23:37:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:37:55]Read from MH i2c: E2 [23:37:55]MH_I2C_Read... [23:37:55]Read from MH i2c: E2 62 00 [23:37:55]MH_I2C_Read... [23:37:55]Read from MH i2c: E2 62 00 A6 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 06 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 A6 01 00 00 5E 04 04 00 A6 01 00 00 57 04 04 00 A7 01 00 00 19 04 04 00 00 00 00 00 90 00 F4 [23:37:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 06 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 A6 01 00 00 5E 04 04 00 A6 01 00 00 57 04 04 00 A7 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:37:55]wFMCommunicate OK [23:37:55]SAM_PROTO_GetFieldsCounters done [23:37:55]requested_item shift.num is exist - process it [23:37:55]requested_item shift.opened is exist - process it [23:37:55]req_shift_opened [23:37:55]FM_GetShiftState [23:37:55]SAM_PROTO_GetShiftState [23:37:55]wFMCommunicate request_size=4 [23:37:55]MH_SAM_APDU [23:37:55]CAPDU: 80 13 01 00 [23:37:55]Write to MH i2c: E2 08 00 A7 07 80 13 01 00 00 00 00 00 2B [23:37:55]Write i2c OK [23:37:55]MH_I2C_Read... [23:37:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:55]Read from MH i2c: E2 [23:37:55]MH_I2C_Read... [23:37:55]Read from MH i2c: E2 0E 00 [23:37:55]MH_I2C_Read... [23:37:55]Read from MH i2c: E2 0E 00 A7 07 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 43 [23:37:55]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [23:37:55]wFMCommunicate OK [23:37:55]SAM_PROTO_GetShiftState done [23:37:55]FM_GetShiftState done [23:37:55]req_shift_opened done [23:37:55]requested_item shift.open_date is exist - process it [23:37:55]req_shift_open_date [23:37:55]req_shift_open_date done [23:37:55]produce_requested_data done [23:37:55]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148230,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [23:37:55]process_action_free close_receipt [23:37:55]json_value_free [23:37:55]json_value_free done [23:37:55]process_json_proto returns [23:37:55]Send response to host [23:37:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148230,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [23:37:55]free response buf [23:37:55]execute_script done [23:37:55]execute_script returns [23:37:55]free content buf [23:37:55]Sock 8.Close socket [23:37:55]Sock 8.Thread stoped [23:37:58]OFD Sender: No OFD packet to send [23:38:03]OFD Sender: No OFD packet to send [23:38:08]OFD Sender: No OFD packet to send [23:38:13]OFD Sender: No OFD packet to send [23:38:18]OFD Sender: No OFD packet to send [23:38:23]OFD Sender: No OFD packet to send [23:38:28]OFD Sender: No OFD packet to send [23:38:33]OFD Sender: No OFD packet to send [23:38:38]OFD Sender: No OFD packet to send [23:38:43]OFD Sender: No OFD packet to send [23:38:48]OFD Sender: No OFD packet to send [23:38:53]OFD Sender: No OFD packet to send [23:38:58]OFD Sender: No OFD packet to send [23:39:03]OFD Sender: No OFD packet to send [23:39:08]OFD Sender: No OFD packet to send [23:39:13]OFD Sender: No OFD packet to send [23:39:18]OFD Sender: No OFD packet to send [23:39:23]OFD Sender: No OFD packet to send [23:39:28]OFD Sender: No OFD packet to send [23:39:33]OFD Sender: No OFD packet to send [23:39:38]OFD Sender: No OFD packet to send [23:39:43]OFD Sender: No OFD packet to send [23:39:48]OFD Sender: No OFD packet to send [23:39:53]OFD Sender: No OFD packet to send [23:39:58]OFD Sender: No OFD packet to send [23:40:03]OFD Sender: No OFD packet to send [23:40:08]OFD Sender: No OFD packet to send [23:40:13]OFD Sender: No OFD packet to send [23:40:18]OFD Sender: No OFD packet to send [23:40:23]OFD Sender: No OFD packet to send [23:40:28]OFD Sender: No OFD packet to send [23:40:33]OFD Sender: No OFD packet to send [23:40:38]OFD Sender: No OFD packet to send [23:40:43]OFD Sender: No OFD packet to send [23:40:48]OFD Sender: No OFD packet to send [23:40:53]OFD Sender: No OFD packet to send [23:40:58]OFD Sender: No OFD packet to send [23:41:03]OFD Sender: No OFD packet to send [23:41:08]OFD Sender: No OFD packet to send [23:41:13]OFD Sender: No OFD packet to send [23:41:18]OFD Sender: No OFD packet to send [23:41:23]OFD Sender: No OFD packet to send [23:41:28]OFD Sender: No OFD packet to send [23:41:33]OFD Sender: No OFD packet to send [23:41:38]OFD Sender: No OFD packet to send [23:41:43]OFD Sender: No OFD packet to send [23:41:48]OFD Sender: No OFD packet to send [23:41:53]OFD Sender: No OFD packet to send [23:41:58]OFD Sender: No OFD packet to send [23:42:03]OFD Sender: No OFD packet to send [23:42:08]OFD Sender: No OFD packet to send [23:42:13]OFD Sender: No OFD packet to send [23:42:18]OFD Sender: No OFD packet to send [23:42:23]OFD Sender: No OFD packet to send [23:42:28]OFD Sender: No OFD packet to send [23:42:33]OFD Sender: No OFD packet to send [23:42:38]OFD Sender: No OFD packet to send [23:42:43]OFD Sender: No OFD packet to send [23:42:48]OFD Sender: No OFD packet to send [23:42:53]OFD Sender: No OFD packet to send [23:42:58]OFD Sender: No OFD packet to send [23:43:03]OFD Sender: No OFD packet to send [23:43:08]OFD Sender: No OFD packet to send [23:43:13]OFD Sender: No OFD packet to send [23:43:18]OFD Sender: No OFD packet to send [23:43:23]OFD Sender: No OFD packet to send [23:43:28]OFD Sender: No OFD packet to send [23:43:33]OFD Sender: No OFD packet to send [23:43:38]OFD Sender: No OFD packet to send [23:43:43]OFD Sender: No OFD packet to send [23:43:44]accept exits with 9 [23:43:44]New connection [23:43:44]New thread 3067432292 created [23:43:44]Thread 3067288932 joined [23:43:44]Waiting for new connection... [23:43:44] Sock 9.Parse request [23:43:44]Sock 9.Check first char [23:43:44]Sock 9.First char is OK [23:43:44]request: POST /json_proto HTTP/1.0 [23:43:44]Method: POST [23:43:44]URL: /json_proto [23:43:44]Method is POST - this is cgi request [23:43:44]url: /json_proto [23:43:44]query_string will be loaded in cgi processing [23:43:44]execute_cgi json_proto POST (null) [23:43:44]execute_cgi path=json_proto method=POST [23:43:44]POST find Content-Length [23:43:44]Host: 172.17.38.4:8080 [23:43:44]Content-Length: 788 [23:43:44]Content-Type: application/json [23:43:44] [23:43:44]POST finish read [23:43:44]Found Content-Length = 788 [23:43:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.290, "sum" : 750.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 750.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:43:44]execute_script... [23:43:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 10.290, "sum" : 750.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: KICB \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 750.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:43:44]POST & json_proto [23:43:44]process_json_proto [23:43:44]json parsed OK: [23:43:44]protocol is kg_v1.0 [23:43:44]action value=close_receipt [23:43:44]process_action close_receipt [23:43:44]cmd_close_receipt [23:43:44]MH_GetDate [23:43:44]Write to MH i2c: F0 00 00 A8 07 9E [23:43:44]Write i2c OK [23:43:44]MH_I2C_Read... [23:43:44]Read from MH i2c: F0 [23:43:44]MH_I2C_Read... [23:43:44]Read from MH i2c: F0 09 00 [23:43:44]MH_I2C_Read... [23:43:44]Read from MH i2c: F0 09 00 A8 07 00 B0 03 5D 66 CC 51 87 64 25 [23:43:44]GetLastDocTimeStamp 1717371470 [23:43:44]current date 1717371824 [23:43:44]FM_GetShiftState [23:43:44]SAM_PROTO_GetShiftState [23:43:44]wFMCommunicate request_size=4 [23:43:44]MH_SAM_APDU [23:43:44]CAPDU: 80 13 01 00 [23:43:44]Write to MH i2c: E2 08 00 A9 07 80 13 01 00 00 00 00 00 2D [23:43:44]Write i2c OK [23:43:44]MH_I2C_Read... [23:43:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:43:44]Read from MH i2c: E2 [23:43:44]MH_I2C_Read... [23:43:44]Read from MH i2c: E2 0E 00 [23:43:44]MH_I2C_Read... [23:43:44]Read from MH i2c: E2 0E 00 A9 07 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 45 [23:43:44]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [23:43:44]wFMCommunicate OK [23:43:44]SAM_PROTO_GetShiftState done [23:43:44]FM_GetShiftState done [23:43:44]opened in 1717287824 [23:43:44]opened+sec_in_day 1717374224 [23:43:44]quantity*price = 75014 [23:43:44]sum+1 = 75015 [23:43:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 750.14 НСП 1% : 6.64 НДС 12% : 79.66 Наличными: 0.00 Безнал.: 750.14 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 423 02.06.2024 23:43 Смена: 366 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 Платежная система: KICB Банк ФМ: 0000000000875057 ФД: 148231 ФПД: 128863176435989 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T234344&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148231&fm=128863176435989&tin=02508201610067®Number=0000000000092720&sum=75014 [23:43:45]StoreToDocumentArchive [23:43:45]shift 366 fd 148231 [23:43:45]save to /storage/0366/doc_00148231 [23:43:45]save last doc name /storage/0366/doc_00148231 to /storage/kkm_last_doc_name [23:43:45]save OK [23:43:45]Clear old archive folders... [23:43:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:43:45]tlvbuf is 0123A640 [23:43:45]SAM_PROTO_ClearQueue [23:43:45]wFMCommunicate request_size=4 [23:43:45]MH_SAM_APDU [23:43:45]CAPDU: 80 09 00 00 [23:43:45]Write to MH i2c: E2 08 00 B6 07 80 09 00 00 00 00 00 00 2F [23:43:45]Write i2c OK [23:43:45]MH_I2C_Read... [23:43:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:43:45]Read from MH i2c: E2 [23:43:45]MH_I2C_Read... [23:43:45]Read from MH i2c: E2 03 00 [23:43:45]MH_I2C_Read... [23:43:45]Read from MH i2c: E2 03 00 B6 07 00 90 00 31 [23:43:45]RAPDU: 90 00 [23:43:45]wFMCommunicate OK [23:43:45]SAM_PROTO_ClearQueue done [23:43:45]KKMCreateOFDPacket [23:43:45]OFDProtocolAddRootSTLVToBuf [23:43:45]FM_MakeSignedData [23:43:45]FM_MakeSignedData [23:43:45]SAM_PROTO_SignData [23:43:45]wFMCommunicate request_size=4 [23:43:45]MH_SAM_APDU [23:43:45]CAPDU: 80 0D 01 02 [23:43:45]Write to MH i2c: E2 08 00 B7 07 80 0D 01 02 00 00 00 00 37 [23:43:45]Write i2c OK [23:43:45]MH_I2C_Read... [23:43:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:43:45]Read from MH i2c: E2 [23:43:45]MH_I2C_Read... [23:43:45]Read from MH i2c: E2 03 00 [23:43:45]MH_I2C_Read... [23:43:45]Read from MH i2c: E2 03 00 B7 07 00 90 00 32 [23:43:45]RAPDU: 90 00 [23:43:45]wFMCommunicate OK [23:43:45]wFMCommunicate request_size=255 [23:43:45]MH_SAM_APDU [23:43:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 06 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 B0 03 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 07 43 02 00 35 04 06 00 75 33 4B DB [23:43:45]Write to MH i2c: E2 02 01 B8 07 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 06 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 B0 03 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 07 43 02 00 35 04 06 00 75 33 4B DB 00 00 81 [23:43:45]Write i2c OK [23:43:45]MH_I2C_Read... [23:43:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:43:45]Read from MH i2c: E2 [23:43:45]MH_I2C_Read... [23:43:45]Read from MH i2c: E2 03 00 [23:43:45]MH_I2C_Read... [23:43:45]Read from MH i2c: E2 03 00 B8 07 00 90 00 33 [23:43:45]RAPDU: 90 00 [23:43:45]wFMCommunicate OK [23:43:45]wFMCommunicate request_size=7 [23:43:45]MH_SAM_APDU [23:43:45]CAPDU: 80 0D 02 02 02 29 15 [23:43:45]Write to MH i2c: E2 0A 00 B9 07 80 0D 02 02 02 00 29 15 00 00 7C [23:43:45]Write i2c OK [23:43:45]MH_I2C_Read... [23:43:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:43:45]Read from MH i2c: E2 [23:43:45]MH_I2C_Read... [23:43:45]Read from MH i2c: E2 03 00 [23:43:45]MH_I2C_Read... [23:43:45]Read from MH i2c: E2 03 00 B9 07 00 90 00 34 [23:43:45]RAPDU: 90 00 [23:43:45]wFMCommunicate OK [23:43:45]wFMCommunicate request_size=4 [23:43:45]MH_SAM_APDU [23:43:45]CAPDU: 80 0D 03 02 [23:43:45]Write to MH i2c: E2 08 00 BA 07 80 0D 03 02 00 00 00 00 3C [23:43:45]Write i2c OK [23:43:45]MH_I2C_Read... [23:43:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:43:45]Read from MH i2c: E2 [23:43:45]MH_I2C_Read... [23:43:45]Read from MH i2c: E2 0B 00 [23:43:45]MH_I2C_Read... [23:43:45]Read from MH i2c: E2 0B 00 BA 07 00 A5 8F 39 4D 80 E9 22 EF 90 00 71 [23:43:45]RAPDU: A5 8F 39 4D 80 E9 22 EF 90 00 [23:43:45]wFMCommunicate OK [23:43:45]SAM_PROTO_SignData done [23:43:45]FM_MakeSignedData done [23:43:45]CreateOFDProtocolMessage [23:43:45]wFMCommunicate request_size=4 [23:43:45]MH_SAM_APDU [23:43:45]CAPDU: 80 11 00 00 [23:43:45]Write to MH i2c: E2 08 00 BB 07 80 11 00 00 00 00 00 00 3C [23:43:45]Write i2c OK [23:43:45]MH_I2C_Read... [23:43:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:43:46]Read from MH i2c: E2 [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: E2 17 00 [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: E2 17 00 BB 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 8F [23:43:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:43:46]wFMCommunicate OK [23:43:46]CreateOFDProtocolMessage done [23:43:46]OFDSenderStorePacket 148231 [23:43:46]StoreOFDPacket docnum=148231 [23:43:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 11 37 04 01 78 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 06 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 B0 03 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 07 43 02 00 35 04 06 00 75 33 4B DB 29 15 A5 8F 39 4D 80 E9 22 EF [23:43:46]CheckFolder [23:43:46]dirname=/storage/ofd_packets [23:43:46]CheckFolder done [23:43:46]ProducePacketName [23:43:46]name=ofd_packets/00148231 [23:43:46]NVStorageSaveData ofd_packets/00148231 [23:43:46]File name is /storage/ofd_packets/00148231 [23:43:46]Write 298 bytes [23:43:46]NVStorageSaveData done [23:43:46]OFDSenderStorePacket done [23:43:46]KKMCreateOFDPacket done [23:43:46]NVStorageSaveData kkm_last_timestamp [23:43:46]File name is /storage/kkm_last_timestamp [23:43:46]Write 4 bytes [23:43:46]NVStorageSaveData done [23:43:46]ExternCall_PrintAddStr [23:43:46]wPrintStart [23:43:46]Write to MH i2c: 01 00 00 BC 07 C3 [23:43:46]Write i2c OK [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: 01 [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: 01 07 00 [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: 01 07 00 BC 07 00 00 00 00 00 FF 0F D8 [23:43:46]RasterBufferAndPrint [23:43:46]line Счет N : (1)979169 [23:43:46]line ИНН: 02508201610067 [23:43:46]line Контрольно-Кассовый Чек [23:43:46]line ПРОДАЖА [23:43:46]line ТРК (МРК, ГНК) : 51 [23:43:46]line Товар: 2710194210 [23:43:46]line ДТ-К-5 [23:43:46]line 10.290 * 72.90 [23:43:46]line = 750.14 [23:43:46]line НДС 12% НСП 1% [23:43:46]line > о реализуемом товаре [23:43:46]line ИТОГО: 750.14 [23:43:46]line НСП 1% : 6.64 [23:43:46]line НДС 12% : 79.66 [23:43:46]line Наличными: 0.00 [23:43:46]line Безнал.: 750.14 [23:43:46]line Место: АЗС № 68 "Партнер Нефть" [23:43:46]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [23:43:46]line СНО: Общий режим [23:43:46]line Чек 423 02.06.2024 23:43 [23:43:46]line Смена: 366 ФФД: 1.0 [23:43:46]line ЗНМ: 0300000035 [23:43:46]line РНМ: 0000000000092720 [23:43:46]line Версия ККМ: 001 [23:43:46]line Платежная система: KICB Банк [23:43:46]line ФМ: 0000000000875057 [23:43:46]line ФД: 148231 [23:43:46]line ФПД: 128863176435989 [23:43:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T234344&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148231&fm=128863176435989&tin=02508201610067®Number=0000000000092720&sum=75014 [23:43:46]OFD Sender: Processing packet 148231 [packets to send 99, broken 98] [23:43:46]ProducePacketName [23:43:46]name=ofd_packets/00148231 [23:43:46]OFD Sender: To server: pG, [23:43:46]CommunicateWithHost lk.salyk.kg:30040 [23:43:46]ConnectInit lk.salyk.kg [23:43:46]written 0, free lines is 4095 [23:43:46]Connected sock=11 [23:43:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 11 37 04 01 78 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 06 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 01 00 00 F4 03 04 00 B0 03 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 07 43 02 00 35 04 06 00 75 33 4B DB 29 15 A5 8F 39 4D 80 E9 22 EF [23:43:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 60 75 47 00 17 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 07 43 02 00 F4 03 04 00 D9 AA 5C 66 B6 04 01 00 00 DE 27 94 BB 74 0C 0C AC [23:43:46]CommunicateWithHost err = 0 [23:43:46]CheckOFDResponse [23:43:46]1017 (14) - 77093643461234 [23:43:46]1041 (16) - 0000000000875057 [23:43:46]1040 (4) - 148231 [23:43:46]1012 (4) - 02.06.2024 17:24 [23:43:46]1206 (1) - 0 [23:43:46]OFD Sender: Remove packet 148231 [23:43:46]ProducePacketName [23:43:46]name=ofd_packets/00148231 [23:43:46]NVStorageDeleteData [23:43:46]Write to MH i2c: 01 00 00 E6 07 ED [23:43:46]Write i2c OK [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: 01 [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: 01 07 00 [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: 01 07 00 E6 07 00 00 00 00 00 7C 0C 7C [23:43:46]RasterBufferAndPrint [23:43:46]line [23:43:46]line [23:43:46]line [23:43:46]line [23:43:46]line [23:43:46]written 0, free lines is 3199 [23:43:46]MH_Cut [23:43:46]Write to MH i2c: D1 01 00 ED 07 01 C6 [23:43:46]Write i2c OK [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: D1 [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: D1 01 00 [23:43:46]MH_I2C_Read... [23:43:46]Read from MH i2c: D1 01 00 ED 07 00 C5 [23:43:46]Write to MH i2c: 01 00 00 EE 07 F5 [23:43:46]Write i2c OK [23:43:46]MH_I2C_Read... [23:43:47]OFD Sender: No OFD packet to send [23:43:48]*** Cut start [23:43:48]*** Partial cut [23:43:48]*** CUTSNS_PIN = 1 [23:43:48]*** CUTSNS_PIN = 0 [23:43:48]*** Brake cut motor [23:43:48]Read from MH i2c: 01 [23:43:48]MH_I2C_Read... [23:43:48]*** Stop cut motor [23:43:48]*** Cut end [23:43:48]Read from MH i2c: 01 07 00 [23:43:48]MH_I2C_Read... [23:43:48]Read from MH i2c: 01 07 00 EE 07 00 00 00 00 00 FF 0F 0A [23:43:48]process_action close_receipt done [23:43:48]requested_data is exist [23:43:48]produce_requested_data [23:43:48]requested_item fm.sn is exist - process it [23:43:48]wFMCommunicate request_size=4 [23:43:48]MH_SAM_APDU [23:43:48]CAPDU: 80 11 00 00 [23:43:48]Write to MH i2c: E2 08 00 EF 07 80 11 00 00 00 00 00 00 70 [23:43:48]Write i2c OK [23:43:48]MH_I2C_Read... [23:43:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:43:48]Read from MH i2c: E2 [23:43:48]MH_I2C_Read... [23:43:48]Read from MH i2c: E2 17 00 [23:43:48]MH_I2C_Read... [23:43:48]Read from MH i2c: E2 17 00 EF 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 C3 [23:43:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:43:48]wFMCommunicate OK [23:43:48]requested_item fd.num is exist - process it [23:43:48]SAM_PROTO_GetFieldsCounters [23:43:48]wFMCommunicate request_size=4 [23:43:48]MH_SAM_APDU [23:43:48]CAPDU: 80 13 00 00 [23:43:48]Write to MH i2c: E2 08 00 F0 07 80 13 00 00 00 00 00 00 73 [23:43:48]Write i2c OK [23:43:48]MH_I2C_Read... [23:43:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:43:48]Read from MH i2c: E2 [23:43:48]MH_I2C_Read... [23:43:48]Read from MH i2c: E2 62 00 [23:43:48]MH_I2C_Read... [23:43:48]Read from MH i2c: E2 62 00 F0 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 07 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 A7 01 00 00 5E 04 04 00 A7 01 00 00 57 04 04 00 A8 01 00 00 19 04 04 00 00 00 00 00 90 00 42 [23:43:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 07 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 A7 01 00 00 5E 04 04 00 A7 01 00 00 57 04 04 00 A8 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:43:48]wFMCommunicate OK [23:43:48]SAM_PROTO_GetFieldsCounters done [23:43:48]requested_item shift.num is exist - process it [23:43:48]requested_item shift.opened is exist - process it [23:43:48]req_shift_opened [23:43:48]FM_GetShiftState [23:43:48]SAM_PROTO_GetShiftState [23:43:48]wFMCommunicate request_size=4 [23:43:48]MH_SAM_APDU [23:43:48]CAPDU: 80 13 01 00 [23:43:48]Write to MH i2c: E2 08 00 F1 07 80 13 01 00 00 00 00 00 75 [23:43:48]Write i2c OK [23:43:48]MH_I2C_Read... [23:43:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:43:49]Read from MH i2c: E2 [23:43:49]MH_I2C_Read... [23:43:49]Read from MH i2c: E2 0E 00 [23:43:49]MH_I2C_Read... [23:43:49]Read from MH i2c: E2 0E 00 F1 07 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 8D [23:43:49]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [23:43:49]wFMCommunicate OK [23:43:49]SAM_PROTO_GetShiftState done [23:43:49]FM_GetShiftState done [23:43:49]req_shift_opened done [23:43:49]requested_item shift.open_date is exist - process it [23:43:49]req_shift_open_date [23:43:49]req_shift_open_date done [23:43:49]produce_requested_data done [23:43:49]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148231,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [23:43:49]process_action_free close_receipt [23:43:49]json_value_free [23:43:49]json_value_free done [23:43:49]process_json_proto returns [23:43:49]Send response to host [23:43:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148231,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [23:43:49]free response buf [23:43:49]execute_script done [23:43:49]execute_script returns [23:43:49]free content buf [23:43:49]Sock 9.Close socket [23:43:49]Sock 9.Thread stoped [23:43:52]OFD Sender: No OFD packet to send [23:43:57]OFD Sender: No OFD packet to send [23:44:02]OFD Sender: No OFD packet to send [23:44:07]OFD Sender: No OFD packet to send [23:44:12]OFD Sender: No OFD packet to send [23:44:17]OFD Sender: No OFD packet to send [23:44:22]OFD Sender: No OFD packet to send [23:44:27]OFD Sender: No OFD packet to send [23:44:32]OFD Sender: No OFD packet to send [23:44:37]OFD Sender: No OFD packet to send [23:44:42]OFD Sender: No OFD packet to send [23:44:47]OFD Sender: No OFD packet to send [23:44:52]OFD Sender: No OFD packet to send [23:44:57]OFD Sender: No OFD packet to send [23:45:02]OFD Sender: No OFD packet to send [23:45:07]OFD Sender: No OFD packet to send [23:45:12]OFD Sender: No OFD packet to send [23:45:17]OFD Sender: No OFD packet to send [23:45:22]OFD Sender: No OFD packet to send [23:45:27]OFD Sender: No OFD packet to send [23:45:32]OFD Sender: No OFD packet to send [23:45:37]OFD Sender: No OFD packet to send [23:45:42]OFD Sender: No OFD packet to send [23:45:47]OFD Sender: No OFD packet to send [23:45:52]OFD Sender: No OFD packet to send [23:45:57]OFD Sender: No OFD packet to send [23:46:02]OFD Sender: No OFD packet to send [23:46:07]OFD Sender: No OFD packet to send [23:46:12]OFD Sender: No OFD packet to send [23:46:17]OFD Sender: No OFD packet to send [23:46:22]OFD Sender: No OFD packet to send [23:46:27]OFD Sender: No OFD packet to send [23:46:32]OFD Sender: No OFD packet to send [23:46:37]OFD Sender: No OFD packet to send [23:46:42]OFD Sender: No OFD packet to send [23:46:47]OFD Sender: No OFD packet to send [23:46:52]OFD Sender: No OFD packet to send [23:46:57]OFD Sender: No OFD packet to send [23:47:02]OFD Sender: No OFD packet to send [23:47:07]OFD Sender: No OFD packet to send [23:47:12]OFD Sender: No OFD packet to send [23:47:17]OFD Sender: No OFD packet to send [23:47:22]OFD Sender: No OFD packet to send [23:47:27]OFD Sender: No OFD packet to send [23:47:32]OFD Sender: No OFD packet to send [23:47:37]OFD Sender: No OFD packet to send [23:47:42]OFD Sender: No OFD packet to send [23:47:47]OFD Sender: No OFD packet to send [23:47:52]OFD Sender: No OFD packet to send [23:47:57]OFD Sender: No OFD packet to send [23:48:02]OFD Sender: No OFD packet to send [23:48:07]OFD Sender: No OFD packet to send [23:48:12]OFD Sender: No OFD packet to send [23:48:17]OFD Sender: No OFD packet to send [23:48:22]OFD Sender: No OFD packet to send [23:48:27]OFD Sender: No OFD packet to send [23:48:32]OFD Sender: No OFD packet to send [23:48:37]OFD Sender: No OFD packet to send [23:48:42]OFD Sender: No OFD packet to send [23:48:47]OFD Sender: No OFD packet to send [23:48:52]OFD Sender: No OFD packet to send [23:48:57]OFD Sender: No OFD packet to send [23:49:02]OFD Sender: No OFD packet to send [23:49:07]OFD Sender: No OFD packet to send [23:49:12]OFD Sender: No OFD packet to send [23:49:17]OFD Sender: No OFD packet to send [23:49:22]OFD Sender: No OFD packet to send [23:49:27]OFD Sender: No OFD packet to send [23:49:32]OFD Sender: No OFD packet to send [23:49:37]OFD Sender: No OFD packet to send [23:49:42]OFD Sender: No OFD packet to send [23:49:44]accept exits with 8 [23:49:44]New connection [23:49:44]New thread 3067288932 created [23:49:44]Thread 3067432292 joined [23:49:44]Waiting for new connection... [23:49:44] Sock 8.Parse request [23:49:44]Sock 8.Check first char [23:49:44]Sock 8.First char is OK [23:49:44]request: POST /json_proto HTTP/1.0 [23:49:44]Method: POST [23:49:44]URL: /json_proto [23:49:44]Method is POST - this is cgi request [23:49:44]url: /json_proto [23:49:44]query_string will be loaded in cgi processing [23:49:44]execute_cgi json_proto POST (null) [23:49:44]execute_cgi path=json_proto method=POST [23:49:44]POST find Content-Length [23:49:44]Host: 172.17.38.4:8080 [23:49:44]Content-Length: 677 [23:49:44]Content-Type: application/json [23:49:44] [23:49:44]POST finish read [23:49:44]Found Content-Length = 677 [23:49:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:44]execute_script... [23:49:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:44]POST & json_proto [23:49:44]process_json_proto [23:49:44]json parsed OK: [23:49:44]protocol is kg_v1.0 [23:49:44]action value=close_receipt [23:49:44]process_action close_receipt [23:49:44]cmd_close_receipt [23:49:44]MH_GetDate [23:49:44]Write to MH i2c: F0 00 00 F2 07 E8 [23:49:44]Write i2c OK [23:49:44]MH_I2C_Read... [23:49:44]Read from MH i2c: F0 [23:49:44]MH_I2C_Read... [23:49:44]Read from MH i2c: F0 09 00 [23:49:44]MH_I2C_Read... [23:49:44]Read from MH i2c: F0 09 00 F2 07 00 18 05 5D 66 CC 51 87 64 D9 [23:49:44]GetLastDocTimeStamp 1717371824 [23:49:44]current date 1717372184 [23:49:44]FM_GetShiftState [23:49:44]SAM_PROTO_GetShiftState [23:49:44]wFMCommunicate request_size=4 [23:49:44]MH_SAM_APDU [23:49:44]CAPDU: 80 13 01 00 [23:49:44]Write to MH i2c: E2 08 00 F3 07 80 13 01 00 00 00 00 00 77 [23:49:44]Write i2c OK [23:49:44]MH_I2C_Read... [23:49:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:44]Read from MH i2c: E2 [23:49:44]MH_I2C_Read... [23:49:44]Read from MH i2c: E2 0E 00 [23:49:44]MH_I2C_Read... [23:49:44]Read from MH i2c: E2 0E 00 F3 07 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 8F [23:49:44]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [23:49:44]wFMCommunicate OK [23:49:44]SAM_PROTO_GetShiftState done [23:49:44]FM_GetShiftState done [23:49:44]opened in 1717287824 [23:49:44]opened+sec_in_day 1717374224 [23:49:44]quantity*price = 50065 [23:49:44]sum+1 = 50067 [23:49:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 424 02.06.2024 23:49 Смена: 366 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148232 ФПД: 249664518329464 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T234944&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148232&fm=249664518329464&tin=02508201610067®Number=0000000000092720&sum=50000 [23:49:45]StoreToDocumentArchive [23:49:45]shift 366 fd 148232 [23:49:45]save to /storage/0366/doc_00148232 [23:49:45]save last doc name /storage/0366/doc_00148232 to /storage/kkm_last_doc_name [23:49:45]save OK [23:49:45]Clear old archive folders... [23:49:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:49:45]tlvbuf is 0123BFB0 [23:49:45]SAM_PROTO_ClearQueue [23:49:45]wFMCommunicate request_size=4 [23:49:45]MH_SAM_APDU [23:49:45]CAPDU: 80 09 00 00 [23:49:45]Write to MH i2c: E2 08 00 00 08 80 09 00 00 00 00 00 00 7A [23:49:45]Write i2c OK [23:49:45]MH_I2C_Read... [23:49:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:49:45]Read from MH i2c: E2 [23:49:45]MH_I2C_Read... [23:49:45]Read from MH i2c: E2 03 00 [23:49:45]MH_I2C_Read... [23:49:45]Read from MH i2c: E2 03 00 00 08 00 90 00 7C [23:49:45]RAPDU: 90 00 [23:49:45]wFMCommunicate OK [23:49:45]SAM_PROTO_ClearQueue done [23:49:45]KKMCreateOFDPacket [23:49:45]OFDProtocolAddRootSTLVToBuf [23:49:45]FM_MakeSignedData [23:49:45]FM_MakeSignedData [23:49:45]SAM_PROTO_SignData [23:49:45]wFMCommunicate request_size=4 [23:49:45]MH_SAM_APDU [23:49:45]CAPDU: 80 0D 01 02 [23:49:45]Write to MH i2c: E2 08 00 01 08 80 0D 01 02 00 00 00 00 82 [23:49:45]Write i2c OK [23:49:45]MH_I2C_Read... [23:49:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:49:45]Read from MH i2c: E2 [23:49:45]MH_I2C_Read... [23:49:45]Read from MH i2c: E2 03 00 [23:49:45]MH_I2C_Read... [23:49:45]Read from MH i2c: E2 03 00 01 08 00 90 00 7D [23:49:45]RAPDU: 90 00 [23:49:45]wFMCommunicate OK [23:49:45]wFMCommunicate request_size=255 [23:49:45]MH_SAM_APDU [23:49:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 01 00 00 F4 03 04 00 18 05 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 08 43 02 00 35 04 06 00 E3 [23:49:45]Write to MH i2c: E2 02 01 02 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 01 00 00 F4 03 04 00 18 05 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 08 43 02 00 35 04 06 00 E3 00 00 59 [23:49:45]Write i2c OK [23:49:45]MH_I2C_Read... [23:49:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:46]Read from MH i2c: E2 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: E2 03 00 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: E2 03 00 02 08 00 90 00 7E [23:49:46]RAPDU: 90 00 [23:49:46]wFMCommunicate OK [23:49:46]wFMCommunicate request_size=10 [23:49:46]MH_SAM_APDU [23:49:46]CAPDU: 80 0D 02 02 05 11 8C ED 94 78 [23:49:46]Write to MH i2c: E2 0D 00 03 08 80 0D 02 02 05 00 11 8C ED 94 78 00 00 25 [23:49:46]Write i2c OK [23:49:46]MH_I2C_Read... [23:49:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:46]Read from MH i2c: E2 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: E2 03 00 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: E2 03 00 03 08 00 90 00 7F [23:49:46]RAPDU: 90 00 [23:49:46]wFMCommunicate OK [23:49:46]wFMCommunicate request_size=4 [23:49:46]MH_SAM_APDU [23:49:46]CAPDU: 80 0D 03 02 [23:49:46]Write to MH i2c: E2 08 00 04 08 80 0D 03 02 00 00 00 00 87 [23:49:46]Write i2c OK [23:49:46]MH_I2C_Read... [23:49:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:49:46]Read from MH i2c: E2 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: E2 0B 00 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: E2 0B 00 04 08 00 EC 70 E8 03 DE 9E 0D 02 90 00 5A [23:49:46]RAPDU: EC 70 E8 03 DE 9E 0D 02 90 00 [23:49:46]wFMCommunicate OK [23:49:46]SAM_PROTO_SignData done [23:49:46]FM_MakeSignedData done [23:49:46]CreateOFDProtocolMessage [23:49:46]wFMCommunicate request_size=4 [23:49:46]MH_SAM_APDU [23:49:46]CAPDU: 80 11 00 00 [23:49:46]Write to MH i2c: E2 08 00 05 08 80 11 00 00 00 00 00 00 87 [23:49:46]Write i2c OK [23:49:46]MH_I2C_Read... [23:49:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:46]Read from MH i2c: E2 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: E2 17 00 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: E2 17 00 05 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 DA [23:49:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:49:46]wFMCommunicate OK [23:49:46]CreateOFDProtocolMessage done [23:49:46]OFDSenderStorePacket 148232 [23:49:46]StoreOFDPacket docnum=148232 [23:49:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 C3 89 07 01 16 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 01 00 00 F4 03 04 00 18 05 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 08 43 02 00 35 04 06 00 E3 11 8C ED 94 78 EC 70 E8 03 DE 9E 0D 02 [23:49:46]CheckFolder [23:49:46]dirname=/storage/ofd_packets [23:49:46]CheckFolder done [23:49:46]ProducePacketName [23:49:46]name=ofd_packets/00148232 [23:49:46]NVStorageSaveData ofd_packets/00148232 [23:49:46]File name is /storage/ofd_packets/00148232 [23:49:46]Write 301 bytes [23:49:46]NVStorageSaveData done [23:49:46]OFDSenderStorePacket done [23:49:46]KKMCreateOFDPacket done [23:49:46]NVStorageSaveData kkm_last_timestamp [23:49:46]File name is /storage/kkm_last_timestamp [23:49:46]Write 4 bytes [23:49:46]NVStorageSaveData done [23:49:46]ExternCall_PrintAddStr [23:49:46]wPrintStart [23:49:46]Write to MH i2c: 01 00 00 06 08 0E [23:49:46]Write i2c OK [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: 01 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: 01 07 00 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: 01 07 00 06 08 00 00 00 00 00 FF 0F 23 [23:49:46]RasterBufferAndPrint [23:49:46]line Счет N : (1)979170 [23:49:46]line ИНН: 02508201610067 [23:49:46]line Контрольно-Кассовый Чек [23:49:46]line ПРОДАЖА [23:49:46]line ТРК (МРК, ГНК) : 31 [23:49:46]line Товар: 2710124130 [23:49:46]line Аи-92-К-5 [23:49:46]line 7.540 * 66.40 [23:49:46]line = 500.66 [23:49:46]line НДС 12% НСП 1% [23:49:46]line > о реализуемом товаре [23:49:46]line ОКРУГЛЕНИЕ: -0.66 [23:49:46]line ИТОГО: 500.00 [23:49:46]line Внесено: 500.00 [23:49:46]line СДАЧА: 0.00 [23:49:46]line НСП 1% : 4.43 [23:49:46]line НДС 12% : 53.17 [23:49:46]line Наличными: 500.00 [23:49:46]line Безнал.: 0.00 [23:49:46]line Место: АЗС № 68 "Партнер Нефть" [23:49:46]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [23:49:46]line СНО: Общий режим [23:49:46]line Чек 424 02.06.2024 23:49 [23:49:46]line Смена: 366 ФФД: 1.0 [23:49:46]line ЗНМ: 0300000035 [23:49:46]line РНМ: 0000000000092720 [23:49:46]line Версия ККМ: 001 [23:49:46]line ФМ: 0000000000875057 [23:49:46]line ФД: 148232 [23:49:46]line ФПД: 249664518329464 [23:49:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T234944&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148232&fm=249664518329464&tin=02508201610067®Number=0000000000092720&sum=50000 [23:49:46]OFD Sender: Processing packet 148232 [packets to send 99, broken 98] [23:49:46]ProducePacketName [23:49:46]name=ofd_packets/00148232 [23:49:46]OFD Sender: To server: pG, [23:49:46]CommunicateWithHost lk.salyk.kg:30040 [23:49:46]ConnectInit lk.salyk.kg [23:49:46]written 0, free lines is 4095 [23:49:46]Connected sock=10 [23:49:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 C3 89 07 01 16 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 01 00 00 F4 03 04 00 18 05 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 08 43 02 00 35 04 06 00 E3 11 8C ED 94 78 EC 70 E8 03 DE 9E 0D 02 [23:49:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 E6 87 47 00 2E 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 08 43 02 00 F4 03 04 00 41 AC 5C 66 B6 04 01 00 00 0A EB FA E2 1F 32 02 BC [23:49:46]CommunicateWithHost err = 0 [23:49:46]CheckOFDResponse [23:49:46]1017 (14) - 77093643461234 [23:49:46]1041 (16) - 0000000000875057 [23:49:46]1040 (4) - 148232 [23:49:46]1012 (4) - 02.06.2024 17:30 [23:49:46]1206 (1) - 0 [23:49:46]OFD Sender: Remove packet 148232 [23:49:46]ProducePacketName [23:49:46]name=ofd_packets/00148232 [23:49:46]NVStorageDeleteData [23:49:46]Write to MH i2c: 01 00 00 31 08 39 [23:49:46]Write i2c OK [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: 01 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: 01 07 00 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: 01 07 00 31 08 00 00 00 00 00 74 0C C0 [23:49:46]RasterBufferAndPrint [23:49:46]line [23:49:46]line [23:49:46]line [23:49:46]line [23:49:46]line [23:49:46]written 0, free lines is 3192 [23:49:46]MH_Cut [23:49:46]Write to MH i2c: D1 01 00 38 08 01 12 [23:49:46]Write i2c OK [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: D1 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: D1 01 00 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: D1 01 00 38 08 00 11 [23:49:46]Write to MH i2c: 01 00 00 39 08 41 [23:49:46]Write i2c OK [23:49:46]MH_I2C_Read... [23:49:47]OFD Sender: No OFD packet to send [23:49:48]*** Cut start [23:49:48]*** Partial cut [23:49:48]*** CUTSNS_PIN = 1 [23:49:48]*** CUTSNS_PIN = 0 [23:49:48]*** Brake cut motor [23:49:48]Read from MH i2c: 01 [23:49:48]MH_I2C_Read... [23:49:48]*** Stop cut motor [23:49:48]*** Cut end [23:49:48]Read from MH i2c: 01 07 00 [23:49:48]MH_I2C_Read... [23:49:48]Read from MH i2c: 01 07 00 39 08 00 00 00 00 00 FF 0F 56 [23:49:48]process_action close_receipt done [23:49:48]requested_data is exist [23:49:48]produce_requested_data [23:49:48]requested_item fm.sn is exist - process it [23:49:48]wFMCommunicate request_size=4 [23:49:48]MH_SAM_APDU [23:49:48]CAPDU: 80 11 00 00 [23:49:48]Write to MH i2c: E2 08 00 3A 08 80 11 00 00 00 00 00 00 BC [23:49:48]Write i2c OK [23:49:48]MH_I2C_Read... [23:49:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:48]Read from MH i2c: E2 [23:49:48]MH_I2C_Read... [23:49:48]Read from MH i2c: E2 17 00 [23:49:48]MH_I2C_Read... [23:49:48]Read from MH i2c: E2 17 00 3A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 0F [23:49:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:49:48]wFMCommunicate OK [23:49:48]requested_item fd.num is exist - process it [23:49:48]SAM_PROTO_GetFieldsCounters [23:49:48]wFMCommunicate request_size=4 [23:49:48]MH_SAM_APDU [23:49:48]CAPDU: 80 13 00 00 [23:49:48]Write to MH i2c: E2 08 00 3B 08 80 13 00 00 00 00 00 00 BF [23:49:48]Write i2c OK [23:49:48]MH_I2C_Read... [23:49:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:49]Read from MH i2c: E2 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: E2 62 00 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: E2 62 00 3B 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 08 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 A8 01 00 00 5E 04 04 00 A8 01 00 00 57 04 04 00 A9 01 00 00 19 04 04 00 00 00 00 00 90 00 92 [23:49:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 08 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 A8 01 00 00 5E 04 04 00 A8 01 00 00 57 04 04 00 A9 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:49:49]wFMCommunicate OK [23:49:49]SAM_PROTO_GetFieldsCounters done [23:49:49]requested_item shift.num is exist - process it [23:49:49]requested_item shift.opened is exist - process it [23:49:49]req_shift_opened [23:49:49]FM_GetShiftState [23:49:49]SAM_PROTO_GetShiftState [23:49:49]wFMCommunicate request_size=4 [23:49:49]MH_SAM_APDU [23:49:49]CAPDU: 80 13 01 00 [23:49:49]Write to MH i2c: E2 08 00 3C 08 80 13 01 00 00 00 00 00 C1 [23:49:49]Write i2c OK [23:49:49]MH_I2C_Read... [23:49:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:49]Read from MH i2c: E2 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: E2 0E 00 [23:49:49]MH_I2C_Read... [23:49:49]Read from MH i2c: E2 0E 00 3C 08 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 D9 [23:49:49]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [23:49:49]wFMCommunicate OK [23:49:49]SAM_PROTO_GetShiftState done [23:49:49]FM_GetShiftState done [23:49:49]req_shift_opened done [23:49:49]requested_item shift.open_date is exist - process it [23:49:49]req_shift_open_date [23:49:49]req_shift_open_date done [23:49:49]produce_requested_data done [23:49:49]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148232,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [23:49:49]process_action_free close_receipt [23:49:49]json_value_free [23:49:49]json_value_free done [23:49:49]process_json_proto returns [23:49:49]Send response to host [23:49:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148232,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [23:49:49]free response buf [23:49:49]execute_script done [23:49:49]execute_script returns [23:49:49]free content buf [23:49:49]Sock 8.Close socket [23:49:49]Sock 8.Thread stoped [23:49:52]OFD Sender: No OFD packet to send [23:49:57]OFD Sender: No OFD packet to send [23:50:02]OFD Sender: No OFD packet to send [23:50:07]OFD Sender: No OFD packet to send [23:50:09]accept exits with 9 [23:50:09]New connection [23:50:09]New thread 3067432292 created [23:50:09]Thread 3067288932 joined [23:50:09]Waiting for new connection... [23:50:09] Sock 9.Parse request [23:50:09]Sock 9.Check first char [23:50:09]Sock 9.First char is OK [23:50:09]request: POST /json_proto HTTP/1.0 [23:50:09]Method: POST [23:50:09]URL: /json_proto [23:50:09]Method is POST - this is cgi request [23:50:09]url: /json_proto [23:50:09]query_string will be loaded in cgi processing [23:50:09]execute_cgi json_proto POST (null) [23:50:09]execute_cgi path=json_proto method=POST [23:50:09]POST find Content-Length [23:50:09]Host: 172.17.38.4:8080 [23:50:09]Content-Length: 613 [23:50:09]Content-Type: application/json [23:50:09] [23:50:09]POST finish read [23:50:09]Found Content-Length = 613 [23:50:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11869", "tax_sys" : 0, "items" : [ { "code": "48744317", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Camel Yellow", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:09]execute_script... [23:50:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)11869", "tax_sys" : 0, "items" : [ { "code": "48744317", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Camel Yellow", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:09]POST & json_proto [23:50:09]process_json_proto [23:50:09]json parsed OK: [23:50:09]protocol is kg_v1.0 [23:50:09]action value=close_receipt [23:50:09]process_action close_receipt [23:50:09]cmd_close_receipt [23:50:09]MH_GetDate [23:50:09]Write to MH i2c: F0 00 00 3D 08 34 [23:50:09]Write i2c OK [23:50:09]MH_I2C_Read... [23:50:09]Read from MH i2c: F0 [23:50:09]MH_I2C_Read... [23:50:09]Read from MH i2c: F0 09 00 [23:50:09]MH_I2C_Read... [23:50:09]Read from MH i2c: F0 09 00 3D 08 00 32 05 5D 66 CC 51 87 64 3F [23:50:09]GetLastDocTimeStamp 1717372184 [23:50:09]current date 1717372210 [23:50:09]FM_GetShiftState [23:50:09]SAM_PROTO_GetShiftState [23:50:09]wFMCommunicate request_size=4 [23:50:09]MH_SAM_APDU [23:50:09]CAPDU: 80 13 01 00 [23:50:09]Write to MH i2c: E2 08 00 3E 08 80 13 01 00 00 00 00 00 C3 [23:50:09]Write i2c OK [23:50:09]MH_I2C_Read... [23:50:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:09]Read from MH i2c: E2 [23:50:09]MH_I2C_Read... [23:50:09]Read from MH i2c: E2 0E 00 [23:50:09]MH_I2C_Read... [23:50:09]Read from MH i2c: E2 0E 00 3E 08 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 DB [23:50:09]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [23:50:09]wFMCommunicate OK [23:50:09]SAM_PROTO_GetShiftState done [23:50:09]FM_GetShiftState done [23:50:09]opened in 1717287824 [23:50:09]opened+sec_in_day 1717374224 [23:50:09]quantity*price = 15000 [23:50:09]sum+1 = 15001 [23:50:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 425 02.06.2024 23:50 Смена: 366 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148233 ФПД: 233356952081824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T235010&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148233&fm=233356952081824&tin=02508201610067®Number=0000000000092720&sum=15000 0 [23:50:10]StoreToDocumentArchive [23:50:10]shift 366 fd 148233 [23:50:10]save to /storage/0366/doc_00148233 [23:50:10]save last doc name /storage/0366/doc_00148233 to /storage/kkm_last_doc_name [23:50:10]save OK [23:50:10]Clear old archive folders... [23:50:10]ProcessDocumentItem done err = 0, tmpTLVsize=266 [23:50:10]tlvbuf is 01111BF0 [23:50:10]SAM_PROTO_ClearQueue [23:50:10]wFMCommunicate request_size=4 [23:50:10]MH_SAM_APDU [23:50:10]CAPDU: 80 09 00 00 [23:50:10]Write to MH i2c: E2 08 00 4B 08 80 09 00 00 00 00 00 00 C5 [23:50:10]Write i2c OK [23:50:10]MH_I2C_Read... [23:50:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:50:10]Read from MH i2c: E2 [23:50:10]MH_I2C_Read... [23:50:10]Read from MH i2c: E2 03 00 [23:50:10]MH_I2C_Read... [23:50:10]Read from MH i2c: E2 03 00 4B 08 00 90 00 C7 [23:50:10]RAPDU: 90 00 [23:50:10]wFMCommunicate OK [23:50:10]SAM_PROTO_ClearQueue done [23:50:10]KKMCreateOFDPacket [23:50:10]OFDProtocolAddRootSTLVToBuf [23:50:10]FM_MakeSignedData [23:50:10]FM_MakeSignedData [23:50:10]SAM_PROTO_SignData [23:50:10]wFMCommunicate request_size=4 [23:50:10]MH_SAM_APDU [23:50:10]CAPDU: 80 0D 01 02 [23:50:10]Write to MH i2c: E2 08 00 4C 08 80 0D 01 02 00 00 00 00 CD [23:50:10]Write i2c OK [23:50:10]MH_I2C_Read... [23:50:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:50:10]Read from MH i2c: E2 [23:50:10]MH_I2C_Read... [23:50:10]Read from MH i2c: E2 03 00 [23:50:10]MH_I2C_Read... [23:50:10]Read from MH i2c: E2 03 00 4C 08 00 90 00 C8 [23:50:10]RAPDU: 90 00 [23:50:10]wFMCommunicate OK [23:50:10]wFMCommunicate request_size=255 [23:50:10]MH_SAM_APDU [23:50:10]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 32 05 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 [23:50:10]Write to MH i2c: E2 02 01 4D 08 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 32 05 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 00 00 9E [23:50:10]Write i2c OK [23:50:10]MH_I2C_Read... [23:50:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:11]Read from MH i2c: E2 [23:50:11]MH_I2C_Read... [23:50:11]Read from MH i2c: E2 03 00 [23:50:11]MH_I2C_Read... [23:50:11]Read from MH i2c: E2 03 00 4D 08 00 90 00 C9 [23:50:11]RAPDU: 90 00 [23:50:11]wFMCommunicate OK [23:50:11]wFMCommunicate request_size=25 [23:50:11]MH_SAM_APDU [23:50:11]CAPDU: 80 0D 02 02 14 35 37 10 04 04 00 09 43 02 00 35 04 06 00 D4 3C A6 3C 15 A0 [23:50:11]Write to MH i2c: E2 1C 00 4E 08 80 0D 02 02 14 00 35 37 10 04 04 00 09 43 02 00 35 04 06 00 D4 3C A6 3C 15 A0 00 00 B0 [23:50:11]Write i2c OK [23:50:11]MH_I2C_Read... [23:50:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:11]Read from MH i2c: E2 [23:50:11]MH_I2C_Read... [23:50:11]Read from MH i2c: E2 03 00 [23:50:11]MH_I2C_Read... [23:50:11]Read from MH i2c: E2 03 00 4E 08 00 90 00 CA [23:50:11]RAPDU: 90 00 [23:50:11]wFMCommunicate OK [23:50:11]wFMCommunicate request_size=4 [23:50:11]MH_SAM_APDU [23:50:11]CAPDU: 80 0D 03 02 [23:50:11]Write to MH i2c: E2 08 00 4F 08 80 0D 03 02 00 00 00 00 D2 [23:50:11]Write i2c OK [23:50:11]MH_I2C_Read... [23:50:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:50:11]Read from MH i2c: E2 [23:50:11]MH_I2C_Read... [23:50:11]Read from MH i2c: E2 0B 00 [23:50:11]MH_I2C_Read... [23:50:11]Read from MH i2c: E2 0B 00 4F 08 00 BA CF 9A 9E 85 83 F8 C2 90 00 56 [23:50:11]RAPDU: BA CF 9A 9E 85 83 F8 C2 90 00 [23:50:11]wFMCommunicate OK [23:50:11]SAM_PROTO_SignData done [23:50:11]FM_MakeSignedData done [23:50:11]CreateOFDProtocolMessage [23:50:11]wFMCommunicate request_size=4 [23:50:11]MH_SAM_APDU [23:50:11]CAPDU: 80 11 00 00 [23:50:11]Write to MH i2c: E2 08 00 50 08 80 11 00 00 00 00 00 00 D2 [23:50:11]Write i2c OK [23:50:11]MH_I2C_Read... [23:50:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:11]Read from MH i2c: E2 [23:50:11]MH_I2C_Read... [23:50:11]Read from MH i2c: E2 17 00 [23:50:11]MH_I2C_Read... [23:50:11]Read from MH i2c: E2 17 00 50 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 25 [23:50:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:50:11]wFMCommunicate OK [23:50:11]CreateOFDProtocolMessage done [23:50:11]OFDSenderStorePacket 148233 [23:50:11]StoreOFDPacket docnum=148233 [23:50:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 1E 01 00 00 70 28 16 01 44 FE 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 32 05 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 09 43 02 00 35 04 06 00 D4 3C A6 3C 15 A0 BA CF 9A 9E 85 83 F8 C2 [23:50:11]CheckFolder [23:50:11]dirname=/storage/ofd_packets [23:50:11]CheckFolder done [23:50:11]ProducePacketName [23:50:11]name=ofd_packets/00148233 [23:50:11]NVStorageSaveData ofd_packets/00148233 [23:50:11]File name is /storage/ofd_packets/00148233 [23:50:11]Write 316 bytes [23:50:11]NVStorageSaveData done [23:50:11]OFDSenderStorePacket done [23:50:11]KKMCreateOFDPacket done [23:50:11]NVStorageSaveData kkm_last_timestamp [23:50:11]File name is /storage/kkm_last_timestamp [23:50:11]Write 4 bytes [23:50:11]NVStorageSaveData done [23:50:11]ExternCall_PrintAddStr [23:50:11]wPrintStart [23:50:11]Write to MH i2c: 01 00 00 51 08 59 [23:50:11]Write i2c OK [23:50:11]MH_I2C_Read... [23:50:11]Read from MH i2c: 01 [23:50:11]MH_I2C_Read... [23:50:11]Read from MH i2c: 01 07 00 [23:50:11]MH_I2C_Read... [23:50:11]Read from MH i2c: 01 07 00 51 08 00 00 00 00 00 FF 0F 6E [23:50:11]RasterBufferAndPrint [23:50:11]line Счет N : (3)11869 [23:50:11]line ИНН: 02508201610067 [23:50:11]line Контрольно-Кассовый Чек [23:50:11]line ПРОДАЖА [23:50:11]line Товар: 48744317 [23:50:11]line Сигареты Camel Yellow [23:50:11]line 1.000 * 150.00 [23:50:11]line = 150.00 [23:50:11]line НДС 12% НСП 1% [23:50:11]line > о реализуемом товаре [23:50:11]line ИТОГО: 150.00 [23:50:11]line НСП 1% : 1.33 [23:50:11]line НДС 12% : 15.93 [23:50:11]line Наличными: 150.00 [23:50:11]line Безнал.: 0.00 [23:50:11]line Место: АЗС № 68 "Партнер Нефть" [23:50:11]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [23:50:11]line СНО: Общий режим [23:50:11]line Чек 425 02.06.2024 23:50 [23:50:11]line Смена: 366 ФФД: 1.0 [23:50:11]line ЗНМ: 0300000035 [23:50:11]line РНМ: 0000000000092720 [23:50:11]line Версия ККМ: 001 [23:50:11]line ФМ: 0000000000875057 [23:50:11]line ФД: 148233 [23:50:11]line ФПД: 233356952081824 [23:50:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T235010&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148233&fm=233356952081824&tin=02508201610067®Number=0000000000092720&sum=15000 [23:50:11]line 0 [23:50:11]OFD Sender: Processing packet 148233 [packets to send 99, broken 98] [23:50:11]ProducePacketName [23:50:11]name=ofd_packets/00148233 [23:50:11]OFD Sender: To server: pG, [23:50:11]CommunicateWithHost lk.salyk.kg:30040 [23:50:11]ConnectInit lk.salyk.kg [23:50:11]written 0, free lines is 4095 [23:50:11]Connected sock=10 [23:50:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 1E 01 00 00 70 28 16 01 44 FE 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 08 00 34 38 37 34 34 33 31 37 06 04 1D 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 43 61 6D 65 6C 20 59 65 6C 6C 6F 77 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 01 00 00 F4 03 04 00 32 05 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 09 43 02 00 35 04 06 00 D4 3C A6 3C 15 A0 BA CF 9A 9E 85 83 F8 C2 [23:50:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 55 E3 47 00 2C 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 09 43 02 00 F4 03 04 00 5A AC 5C 66 B6 04 01 00 00 F7 DB 04 2B E8 F7 53 88 [23:50:11]CommunicateWithHost err = 0 [23:50:11]CheckOFDResponse [23:50:11]1017 (14) - 77093643461234 [23:50:11]1041 (16) - 0000000000875057 [23:50:11]1040 (4) - 148233 [23:50:11]1012 (4) - 02.06.2024 17:31 [23:50:11]1206 (1) - 0 [23:50:11]OFD Sender: Remove packet 148233 [23:50:11]ProducePacketName [23:50:11]name=ofd_packets/00148233 [23:50:11]NVStorageDeleteData [23:50:12]Write to MH i2c: 01 00 00 79 08 81 [23:50:12]Write i2c OK [23:50:12]MH_I2C_Read... [23:50:12]Read from MH i2c: 01 [23:50:12]MH_I2C_Read... [23:50:12]Read from MH i2c: 01 07 00 [23:50:12]MH_I2C_Read... [23:50:12]Read from MH i2c: 01 07 00 79 08 00 00 00 00 00 9E 0C 32 [23:50:12]RasterBufferAndPrint [23:50:12]line [23:50:12]line [23:50:12]line [23:50:12]line [23:50:12]line [23:50:12]written 0, free lines is 3234 [23:50:12]MH_Cut [23:50:12]Write to MH i2c: D1 01 00 80 08 01 5A [23:50:12]Write i2c OK [23:50:12]MH_I2C_Read... [23:50:12]Read from MH i2c: D1 [23:50:12]MH_I2C_Read... [23:50:12]Read from MH i2c: D1 01 00 [23:50:12]MH_I2C_Read... [23:50:12]Read from MH i2c: D1 01 00 80 08 00 59 [23:50:12]Write to MH i2c: 01 00 00 81 08 89 [23:50:12]Write i2c OK [23:50:12]MH_I2C_Read... [23:50:12]OFD Sender: No OFD packet to send [23:50:13]*** Cut start [23:50:13]*** Partial cut [23:50:13]*** CUTSNS_PIN = 1 [23:50:13]*** CUTSNS_PIN = 0 [23:50:13]*** Brake cut motor [23:50:13]Read from MH i2c: 01 [23:50:13]MH_I2C_Read... [23:50:13]*** Stop cut motor [23:50:13]*** Cut end [23:50:13]Read from MH i2c: 01 07 00 [23:50:13]MH_I2C_Read... [23:50:13]Read from MH i2c: 01 07 00 81 08 00 00 00 00 00 FF 0F 9E [23:50:13]process_action close_receipt done [23:50:13]requested_data is exist [23:50:13]produce_requested_data [23:50:13]requested_item fm.sn is exist - process it [23:50:13]wFMCommunicate request_size=4 [23:50:13]MH_SAM_APDU [23:50:13]CAPDU: 80 11 00 00 [23:50:13]Write to MH i2c: E2 08 00 82 08 80 11 00 00 00 00 00 00 04 [23:50:13]Write i2c OK [23:50:13]MH_I2C_Read... [23:50:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:13]Read from MH i2c: E2 [23:50:13]MH_I2C_Read... [23:50:13]Read from MH i2c: E2 17 00 [23:50:13]MH_I2C_Read... [23:50:13]Read from MH i2c: E2 17 00 82 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 57 [23:50:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:50:13]wFMCommunicate OK [23:50:13]requested_item fd.num is exist - process it [23:50:13]SAM_PROTO_GetFieldsCounters [23:50:13]wFMCommunicate request_size=4 [23:50:13]MH_SAM_APDU [23:50:13]CAPDU: 80 13 00 00 [23:50:13]Write to MH i2c: E2 08 00 83 08 80 13 00 00 00 00 00 00 07 [23:50:13]Write i2c OK [23:50:13]MH_I2C_Read... [23:50:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:50:14]Read from MH i2c: E2 [23:50:14]MH_I2C_Read... [23:50:14]Read from MH i2c: E2 62 00 [23:50:14]MH_I2C_Read... [23:50:14]Read from MH i2c: E2 62 00 83 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 09 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 A9 01 00 00 5E 04 04 00 A9 01 00 00 57 04 04 00 AA 01 00 00 19 04 04 00 00 00 00 00 90 00 DE [23:50:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 09 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 A9 01 00 00 5E 04 04 00 A9 01 00 00 57 04 04 00 AA 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:50:14]wFMCommunicate OK [23:50:14]SAM_PROTO_GetFieldsCounters done [23:50:14]requested_item shift.num is exist - process it [23:50:14]requested_item shift.opened is exist - process it [23:50:14]req_shift_opened [23:50:14]FM_GetShiftState [23:50:14]SAM_PROTO_GetShiftState [23:50:14]wFMCommunicate request_size=4 [23:50:14]MH_SAM_APDU [23:50:14]CAPDU: 80 13 01 00 [23:50:14]Write to MH i2c: E2 08 00 84 08 80 13 01 00 00 00 00 00 09 [23:50:14]Write i2c OK [23:50:14]MH_I2C_Read... [23:50:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:14]Read from MH i2c: E2 [23:50:14]MH_I2C_Read... [23:50:14]Read from MH i2c: E2 0E 00 [23:50:14]MH_I2C_Read... [23:50:14]Read from MH i2c: E2 0E 00 84 08 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 21 [23:50:14]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [23:50:14]wFMCommunicate OK [23:50:14]SAM_PROTO_GetShiftState done [23:50:14]FM_GetShiftState done [23:50:14]req_shift_opened done [23:50:14]requested_item shift.open_date is exist - process it [23:50:14]req_shift_open_date [23:50:14]req_shift_open_date done [23:50:14]produce_requested_data done [23:50:14]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148233,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [23:50:14]process_action_free close_receipt [23:50:14]json_value_free [23:50:14]json_value_free done [23:50:14]process_json_proto returns [23:50:14]Send response to host [23:50:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148233,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [23:50:14]free response buf [23:50:14]execute_script done [23:50:14]execute_script returns [23:50:14]free content buf [23:50:14]Sock 9.Close socket [23:50:14]Sock 9.Thread stoped [23:50:17]OFD Sender: No OFD packet to send [23:50:22]OFD Sender: No OFD packet to send [23:50:27]OFD Sender: No OFD packet to send [23:50:32]OFD Sender: No OFD packet to send [23:50:37]OFD Sender: No OFD packet to send [23:50:42]OFD Sender: No OFD packet to send [23:50:47]OFD Sender: No OFD packet to send [23:50:52]OFD Sender: No OFD packet to send [23:50:57]OFD Sender: No OFD packet to send [23:51:02]OFD Sender: No OFD packet to send [23:51:07]OFD Sender: No OFD packet to send [23:51:12]OFD Sender: No OFD packet to send [23:51:17]OFD Sender: No OFD packet to send [23:51:22]OFD Sender: No OFD packet to send [23:51:27]OFD Sender: No OFD packet to send [23:51:32]OFD Sender: No OFD packet to send [23:51:37]OFD Sender: No OFD packet to send [23:51:42]OFD Sender: No OFD packet to send [23:51:47]OFD Sender: No OFD packet to send [23:51:52]OFD Sender: No OFD packet to send [23:51:57]OFD Sender: No OFD packet to send [23:52:02]OFD Sender: No OFD packet to send [23:52:07]OFD Sender: No OFD packet to send [23:52:12]OFD Sender: No OFD packet to send [23:52:17]OFD Sender: No OFD packet to send [23:52:22]OFD Sender: No OFD packet to send [23:52:27]OFD Sender: No OFD packet to send [23:52:32]OFD Sender: No OFD packet to send [23:52:37]OFD Sender: No OFD packet to send [23:52:42]OFD Sender: No OFD packet to send [23:52:47]OFD Sender: No OFD packet to send [23:52:52]OFD Sender: No OFD packet to send [23:52:57]OFD Sender: No OFD packet to send [23:53:02]OFD Sender: No OFD packet to send [23:53:07]OFD Sender: No OFD packet to send [23:53:12]OFD Sender: No OFD packet to send [23:53:17]OFD Sender: No OFD packet to send [23:53:22]OFD Sender: No OFD packet to send [23:53:27]OFD Sender: No OFD packet to send [23:53:32]OFD Sender: No OFD packet to send [23:53:37]OFD Sender: No OFD packet to send [23:53:42]OFD Sender: No OFD packet to send [23:53:47]OFD Sender: No OFD packet to send [23:53:52]OFD Sender: No OFD packet to send [23:53:57]OFD Sender: No OFD packet to send [23:54:02]OFD Sender: No OFD packet to send [23:54:07]OFD Sender: No OFD packet to send [23:54:12]OFD Sender: No OFD packet to send [23:54:17]OFD Sender: No OFD packet to send [23:54:22]OFD Sender: No OFD packet to send [23:54:27]OFD Sender: No OFD packet to send [23:54:32]OFD Sender: No OFD packet to send [23:54:37]OFD Sender: No OFD packet to send [23:54:42]OFD Sender: No OFD packet to send [23:54:47]OFD Sender: No OFD packet to send [23:54:52]OFD Sender: No OFD packet to send [23:54:57]OFD Sender: No OFD packet to send [23:55:02]OFD Sender: No OFD packet to send [23:55:07]OFD Sender: No OFD packet to send [23:55:12]OFD Sender: No OFD packet to send [23:55:17]OFD Sender: No OFD packet to send [23:55:22]OFD Sender: No OFD packet to send [23:55:27]OFD Sender: No OFD packet to send [23:55:32]OFD Sender: No OFD packet to send [23:55:37]OFD Sender: No OFD packet to send [23:55:42]OFD Sender: No OFD packet to send [23:55:47]OFD Sender: No OFD packet to send [23:55:52]OFD Sender: No OFD packet to send [23:55:57]OFD Sender: No OFD packet to send [23:56:02]OFD Sender: No OFD packet to send [23:56:07]OFD Sender: No OFD packet to send [23:56:12]OFD Sender: No OFD packet to send [23:56:17]OFD Sender: No OFD packet to send [23:56:22]OFD Sender: No OFD packet to send [23:56:27]OFD Sender: No OFD packet to send [23:56:32]OFD Sender: No OFD packet to send [23:56:35]accept exits with 8 [23:56:35]New connection [23:56:35]New thread 3067288932 created [23:56:35]Thread 3067432292 joined [23:56:35]Waiting for new connection... [23:56:35] Sock 8.Parse request [23:56:35]Sock 8.Check first char [23:56:35]Sock 8.First char is OK [23:56:35]request: POST /json_proto HTTP/1.0 [23:56:35]Method: POST [23:56:35]URL: /json_proto [23:56:35]Method is POST - this is cgi request [23:56:35]url: /json_proto [23:56:35]query_string will be loaded in cgi processing [23:56:35]execute_cgi json_proto POST (null) [23:56:35]execute_cgi path=json_proto method=POST [23:56:35]POST find Content-Length [23:56:35]Host: 172.17.38.4:8080 [23:56:35]Content-Length: 677 [23:56:35]Content-Type: application/json [23:56:35] [23:56:35]POST finish read [23:56:35]Found Content-Length = 677 [23:56:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:35]execute_script... [23:56:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:35]POST & json_proto [23:56:35]process_json_proto [23:56:35]json parsed OK: [23:56:35]protocol is kg_v1.0 [23:56:35]action value=close_receipt [23:56:35]process_action close_receipt [23:56:35]cmd_close_receipt [23:56:35]MH_GetDate [23:56:35]Write to MH i2c: F0 00 00 85 08 7C [23:56:35]Write i2c OK [23:56:35]MH_I2C_Read... [23:56:35]Read from MH i2c: F0 [23:56:35]MH_I2C_Read... [23:56:35]Read from MH i2c: F0 09 00 [23:56:35]MH_I2C_Read... [23:56:35]Read from MH i2c: F0 09 00 85 08 00 B4 06 5D 66 CC 51 87 64 0A [23:56:35]GetLastDocTimeStamp 1717372210 [23:56:35]current date 1717372596 [23:56:35]FM_GetShiftState [23:56:35]SAM_PROTO_GetShiftState [23:56:35]wFMCommunicate request_size=4 [23:56:35]MH_SAM_APDU [23:56:35]CAPDU: 80 13 01 00 [23:56:35]Write to MH i2c: E2 08 00 86 08 80 13 01 00 00 00 00 00 0B [23:56:35]Write i2c OK [23:56:35]MH_I2C_Read... [23:56:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:35]Read from MH i2c: E2 [23:56:35]MH_I2C_Read... [23:56:35]Read from MH i2c: E2 0E 00 [23:56:35]MH_I2C_Read... [23:56:35]Read from MH i2c: E2 0E 00 86 08 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 23 [23:56:35]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [23:56:35]wFMCommunicate OK [23:56:35]SAM_PROTO_GetShiftState done [23:56:35]FM_GetShiftState done [23:56:35]opened in 1717287824 [23:56:35]opened+sec_in_day 1717374224 [23:56:35]quantity*price = 50065 [23:56:35]sum+1 = 50067 [23:56:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 426 02.06.2024 23:56 Смена: 366 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148234 ФПД: 140554894098400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T235636&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148234&fm=140554894098400&tin=02508201610067®Number=0000000000092720&sum=50000 [23:56:36]StoreToDocumentArchive [23:56:36]shift 366 fd 148234 [23:56:36]save to /storage/0366/doc_00148234 [23:56:36]save last doc name /storage/0366/doc_00148234 to /storage/kkm_last_doc_name [23:56:36]save OK [23:56:36]Clear old archive folders... [23:56:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:56:36]tlvbuf is 01323020 [23:56:36]SAM_PROTO_ClearQueue [23:56:36]wFMCommunicate request_size=4 [23:56:36]MH_SAM_APDU [23:56:36]CAPDU: 80 09 00 00 [23:56:36]Write to MH i2c: E2 08 00 93 08 80 09 00 00 00 00 00 00 0D [23:56:36]Write i2c OK [23:56:36]MH_I2C_Read... [23:56:36]Read from MH i2c: E2 [23:56:36]MH_I2C_Read... [23:56:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:56:36]Read from MH i2c: E2 03 00 [23:56:36]MH_I2C_Read... [23:56:36]Read from MH i2c: E2 03 00 93 08 00 90 00 0F [23:56:36]RAPDU: 90 00 [23:56:36]wFMCommunicate OK [23:56:36]SAM_PROTO_ClearQueue done [23:56:36]KKMCreateOFDPacket [23:56:36]OFDProtocolAddRootSTLVToBuf [23:56:36]FM_MakeSignedData [23:56:36]FM_MakeSignedData [23:56:36]SAM_PROTO_SignData [23:56:36]wFMCommunicate request_size=4 [23:56:36]MH_SAM_APDU [23:56:36]CAPDU: 80 0D 01 02 [23:56:36]Write to MH i2c: E2 08 00 94 08 80 0D 01 02 00 00 00 00 15 [23:56:36]Write i2c OK [23:56:36]MH_I2C_Read... [23:56:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:56:36]Read from MH i2c: E2 [23:56:36]MH_I2C_Read... [23:56:36]Read from MH i2c: E2 03 00 [23:56:36]MH_I2C_Read... [23:56:36]Read from MH i2c: E2 03 00 94 08 00 90 00 10 [23:56:36]RAPDU: 90 00 [23:56:36]wFMCommunicate OK [23:56:36]wFMCommunicate request_size=255 [23:56:36]MH_SAM_APDU [23:56:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 B4 06 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0A 43 02 00 35 04 06 00 7F [23:56:36]Write to MH i2c: E2 02 01 95 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 B4 06 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0A 43 02 00 35 04 06 00 7F 00 00 29 [23:56:36]Write i2c OK [23:56:36]MH_I2C_Read... [23:56:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:37]Read from MH i2c: E2 [23:56:37]MH_I2C_Read... [23:56:37]Read from MH i2c: E2 03 00 [23:56:37]MH_I2C_Read... [23:56:37]Read from MH i2c: E2 03 00 95 08 00 90 00 11 [23:56:37]RAPDU: 90 00 [23:56:37]wFMCommunicate OK [23:56:37]wFMCommunicate request_size=10 [23:56:37]MH_SAM_APDU [23:56:37]CAPDU: 80 0D 02 02 05 D5 7C 88 BF E0 [23:56:37]Write to MH i2c: E2 0D 00 96 08 80 0D 02 02 05 00 D5 7C 88 BF E0 00 00 9A [23:56:37]Write i2c OK [23:56:37]MH_I2C_Read... [23:56:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:37]Read from MH i2c: E2 [23:56:37]MH_I2C_Read... [23:56:37]Read from MH i2c: E2 03 00 [23:56:37]MH_I2C_Read... [23:56:37]Read from MH i2c: E2 03 00 96 08 00 90 00 12 [23:56:37]RAPDU: 90 00 [23:56:37]wFMCommunicate OK [23:56:37]wFMCommunicate request_size=4 [23:56:37]MH_SAM_APDU [23:56:37]CAPDU: 80 0D 03 02 [23:56:37]Write to MH i2c: E2 08 00 97 08 80 0D 03 02 00 00 00 00 1A [23:56:37]Write i2c OK [23:56:37]MH_I2C_Read... [23:56:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:56:37]Read from MH i2c: E2 [23:56:37]MH_I2C_Read... [23:56:37]Read from MH i2c: E2 0B 00 [23:56:37]MH_I2C_Read... [23:56:37]Read from MH i2c: E2 0B 00 97 08 00 A3 E3 E7 3A 19 87 9C 74 90 00 72 [23:56:37]RAPDU: A3 E3 E7 3A 19 87 9C 74 90 00 [23:56:37]wFMCommunicate OK [23:56:37]SAM_PROTO_SignData done [23:56:37]FM_MakeSignedData done [23:56:37]CreateOFDProtocolMessage [23:56:37]wFMCommunicate request_size=4 [23:56:37]MH_SAM_APDU [23:56:37]CAPDU: 80 11 00 00 [23:56:37]Write to MH i2c: E2 08 00 98 08 80 11 00 00 00 00 00 00 1A [23:56:37]Write i2c OK [23:56:37]MH_I2C_Read... [23:56:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:56:37]Read from MH i2c: E2 [23:56:37]MH_I2C_Read... [23:56:37]Read from MH i2c: E2 17 00 [23:56:37]MH_I2C_Read... [23:56:37]Read from MH i2c: E2 17 00 98 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 6D [23:56:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:56:37]wFMCommunicate OK [23:56:37]CreateOFDProtocolMessage done [23:56:37]OFDSenderStorePacket 148234 [23:56:37]StoreOFDPacket docnum=148234 [23:56:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 3A F4 07 01 BA C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 B4 06 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0A 43 02 00 35 04 06 00 7F D5 7C 88 BF E0 A3 E3 E7 3A 19 87 9C 74 [23:56:37]CheckFolder [23:56:37]dirname=/storage/ofd_packets [23:56:37]CheckFolder done [23:56:37]ProducePacketName [23:56:37]name=ofd_packets/00148234 [23:56:37]NVStorageSaveData ofd_packets/00148234 [23:56:37]File name is /storage/ofd_packets/00148234 [23:56:37]Write 301 bytes [23:56:37]NVStorageSaveData done [23:56:37]OFDSenderStorePacket done [23:56:37]KKMCreateOFDPacket done [23:56:37]NVStorageSaveData kkm_last_timestamp [23:56:37]File name is /storage/kkm_last_timestamp [23:56:37]Write 4 bytes [23:56:37]NVStorageSaveData done [23:56:37]ExternCall_PrintAddStr [23:56:37]wPrintStart [23:56:37]Write to MH i2c: 01 00 00 99 08 A1 [23:56:37]Write i2c OK [23:56:37]MH_I2C_Read... [23:56:37]Read from MH i2c: 01 [23:56:37]MH_I2C_Read... [23:56:37]Read from MH i2c: 01 07 00 [23:56:37]MH_I2C_Read... [23:56:37]Read from MH i2c: 01 07 00 99 08 00 00 00 00 00 FF 0F B6 [23:56:37]RasterBufferAndPrint [23:56:37]line Счет N : (1)979171 [23:56:37]line ИНН: 02508201610067 [23:56:37]line Контрольно-Кассовый Чек [23:56:37]line ПРОДАЖА [23:56:37]line ТРК (МРК, ГНК) : 41 [23:56:37]line Товар: 2710124130 [23:56:37]line Аи-92-К-5 [23:56:37]line 7.540 * 66.40 [23:56:37]line = 500.66 [23:56:37]line НДС 12% НСП 1% [23:56:37]line > о реализуемом товаре [23:56:37]line ОКРУГЛЕНИЕ: -0.66 [23:56:37]line ИТОГО: 500.00 [23:56:37]line Внесено: 500.00 [23:56:37]line СДАЧА: 0.00 [23:56:37]line НСП 1% : 4.43 [23:56:37]line НДС 12% : 53.17 [23:56:37]line Наличными: 500.00 [23:56:37]line Безнал.: 0.00 [23:56:37]line Место: АЗС № 68 "Партнер Нефть" [23:56:37]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [23:56:37]line СНО: Общий режим [23:56:37]line Чек 426 02.06.2024 23:56 [23:56:37]line Смена: 366 ФФД: 1.0 [23:56:37]line ЗНМ: 0300000035 [23:56:37]line РНМ: 0000000000092720 [23:56:37]line Версия ККМ: 001 [23:56:37]line ФМ: 0000000000875057 [23:56:37]line ФД: 148234 [23:56:37]line ФПД: 140554894098400 [23:56:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240602T235636&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148234&fm=140554894098400&tin=02508201610067®Number=0000000000092720&sum=50000 [23:56:37]OFD Sender: Processing packet 148234 [packets to send 99, broken 98] [23:56:37]ProducePacketName [23:56:37]name=ofd_packets/00148234 [23:56:37]OFD Sender: To server: pG, [23:56:37]CommunicateWithHost lk.salyk.kg:30040 [23:56:37]ConnectInit lk.salyk.kg [23:56:37]written 0, free lines is 4095 [23:56:37]Connected sock=10 [23:56:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 3A F4 07 01 BA C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 01 00 00 F4 03 04 00 B4 06 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0A 43 02 00 35 04 06 00 7F D5 7C 88 BF E0 A3 E3 E7 3A 19 87 9C 74 [23:56:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 4A D4 47 00 7F BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0A 43 02 00 F4 03 04 00 DC AD 5C 66 B6 04 01 00 00 12 2B 1D 5C C2 25 60 FC [23:56:37]CommunicateWithHost err = 0 [23:56:37]CheckOFDResponse [23:56:37]1017 (14) - 77093643461234 [23:56:37]1041 (16) - 0000000000875057 [23:56:37]1040 (4) - 148234 [23:56:37]1012 (4) - 02.06.2024 17:37 [23:56:37]1206 (1) - 0 [23:56:37]OFD Sender: Remove packet 148234 [23:56:37]ProducePacketName [23:56:37]name=ofd_packets/00148234 [23:56:37]NVStorageDeleteData [23:56:38]Write to MH i2c: 01 00 00 C4 08 CC [23:56:38]Write i2c OK [23:56:38]MH_I2C_Read... [23:56:38]Read from MH i2c: 01 [23:56:38]MH_I2C_Read... [23:56:38]Read from MH i2c: 01 07 00 [23:56:38]MH_I2C_Read... [23:56:38]Read from MH i2c: 01 07 00 C4 08 00 00 00 00 00 73 0C 52 [23:56:38]RasterBufferAndPrint [23:56:38]line [23:56:38]line [23:56:38]line [23:56:38]line [23:56:38]line [23:56:38]written 0, free lines is 3189 [23:56:38]MH_Cut [23:56:38]Write to MH i2c: D1 01 00 CB 08 01 A5 [23:56:38]Write i2c OK [23:56:38]MH_I2C_Read... [23:56:38]Read from MH i2c: D1 [23:56:38]MH_I2C_Read... [23:56:38]Read from MH i2c: D1 01 00 [23:56:38]MH_I2C_Read... [23:56:38]Read from MH i2c: D1 01 00 CB 08 00 A4 [23:56:38]Write to MH i2c: 01 00 00 CC 08 D4 [23:56:38]Write i2c OK [23:56:38]MH_I2C_Read... [23:56:38]OFD Sender: No OFD packet to send [23:56:39]*** Cut start [23:56:39]*** Partial cut [23:56:39]*** CUTSNS_PIN = 1 [23:56:39]*** CUTSNS_PIN = 0 [23:56:39]*** Brake cut motor [23:56:39]Read from MH i2c: 01 [23:56:40]MH_I2C_Read... [23:56:40]*** Stop cut motor [23:56:40]*** Cut end [23:56:40]Read from MH i2c: 01 07 00 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: 01 07 00 CC 08 00 00 00 00 00 FF 0F E9 [23:56:40]process_action close_receipt done [23:56:40]requested_data is exist [23:56:40]produce_requested_data [23:56:40]requested_item fm.sn is exist - process it [23:56:40]wFMCommunicate request_size=4 [23:56:40]MH_SAM_APDU [23:56:40]CAPDU: 80 11 00 00 [23:56:40]Write to MH i2c: E2 08 00 CD 08 80 11 00 00 00 00 00 00 4F [23:56:40]Write i2c OK [23:56:40]MH_I2C_Read... [23:56:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:56:40]Read from MH i2c: E2 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: E2 17 00 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: E2 17 00 CD 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A2 [23:56:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [23:56:40]wFMCommunicate OK [23:56:40]requested_item fd.num is exist - process it [23:56:40]SAM_PROTO_GetFieldsCounters [23:56:40]wFMCommunicate request_size=4 [23:56:40]MH_SAM_APDU [23:56:40]CAPDU: 80 13 00 00 [23:56:40]Write to MH i2c: E2 08 00 CE 08 80 13 00 00 00 00 00 00 52 [23:56:40]Write i2c OK [23:56:40]MH_I2C_Read... [23:56:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:56:40]Read from MH i2c: E2 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: E2 62 00 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: E2 62 00 CE 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0A 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AB 01 00 00 19 04 04 00 00 00 00 00 90 00 2D [23:56:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0A 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 AA 01 00 00 5E 04 04 00 AA 01 00 00 57 04 04 00 AB 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:56:40]wFMCommunicate OK [23:56:40]SAM_PROTO_GetFieldsCounters done [23:56:40]requested_item shift.num is exist - process it [23:56:40]requested_item shift.opened is exist - process it [23:56:40]req_shift_opened [23:56:40]FM_GetShiftState [23:56:40]SAM_PROTO_GetShiftState [23:56:40]wFMCommunicate request_size=4 [23:56:40]MH_SAM_APDU [23:56:40]CAPDU: 80 13 01 00 [23:56:40]Write to MH i2c: E2 08 00 CF 08 80 13 01 00 00 00 00 00 54 [23:56:40]Write i2c OK [23:56:40]MH_I2C_Read... [23:56:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:40]Read from MH i2c: E2 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: E2 0E 00 [23:56:40]MH_I2C_Read... [23:56:40]Read from MH i2c: E2 0E 00 CF 08 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 6C [23:56:40]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [23:56:40]wFMCommunicate OK [23:56:40]SAM_PROTO_GetShiftState done [23:56:40]FM_GetShiftState done [23:56:40]req_shift_opened done [23:56:40]requested_item shift.open_date is exist - process it [23:56:40]req_shift_open_date [23:56:40]req_shift_open_date done [23:56:40]produce_requested_data done [23:56:40]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148234,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [23:56:40]process_action_free close_receipt [23:56:40]json_value_free [23:56:40]json_value_free done [23:56:40]process_json_proto returns [23:56:40]Send response to host [23:56:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148234,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [23:56:40]free response buf [23:56:40]execute_script done [23:56:40]execute_script returns [23:56:40]free content buf [23:56:40]Sock 8.Close socket [23:56:40]Sock 8.Thread stoped [23:56:43]OFD Sender: No OFD packet to send [23:56:48]OFD Sender: No OFD packet to send [23:56:53]OFD Sender: No OFD packet to send [23:56:58]OFD Sender: No OFD packet to send [23:57:03]OFD Sender: No OFD packet to send [23:57:08]OFD Sender: No OFD packet to send [23:57:13]OFD Sender: No OFD packet to send [23:57:18]OFD Sender: No OFD packet to send [23:57:23]OFD Sender: No OFD packet to send [23:57:28]OFD Sender: No OFD packet to send [23:57:33]OFD Sender: No OFD packet to send [23:57:38]OFD Sender: No OFD packet to send [23:57:43]OFD Sender: No OFD packet to send [23:57:48]OFD Sender: No OFD packet to send [23:57:53]OFD Sender: No OFD packet to send [23:57:58]OFD Sender: No OFD packet to send [23:58:03]OFD Sender: No OFD packet to send [23:58:08]OFD Sender: No OFD packet to send [23:58:13]OFD Sender: No OFD packet to send [23:58:18]OFD Sender: No OFD packet to send [23:58:23]OFD Sender: No OFD packet to send [23:58:28]OFD Sender: No OFD packet to send [23:58:33]OFD Sender: No OFD packet to send [23:58:38]OFD Sender: No OFD packet to send [23:58:43]OFD Sender: No OFD packet to send [23:58:48]OFD Sender: No OFD packet to send [23:58:53]OFD Sender: No OFD packet to send [23:58:58]OFD Sender: No OFD packet to send [23:59:03]OFD Sender: No OFD packet to send [23:59:08]OFD Sender: No OFD packet to send [23:59:13]OFD Sender: No OFD packet to send [23:59:18]OFD Sender: No OFD packet to send [23:59:23]OFD Sender: No OFD packet to send [23:59:28]OFD Sender: No OFD packet to send [23:59:33]OFD Sender: No OFD packet to send [23:59:38]OFD Sender: No OFD packet to send [23:59:43]OFD Sender: No OFD packet to send [23:59:48]OFD Sender: No OFD packet to send [23:59:53]OFD Sender: No OFD packet to send [23:59:58]OFD Sender: No OFD packet to send [00:00:03]OFD Sender: No OFD packet to send [00:00:08]OFD Sender: No OFD packet to send [00:00:13]OFD Sender: No OFD packet to send [00:00:18]OFD Sender: No OFD packet to send [00:00:23]OFD Sender: No OFD packet to send [00:00:28]OFD Sender: No OFD packet to send [00:00:33]OFD Sender: No OFD packet to send [00:00:38]OFD Sender: No OFD packet to send [00:00:43]OFD Sender: No OFD packet to send [00:00:48]OFD Sender: No OFD packet to send [00:00:53]OFD Sender: No OFD packet to send [00:00:58]OFD Sender: No OFD packet to send [00:01:03]OFD Sender: No OFD packet to send [00:01:08]OFD Sender: No OFD packet to send [00:01:13]OFD Sender: No OFD packet to send [00:01:18]OFD Sender: No OFD packet to send [00:01:23]OFD Sender: No OFD packet to send [00:01:28]OFD Sender: No OFD packet to send [00:01:33]OFD Sender: No OFD packet to send [00:01:38]OFD Sender: No OFD packet to send [00:01:43]OFD Sender: No OFD packet to send [00:01:48]OFD Sender: No OFD packet to send [00:01:53]OFD Sender: No OFD packet to send [00:01:58]OFD Sender: No OFD packet to send [00:02:03]OFD Sender: No OFD packet to send [00:02:08]OFD Sender: No OFD packet to send [00:02:13]OFD Sender: No OFD packet to send [00:02:18]OFD Sender: No OFD packet to send [00:02:23]OFD Sender: No OFD packet to send [00:02:28]OFD Sender: No OFD packet to send [00:02:33]OFD Sender: No OFD packet to send [00:02:38]OFD Sender: No OFD packet to send [00:02:43]OFD Sender: No OFD packet to send [00:02:48]OFD Sender: No OFD packet to send [00:02:53]OFD Sender: No OFD packet to send [00:02:58]OFD Sender: No OFD packet to send [00:03:03]OFD Sender: No OFD packet to send [00:03:08]OFD Sender: No OFD packet to send [00:03:13]OFD Sender: No OFD packet to send [00:03:18]OFD Sender: No OFD packet to send [00:03:23]OFD Sender: No OFD packet to send [00:03:28]OFD Sender: No OFD packet to send [00:03:33]OFD Sender: No OFD packet to send [00:03:38]OFD Sender: No OFD packet to send [00:03:43]OFD Sender: No OFD packet to send [00:03:48]OFD Sender: No OFD packet to send [00:03:53]OFD Sender: No OFD packet to send [00:03:58]OFD Sender: No OFD packet to send [00:04:03]OFD Sender: No OFD packet to send [00:04:08]OFD Sender: No OFD packet to send [00:04:13]OFD Sender: No OFD packet to send [00:04:18]OFD Sender: No OFD packet to send [00:04:23]OFD Sender: No OFD packet to send [00:04:28]OFD Sender: No OFD packet to send [00:04:33]OFD Sender: No OFD packet to send [00:04:38]OFD Sender: No OFD packet to send [00:04:43]OFD Sender: No OFD packet to send [00:04:48]OFD Sender: No OFD packet to send [00:04:53]OFD Sender: No OFD packet to send [00:04:58]OFD Sender: No OFD packet to send [00:05:03]OFD Sender: No OFD packet to send [00:05:08]OFD Sender: No OFD packet to send [00:05:13]OFD Sender: No OFD packet to send [00:05:18]OFD Sender: No OFD packet to send [00:05:23]OFD Sender: No OFD packet to send [00:05:28]OFD Sender: No OFD packet to send [00:05:33]OFD Sender: No OFD packet to send [00:05:39]OFD Sender: No OFD packet to send [00:05:44]OFD Sender: No OFD packet to send [00:05:49]OFD Sender: No OFD packet to send [00:05:54]OFD Sender: No OFD packet to send [00:05:59]OFD Sender: No OFD packet to send [00:06:04]OFD Sender: No OFD packet to send [00:06:09]OFD Sender: No OFD packet to send [00:06:14]OFD Sender: No OFD packet to send [00:06:19]OFD Sender: No OFD packet to send [00:06:24]OFD Sender: No OFD packet to send [00:06:29]OFD Sender: No OFD packet to send [00:06:34]OFD Sender: No OFD packet to send [00:06:39]OFD Sender: No OFD packet to send [00:06:44]OFD Sender: No OFD packet to send [00:06:49]OFD Sender: No OFD packet to send [00:06:54]OFD Sender: No OFD packet to send [00:06:59]OFD Sender: No OFD packet to send [00:07:04]OFD Sender: No OFD packet to send [00:07:09]OFD Sender: No OFD packet to send [00:07:14]OFD Sender: No OFD packet to send [00:07:19]OFD Sender: No OFD packet to send [00:07:24]OFD Sender: No OFD packet to send [00:07:29]OFD Sender: No OFD packet to send [00:07:34]OFD Sender: No OFD packet to send [00:07:39]OFD Sender: No OFD packet to send [00:07:44]OFD Sender: No OFD packet to send [00:07:49]OFD Sender: No OFD packet to send [00:07:54]OFD Sender: No OFD packet to send [00:07:59]OFD Sender: No OFD packet to send [00:08:04]OFD Sender: No OFD packet to send [00:08:09]OFD Sender: No OFD packet to send [00:08:14]OFD Sender: No OFD packet to send [00:08:19]OFD Sender: No OFD packet to send [00:08:24]OFD Sender: No OFD packet to send [00:08:29]OFD Sender: No OFD packet to send [00:08:34]OFD Sender: No OFD packet to send [00:08:39]OFD Sender: No OFD packet to send [00:08:44]OFD Sender: No OFD packet to send [00:08:49]OFD Sender: No OFD packet to send [00:08:54]OFD Sender: No OFD packet to send [00:08:59]OFD Sender: No OFD packet to send [00:09:04]OFD Sender: No OFD packet to send [00:09:09]OFD Sender: No OFD packet to send [00:09:14]OFD Sender: No OFD packet to send [00:09:19]OFD Sender: No OFD packet to send [00:09:24]OFD Sender: No OFD packet to send [00:09:29]OFD Sender: No OFD packet to send [00:09:34]OFD Sender: No OFD packet to send [00:09:39]OFD Sender: No OFD packet to send [00:09:44]OFD Sender: No OFD packet to send [00:09:49]OFD Sender: No OFD packet to send [00:09:54]OFD Sender: No OFD packet to send [00:09:59]OFD Sender: No OFD packet to send [00:10:04]OFD Sender: No OFD packet to send [00:10:09]OFD Sender: No OFD packet to send [00:10:14]OFD Sender: No OFD packet to send [00:10:19]OFD Sender: No OFD packet to send [00:10:24]OFD Sender: No OFD packet to send [00:10:29]OFD Sender: No OFD packet to send [00:10:34]OFD Sender: No OFD packet to send [00:10:39]OFD Sender: No OFD packet to send [00:10:44]OFD Sender: No OFD packet to send [00:10:49]OFD Sender: No OFD packet to send [00:10:54]OFD Sender: No OFD packet to send [00:10:59]OFD Sender: No OFD packet to send [00:11:04]OFD Sender: No OFD packet to send [00:11:09]OFD Sender: No OFD packet to send [00:11:14]OFD Sender: No OFD packet to send [00:11:19]OFD Sender: No OFD packet to send [00:11:24]OFD Sender: No OFD packet to send [00:11:29]OFD Sender: No OFD packet to send [00:11:34]OFD Sender: No OFD packet to send [00:11:39]OFD Sender: No OFD packet to send [00:11:44]OFD Sender: No OFD packet to send [00:11:49]OFD Sender: No OFD packet to send [00:11:54]OFD Sender: No OFD packet to send [00:11:59]OFD Sender: No OFD packet to send [00:12:04]OFD Sender: No OFD packet to send [00:12:09]OFD Sender: No OFD packet to send [00:12:14]OFD Sender: No OFD packet to send [00:12:19]OFD Sender: No OFD packet to send [00:12:24]OFD Sender: No OFD packet to send [00:12:29]OFD Sender: No OFD packet to send [00:12:34]OFD Sender: No OFD packet to send [00:12:39]OFD Sender: No OFD packet to send [00:12:44]OFD Sender: No OFD packet to send [00:12:49]OFD Sender: No OFD packet to send [00:12:54]OFD Sender: No OFD packet to send [00:12:59]OFD Sender: No OFD packet to send [00:13:04]OFD Sender: No OFD packet to send [00:13:09]OFD Sender: No OFD packet to send [00:13:14]OFD Sender: No OFD packet to send [00:13:19]OFD Sender: No OFD packet to send [00:13:24]OFD Sender: No OFD packet to send [00:13:29]OFD Sender: No OFD packet to send [00:13:34]OFD Sender: No OFD packet to send [00:13:39]OFD Sender: No OFD packet to send [00:13:44]OFD Sender: No OFD packet to send [00:13:49]OFD Sender: No OFD packet to send [00:13:54]OFD Sender: No OFD packet to send [00:13:59]OFD Sender: No OFD packet to send [00:14:04]OFD Sender: No OFD packet to send [00:14:09]OFD Sender: No OFD packet to send [00:14:14]OFD Sender: No OFD packet to send [00:14:19]OFD Sender: No OFD packet to send [00:14:24]OFD Sender: No OFD packet to send [00:14:29]OFD Sender: No OFD packet to send [00:14:34]OFD Sender: No OFD packet to send [00:14:39]OFD Sender: No OFD packet to send [00:14:44]OFD Sender: No OFD packet to send [00:14:49]OFD Sender: No OFD packet to send [00:14:54]OFD Sender: No OFD packet to send [00:14:59]OFD Sender: No OFD packet to send [00:15:04]OFD Sender: No OFD packet to send [00:15:09]OFD Sender: No OFD packet to send [00:15:14]OFD Sender: No OFD packet to send [00:15:19]OFD Sender: No OFD packet to send [00:15:24]OFD Sender: No OFD packet to send [00:15:29]OFD Sender: No OFD packet to send [00:15:34]OFD Sender: No OFD packet to send [00:15:39]OFD Sender: No OFD packet to send [00:15:44]accept exits with 9 [00:15:44]New connection [00:15:44]New thread 3067432292 created [00:15:44]Thread 3067288932 joined [00:15:44]Waiting for new connection... [00:15:44] Sock 9.Parse request [00:15:44]Sock 9.Check first char [00:15:44]Sock 9.First char is OK [00:15:44]request: POST /json_proto HTTP/1.0 [00:15:44]Method: POST [00:15:44]URL: /json_proto [00:15:44]Method is POST - this is cgi request [00:15:44]url: /json_proto [00:15:44]query_string will be loaded in cgi processing [00:15:44]execute_cgi json_proto POST (null) [00:15:44]execute_cgi path=json_proto method=POST [00:15:44]POST find Content-Length [00:15:44]Host: 172.17.38.4:8080 [00:15:44]Content-Length: 734 [00:15:44]Content-Type: application/json [00:15:44] [00:15:44]POST finish read [00:15:44]Found Content-Length = 734 [00:15:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 148230, "base_FM": "0000000000875057", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:44]execute_script... [00:15:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 148230, "base_FM": "0000000000875057", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.540, "sum" : 500.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:44]POST & json_proto [00:15:44]process_json_proto [00:15:44]json parsed OK: [00:15:44]protocol is kg_v1.0 [00:15:44]action value=close_receipt [00:15:44]process_action close_receipt [00:15:44]cmd_close_receipt [00:15:44]MH_GetDate [00:15:44]Write to MH i2c: F0 00 00 D0 08 C7 [00:15:44]Write i2c OK [00:15:44]MH_I2C_Read... [00:15:44]Read from MH i2c: F0 [00:15:44]MH_I2C_Read... [00:15:44]Read from MH i2c: F0 09 00 [00:15:44]MH_I2C_Read... [00:15:44]Read from MH i2c: F0 09 00 D0 08 00 30 0B 5D 66 CC 51 87 64 D6 [00:15:44]GetLastDocTimeStamp 1717372596 [00:15:44]current date 1717373744 [00:15:44]FM_GetShiftState [00:15:44]SAM_PROTO_GetShiftState [00:15:44]wFMCommunicate request_size=4 [00:15:44]MH_SAM_APDU [00:15:44]CAPDU: 80 13 01 00 [00:15:44]Write to MH i2c: E2 08 00 D1 08 80 13 01 00 00 00 00 00 56 [00:15:44]Write i2c OK [00:15:44]MH_I2C_Read... [00:15:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:44]Read from MH i2c: E2 [00:15:44]MH_I2C_Read... [00:15:44]Read from MH i2c: E2 0E 00 [00:15:44]MH_I2C_Read... [00:15:44]Read from MH i2c: E2 0E 00 D1 08 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 6E [00:15:44]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [00:15:44]wFMCommunicate OK [00:15:44]SAM_PROTO_GetShiftState done [00:15:44]FM_GetShiftState done [00:15:44]opened in 1717287824 [00:15:44]opened+sec_in_day 1717374224 [00:15:44]quantity*price = 50065 [00:15:44]sum+1 = 50067 [00:15:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 500.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 427 03.06.2024 00:15 Смена: 366 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФД осн.: 148230 ФМ осн.: 0000000000875057 ФМ: 0000000000875057 ФД: 148235 ФПД: 160172511465167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T001544&type=2&operation_type=1&fn_number=0000000000875057&fd_number=148235&fm=160172511465167&tin=02508201610067®Number=0000000000092720&sum=50000 [00:15:45]StoreToDocumentArchive [00:15:45]shift 366 fd 148235 [00:15:45]save to /storage/0366/doc_00148235 [00:15:45]save last doc name /storage/0366/doc_00148235 to /storage/kkm_last_doc_name [00:15:45]save OK [00:15:45]Clear old archive folders... [00:15:45]ProcessDocumentItem done err = 0, tmpTLVsize=279 [00:15:45]tlvbuf is B6FCA520 [00:15:45]SAM_PROTO_ClearQueue [00:15:45]wFMCommunicate request_size=4 [00:15:45]MH_SAM_APDU [00:15:45]CAPDU: 80 09 00 00 [00:15:45]Write to MH i2c: E2 08 00 E0 08 80 09 00 00 00 00 00 00 5A [00:15:45]Write i2c OK [00:15:45]MH_I2C_Read... [00:15:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:15:45]Read from MH i2c: E2 [00:15:45]MH_I2C_Read... [00:15:45]Read from MH i2c: E2 03 00 [00:15:45]MH_I2C_Read... [00:15:45]Read from MH i2c: E2 03 00 E0 08 00 90 00 5C [00:15:45]RAPDU: 90 00 [00:15:45]wFMCommunicate OK [00:15:45]SAM_PROTO_ClearQueue done [00:15:45]KKMCreateOFDPacket [00:15:45]OFDProtocolAddRootSTLVToBuf [00:15:45]FM_MakeSignedData [00:15:45]FM_MakeSignedData [00:15:45]SAM_PROTO_SignData [00:15:45]wFMCommunicate request_size=4 [00:15:45]MH_SAM_APDU [00:15:45]CAPDU: 80 0D 01 02 [00:15:45]Write to MH i2c: E2 08 00 E1 08 80 0D 01 02 00 00 00 00 62 [00:15:45]Write i2c OK [00:15:45]MH_I2C_Read... [00:15:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:15:45]Read from MH i2c: E2 [00:15:45]MH_I2C_Read... [00:15:45]Read from MH i2c: E2 03 00 [00:15:45]MH_I2C_Read... [00:15:45]Read from MH i2c: E2 03 00 E1 08 00 90 00 5D [00:15:45]RAPDU: 90 00 [00:15:45]wFMCommunicate OK [00:15:45]wFMCommunicate request_size=255 [00:15:45]MH_SAM_APDU [00:15:45]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 30 0B 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 27 04 04 00 06 43 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 11 04 10 00 30 [00:15:45]Write to MH i2c: E2 02 01 E2 08 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 30 0B 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 27 04 04 00 06 43 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 11 04 10 00 30 00 00 D7 [00:15:45]Write i2c OK [00:15:45]MH_I2C_Read... [00:15:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:15:46]Read from MH i2c: E2 [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: E2 03 00 [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: E2 03 00 E2 08 00 90 00 5E [00:15:46]RAPDU: 90 00 [00:15:46]wFMCommunicate OK [00:15:46]wFMCommunicate request_size=38 [00:15:46]MH_SAM_APDU [00:15:46]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0B 43 02 00 35 04 06 00 91 AD 11 A6 0E CF [00:15:46]Write to MH i2c: E2 29 00 E3 08 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0B 43 02 00 35 04 06 00 91 AD 11 A6 0E CF 00 00 10 [00:15:46]Write i2c OK [00:15:46]MH_I2C_Read... [00:15:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:15:46]Read from MH i2c: E2 [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: E2 03 00 [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: E2 03 00 E3 08 00 90 00 5F [00:15:46]RAPDU: 90 00 [00:15:46]wFMCommunicate OK [00:15:46]wFMCommunicate request_size=4 [00:15:46]MH_SAM_APDU [00:15:46]CAPDU: 80 0D 03 02 [00:15:46]Write to MH i2c: E2 08 00 E4 08 80 0D 03 02 00 00 00 00 67 [00:15:46]Write i2c OK [00:15:46]MH_I2C_Read... [00:15:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:15:46]Read from MH i2c: E2 [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: E2 0B 00 [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: E2 0B 00 E4 08 00 FB 77 CD 21 AE EE C0 5F 90 00 83 [00:15:46]RAPDU: FB 77 CD 21 AE EE C0 5F 90 00 [00:15:46]wFMCommunicate OK [00:15:46]SAM_PROTO_SignData done [00:15:46]FM_MakeSignedData done [00:15:46]CreateOFDProtocolMessage [00:15:46]wFMCommunicate request_size=4 [00:15:46]MH_SAM_APDU [00:15:46]CAPDU: 80 11 00 00 [00:15:46]Write to MH i2c: E2 08 00 E5 08 80 11 00 00 00 00 00 00 67 [00:15:46]Write i2c OK [00:15:46]MH_I2C_Read... [00:15:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:15:46]Read from MH i2c: E2 [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: E2 17 00 [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: E2 17 00 E5 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 BA [00:15:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:15:46]wFMCommunicate OK [00:15:46]CreateOFDProtocolMessage done [00:15:46]OFDSenderStorePacket 148235 [00:15:46]StoreOFDPacket docnum=148235 [00:15:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 2B 01 00 00 83 FC 23 01 B4 91 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 30 0B 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 27 04 04 00 06 43 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0B 43 02 00 35 04 06 00 91 AD 11 A6 0E CF FB 77 CD 21 AE EE C0 5F [00:15:46]CheckFolder [00:15:46]dirname=/storage/ofd_packets [00:15:46]CheckFolder done [00:15:46]ProducePacketName [00:15:46]name=ofd_packets/00148235 [00:15:46]NVStorageSaveData ofd_packets/00148235 [00:15:46]File name is /storage/ofd_packets/00148235 [00:15:46]Write 329 bytes [00:15:46]NVStorageSaveData done [00:15:46]OFDSenderStorePacket done [00:15:46]KKMCreateOFDPacket done [00:15:46]NVStorageSaveData kkm_last_timestamp [00:15:46]File name is /storage/kkm_last_timestamp [00:15:46]Write 4 bytes [00:15:46]NVStorageSaveData done [00:15:46]ExternCall_PrintAddStr [00:15:46]wPrintStart [00:15:46]Write to MH i2c: 01 00 00 E6 08 EE [00:15:46]Write i2c OK [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: 01 [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: 01 07 00 [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: 01 07 00 E6 08 00 00 00 00 00 FF 0F 03 [00:15:46]RasterBufferAndPrint [00:15:46]line Счет N : (1)979168 [00:15:46]line ИНН: 02508201610067 [00:15:46]line Контрольно-Кассовый Чек [00:15:46]line ВОЗВРАТ ПРОДАЖИ [00:15:46]line ТРК (МРК, ГНК) : 41 [00:15:46]line Товар: 2710124130 [00:15:46]line Аи-92-К-5 [00:15:46]line 7.540 * 66.40 [00:15:46]line = 500.66 [00:15:46]line НДС 12% НСП 1% [00:15:46]line > о реализуемом товаре [00:15:46]line ОКРУГЛЕНИЕ: -0.66 [00:15:46]line ИТОГО: 500.00 [00:15:46]line НСП 1% : 4.43 [00:15:46]line НДС 12% : 53.17 [00:15:46]line Наличными: 500.00 [00:15:46]line Безнал.: 0.00 [00:15:46]line Место: АЗС № 68 "Партнер Нефть" [00:15:46]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [00:15:46]line СНО: Общий режим [00:15:46]line Чек 427 03.06.2024 00:15 [00:15:46]line Смена: 366 ФФД: 1.0 [00:15:46]line ЗНМ: 0300000035 [00:15:46]line РНМ: 0000000000092720 [00:15:46]line Версия ККМ: 001 [00:15:46]line ФД осн.: 148230 [00:15:46]line ФМ осн.: 0000000000875057 [00:15:46]line ФМ: 0000000000875057 [00:15:46]line ФД: 148235 [00:15:46]line ФПД: 160172511465167 [00:15:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T001544&type=2&operation_type=1&fn_number=0000000000875057&fd_number=148235&fm=160172511465167&tin=02508201610067®Number=0000000000092720&sum=50000 [00:15:46]OFD Sender: Processing packet 148235 [packets to send 99, broken 98] [00:15:46]ProducePacketName [00:15:46]name=ofd_packets/00148235 [00:15:46]OFD Sender: To server: pG, [00:15:46]CommunicateWithHost lk.salyk.kg:30040 [00:15:46]ConnectInit lk.salyk.kg [00:15:46]written 0, free lines is 4095 [00:15:46]Connected sock=10 [00:15:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 2B 01 00 00 83 FC 23 01 B4 91 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 1D 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 92 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 01 00 00 F4 03 04 00 30 0B 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 27 04 04 00 06 43 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0B 43 02 00 35 04 06 00 91 AD 11 A6 0E CF FB 77 CD 21 AE EE C0 5F [00:15:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 5F 02 47 00 3B A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0B 43 02 00 F4 03 04 00 59 B2 5C 66 B6 04 01 00 00 A0 9A D7 F2 00 3E 27 8C [00:15:46]CommunicateWithHost err = 0 [00:15:46]CheckOFDResponse [00:15:46]1017 (14) - 77093643461234 [00:15:46]1041 (16) - 0000000000875057 [00:15:46]1040 (4) - 148235 [00:15:46]1012 (4) - 02.06.2024 17:56 [00:15:46]1206 (1) - 0 [00:15:46]OFD Sender: Remove packet 148235 [00:15:46]ProducePacketName [00:15:46]name=ofd_packets/00148235 [00:15:46]NVStorageDeleteData [00:15:46]Write to MH i2c: 01 00 00 11 09 1A [00:15:46]Write i2c OK [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: 01 [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: 01 07 00 [00:15:46]MH_I2C_Read... [00:15:46]Read from MH i2c: 01 07 00 11 09 00 00 00 00 00 69 0C 96 [00:15:46]RasterBufferAndPrint [00:15:46]line [00:15:46]line [00:15:46]line [00:15:46]line [00:15:46]line [00:15:46]written 0, free lines is 3180 [00:15:47]MH_Cut [00:15:47]Write to MH i2c: D1 01 00 18 09 01 F3 [00:15:47]Write i2c OK [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: D1 [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: D1 01 00 [00:15:47]MH_I2C_Read... [00:15:47]Read from MH i2c: D1 01 00 18 09 00 F2 [00:15:47]Write to MH i2c: 01 00 00 19 09 22 [00:15:47]Write i2c OK [00:15:47]MH_I2C_Read... [00:15:47]OFD Sender: No OFD packet to send [00:15:48]*** Cut start [00:15:48]*** Partial cut [00:15:48]*** CUTSNS_PIN = 1 [00:15:48]*** CUTSNS_PIN = 0 [00:15:48]*** Brake cut motor [00:15:48]Read from MH i2c: 01 [00:15:48]MH_I2C_Read... [00:15:48]*** Stop cut motor [00:15:48]*** Cut end [00:15:48]Read from MH i2c: 01 07 00 [00:15:48]MH_I2C_Read... [00:15:48]Read from MH i2c: 01 07 00 19 09 00 00 00 00 00 FF 0F 37 [00:15:48]process_action close_receipt done [00:15:48]requested_data is exist [00:15:48]produce_requested_data [00:15:48]requested_item fm.sn is exist - process it [00:15:48]wFMCommunicate request_size=4 [00:15:48]MH_SAM_APDU [00:15:48]CAPDU: 80 11 00 00 [00:15:48]Write to MH i2c: E2 08 00 1A 09 80 11 00 00 00 00 00 00 9D [00:15:48]Write i2c OK [00:15:48]MH_I2C_Read... [00:15:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:15:48]Read from MH i2c: E2 [00:15:48]MH_I2C_Read... [00:15:48]Read from MH i2c: E2 17 00 [00:15:48]MH_I2C_Read... [00:15:48]Read from MH i2c: E2 17 00 1A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F0 [00:15:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:15:48]wFMCommunicate OK [00:15:48]requested_item fd.num is exist - process it [00:15:48]SAM_PROTO_GetFieldsCounters [00:15:48]wFMCommunicate request_size=4 [00:15:48]MH_SAM_APDU [00:15:48]CAPDU: 80 13 00 00 [00:15:48]Write to MH i2c: E2 08 00 1B 09 80 13 00 00 00 00 00 00 A0 [00:15:48]Write i2c OK [00:15:48]MH_I2C_Read... [00:15:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:15:49]Read from MH i2c: E2 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: E2 62 00 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: E2 62 00 1B 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0B 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 AB 01 00 00 5E 04 04 00 AB 01 00 00 57 04 04 00 AC 01 00 00 19 04 04 00 00 00 00 00 90 00 7F [00:15:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0B 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 AB 01 00 00 5E 04 04 00 AB 01 00 00 57 04 04 00 AC 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:15:49]wFMCommunicate OK [00:15:49]SAM_PROTO_GetFieldsCounters done [00:15:49]requested_item shift.num is exist - process it [00:15:49]requested_item shift.opened is exist - process it [00:15:49]req_shift_opened [00:15:49]FM_GetShiftState [00:15:49]SAM_PROTO_GetShiftState [00:15:49]wFMCommunicate request_size=4 [00:15:49]MH_SAM_APDU [00:15:49]CAPDU: 80 13 01 00 [00:15:49]Write to MH i2c: E2 08 00 1C 09 80 13 01 00 00 00 00 00 A2 [00:15:49]Write i2c OK [00:15:49]MH_I2C_Read... [00:15:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:49]Read from MH i2c: E2 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: E2 0E 00 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: E2 0E 00 1C 09 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 BA [00:15:49]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [00:15:49]wFMCommunicate OK [00:15:49]SAM_PROTO_GetShiftState done [00:15:49]FM_GetShiftState done [00:15:49]req_shift_opened done [00:15:49]requested_item shift.open_date is exist - process it [00:15:49]req_shift_open_date [00:15:49]req_shift_open_date done [00:15:49]produce_requested_data done [00:15:49]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148235,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [00:15:49]process_action_free close_receipt [00:15:49]json_value_free [00:15:49]json_value_free done [00:15:49]process_json_proto returns [00:15:49]Send response to host [00:15:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148235,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [00:15:49]free response buf [00:15:49]execute_script done [00:15:49]execute_script returns [00:15:49]free content buf [00:15:49]Sock 9.Close socket [00:15:49]Sock 9.Thread stoped [00:15:49]accept exits with 8 [00:15:49]New connection [00:15:49]New thread 3067288932 created [00:15:49]Thread 3067432292 joined [00:15:49]Waiting for new connection... [00:15:49] Sock 8.Parse request [00:15:49]Sock 8.Check first char [00:15:49]Sock 8.First char is OK [00:15:49]request: POST /json_proto HTTP/1.0 [00:15:49]Method: POST [00:15:49]URL: /json_proto [00:15:49]Method is POST - this is cgi request [00:15:49]url: /json_proto [00:15:49]query_string will be loaded in cgi processing [00:15:49]execute_cgi json_proto POST (null) [00:15:49]execute_cgi path=json_proto method=POST [00:15:49]POST find Content-Length [00:15:49]Host: 172.17.38.4:8080 [00:15:49]Content-Length: 677 [00:15:49]Content-Type: application/json [00:15:49] [00:15:49]POST finish read [00:15:49]Found Content-Length = 677 [00:15:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.420, "sum" : 492.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 492.00, "payments": [ { "type": 0, "sum" : 492.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:49]execute_script... [00:15:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.40, "quantity" : 7.420, "sum" : 492.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 492.00, "payments": [ { "type": 0, "sum" : 492.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:49]POST & json_proto [00:15:49]process_json_proto [00:15:49]json parsed OK: [00:15:49]protocol is kg_v1.0 [00:15:49]action value=close_receipt [00:15:49]process_action close_receipt [00:15:49]cmd_close_receipt [00:15:49]MH_GetDate [00:15:49]Write to MH i2c: F0 00 00 1D 09 15 [00:15:49]Write i2c OK [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: F0 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: F0 09 00 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: F0 09 00 1D 09 00 35 0B 5D 66 CC 51 87 64 29 [00:15:49]GetLastDocTimeStamp 1717373744 [00:15:49]current date 1717373749 [00:15:49]FM_GetShiftState [00:15:49]SAM_PROTO_GetShiftState [00:15:49]wFMCommunicate request_size=4 [00:15:49]MH_SAM_APDU [00:15:49]CAPDU: 80 13 01 00 [00:15:49]Write to MH i2c: E2 08 00 1E 09 80 13 01 00 00 00 00 00 A4 [00:15:49]Write i2c OK [00:15:49]MH_I2C_Read... [00:15:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:49]Read from MH i2c: E2 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: E2 0E 00 [00:15:49]MH_I2C_Read... [00:15:49]Read from MH i2c: E2 0E 00 1E 09 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 BC [00:15:49]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [00:15:49]wFMCommunicate OK [00:15:49]SAM_PROTO_GetShiftState done [00:15:49]FM_GetShiftState done [00:15:49]opened in 1717287824 [00:15:49]opened+sec_in_day 1717374224 [00:15:49]quantity*price = 49268 [00:15:49]sum+1 = 49270 [00:15:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.69 ИТОГО: 492.00 Внесено: 500.00 СДАЧА: 8.00 НСП 1% : 4.36 НДС 12% : 52.32 Наличными: 492.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 428 03.06.2024 00:15 Смена: 366 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148236 ФПД: 52680501436852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T001550&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148236&fm=52680501436852&tin=02508201610067®Number=0000000000092720&sum=49200 [00:15:50]StoreToDocumentArchive [00:15:50]shift 366 fd 148236 [00:15:50]save to /storage/0366/doc_00148236 [00:15:50]save last doc name /storage/0366/doc_00148236 to /storage/kkm_last_doc_name [00:15:50]save OK [00:15:50]Clear old archive folders... [00:15:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:15:50]tlvbuf is B6F1DC60 [00:15:50]SAM_PROTO_ClearQueue [00:15:50]wFMCommunicate request_size=4 [00:15:50]MH_SAM_APDU [00:15:50]CAPDU: 80 09 00 00 [00:15:50]Write to MH i2c: E2 08 00 2B 09 80 09 00 00 00 00 00 00 A6 [00:15:50]Write i2c OK [00:15:50]MH_I2C_Read... [00:15:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:15:50]Read from MH i2c: E2 [00:15:50]MH_I2C_Read... [00:15:50]Read from MH i2c: E2 03 00 [00:15:50]MH_I2C_Read... [00:15:50]Read from MH i2c: E2 03 00 2B 09 00 90 00 A8 [00:15:50]RAPDU: 90 00 [00:15:50]wFMCommunicate OK [00:15:50]SAM_PROTO_ClearQueue done [00:15:50]KKMCreateOFDPacket [00:15:50]OFDProtocolAddRootSTLVToBuf [00:15:50]FM_MakeSignedData [00:15:50]FM_MakeSignedData [00:15:50]SAM_PROTO_SignData [00:15:50]wFMCommunicate request_size=4 [00:15:50]MH_SAM_APDU [00:15:50]CAPDU: 80 0D 01 02 [00:15:50]Write to MH i2c: E2 08 00 2C 09 80 0D 01 02 00 00 00 00 AE [00:15:50]Write i2c OK [00:15:50]MH_I2C_Read... [00:15:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:15:51]Read from MH i2c: E2 [00:15:51]MH_I2C_Read... [00:15:51]Read from MH i2c: E2 03 00 [00:15:51]MH_I2C_Read... [00:15:51]Read from MH i2c: E2 03 00 2C 09 00 90 00 A9 [00:15:51]RAPDU: 90 00 [00:15:51]wFMCommunicate OK [00:15:51]wFMCommunicate request_size=255 [00:15:51]MH_SAM_APDU [00:15:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 75 C0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 C0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 14 00 00 00 00 07 04 06 00 30 C0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 01 00 00 F4 03 04 00 36 0B 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0C 43 02 00 35 04 06 00 2F [00:15:51]Write to MH i2c: E2 02 01 2D 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 75 C0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 C0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 14 00 00 00 00 07 04 06 00 30 C0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 01 00 00 F4 03 04 00 36 0B 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0C 43 02 00 35 04 06 00 2F 00 00 C2 [00:15:51]Write i2c OK [00:15:51]MH_I2C_Read... [00:15:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:15:51]Read from MH i2c: E2 [00:15:51]MH_I2C_Read... [00:15:51]Read from MH i2c: E2 03 00 [00:15:51]MH_I2C_Read... [00:15:51]Read from MH i2c: E2 03 00 2D 09 00 90 00 AA [00:15:51]RAPDU: 90 00 [00:15:51]wFMCommunicate OK [00:15:51]wFMCommunicate request_size=10 [00:15:51]MH_SAM_APDU [00:15:51]CAPDU: 80 0D 02 02 05 E9 A2 93 21 B4 [00:15:51]Write to MH i2c: E2 0D 00 2E 09 80 0D 02 02 05 00 E9 A2 93 21 B4 00 00 AE [00:15:51]Write i2c OK [00:15:51]MH_I2C_Read... [00:15:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:15:51]Read from MH i2c: E2 [00:15:51]MH_I2C_Read... [00:15:51]Read from MH i2c: E2 03 00 [00:15:51]MH_I2C_Read... [00:15:51]Read from MH i2c: E2 03 00 2E 09 00 90 00 AB [00:15:51]RAPDU: 90 00 [00:15:51]wFMCommunicate OK [00:15:51]wFMCommunicate request_size=4 [00:15:51]MH_SAM_APDU [00:15:51]CAPDU: 80 0D 03 02 [00:15:51]Write to MH i2c: E2 08 00 2F 09 80 0D 03 02 00 00 00 00 B3 [00:15:51]Write i2c OK [00:15:51]MH_I2C_Read... [00:15:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:15:51]Read from MH i2c: E2 [00:15:51]MH_I2C_Read... [00:15:51]Read from MH i2c: E2 0B 00 [00:15:51]MH_I2C_Read... [00:15:51]Read from MH i2c: E2 0B 00 2F 09 00 E1 5A 66 54 EA BA 80 BB 90 00 88 [00:15:51]RAPDU: E1 5A 66 54 EA BA 80 BB 90 00 [00:15:51]wFMCommunicate OK [00:15:51]SAM_PROTO_SignData done [00:15:51]FM_MakeSignedData done [00:15:51]CreateOFDProtocolMessage [00:15:51]wFMCommunicate request_size=4 [00:15:51]MH_SAM_APDU [00:15:51]CAPDU: 80 11 00 00 [00:15:51]Write to MH i2c: E2 08 00 30 09 80 11 00 00 00 00 00 00 B3 [00:15:51]Write i2c OK [00:15:51]MH_I2C_Read... [00:15:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:15:51]Read from MH i2c: E2 [00:15:51]MH_I2C_Read... [00:15:51]Read from MH i2c: E2 17 00 [00:15:51]MH_I2C_Read... [00:15:51]Read from MH i2c: E2 17 00 30 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 06 [00:15:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:15:51]wFMCommunicate OK [00:15:51]CreateOFDProtocolMessage done [00:15:51]OFDSenderStorePacket 148236 [00:15:51]StoreOFDPacket docnum=148236 [00:15:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 87 F1 07 01 95 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 75 C0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 C0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 14 00 00 00 00 07 04 06 00 30 C0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 01 00 00 F4 03 04 00 36 0B 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0C 43 02 00 35 04 06 00 2F E9 A2 93 21 B4 E1 5A 66 54 EA BA 80 BB [00:15:51]CheckFolder [00:15:51]dirname=/storage/ofd_packets [00:15:51]CheckFolder done [00:15:51]ProducePacketName [00:15:51]name=ofd_packets/00148236 [00:15:51]NVStorageSaveData ofd_packets/00148236 [00:15:51]File name is /storage/ofd_packets/00148236 [00:15:51]Write 301 bytes [00:15:51]NVStorageSaveData done [00:15:51]OFDSenderStorePacket done [00:15:51]KKMCreateOFDPacket done [00:15:51]NVStorageSaveData kkm_last_timestamp [00:15:51]File name is /storage/kkm_last_timestamp [00:15:51]Write 4 bytes [00:15:51]NVStorageSaveData done [00:15:51]ExternCall_PrintAddStr [00:15:51]wPrintStart [00:15:51]Write to MH i2c: 01 00 00 31 09 3A [00:15:51]Write i2c OK [00:15:51]MH_I2C_Read... [00:15:51]Read from MH i2c: 01 [00:15:51]MH_I2C_Read... [00:15:51]Read from MH i2c: 01 07 00 [00:15:51]MH_I2C_Read... [00:15:51]Read from MH i2c: 01 07 00 31 09 00 00 00 00 00 FF 0F 4F [00:15:51]RasterBufferAndPrint [00:15:51]line Счет N : (1)979168 [00:15:51]line ИНН: 02508201610067 [00:15:51]line Контрольно-Кассовый Чек [00:15:51]line ПРОДАЖА [00:15:51]line ТРК (МРК, ГНК) : 41 [00:15:51]line Товар: 2710124130 [00:15:51]line Аи-92-К-5 [00:15:51]line 7.420 * 66.40 [00:15:51]line = 492.69 [00:15:51]line НДС 12% НСП 1% [00:15:51]line > о реализуемом товаре [00:15:51]line ОКРУГЛЕНИЕ: -0.69 [00:15:51]line ИТОГО: 492.00 [00:15:51]line Внесено: 500.00 [00:15:51]line СДАЧА: 8.00 [00:15:51]line НСП 1% : 4.36 [00:15:51]line НДС 12% : 52.32 [00:15:51]line Наличными: 492.00 [00:15:51]line Безнал.: 0.00 [00:15:51]line Место: АЗС № 68 "Партнер Нефть" [00:15:51]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [00:15:51]line СНО: Общий режим [00:15:51]line Чек 428 03.06.2024 00:15 [00:15:51]line Смена: 366 ФФД: 1.0 [00:15:51]line ЗНМ: 0300000035 [00:15:51]line РНМ: 0000000000092720 [00:15:51]line Версия ККМ: 001 [00:15:51]line ФМ: 0000000000875057 [00:15:51]line ФД: 148236 [00:15:51]line ФПД: 52680501436852 [00:15:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T001550&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148236&fm=52680501436852&tin=02508201610067®Number=0000000000092720&sum=49200 [00:15:51]OFD Sender: Processing packet 148236 [packets to send 99, broken 98] [00:15:51]ProducePacketName [00:15:51]name=ofd_packets/00148236 [00:15:51]OFD Sender: To server: pG, [00:15:51]CommunicateWithHost lk.salyk.kg:30040 [00:15:51]ConnectInit lk.salyk.kg [00:15:51]written 0, free lines is 4095 [00:15:51]Connected sock=10 [00:15:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 87 F1 07 01 95 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 F0 19 00 00 00 00 13 04 06 00 75 C0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 C0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 14 00 00 00 00 07 04 06 00 30 C0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 01 00 00 F4 03 04 00 36 0B 5D 66 0E 04 04 00 6E 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0C 43 02 00 35 04 06 00 2F E9 A2 93 21 B4 E1 5A 66 54 EA BA 80 BB [00:15:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 74 2F 47 00 0B 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0C 43 02 00 F4 03 04 00 5F B2 5C 66 B6 04 01 00 00 2C 60 97 5B 06 0A 76 2D [00:15:52]CommunicateWithHost err = 0 [00:15:52]CheckOFDResponse [00:15:52]1017 (14) - 77093643461234 [00:15:52]1041 (16) - 0000000000875057 [00:15:52]1040 (4) - 148236 [00:15:52]1012 (4) - 02.06.2024 17:56 [00:15:52]1206 (1) - 0 [00:15:52]OFD Sender: Remove packet 148236 [00:15:52]ProducePacketName [00:15:52]name=ofd_packets/00148236 [00:15:52]NVStorageDeleteData [00:15:52]Write to MH i2c: 01 00 00 5C 09 65 [00:15:52]Write i2c OK [00:15:52]MH_I2C_Read... [00:15:52]Read from MH i2c: 01 [00:15:52]MH_I2C_Read... [00:15:52]Read from MH i2c: 01 07 00 [00:15:52]MH_I2C_Read... [00:15:52]Read from MH i2c: 01 07 00 5C 09 00 00 00 00 00 78 0C F0 [00:15:52]RasterBufferAndPrint [00:15:52]line [00:15:52]line [00:15:52]line [00:15:52]line [00:15:52]line [00:15:52]written 0, free lines is 3197 [00:15:52]MH_Cut [00:15:52]Write to MH i2c: D1 01 00 63 09 01 3E [00:15:52]Write i2c OK [00:15:52]MH_I2C_Read... [00:15:52]Read from MH i2c: D1 [00:15:52]MH_I2C_Read... [00:15:52]Read from MH i2c: D1 01 00 [00:15:52]MH_I2C_Read... [00:15:52]Read from MH i2c: D1 01 00 63 09 00 3D [00:15:52]Write to MH i2c: 01 00 00 64 09 6D [00:15:52]Write i2c OK [00:15:52]MH_I2C_Read... [00:15:52]OFD Sender: No OFD packet to send [00:15:53]*** Cut start [00:15:53]*** Partial cut [00:15:53]*** CUTSNS_PIN = 1 [00:15:53]*** CUTSNS_PIN = 0 [00:15:53]*** Brake cut motor [00:15:54]Read from MH i2c: 01 [00:15:54]MH_I2C_Read... [00:15:54]*** Stop cut motor [00:15:54]*** Cut end [00:15:54]Read from MH i2c: 01 07 00 [00:15:54]MH_I2C_Read... [00:15:54]Read from MH i2c: 01 07 00 64 09 00 00 00 00 00 FF 0F 82 [00:15:54]process_action close_receipt done [00:15:54]requested_data is exist [00:15:54]produce_requested_data [00:15:54]requested_item fm.sn is exist - process it [00:15:54]wFMCommunicate request_size=4 [00:15:54]MH_SAM_APDU [00:15:54]CAPDU: 80 11 00 00 [00:15:54]Write to MH i2c: E2 08 00 65 09 80 11 00 00 00 00 00 00 E8 [00:15:54]Write i2c OK [00:15:54]MH_I2C_Read... [00:15:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:15:54]Read from MH i2c: E2 [00:15:54]MH_I2C_Read... [00:15:54]Read from MH i2c: E2 17 00 [00:15:54]MH_I2C_Read... [00:15:54]Read from MH i2c: E2 17 00 65 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 3B [00:15:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:15:54]wFMCommunicate OK [00:15:54]requested_item fd.num is exist - process it [00:15:54]SAM_PROTO_GetFieldsCounters [00:15:54]wFMCommunicate request_size=4 [00:15:54]MH_SAM_APDU [00:15:54]CAPDU: 80 13 00 00 [00:15:54]Write to MH i2c: E2 08 00 66 09 80 13 00 00 00 00 00 00 EB [00:15:54]Write i2c OK [00:15:54]MH_I2C_Read... [00:15:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:15:54]Read from MH i2c: E2 [00:15:54]MH_I2C_Read... [00:15:54]Read from MH i2c: E2 62 00 [00:15:54]MH_I2C_Read... [00:15:54]Read from MH i2c: E2 62 00 66 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0C 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 AC 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AD 01 00 00 19 04 04 00 00 00 00 00 90 00 CE [00:15:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0C 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 AC 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AD 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:15:54]wFMCommunicate OK [00:15:54]SAM_PROTO_GetFieldsCounters done [00:15:54]requested_item shift.num is exist - process it [00:15:54]requested_item shift.opened is exist - process it [00:15:54]req_shift_opened [00:15:54]FM_GetShiftState [00:15:54]SAM_PROTO_GetShiftState [00:15:54]wFMCommunicate request_size=4 [00:15:54]MH_SAM_APDU [00:15:54]CAPDU: 80 13 01 00 [00:15:54]Write to MH i2c: E2 08 00 67 09 80 13 01 00 00 00 00 00 ED [00:15:54]Write i2c OK [00:15:54]MH_I2C_Read... [00:15:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:54]Read from MH i2c: E2 [00:15:54]MH_I2C_Read... [00:15:54]Read from MH i2c: E2 0E 00 [00:15:54]MH_I2C_Read... [00:15:54]Read from MH i2c: E2 0E 00 67 09 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 05 [00:15:54]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [00:15:54]wFMCommunicate OK [00:15:54]SAM_PROTO_GetShiftState done [00:15:54]FM_GetShiftState done [00:15:54]req_shift_opened done [00:15:54]requested_item shift.open_date is exist - process it [00:15:54]req_shift_open_date [00:15:54]req_shift_open_date done [00:15:54]produce_requested_data done [00:15:54]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148236,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [00:15:54]process_action_free close_receipt [00:15:54]json_value_free [00:15:54]json_value_free done [00:15:54]process_json_proto returns [00:15:54]Send response to host [00:15:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148236,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [00:15:54]free response buf [00:15:54]execute_script done [00:15:54]execute_script returns [00:15:54]free content buf [00:15:54]Sock 8.Close socket [00:15:54]Sock 8.Thread stoped [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:37]OFD Sender: No OFD packet to send [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:37]OFD Sender: No OFD packet to send [00:18:42]OFD Sender: No OFD packet to send [00:18:47]OFD Sender: No OFD packet to send [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:32]OFD Sender: No OFD packet to send [00:19:37]OFD Sender: No OFD packet to send [00:19:42]OFD Sender: No OFD packet to send [00:19:47]OFD Sender: No OFD packet to send [00:19:52]OFD Sender: No OFD packet to send [00:19:57]OFD Sender: No OFD packet to send [00:20:02]OFD Sender: No OFD packet to send [00:20:07]OFD Sender: No OFD packet to send [00:20:12]OFD Sender: No OFD packet to send [00:20:17]OFD Sender: No OFD packet to send [00:20:22]OFD Sender: No OFD packet to send [00:20:27]OFD Sender: No OFD packet to send [00:20:32]OFD Sender: No OFD packet to send [00:20:37]OFD Sender: No OFD packet to send [00:20:42]OFD Sender: No OFD packet to send [00:20:47]OFD Sender: No OFD packet to send [00:20:52]OFD Sender: No OFD packet to send [00:20:57]OFD Sender: No OFD packet to send [00:21:02]OFD Sender: No OFD packet to send [00:21:07]OFD Sender: No OFD packet to send [00:21:12]OFD Sender: No OFD packet to send [00:21:17]OFD Sender: No OFD packet to send [00:21:22]OFD Sender: No OFD packet to send [00:21:27]OFD Sender: No OFD packet to send [00:21:32]OFD Sender: No OFD packet to send [00:21:37]OFD Sender: No OFD packet to send [00:21:42]OFD Sender: No OFD packet to send [00:21:48]OFD Sender: No OFD packet to send [00:21:53]OFD Sender: No OFD packet to send [00:21:58]OFD Sender: No OFD packet to send [00:22:03]OFD Sender: No OFD packet to send [00:22:08]OFD Sender: No OFD packet to send [00:22:13]OFD Sender: No OFD packet to send [00:22:18]OFD Sender: No OFD packet to send [00:22:23]OFD Sender: No OFD packet to send [00:22:28]OFD Sender: No OFD packet to send [00:22:33]OFD Sender: No OFD packet to send [00:22:38]OFD Sender: No OFD packet to send [00:22:43]OFD Sender: No OFD packet to send [00:22:48]OFD Sender: No OFD packet to send [00:22:53]OFD Sender: No OFD packet to send [00:22:58]OFD Sender: No OFD packet to send [00:23:03]OFD Sender: No OFD packet to send [00:23:08]OFD Sender: No OFD packet to send [00:23:13]OFD Sender: No OFD packet to send [00:23:18]OFD Sender: No OFD packet to send [00:23:23]OFD Sender: No OFD packet to send [00:23:28]OFD Sender: No OFD packet to send [00:23:33]OFD Sender: No OFD packet to send [00:23:38]OFD Sender: No OFD packet to send [00:23:43]OFD Sender: No OFD packet to send [00:23:48]OFD Sender: No OFD packet to send [00:23:53]OFD Sender: No OFD packet to send [00:23:58]OFD Sender: No OFD packet to send [00:24:03]OFD Sender: No OFD packet to send [00:24:08]OFD Sender: No OFD packet to send [00:24:13]OFD Sender: No OFD packet to send [00:24:18]OFD Sender: No OFD packet to send [00:24:23]OFD Sender: No OFD packet to send [00:24:28]OFD Sender: No OFD packet to send [00:24:33]OFD Sender: No OFD packet to send [00:24:38]OFD Sender: No OFD packet to send [00:24:43]OFD Sender: No OFD packet to send [00:24:48]OFD Sender: No OFD packet to send [00:24:53]OFD Sender: No OFD packet to send [00:24:58]OFD Sender: No OFD packet to send [00:25:03]OFD Sender: No OFD packet to send [00:25:08]OFD Sender: No OFD packet to send [00:25:13]OFD Sender: No OFD packet to send [00:25:18]OFD Sender: No OFD packet to send [00:25:23]OFD Sender: No OFD packet to send [00:25:28]OFD Sender: No OFD packet to send [00:25:33]OFD Sender: No OFD packet to send [00:25:38]OFD Sender: No OFD packet to send [00:25:43]OFD Sender: No OFD packet to send [00:25:48]OFD Sender: No OFD packet to send [00:25:53]OFD Sender: No OFD packet to send [00:25:58]OFD Sender: No OFD packet to send [00:26:03]OFD Sender: No OFD packet to send [00:26:08]OFD Sender: No OFD packet to send [00:26:13]OFD Sender: No OFD packet to send [00:26:18]OFD Sender: No OFD packet to send [00:26:23]OFD Sender: No OFD packet to send [00:26:28]OFD Sender: No OFD packet to send [00:26:33]OFD Sender: No OFD packet to send [00:26:38]OFD Sender: No OFD packet to send [00:26:43]OFD Sender: No OFD packet to send [00:26:48]OFD Sender: No OFD packet to send [00:26:53]OFD Sender: No OFD packet to send [00:26:58]OFD Sender: No OFD packet to send [00:27:03]OFD Sender: No OFD packet to send [00:27:08]OFD Sender: No OFD packet to send [00:27:13]OFD Sender: No OFD packet to send [00:27:14]accept exits with 9 [00:27:14]New connection [00:27:14]New thread 3067432292 created [00:27:14]Thread 3067288932 joined [00:27:14]Waiting for new connection... [00:27:14] Sock 9.Parse request [00:27:14]Sock 9.Check first char [00:27:14]Sock 9.First char is OK [00:27:14]request: POST /json_proto HTTP/1.0 [00:27:14]Method: POST [00:27:14]URL: /json_proto [00:27:14]Method is POST - this is cgi request [00:27:14]url: /json_proto [00:27:14]query_string will be loaded in cgi processing [00:27:14]execute_cgi json_proto POST (null) [00:27:14]execute_cgi path=json_proto method=POST [00:27:14]POST find Content-Length [00:27:14]Host: 172.17.38.4:8080 [00:27:14]Content-Length: 215 [00:27:14]Content-Type: application/json [00:27:14] [00:27:14]POST finish read [00:27:14]Found Content-Length = 215 [00:27:14]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:27:14]execute_script... [00:27:14]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:27:14]POST & json_proto [00:27:14]process_json_proto [00:27:14]json parsed OK: [00:27:14]protocol is kg_v1.0 [00:27:14]action value=get_value [00:27:14]process_action get_value [00:27:14]cmd_get_value [00:27:14]process_action get_value done [00:27:14]requested_data is exist [00:27:14]produce_requested_data [00:27:14]requested_item kkm.sn is exist - process it [00:27:14]requested_item kkm.ver is exist - process it [00:27:14]requested_item fm.sn is exist - process it [00:27:14]wFMCommunicate request_size=4 [00:27:14]MH_SAM_APDU [00:27:14]CAPDU: 80 11 00 00 [00:27:14]Write to MH i2c: E2 08 00 68 09 80 11 00 00 00 00 00 00 EB [00:27:14]Write i2c OK [00:27:14]MH_I2C_Read... [00:27:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:14]Read from MH i2c: E2 [00:27:14]MH_I2C_Read... [00:27:14]Read from MH i2c: E2 17 00 [00:27:14]MH_I2C_Read... [00:27:14]Read from MH i2c: E2 17 00 68 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 3E [00:27:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:27:14]wFMCommunicate OK [00:27:14]requested_item fd.num is exist - process it [00:27:14]SAM_PROTO_GetFieldsCounters [00:27:14]wFMCommunicate request_size=4 [00:27:14]MH_SAM_APDU [00:27:14]CAPDU: 80 13 00 00 [00:27:14]Write to MH i2c: E2 08 00 69 09 80 13 00 00 00 00 00 00 EE [00:27:14]Write i2c OK [00:27:14]MH_I2C_Read... [00:27:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:27:14]Read from MH i2c: E2 [00:27:14]MH_I2C_Read... [00:27:14]Read from MH i2c: E2 62 00 [00:27:14]MH_I2C_Read... [00:27:14]Read from MH i2c: E2 62 00 69 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0C 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 AC 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AD 01 00 00 19 04 04 00 00 00 00 00 90 00 D1 [00:27:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0C 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 AC 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AD 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:27:14]wFMCommunicate OK [00:27:14]SAM_PROTO_GetFieldsCounters done [00:27:14]requested_item shift.num is exist - process it [00:27:14]requested_item shift.opened is exist - process it [00:27:14]req_shift_opened [00:27:14]FM_GetShiftState [00:27:14]SAM_PROTO_GetShiftState [00:27:14]wFMCommunicate request_size=4 [00:27:14]MH_SAM_APDU [00:27:14]CAPDU: 80 13 01 00 [00:27:14]Write to MH i2c: E2 08 00 6A 09 80 13 01 00 00 00 00 00 F0 [00:27:14]Write i2c OK [00:27:14]MH_I2C_Read... [00:27:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:14]Read from MH i2c: E2 [00:27:14]MH_I2C_Read... [00:27:14]Read from MH i2c: E2 0E 00 [00:27:14]MH_I2C_Read... [00:27:14]Read from MH i2c: E2 0E 00 6A 09 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 08 [00:27:14]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [00:27:14]wFMCommunicate OK [00:27:14]SAM_PROTO_GetShiftState done [00:27:14]FM_GetShiftState done [00:27:14]req_shift_opened done [00:27:14]requested_item shift.open_date is exist - process it [00:27:14]req_shift_open_date [00:27:14]req_shift_open_date done [00:27:14]produce_requested_data done [00:27:14]produce_requested_data return {"kkm.sn":"0300000035","kkm.ver":"001","fm.sn":"0000000000875057","fd.num":148236,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [00:27:14]process_action_free get_value [00:27:14]json_value_free [00:27:14]json_value_free done [00:27:14]process_json_proto returns [00:27:14]Send response to host [00:27:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000035","kkm.ver":"001","fm.sn":"0000000000875057","fd.num":148236,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [00:27:14]free response buf [00:27:14]execute_script done [00:27:14]execute_script returns [00:27:14]free content buf [00:27:14]Sock 9.Close socket [00:27:14]Sock 9.Thread stoped [00:27:14]accept exits with 10 [00:27:14]New connection [00:27:14]New thread 3067288932 created [00:27:14]Thread 3067432292 joined [00:27:14]Waiting for new connection... [00:27:14] Sock 10.Parse request [00:27:14]Sock 10.Check first char [00:27:14]Sock 10.First char is OK [00:27:14]request: POST /json_proto HTTP/1.0 [00:27:14]Method: POST [00:27:14]URL: /json_proto [00:27:14]Method is POST - this is cgi request [00:27:14]url: /json_proto [00:27:14]query_string will be loaded in cgi processing [00:27:14]execute_cgi json_proto POST (null) [00:27:14]execute_cgi path=json_proto method=POST [00:27:14]POST find Content-Length [00:27:14]Host: 172.17.38.4:8080 [00:27:14]Content-Length: 331 [00:27:14]Content-Type: application/json [00:27:14] [00:27:14]POST finish read [00:27:14]Found Content-Length = 331 [00:27:14]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:27:14]execute_script... [00:27:14]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:27:14]POST & json_proto [00:27:14]process_json_proto [00:27:14]json parsed OK: [00:27:14]protocol is kg_v1.0 [00:27:14]action value=get_value [00:27:14]process_action get_value [00:27:14]cmd_get_value [00:27:14]process_action get_value done [00:27:14]requested_data is exist [00:27:14]produce_requested_data [00:27:15]requested_item fm.sale.total is exist - process it [00:27:15]SAM_PROTO_GetFMData [00:27:15]wFMCommunicate request_size=4 [00:27:15]MH_SAM_APDU [00:27:15]CAPDU: 80 13 03 00 [00:27:15]Write to MH i2c: E2 08 00 6B 09 80 13 03 00 00 00 00 00 F3 [00:27:15]Write i2c OK [00:27:15]MH_I2C_Read... [00:27:15]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:27:15]Read from MH i2c: E2 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 FD 00 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 FD 00 6B 09 00 C7 04 85 04 C3 04 6E 04 04 00 30 40 02 00 69 04 A3 00 6F 04 04 00 94 3D 02 00 B1 04 05 00 BD 05 19 D2 01 70 04 05 00 7C 40 B5 B4 01 72 04 04 00 41 C5 63 1D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6A 1F 85 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9A 39 20 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 9C 02 00 00 B1 04 04 00 FC 3C F0 03 70 04 04 00 C4 94 EE 03 72 04 03 00 38 A8 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 04 1B 6B EF 90 00 63 [00:27:15]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 30 40 02 00 69 04 A3 00 6F 04 04 00 94 3D 02 00 B1 04 05 00 BD 05 19 D2 01 70 04 05 00 7C 40 B5 B4 01 72 04 04 00 41 C5 63 1D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6A 1F 85 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9A 39 20 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 9C 02 00 00 B1 04 04 00 FC 3C F0 03 70 04 04 00 C4 94 EE 03 72 04 03 00 38 A8 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 04 1B 6B EF 90 00 [00:27:15]wFMCommunicate OK [00:27:15]wFMCommunicate request_size=4 [00:27:15]MH_SAM_APDU [00:27:15]CAPDU: 80 17 00 00 [00:27:15]Write to MH i2c: E2 08 00 6C 09 80 17 00 00 00 00 00 00 F5 [00:27:15]Write i2c OK [00:27:15]MH_I2C_Read... [00:27:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:15]Read from MH i2c: E2 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 FD 00 [00:27:15]MH_I2C_Read... [00:27:15]Read from MH i2c: E2 FD 00 6C 09 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B5 EC 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 AB [00:27:15]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B5 EC 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 [00:27:15]wFMCommunicate OK [00:27:15]wFMCommunicate request_size=4 [00:27:15]MH_SAM_APDU [00:27:15]CAPDU: 80 17 00 00 [00:27:15]Write to MH i2c: E2 08 00 6D 09 80 17 00 00 00 00 00 00 F6 [00:27:15]Write i2c OK [00:27:15]MH_I2C_Read... [00:27:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:16]Read from MH i2c: E2 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: E2 FD 00 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: E2 FD 00 6D 09 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 CE [00:27:16]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [00:27:16]wFMCommunicate OK [00:27:16]wFMCommunicate request_size=4 [00:27:16]MH_SAM_APDU [00:27:16]CAPDU: 80 17 00 00 [00:27:16]Write to MH i2c: E2 08 00 6E 09 80 17 00 00 00 00 00 00 F7 [00:27:16]Write i2c OK [00:27:16]MH_I2C_Read... [00:27:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:16]Read from MH i2c: E2 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: E2 FD 00 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: E2 FD 00 6E 09 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 72 [00:27:16]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:27:16]wFMCommunicate OK [00:27:16]wFMCommunicate request_size=4 [00:27:16]MH_SAM_APDU [00:27:16]CAPDU: 80 17 00 00 [00:27:16]Write to MH i2c: E2 08 00 6F 09 80 17 00 00 00 00 00 00 F8 [00:27:16]Write i2c OK [00:27:16]MH_I2C_Read... [00:27:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:27:16]Read from MH i2c: E2 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: E2 E4 00 [00:27:16]MH_I2C_Read... [00:27:16]Read from MH i2c: E2 E4 00 6F 09 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D8 [00:27:16]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:27:16]wFMCommunicate OK [00:27:16]SAM_PROTO_GetFMData done [00:27:16]requested_item fm.sale_refund.total is exist - process it [00:27:16]requested_item fm.buy.total is exist - process it [00:27:16]requested_item shift.sale.total is exist - process it [00:27:16]SAM_PROTO_GetShiftData [00:27:16]wFMCommunicate request_size=4 [00:27:16]MH_SAM_APDU [00:27:16]CAPDU: 80 13 02 00 [00:27:16]Write to MH i2c: E2 08 00 70 09 80 13 02 00 00 00 00 00 F7 [00:27:16]Write i2c OK [00:27:16]MH_I2C_Read... [00:27:17]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:27:17]Read from MH i2c: E2 [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: E2 FD 00 [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: E2 FD 00 70 09 00 BB 04 AA 04 B7 04 6E 04 04 00 AC 01 00 00 69 04 9E 00 6F 04 04 00 A5 01 00 00 B1 04 04 00 58 EE 6A 01 70 04 04 00 54 86 3D 01 72 04 03 00 04 68 2D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1E 90 26 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 36 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 07 00 00 00 B1 04 03 00 A0 56 09 70 04 03 00 A0 56 09 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F8 FD EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 42 [00:27:17]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 AC 01 00 00 69 04 9E 00 6F 04 04 00 A5 01 00 00 B1 04 04 00 58 EE 6A 01 70 04 04 00 54 86 3D 01 72 04 03 00 04 68 2D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1E 90 26 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 36 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 07 00 00 00 B1 04 03 00 A0 56 09 70 04 03 00 A0 56 09 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F8 FD EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:27:17]wFMCommunicate OK [00:27:17]wFMCommunicate request_size=4 [00:27:17]MH_SAM_APDU [00:27:17]CAPDU: 80 17 00 00 [00:27:17]Write to MH i2c: E2 08 00 71 09 80 17 00 00 00 00 00 00 FA [00:27:17]Write i2c OK [00:27:17]MH_I2C_Read... [00:27:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:17]Read from MH i2c: E2 [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: E2 FD 00 [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: E2 FD 00 71 09 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E3 [00:27:17]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:27:17]wFMCommunicate OK [00:27:17]wFMCommunicate request_size=4 [00:27:17]MH_SAM_APDU [00:27:17]CAPDU: 80 17 00 00 [00:27:17]Write to MH i2c: E2 08 00 72 09 80 17 00 00 00 00 00 00 FB [00:27:17]Write i2c OK [00:27:17]MH_I2C_Read... [00:27:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:17]Read from MH i2c: E2 [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: E2 FD 00 [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: E2 FD 00 72 09 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 27 [00:27:17]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:27:17]wFMCommunicate OK [00:27:17]wFMCommunicate request_size=4 [00:27:17]MH_SAM_APDU [00:27:17]CAPDU: 80 17 00 00 [00:27:17]Write to MH i2c: E2 08 00 73 09 80 17 00 00 00 00 00 00 FC [00:27:17]Write i2c OK [00:27:17]MH_I2C_Read... [00:27:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:17]Read from MH i2c: E2 [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: E2 FD 00 [00:27:17]MH_I2C_Read... [00:27:17]Read from MH i2c: E2 FD 00 73 09 00 00 00 EF 03 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 90 00 71 [00:27:18]RAPDU: 00 00 EF 03 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 90 00 [00:27:18]wFMCommunicate OK [00:27:18]wFMCommunicate request_size=4 [00:27:18]MH_SAM_APDU [00:27:18]CAPDU: 80 17 00 00 [00:27:18]Write to MH i2c: E2 08 00 74 09 80 17 00 00 00 00 00 00 FD [00:27:18]Write i2c OK [00:27:18]MH_I2C_Read... [00:27:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:27:18]Read from MH i2c: E2 [00:27:18]MH_I2C_Read... [00:27:18]Read from MH i2c: E2 D8 00 [00:27:18]MH_I2C_Read... [00:27:18]Read from MH i2c: E2 D8 00 74 09 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 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 E4 [00:27:18]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 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:27:18]wFMCommunicate OK [00:27:18]SAM_PROTO_GetShiftData done [00:27:18]requested_item shift.sale.total_cash is exist - process it [00:27:18]requested_item shift.sale_refund.total is exist - process it [00:27:18]requested_item shift.sale_refund.total_cash is exist - process it [00:27:18]requested_item shift.buy.total is exist - process it [00:27:18]requested_item shift.buy.total_cash is exist - process it [00:27:18]produce_requested_data done [00:27:18]produce_requested_data return {"fm.sale.total":78198225.25,"fm.sale_refund.total":660759.00,"fm.buy.total":0.00,"shift.sale.total":237850.48,"shift.sale.total_cash":208093.00,"shift.sale_refund.total":6120.00,"shift.sale_refund.total_cash":6120.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:27:18]process_action_free get_value [00:27:18]json_value_free [00:27:18]json_value_free done [00:27:18]process_json_proto returns [00:27:18]Send response to host [00:27:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":78198225.25,"fm.sale_refund.total":660759.00,"fm.buy.total":0.00,"shift.sale.total":237850.48,"shift.sale.total_cash":208093.00,"shift.sale_refund.total":6120.00,"shift.sale_refund.total_cash":6120.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:27:18]free response buf [00:27:18]execute_script done [00:27:18]execute_script returns [00:27:18]free content buf [00:27:18]Sock 10.Close socket [00:27:18]Sock 10.Thread stoped [00:27:18]accept exits with 8 [00:27:18]New connection [00:27:18]New thread 3067432292 created [00:27:18]Thread 3067288932 joined [00:27:18]Waiting for new connection... [00:27:18] Sock 8.Parse request [00:27:18]Sock 8.Check first char [00:27:18]Sock 8.First char is OK [00:27:18]request: POST /json_proto HTTP/1.0 [00:27:18]Method: POST [00:27:18]URL: /json_proto [00:27:18]Method is POST - this is cgi request [00:27:18]url: /json_proto [00:27:18]query_string will be loaded in cgi processing [00:27:18]execute_cgi json_proto POST (null) [00:27:18]execute_cgi path=json_proto method=POST [00:27:18]POST find Content-Length [00:27:18]Host: 172.17.38.4:8080 [00:27:18]Content-Length: 331 [00:27:18]Content-Type: application/json [00:27:18] [00:27:18]POST finish read [00:27:18]Found Content-Length = 331 [00:27:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:27:18]execute_script... [00:27:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:27:18]POST & json_proto [00:27:18]process_json_proto [00:27:18]json parsed OK: [00:27:18]protocol is kg_v1.0 [00:27:18]action value=get_value [00:27:18]process_action get_value [00:27:18]cmd_get_value [00:27:18]process_action get_value done [00:27:18]requested_data is exist [00:27:18]produce_requested_data [00:27:18]requested_item fm.sale.total is exist - process it [00:27:18]SAM_PROTO_GetFMData [00:27:18]wFMCommunicate request_size=4 [00:27:18]MH_SAM_APDU [00:27:18]CAPDU: 80 13 03 00 [00:27:18]Write to MH i2c: E2 08 00 75 09 80 13 03 00 00 00 00 00 FD [00:27:18]Write i2c OK [00:27:18]MH_I2C_Read... [00:27:18]OFD Sender: No OFD packet to send [00:27:18]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:27:18]Read from MH i2c: E2 [00:27:18]MH_I2C_Read... [00:27:18]Read from MH i2c: E2 FD 00 [00:27:18]MH_I2C_Read... [00:27:18]Read from MH i2c: E2 FD 00 75 09 00 C7 04 85 04 C3 04 6E 04 04 00 30 40 02 00 69 04 A3 00 6F 04 04 00 94 3D 02 00 B1 04 05 00 BD 05 19 D2 01 70 04 05 00 7C 40 B5 B4 01 72 04 04 00 41 C5 63 1D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6A 1F 85 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9A 39 20 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 9C 02 00 00 B1 04 04 00 FC 3C F0 03 70 04 04 00 C4 94 EE 03 72 04 03 00 38 A8 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 04 1B 6B EF 90 00 6D [00:27:18]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 30 40 02 00 69 04 A3 00 6F 04 04 00 94 3D 02 00 B1 04 05 00 BD 05 19 D2 01 70 04 05 00 7C 40 B5 B4 01 72 04 04 00 41 C5 63 1D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6A 1F 85 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9A 39 20 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 9C 02 00 00 B1 04 04 00 FC 3C F0 03 70 04 04 00 C4 94 EE 03 72 04 03 00 38 A8 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 04 1B 6B EF 90 00 [00:27:18]wFMCommunicate OK [00:27:18]wFMCommunicate request_size=4 [00:27:18]MH_SAM_APDU [00:27:18]CAPDU: 80 17 00 00 [00:27:18]Write to MH i2c: E2 08 00 76 09 80 17 00 00 00 00 00 00 FF [00:27:18]Write i2c OK [00:27:18]MH_I2C_Read... [00:27:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:19]Read from MH i2c: E2 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: E2 FD 00 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: E2 FD 00 76 09 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B5 EC 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 B5 [00:27:19]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B5 EC 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 [00:27:19]wFMCommunicate OK [00:27:19]wFMCommunicate request_size=4 [00:27:19]MH_SAM_APDU [00:27:19]CAPDU: 80 17 00 00 [00:27:19]Write to MH i2c: E2 08 00 77 09 80 17 00 00 00 00 00 00 00 [00:27:19]Write i2c OK [00:27:19]MH_I2C_Read... [00:27:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:19]Read from MH i2c: E2 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: E2 FD 00 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: E2 FD 00 77 09 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 D8 [00:27:19]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [00:27:19]wFMCommunicate OK [00:27:19]wFMCommunicate request_size=4 [00:27:19]MH_SAM_APDU [00:27:19]CAPDU: 80 17 00 00 [00:27:19]Write to MH i2c: E2 08 00 78 09 80 17 00 00 00 00 00 00 01 [00:27:19]Write i2c OK [00:27:19]MH_I2C_Read... [00:27:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:19]Read from MH i2c: E2 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: E2 FD 00 [00:27:19]MH_I2C_Read... [00:27:19]Read from MH i2c: E2 FD 00 78 09 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 7C [00:27:19]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:27:20]wFMCommunicate OK [00:27:20]wFMCommunicate request_size=4 [00:27:20]MH_SAM_APDU [00:27:20]CAPDU: 80 17 00 00 [00:27:20]Write to MH i2c: E2 08 00 79 09 80 17 00 00 00 00 00 00 02 [00:27:20]Write i2c OK [00:27:20]MH_I2C_Read... [00:27:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:27:20]Read from MH i2c: E2 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: E2 E4 00 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: E2 E4 00 79 09 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E2 [00:27:20]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:27:20]wFMCommunicate OK [00:27:20]SAM_PROTO_GetFMData done [00:27:20]requested_item fm.sale_refund.total is exist - process it [00:27:20]requested_item fm.buy.total is exist - process it [00:27:20]requested_item shift.sale.total is exist - process it [00:27:20]SAM_PROTO_GetShiftData [00:27:20]wFMCommunicate request_size=4 [00:27:20]MH_SAM_APDU [00:27:20]CAPDU: 80 13 02 00 [00:27:20]Write to MH i2c: E2 08 00 7A 09 80 13 02 00 00 00 00 00 01 [00:27:20]Write i2c OK [00:27:20]MH_I2C_Read... [00:27:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:27:20]Read from MH i2c: E2 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: E2 FD 00 [00:27:20]MH_I2C_Read... [00:27:20]Read from MH i2c: E2 FD 00 7A 09 00 BB 04 AA 04 B7 04 6E 04 04 00 AC 01 00 00 69 04 9E 00 6F 04 04 00 A5 01 00 00 B1 04 04 00 58 EE 6A 01 70 04 04 00 54 86 3D 01 72 04 03 00 04 68 2D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1E 90 26 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 36 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 07 00 00 00 B1 04 03 00 A0 56 09 70 04 03 00 A0 56 09 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F8 FD EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 4C [00:27:20]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 AC 01 00 00 69 04 9E 00 6F 04 04 00 A5 01 00 00 B1 04 04 00 58 EE 6A 01 70 04 04 00 54 86 3D 01 72 04 03 00 04 68 2D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1E 90 26 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 36 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 07 00 00 00 B1 04 03 00 A0 56 09 70 04 03 00 A0 56 09 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F8 FD EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:27:20]wFMCommunicate OK [00:27:20]wFMCommunicate request_size=4 [00:27:20]MH_SAM_APDU [00:27:20]CAPDU: 80 17 00 00 [00:27:20]Write to MH i2c: E2 08 00 7B 09 80 17 00 00 00 00 00 00 04 [00:27:20]Write i2c OK [00:27:20]MH_I2C_Read... [00:27:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:21]Read from MH i2c: E2 [00:27:21]MH_I2C_Read... [00:27:21]Read from MH i2c: E2 FD 00 [00:27:21]MH_I2C_Read... [00:27:21]Read from MH i2c: E2 FD 00 7B 09 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 ED [00:27:21]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:27:21]wFMCommunicate OK [00:27:21]wFMCommunicate request_size=4 [00:27:21]MH_SAM_APDU [00:27:21]CAPDU: 80 17 00 00 [00:27:21]Write to MH i2c: E2 08 00 7C 09 80 17 00 00 00 00 00 00 05 [00:27:21]Write i2c OK [00:27:21]MH_I2C_Read... [00:27:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:21]Read from MH i2c: E2 [00:27:21]MH_I2C_Read... [00:27:21]Read from MH i2c: E2 FD 00 [00:27:21]MH_I2C_Read... [00:27:21]Read from MH i2c: E2 FD 00 7C 09 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 31 [00:27:21]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:27:21]wFMCommunicate OK [00:27:21]wFMCommunicate request_size=4 [00:27:21]MH_SAM_APDU [00:27:21]CAPDU: 80 17 00 00 [00:27:21]Write to MH i2c: E2 08 00 7D 09 80 17 00 00 00 00 00 00 06 [00:27:21]Write i2c OK [00:27:21]MH_I2C_Read... [00:27:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:22]Read from MH i2c: E2 [00:27:22]MH_I2C_Read... [00:27:22]Read from MH i2c: E2 FD 00 [00:27:22]MH_I2C_Read... [00:27:22]Read from MH i2c: E2 FD 00 7D 09 00 00 00 EF 03 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 90 00 7B [00:27:22]RAPDU: 00 00 EF 03 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 90 00 [00:27:22]wFMCommunicate OK [00:27:22]wFMCommunicate request_size=4 [00:27:22]MH_SAM_APDU [00:27:22]CAPDU: 80 17 00 00 [00:27:22]Write to MH i2c: E2 08 00 7E 09 80 17 00 00 00 00 00 00 07 [00:27:22]Write i2c OK [00:27:22]MH_I2C_Read... [00:27:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:27:22]Read from MH i2c: E2 [00:27:22]MH_I2C_Read... [00:27:22]Read from MH i2c: E2 D8 00 [00:27:22]MH_I2C_Read... [00:27:22]Read from MH i2c: E2 D8 00 7E 09 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 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 EE [00:27:22]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 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:27:22]wFMCommunicate OK [00:27:22]SAM_PROTO_GetShiftData done [00:27:22]requested_item shift.sale.total_cash is exist - process it [00:27:22]requested_item shift.sale_refund.total is exist - process it [00:27:22]requested_item shift.sale_refund.total_cash is exist - process it [00:27:22]requested_item shift.buy.total is exist - process it [00:27:22]requested_item shift.buy.total_cash is exist - process it [00:27:22]produce_requested_data done [00:27:22]produce_requested_data return {"fm.sale.total":78198225.25,"fm.sale_refund.total":660759.00,"fm.buy.total":0.00,"shift.sale.total":237850.48,"shift.sale.total_cash":208093.00,"shift.sale_refund.total":6120.00,"shift.sale_refund.total_cash":6120.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:27:22]process_action_free get_value [00:27:22]json_value_free [00:27:22]json_value_free done [00:27:22]process_json_proto returns [00:27:22]Send response to host [00:27:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":78198225.25,"fm.sale_refund.total":660759.00,"fm.buy.total":0.00,"shift.sale.total":237850.48,"shift.sale.total_cash":208093.00,"shift.sale_refund.total":6120.00,"shift.sale_refund.total_cash":6120.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:27:22]free response buf [00:27:22]execute_script done [00:27:22]execute_script returns [00:27:22]free content buf [00:27:22]Sock 8.Close socket [00:27:22]Sock 8.Thread stoped [00:27:22]accept exits with 9 [00:27:22]New connection [00:27:22]New thread 3067288932 created [00:27:22]Thread 3067432292 joined [00:27:22]Waiting for new connection... [00:27:22] Sock 9.Parse request [00:27:22]Sock 9.Check first char [00:27:22]Sock 9.First char is OK [00:27:22]request: POST /json_proto HTTP/1.0 [00:27:22]Method: POST [00:27:22]URL: /json_proto [00:27:22]Method is POST - this is cgi request [00:27:22]url: /json_proto [00:27:22]query_string will be loaded in cgi processing [00:27:22]execute_cgi json_proto POST (null) [00:27:22]execute_cgi path=json_proto method=POST [00:27:22]POST find Content-Length [00:27:22]Host: 172.17.38.4:8080 [00:27:22]Content-Length: 269 [00:27:22]Content-Type: application/json [00:27:22] [00:27:22]POST finish read [00:27:22]Found Content-Length = 269 [00:27:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0414\u043E\u0433\u0442\u0443\u0440\u0431\u0430\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:22]execute_script... [00:27:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0414\u043E\u0433\u0442\u0443\u0440\u0431\u0430\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:22]POST & json_proto [00:27:22]process_json_proto [00:27:22]json parsed OK: [00:27:22]protocol is kg_v1.0 [00:27:22]action value=x_report [00:27:22]process_action x_report [00:27:22]cmd_x_report [00:27:22]MH_GetDate [00:27:22]Write to MH i2c: F0 00 00 7F 09 77 [00:27:22]Write i2c OK [00:27:22]MH_I2C_Read... [00:27:22]Read from MH i2c: F0 [00:27:22]MH_I2C_Read... [00:27:22]Read from MH i2c: F0 09 00 [00:27:22]MH_I2C_Read... [00:27:22]Read from MH i2c: F0 09 00 7F 09 00 EB 0D 5D 66 CC 51 87 64 43 [00:27:22]GetLastDocTimeStamp 1717373750 [00:27:22]current date 1717374443 [00:27:22]FM_GetShiftState [00:27:22]SAM_PROTO_GetShiftState [00:27:22]wFMCommunicate request_size=4 [00:27:22]MH_SAM_APDU [00:27:22]CAPDU: 80 13 01 00 [00:27:22]Write to MH i2c: E2 08 00 80 09 80 13 01 00 00 00 00 00 06 [00:27:22]Write i2c OK [00:27:22]MH_I2C_Read... [00:27:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:22]Read from MH i2c: E2 [00:27:22]MH_I2C_Read... [00:27:22]Read from MH i2c: E2 0E 00 [00:27:22]MH_I2C_Read... [00:27:22]Read from MH i2c: E2 0E 00 80 09 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 1E [00:27:22]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [00:27:22]wFMCommunicate OK [00:27:22]SAM_PROTO_GetShiftState done [00:27:22]FM_GetShiftState done [00:27:22]KKMCreateXReportDocument [00:27:22]Load OK [00:27:22]Malloc new data [00:27:22]MH_GetDate [00:27:22]Write to MH i2c: F0 00 00 81 09 79 [00:27:22]Write i2c OK [00:27:22]MH_I2C_Read... [00:27:22]Read from MH i2c: F0 [00:27:22]MH_I2C_Read... [00:27:22]Read from MH i2c: F0 09 00 [00:27:22]MH_I2C_Read... [00:27:22]Read from MH i2c: F0 09 00 81 09 00 EB 0D 5D 66 CC 51 87 64 45 [00:27:22]Malloc new data [00:27:22]Malloc new data [00:27:22]wFMCommunicate request_size=4 [00:27:22]MH_SAM_APDU [00:27:22]CAPDU: 80 11 00 00 [00:27:22]Write to MH i2c: E2 08 00 82 09 80 11 00 00 00 00 00 00 05 [00:27:22]Write i2c OK [00:27:22]MH_I2C_Read... [00:27:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:22]Read from MH i2c: E2 [00:27:22]MH_I2C_Read... [00:27:22]Read from MH i2c: E2 17 00 [00:27:22]MH_I2C_Read... [00:27:22]Read from MH i2c: E2 17 00 82 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 58 [00:27:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:27:22]wFMCommunicate OK [00:27:22]SAM_PROTO_GetFieldsCounters [00:27:22]wFMCommunicate request_size=4 [00:27:22]MH_SAM_APDU [00:27:22]CAPDU: 80 13 00 00 [00:27:22]Write to MH i2c: E2 08 00 83 09 80 13 00 00 00 00 00 00 08 [00:27:22]Write i2c OK [00:27:22]MH_I2C_Read... [00:27:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:27:22]Read from MH i2c: E2 [00:27:22]MH_I2C_Read... [00:27:22]Read from MH i2c: E2 62 00 [00:27:22]MH_I2C_Read... [00:27:22]Read from MH i2c: E2 62 00 83 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0C 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 AC 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AD 01 00 00 19 04 04 00 00 00 00 00 90 00 EB [00:27:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0C 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 AC 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AD 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:27:23]wFMCommunicate OK [00:27:23]SAM_PROTO_GetFieldsCounters done [00:27:23]Malloc new data [00:27:23]Malloc new data [00:27:23]Malloc new data [00:27:23]KKMCreateXReportDocument OK [00:27:23]KKMSetXReportData OK [00:27:23]KKMPrepareXReportFMData [00:27:23]SAM_PROTO_GetShiftData [00:27:23]wFMCommunicate request_size=4 [00:27:23]MH_SAM_APDU [00:27:23]CAPDU: 80 13 02 00 [00:27:23]Write to MH i2c: E2 08 00 84 09 80 13 02 00 00 00 00 00 0B [00:27:23]Write i2c OK [00:27:23]MH_I2C_Read... [00:27:23]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:27:23]Read from MH i2c: E2 [00:27:23]MH_I2C_Read... [00:27:23]Read from MH i2c: E2 FD 00 [00:27:23]MH_I2C_Read... [00:27:23]Read from MH i2c: E2 FD 00 84 09 00 BB 04 AA 04 B7 04 6E 04 04 00 AC 01 00 00 69 04 9E 00 6F 04 04 00 A5 01 00 00 B1 04 04 00 58 EE 6A 01 70 04 04 00 54 86 3D 01 72 04 03 00 04 68 2D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1E 90 26 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 36 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 07 00 00 00 B1 04 03 00 A0 56 09 70 04 03 00 A0 56 09 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F8 FD EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 56 [00:27:23]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 AC 01 00 00 69 04 9E 00 6F 04 04 00 A5 01 00 00 B1 04 04 00 58 EE 6A 01 70 04 04 00 54 86 3D 01 72 04 03 00 04 68 2D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1E 90 26 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 36 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 07 00 00 00 B1 04 03 00 A0 56 09 70 04 03 00 A0 OFD Sender: No OFD packet to send [00:27:23]56 09 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F8 FD EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:27:23]wFMCommunicate OK [00:27:23]wFMCommunicate request_size=4 [00:27:23]MH_SAM_APDU [00:27:23]CAPDU: 80 17 00 00 [00:27:23]Write to MH i2c: E2 08 00 85 09 80 17 00 00 00 00 00 00 0E [00:27:23]Write i2c OK [00:27:23]MH_I2C_Read... [00:27:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:24]Read from MH i2c: E2 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: E2 FD 00 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: E2 FD 00 85 09 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F7 [00:27:24]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:27:24]wFMCommunicate OK [00:27:24]wFMCommunicate request_size=4 [00:27:24]MH_SAM_APDU [00:27:24]CAPDU: 80 17 00 00 [00:27:24]Write to MH i2c: E2 08 00 86 09 80 17 00 00 00 00 00 00 0F [00:27:24]Write i2c OK [00:27:24]MH_I2C_Read... [00:27:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:24]Read from MH i2c: E2 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: E2 FD 00 [00:27:24]MH_I2C_Read... [00:27:24]Read from MH i2c: E2 FD 00 86 09 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3B [00:27:24]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:27:24]wFMCommunicate OK [00:27:24]wFMCommunicate request_size=4 [00:27:24]MH_SAM_APDU [00:27:24]CAPDU: 80 17 00 00 [00:27:24]Write to MH i2c: E2 08 00 87 09 80 17 00 00 00 00 00 00 10 [00:27:24]Write i2c OK [00:27:24]MH_I2C_Read... [00:27:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:25]Read from MH i2c: E2 [00:27:25]MH_I2C_Read... [00:27:25]Read from MH i2c: E2 FD 00 [00:27:25]MH_I2C_Read... [00:27:25]Read from MH i2c: E2 FD 00 87 09 00 00 00 EF 03 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 90 00 85 [00:27:25]RAPDU: 00 00 EF 03 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 90 00 [00:27:25]wFMCommunicate OK [00:27:25]wFMCommunicate request_size=4 [00:27:25]MH_SAM_APDU [00:27:25]CAPDU: 80 17 00 00 [00:27:25]Write to MH i2c: E2 08 00 88 09 80 17 00 00 00 00 00 00 11 [00:27:25]Write i2c OK [00:27:25]MH_I2C_Read... [00:27:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:27:25]Read from MH i2c: E2 [00:27:25]MH_I2C_Read... [00:27:25]Read from MH i2c: E2 D8 00 [00:27:25]MH_I2C_Read... [00:27:25]Read from MH i2c: E2 D8 00 88 09 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 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 F8 [00:27:25]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 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:27:25]wFMCommunicate OK [00:27:25]SAM_PROTO_GetShiftData done [00:27:25]1194 (1207) - счетчики итогов смены [00:27:25] 1134 (4) - 428 - количество чеков со всеми признаками расчетов [00:27:25] 1129 (158) - счетчики операций «приход» [00:27:25] 1135 (4) - 421 - количество чеков по признаку расчетов [00:27:25] 1201 (4) - 237850.48 - общая итоговая сумма в чеках [00:27:25] 1136 (4) - 208093.00 - итоговая сумма в чеках наличными [00:27:25] 1138 (3) - 29757.48 - итоговая сумма в чеках безналичными [00:27:25] 1024 (123) - суммы налогов [00:27:25] 1006 (9) - суммы НДС [00:27:25] 1010 (1) - 0% - код ставки НДС [00:27:25] 1011 (0) - 0.00 - сумма НДС по ставке [00:27:25] 1006 (12) - суммы НДС [00:27:25] 1010 (1) - 12% - код ставки НДС [00:27:25] 1011 (3) - 25272.62 - сумма НДС по ставке [00:27:25] 1007 (9) - суммы НСП [00:27:25] 1014 (1) - 0% - код ставки НСП [00:27:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:25] 1007 (12) - суммы НСП [00:27:25] 1014 (1) - 1% - код ставки НСП [00:27:25] 1015 (3) - 2105.61 - сумма НСП по ставке [00:27:25] 1007 (9) - суммы НСП [00:27:25] 1014 (1) - 2% - код ставки НСП [00:27:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:25] 1007 (9) - суммы НСП [00:27:25] 1014 (1) - 3% - код ставки НСП [00:27:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:25] 1007 (9) - суммы НСП [00:27:25] 1014 (1) - 5% - код ставки НСП [00:27:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:25] 1007 (9) - суммы НСП [00:27:25] 1014 (1) - 0,50% - код ставки НСП [00:27:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:25] 1007 (9) - суммы НСП [00:27:25] 1014 (1) - 1,50% - код ставки НСП [00:27:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:25] 1130 (151) - счетчики операций «возврат прихода» [00:27:25] 1135 (4) - 7 - количество чеков по признаку расчетов [00:27:25] 1201 (3) - 6120.00 - общая итоговая сумма в чеках [00:27:25] 1136 (3) - 6120.00 - итоговая сумма в чеках наличными [00:27:25] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:27:25] 1024 (121) - суммы налогов [00:27:25] 1006 (9) - суммы НДС [00:27:25] 1010 (1) - 0% - код ставки НДС [00:27:25] 1011 (0) - 0.00 - сумма НДС по ставке [00:27:25] 1006 (11) - суммы НДС [00:27:25] 1010 (1) - 12% - код ставки НДС [00:27:25] 1011 (2) - 650.16 - сумма НДС по ставке [00:27:25] 1007 (9) - суммы НСП [00:27:25] 1014 (1) - 0% - код ставки НСП [00:27:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:25] 1007 (11) - суммы НСП [00:27:25] 1014 (1) - 1% - код ставки НСП [00:27:25] 1015 (2) - 54.18 - сумма НСП по ставке [00:27:25] 1007 (9) - суммы НСП [00:27:25] 1014 (1) - 2% - код ставки НСП [00:27:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:25] 1007 (9) - суммы НСП [00:27:25] 1014 (1) - 3% - код ставки НСП [00:27:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:25] 1007 (9) - суммы НСП [00:27:25] 1014 (1) - 5% - код ставки НСП [00:27:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:25] 1007 (9) - суммы НСП [00:27:25] 1014 (1) - 0,50% - код ставки НСП [00:27:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:25] 1007 (9) - суммы НСП [00:27:25] 1014 (1) - 1,50% - код ставки НСП [00:27:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:25] 1131 (141) - счетчики операций «расход» [00:27:25] 1135 (4) - 0 - количество чеков по признаку расчетов [00:27:25] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:27:25] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:27:25] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:27:25] 1024 (117) - суммы налогов [00:27:25] 1006 (9) - суммы НДС [00:27:25] 1010 (1) - 0% - код ставки НДС [00:27:25] 1011 (0) - 0.00 - сумма НДС по ставке [00:27:25] 1006 (9) - суммы НДС [00:27:25] 1010 (1) - 12% - код ставки НДС [00:27:25] 1011 (0) - 0.00 - сумма НДС по ставке [00:27:25] 1007 (9) - суммы НСП [00:27:25] 1014 (1) - 0% - код ставки НСП [00:27:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:25] 1007 (9) - суммы НСП [00:27:25] 1014 (1) - 1% - код ставки НСП [00:27:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:25] 1007 (9) - суммы НСП [00:27:25] 1014 (1) - 2% - код ставки НСП [00:27:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:25] 1007 (9) - суммы НСП [00:27:25] 1014 (1) - 3% - код ставки НСП [00:27:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:25] 1007 (9) - суммы НСП [00:27:25] 1014 (1) - 5% - код ставки НСП [00:27:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:25] 1007 (9) - суммы НСП [00:27:25] 1014 (1) - 0,50% - код ставки НСП [00:27:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:25] 1007 (9) - суммы НСП [00:27:25] 1014 (1) - 1,50% - код ставки НСП [00:27:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:25] 1132 (141) - счетчики операций «возврат расхода» [00:27:25] 1135 (4) - 0 - количество чеков по признаку расчетов [00:27:25] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:27:25] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:27:25] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:27:25] 1024 (117) - суммы налогов [00:27:25] 1006 (9) - суммы НДС [00:27:25] 1010 (1) - 0% - код ставки НДС [00:27:25] 1011 (0) - 0.00 - сумма НДС по ставке [00:27:25] 1006 (9) - суммы НДС [00:27:25] 1010 (1) - 12% - код ставки НДС [00:27:25] 1011 (0) - 0.00 - сумма НДС по ставке [00:27:25] 1007 (9) - суммы НСП [00:27:25] 1014 (1) - 0% - код ставки НСП [00:27:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:26] 1007 (9) - суммы НСП [00:27:26] 1014 (1) - 1% - код ставки НСП [00:27:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:26] 1007 (9) - суммы НСП [00:27:26] 1014 (1) - 2% - код ставки НСП [00:27:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:26] 1007 (9) - суммы НСП [00:27:26] 1014 (1) - 3% - код ставки НСП [00:27:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:26] 1007 (9) - суммы НСП [00:27:26] 1014 (1) - 5% - код ставки НСП [00:27:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:26] 1007 (9) - суммы НСП [00:27:26] 1014 (1) - 0,50% - код ставки НСП [00:27:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:26] 1007 (9) - суммы НСП [00:27:26] 1014 (1) - 1,50% - код ставки НСП [00:27:26] 1015 (0) - 0.00 - сумма НСП по ставке [00:27:26] 1133 (588) - - счетчики коррекции - не используются [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1194 (04AA) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1134 (046E) [00:27:26]Malloc new data [00:27:26]Processing tag 1129 (0469) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1135 (046F) [00:27:26]Malloc new data [00:27:26]Processing tag 1201 (04B1) [00:27:26]Malloc new data [00:27:26]Processing tag 1136 (0470) [00:27:26]Malloc new data [00:27:26]Processing tag 1138 (0472) [00:27:26]Malloc new data [00:27:26]Processing tag 1024 (0400) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1006 (03EE) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1010 (03F2) [00:27:26]Malloc new data [00:27:26]Processing tag 1011 (03F3) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1006 (03EE) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1010 (03F2) [00:27:26]Malloc new data [00:27:26]Processing tag 1011 (03F3) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1007 (03EF) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1014 (03F6) [00:27:26]Malloc new data [00:27:26]Processing tag 1015 (03F7) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1007 (03EF) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1014 (03F6) [00:27:26]Malloc new data [00:27:26]Processing tag 1015 (03F7) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1007 (03EF) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1014 (03F6) [00:27:26]Malloc new data [00:27:26]Processing tag 1015 (03F7) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1007 (03EF) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1014 (03F6) [00:27:26]Malloc new data [00:27:26]Processing tag 1015 (03F7) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1007 (03EF) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1014 (03F6) [00:27:26]Malloc new data [00:27:26]Processing tag 1015 (03F7) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1007 (03EF) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1014 (03F6) [00:27:26]Malloc new data [00:27:26]Processing tag 1015 (03F7) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1007 (03EF) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1014 (03F6) [00:27:26]Malloc new data [00:27:26]Processing tag 1015 (03F7) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]SetTLVBufToDocument err=0 [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1130 (046A) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1135 (046F) [00:27:26]Malloc new data [00:27:26]Processing tag 1201 (04B1) [00:27:26]Malloc new data [00:27:26]Processing tag 1136 (0470) [00:27:26]Malloc new data [00:27:26]Processing tag 1138 (0472) [00:27:26]Malloc new data [00:27:26]Processing tag 1024 (0400) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1006 (03EE) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1010 (03F2) [00:27:26]Malloc new data [00:27:26]Processing tag 1011 (03F3) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1006 (03EE) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1010 (03F2) [00:27:26]Malloc new data [00:27:26]Processing tag 1011 (03F3) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1007 (03EF) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1014 (03F6) [00:27:26]Malloc new data [00:27:26]Processing tag 1015 (03F7) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1007 (03EF) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1014 (03F6) [00:27:26]Malloc new data [00:27:26]Processing tag 1015 (03F7) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1007 (03EF) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1014 (03F6) [00:27:26]Malloc new data [00:27:26]Processing tag 1015 (03F7) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1007 (03EF) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1014 (03F6) [00:27:26]Malloc new data [00:27:26]Processing tag 1015 (03F7) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1007 (03EF) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1014 (03F6) [00:27:26]Malloc new data [00:27:26]Processing tag 1015 (03F7) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1007 (03EF) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1014 (03F6) [00:27:26]Malloc new data [00:27:26]Processing tag 1015 (03F7) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1007 (03EF) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1014 (03F6) [00:27:26]Malloc new data [00:27:26]Processing tag 1015 (03F7) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]SetTLVBufToDocument err=0 [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1131 (046B) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1135 (046F) [00:27:26]Malloc new data [00:27:26]Processing tag 1201 (04B1) [00:27:26]Malloc new data [00:27:26]Processing tag 1136 (0470) [00:27:26]Malloc new data [00:27:26]Processing tag 1138 (0472) [00:27:26]Malloc new data [00:27:26]Processing tag 1024 (0400) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1006 (03EE) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1010 (03F2) [00:27:26]Malloc new data [00:27:26]Processing tag 1011 (03F3) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1006 (03EE) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1010 (03F2) [00:27:26]Malloc new data [00:27:26]Processing tag 1011 (03F3) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1007 (03EF) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1014 (03F6) [00:27:26]Malloc new data [00:27:26]Processing tag 1015 (03F7) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1007 (03EF) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1014 (03F6) [00:27:26]Malloc new data [00:27:26]Processing tag 1015 (03F7) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1007 (03EF) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1014 (03F6) [00:27:26]Malloc new data [00:27:26]Processing tag 1015 (03F7) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1007 (03EF) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1014 (03F6) [00:27:26]Malloc new data [00:27:26]Processing tag 1015 (03F7) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1007 (03EF) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1014 (03F6) [00:27:26]Malloc new data [00:27:26]Processing tag 1015 (03F7) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1007 (03EF) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1014 (03F6) [00:27:26]Malloc new data [00:27:26]Processing tag 1015 (03F7) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1007 (03EF) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1014 (03F6) [00:27:26]Malloc new data [00:27:26]Processing tag 1015 (03F7) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]SetTLVBufToDocument err=0 [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1132 (046C) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1135 (046F) [00:27:26]Malloc new data [00:27:26]Processing tag 1201 (04B1) [00:27:26]Malloc new data [00:27:26]Processing tag 1136 (0470) [00:27:26]Malloc new data [00:27:26]Processing tag 1138 (0472) [00:27:26]Malloc new data [00:27:26]Processing tag 1024 (0400) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1006 (03EE) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1010 (03F2) [00:27:26]Malloc new data [00:27:26]Processing tag 1011 (03F3) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1006 (03EE) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1010 (03F2) [00:27:26]Malloc new data [00:27:26]Processing tag 1011 (03F3) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1007 (03EF) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1014 (03F6) [00:27:26]Malloc new data [00:27:26]Processing tag 1015 (03F7) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1007 (03EF) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1014 (03F6) [00:27:26]Malloc new data [00:27:26]Processing tag 1015 (03F7) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1007 (03EF) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1014 (03F6) [00:27:26]Malloc new data [00:27:26]Processing tag 1015 (03F7) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1007 (03EF) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1014 (03F6) [00:27:26]Malloc new data [00:27:26]Processing tag 1015 (03F7) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1007 (03EF) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1014 (03F6) [00:27:26]Malloc new data [00:27:26]Processing tag 1015 (03F7) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1007 (03EF) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1014 (03F6) [00:27:26]Malloc new data [00:27:26]Processing tag 1015 (03F7) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1007 (03EF) [00:27:26]Load OK [00:27:26]SetTLVBufToDocument [00:27:26]Processing tag 1014 (03F6) [00:27:26]Malloc new data [00:27:26]Processing tag 1015 (03F7) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]SetTLVBufToDocument err=0 [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Processing tag 1133 (046D) [00:27:26]Malloc new data [00:27:26]SetTLVBufToDocument err=0 [00:27:26]SetTLVBufToDocument err=0 [00:27:26]Malloc new data [00:27:26]SAM_PROTO_GetFMData [00:27:26]wFMCommunicate request_size=4 [00:27:26]MH_SAM_APDU [00:27:26]CAPDU: 80 13 03 00 [00:27:26]Write to MH i2c: E2 08 00 89 09 80 13 03 00 00 00 00 00 11 [00:27:26]Write i2c OK [00:27:26]MH_I2C_Read... [00:27:27]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:27:27]Read from MH i2c: E2 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 FD 00 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 FD 00 89 09 00 C7 04 85 04 C3 04 6E 04 04 00 30 40 02 00 69 04 A3 00 6F 04 04 00 94 3D 02 00 B1 04 05 00 BD 05 19 D2 01 70 04 05 00 7C 40 B5 B4 01 72 04 04 00 41 C5 63 1D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6A 1F 85 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9A 39 20 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 9C 02 00 00 B1 04 04 00 FC 3C F0 03 70 04 04 00 C4 94 EE 03 72 04 03 00 38 A8 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 04 1B 6B EF 90 00 81 [00:27:27]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 30 40 02 00 69 04 A3 00 6F 04 04 00 94 3D 02 00 B1 04 05 00 BD 05 19 D2 01 70 04 05 00 7C 40 B5 B4 01 72 04 04 00 41 C5 63 1D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6A 1F 85 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9A 39 20 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 9C 02 00 00 B1 04 04 00 FC 3C F0 03 70 04 04 00 C4 94 EE 03 72 04 03 00 38 A8 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 04 1B 6B EF 90 00 [00:27:27]wFMCommunicate OK [00:27:27]wFMCommunicate request_size=4 [00:27:27]MH_SAM_APDU [00:27:27]CAPDU: 80 17 00 00 [00:27:27]Write to MH i2c: E2 08 00 8A 09 80 17 00 00 00 00 00 00 13 [00:27:27]Write i2c OK [00:27:27]MH_I2C_Read... [00:27:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:27]Read from MH i2c: E2 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 FD 00 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 FD 00 8A 09 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B5 EC 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 C9 [00:27:27]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B5 EC 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 [00:27:28]wFMCommunicate OK [00:27:28]wFMCommunicate request_size=4 [00:27:28]MH_SAM_APDU [00:27:28]CAPDU: 80 17 00 00 [00:27:28]Write to MH i2c: E2 08 00 8B 09 80 17 00 00 00 00 00 00 14 [00:27:28]Write i2c OK [00:27:28]MH_I2C_Read... [00:27:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:28]Read from MH i2c: E2 [00:27:28]MH_I2C_Read... [00:27:28]Read from MH i2c: E2 FD 00 [00:27:28]MH_I2C_Read... [00:27:28]Read from MH i2c: E2 FD 00 8B 09 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 EC [00:27:28]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [00:27:28]wFMCommunicate OK [00:27:28]wFMCommunicate request_size=4 [00:27:28]MH_SAM_APDU [00:27:28]CAPDU: 80 17 00 00 [00:27:28]Write to MH i2c: E2 08 00 8C 09 80 17 00 00 00 00 00 00 15 [00:27:28]Write i2c OK [00:27:28]MH_I2C_Read... [00:27:28]OFD Sender: No OFD packet to send [00:27:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:28]Read from MH i2c: E2 [00:27:28]MH_I2C_Read... [00:27:28]Read from MH i2c: E2 FD 00 [00:27:28]MH_I2C_Read... [00:27:28]Read from MH i2c: E2 FD 00 8C 09 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 90 [00:27:29]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:27:29]wFMCommunicate OK [00:27:29]wFMCommunicate request_size=4 [00:27:29]MH_SAM_APDU [00:27:29]CAPDU: 80 17 00 00 [00:27:29]Write to MH i2c: E2 08 00 8D 09 80 17 00 00 00 00 00 00 16 [00:27:29]Write i2c OK [00:27:29]MH_I2C_Read... [00:27:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:27:29]Read from MH i2c: E2 [00:27:29]MH_I2C_Read... [00:27:29]Read from MH i2c: E2 E4 00 [00:27:29]MH_I2C_Read... [00:27:29]Read from MH i2c: E2 E4 00 8D 09 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 F6 [00:27:29]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:27:29]wFMCommunicate OK [00:27:29]SAM_PROTO_GetFMData done [00:27:29]FM_GetFMData:85 04 C3 04 6E 04 04 00 30 40 02 00 69 04 A3 00 6F 04 04 00 94 3D 02 00 B1 04 05 00 BD 05 19 D2 01 70 04 05 00 7C 40 B5 B4 01 72 04 04 00 41 C5 63 1D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6A 1F 85 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9A 39 20 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 9C 02 00 00 B1 04 04 00 FC 3C F0 03 70 04 04 00 C4 94 EE 03 72 04 03 00 38 A8 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 04 1B 6B 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 B5 EC 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:27:30]oper:6F 04 04 00 94 3D 02 00 B1 04 05 00 BD 05 19 D2 01 70 04 05 00 7C 40 B5 B4 01 72 04 04 00 41 C5 63 1D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6A 1F 85 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9A 39 20 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:27:30]total:BD 05 19 D2 01 [00:27:30]Malloc new data [00:27:30]oper:6F 04 04 00 9C 02 00 00 B1 04 04 00 FC 3C F0 03 70 04 04 00 C4 94 EE 03 72 04 03 00 38 A8 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 04 1B 6B 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 B5 EC 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:27:30]total:FC 3C F0 03 [00:27:30]Malloc new data [00:27:30]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:27:30]total: [00:27:30]Malloc new data [00:27:30]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:27:30]total: [00:27:30]Malloc new data [00:27:30]KKMPrepareXReportFMData err=0 [00:27:30]Х отчет ИНН: 02508201610067 Кассир: Догтурбаев А. 03.06.2024 00:27 Смена: 266 РНМ: 0000000000092720 ЗНМ: 0300000035 СНО: Общий режим Всего чеков: 428 ИТОГИ ПРИХОД Чеков: 421 Общий итог: 237850.48 Итого наличными: 208093.00 Итого безнал.: 29757.48 НДС 0% : 0.00 НДС 12% : 25272.62 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2105.61 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 7 Общий итог: 6120.00 Итого наличными: 6120.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 650.16 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 54.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.00 Сумма выплат: 0.00 Нал. в кассе: 201973.00 НС Приход: 78198225.25 НС Возвр.Прихода: 660759.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000875057 [00:27:30]StoreToDocumentArchive [00:27:30]MH_GetDate [00:27:30]Write to MH i2c: F0 00 00 8E 09 86 [00:27:30]Write i2c OK [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: F0 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: F0 09 00 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: F0 09 00 8E 09 00 F3 0D 5D 66 CC 51 87 64 5A [00:27:30]shift 266 fd 1717374451 [00:27:30]Create dir for shift 0266 [00:27:30]save to /storage/0266/doc_1717374451 [00:27:30]save last doc name /storage/0266/doc_1717374451 to /storage/kkm_last_doc_name [00:27:30]save OK [00:27:30]Clear old archive folders... [00:27:30]NVStorageSaveData kkm_last_timestamp [00:27:30]File name is /storage/kkm_last_timestamp [00:27:30]Write 4 bytes [00:27:30]NVStorageSaveData done [00:27:30]ExternCall_PrintAddStr [00:27:30]wPrintStart [00:27:30]Write to MH i2c: 01 00 00 8F 09 98 [00:27:30]Write i2c OK [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: 01 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: 01 07 00 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: 01 07 00 8F 09 00 00 00 00 00 FF 0F AD [00:27:30]RasterBufferAndPrint [00:27:30]line Х отчет [00:27:30]line ИНН: 02508201610067 [00:27:30]line Кассир: Догтурбаев А. [00:27:30]line 03.06.2024 00:27 [00:27:30]line Смена: 266 [00:27:30]line РНМ: 0000000000092720 [00:27:30]line ЗНМ: 0300000035 [00:27:30]line СНО: Общий режим [00:27:30]line Всего чеков: 428 [00:27:30]line ИТОГИ ПРИХОД [00:27:30]line Чеков: 421 [00:27:30]line Общий итог: 237850.48 [00:27:30]line Итого наличными: 208093.00 [00:27:30]line Итого безнал.: 29757.48 [00:27:30]line НДС 0% : 0.00 [00:27:30]line НДС 12% : 25272.62 [00:27:30]line НСП 0% : 0.00 [00:27:30]line НСП 1,50% : 0.00 [00:27:30]line НСП 0,50% : 0.00 [00:27:30]line НСП 5% : 0.00 [00:27:30]line НСП 3% : 0.00 [00:27:30]line НСП 2% : 0.00 [00:27:30]line НСП 1% : 2105.61 [00:27:30]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:27:30]line Чеков: 7 [00:27:30]line Общий итог: 6120.00 [00:27:30]line Итого наличными: 6120.00 [00:27:30]line Итого безнал.: 0.00 [00:27:30]line НДС 0% : 0.00 [00:27:30]line НДС 12% : 650.16 [00:27:30]line НСП 0% : 0.00 [00:27:30]line НСП 1,50% : 0.00 [00:27:30]line НСП 0,50% : 0.00 [00:27:30]line НСП 5% : 0.00 [00:27:30]line НСП 3% : 0.00 [00:27:30]line НСП 2% : 0.00 [00:27:30]line НСП 1% : 54.18 [00:27:30]line ИТОГИ РАСХОД [00:27:30]line Чеков: 0 [00:27:30]line Общий итог: 0.00 [00:27:30]line Итого наличными: 0.00 [00:27:30]line Итого безнал.: 0.00 [00:27:30]line НДС 0% : 0.00 [00:27:30]line НДС 12% : 0.00 [00:27:30]line НСП 0% : 0.00 [00:27:30]line НСП 1,50% : 0.00 [00:27:30]line НСП 0,50% : 0.00 [00:27:30]line НСП 5% : 0.00 [00:27:30]line НСП 3% : 0.00 [00:27:30]line НСП 2% : 0.00 [00:27:30]line НСП 1% : 0.00 [00:27:30]line ИТОГИ ВОЗВРАТ РАСХОДА [00:27:30]line Чеков: 0 [00:27:30]line Общий итог: 0.00 [00:27:30]line Итого наличными: 0.00 [00:27:30]line Итого безнал.: 0.00 [00:27:30]line НДС 0% : 0.00 [00:27:30]line НДС 12% : 0.00 [00:27:30]line НСП 0% : 0.00 [00:27:30]line НСП 1,50% : 0.00 [00:27:30]line НСП 0,50% : 0.00 [00:27:30]line НСП 5% : 0.00 [00:27:30]line НСП 3% : 0.00 [00:27:30]line НСП 2% : 0.00 [00:27:30]line НСП 1% : 0.00 [00:27:30]line Сумма внесений: 0.00 [00:27:30]line Сумма выплат: 0.00 [00:27:30]line Нал. в кассе: 201973.00 [00:27:30]line НС Приход: 78198225.25 [00:27:30]line НС Возвр.Прихода: 660759.00 [00:27:30]line НС Расход: 0.00 [00:27:30]line НС Возвр.Расхода: 0.00 [00:27:30]line ФМ: 0000000000875057 [00:27:30]written 0, free lines is 4095 [00:27:31]Write to MH i2c: 01 00 00 DA 09 E3 [00:27:31]Write i2c OK [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: 01 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: 01 07 00 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: 01 07 00 DA 09 00 00 00 00 00 8F 09 82 [00:27:31]RasterBufferAndPrint [00:27:31]line [00:27:31]line [00:27:31]line [00:27:31]line [00:27:31]line [00:27:31]written 0, free lines is 2470 [00:27:31]MH_Cut [00:27:31]Write to MH i2c: D1 01 00 E1 09 01 BC [00:27:31]Write i2c OK [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: D1 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: D1 01 00 [00:27:31]MH_I2C_Read... [00:27:31]Read from MH i2c: D1 01 00 E1 09 00 BB [00:27:31]Write to MH i2c: 01 00 00 E2 09 EB [00:27:31]Write i2c OK [00:27:31]MH_I2C_Read... [00:27:33]*** Cut start [00:27:33]*** Partial cut [00:27:33]*** CUTSNS_PIN = 1 [00:27:33]*** CUTSNS_PIN = 0 [00:27:33]OFD Sender: No OFD packet to send [00:27:33]*** Brake cut motor [00:27:34]Read from MH i2c: 01 [00:27:34]MH_I2C_Read... [00:27:34]*** Stop cut motor [00:27:34]*** Cut end [00:27:34]Read from MH i2c: 01 07 00 [00:27:34]MH_I2C_Read... [00:27:34]Read from MH i2c: 01 07 00 E2 09 00 00 00 00 00 FF 0F 00 [00:27:34]process_action x_report done [00:27:34]requested_data is exist [00:27:34]produce_requested_data [00:27:34]requested_item fd.num is exist - process it [00:27:34]SAM_PROTO_GetFieldsCounters [00:27:34]wFMCommunicate request_size=4 [00:27:34]MH_SAM_APDU [00:27:34]CAPDU: 80 13 00 00 [00:27:34]Write to MH i2c: E2 08 00 E3 09 80 13 00 00 00 00 00 00 68 [00:27:34]Write i2c OK [00:27:34]MH_I2C_Read... [00:27:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:27:34]Read from MH i2c: E2 [00:27:34]MH_I2C_Read... [00:27:34]Read from MH i2c: E2 62 00 [00:27:34]MH_I2C_Read... [00:27:34]Read from MH i2c: E2 62 00 E3 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0C 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 AC 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AD 01 00 00 19 04 04 00 00 00 00 00 90 00 4B [00:27:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0C 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 AC 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AD 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:27:34]wFMCommunicate OK [00:27:34]SAM_PROTO_GetFieldsCounters done [00:27:34]requested_item shift.num is exist - process it [00:27:34]requested_item shift.opened is exist - process it [00:27:34]req_shift_opened [00:27:34]FM_GetShiftState [00:27:34]SAM_PROTO_GetShiftState [00:27:34]wFMCommunicate request_size=4 [00:27:34]MH_SAM_APDU [00:27:34]CAPDU: 80 13 01 00 [00:27:34]Write to MH i2c: E2 08 00 E4 09 80 13 01 00 00 00 00 00 6A [00:27:34]Write i2c OK [00:27:34]MH_I2C_Read... [00:27:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:34]Read from MH i2c: E2 [00:27:34]MH_I2C_Read... [00:27:34]Read from MH i2c: E2 0E 00 [00:27:34]MH_I2C_Read... [00:27:34]Read from MH i2c: E2 0E 00 E4 09 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 82 [00:27:34]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [00:27:34]wFMCommunicate OK [00:27:34]SAM_PROTO_GetShiftState done [00:27:34]FM_GetShiftState done [00:27:34]req_shift_opened done [00:27:34]requested_item shift.open_date is exist - process it [00:27:34]req_shift_open_date [00:27:34]req_shift_open_date done [00:27:34]produce_requested_data done [00:27:34]produce_requested_data return {"fd.num":148236,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [00:27:34]process_action_free x_report [00:27:34]json_value_free [00:27:34]json_value_free done [00:27:34]process_json_proto returns [00:27:34]Send response to host [00:27:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":148236,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [00:27:34]free response buf [00:27:34]execute_script done [00:27:34]execute_script returns [00:27:34]free content buf [00:27:34]Sock 9.Close socket [00:27:34]Sock 9.Thread stoped [00:27:38]OFD Sender: No OFD packet to send [00:27:43]accept exits with 8 [00:27:43]New connection [00:27:43]New thread 3067432292 created [00:27:43]Thread 3067288932 joined [00:27:43]Waiting for new connection... [00:27:43] Sock 8.Parse request [00:27:43]Sock 8.Check first char [00:27:43]Sock 8.First char is OK [00:27:43]request: POST /json_proto HTTP/1.0 [00:27:43]Method: POST [00:27:43]URL: /json_proto [00:27:43]Method is POST - this is cgi request [00:27:43]url: /json_proto [00:27:43]query_string will be loaded in cgi processing [00:27:43]execute_cgi json_proto POST (null) [00:27:43]execute_cgi path=json_proto method=POST [00:27:43]POST find Content-Length [00:27:43]Host: 172.17.38.4:8080 [00:27:43]Content-Length: 215 [00:27:43]Content-Type: application/json [00:27:43] [00:27:43]POST finish read [00:27:43]Found Content-Length = 215 [00:27:43]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:27:43]execute_script... [00:27:43]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:27:43]POST & json_proto [00:27:43]process_json_proto [00:27:43]json parsed OK: [00:27:43]protocol is kg_v1.0 [00:27:43]action value=get_value [00:27:43]process_action get_value [00:27:43]cmd_get_value [00:27:43]process_action get_value done [00:27:43]requested_data is exist [00:27:43]produce_requested_data [00:27:43]requested_item kkm.sn is exist - process it [00:27:43]requested_item kkm.ver is exist - process it [00:27:43]requested_item fm.sn is exist - process it [00:27:43]wFMCommunicate request_size=4 [00:27:43]MH_SAM_APDU [00:27:43]CAPDU: 80 11 00 00 [00:27:43]Write to MH i2c: E2 08 00 E5 09 80 11 00 00 00 00 00 00 68 [00:27:43]Write i2c OK [00:27:43]MH_I2C_Read... [00:27:43]OFD Sender: No OFD packet to send [00:27:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:43]Read from MH i2c: E2 [00:27:43]MH_I2C_Read... [00:27:43]Read from MH i2c: E2 17 00 [00:27:43]MH_I2C_Read... [00:27:43]Read from MH i2c: E2 17 00 E5 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 BB [00:27:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:27:43]wFMCommunicate OK [00:27:43]requested_item fd.num is exist - process it [00:27:43]SAM_PROTO_GetFieldsCounters [00:27:43]wFMCommunicate request_size=4 [00:27:43]MH_SAM_APDU [00:27:43]CAPDU: 80 13 00 00 [00:27:43]Write to MH i2c: E2 08 00 E6 09 80 13 00 00 00 00 00 00 6B [00:27:43]Write i2c OK [00:27:43]MH_I2C_Read... [00:27:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:27:44]Read from MH i2c: E2 [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: E2 62 00 [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: E2 62 00 E6 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0C 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 AC 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AD 01 00 00 19 04 04 00 00 00 00 00 90 00 4E [00:27:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0C 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 AC 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AD 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:27:44]wFMCommunicate OK [00:27:44]SAM_PROTO_GetFieldsCounters done [00:27:44]requested_item shift.num is exist - process it [00:27:44]requested_item shift.opened is exist - process it [00:27:44]req_shift_opened [00:27:44]FM_GetShiftState [00:27:44]SAM_PROTO_GetShiftState [00:27:44]wFMCommunicate request_size=4 [00:27:44]MH_SAM_APDU [00:27:44]CAPDU: 80 13 01 00 [00:27:44]Write to MH i2c: E2 08 00 E7 09 80 13 01 00 00 00 00 00 6D [00:27:44]Write i2c OK [00:27:44]MH_I2C_Read... [00:27:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:44]Read from MH i2c: E2 [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: E2 0E 00 [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: E2 0E 00 E7 09 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 85 [00:27:44]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [00:27:44]wFMCommunicate OK [00:27:44]SAM_PROTO_GetShiftState done [00:27:44]FM_GetShiftState done [00:27:44]req_shift_opened done [00:27:44]requested_item shift.open_date is exist - process it [00:27:44]req_shift_open_date [00:27:44]req_shift_open_date done [00:27:44]produce_requested_data done [00:27:44]produce_requested_data return {"kkm.sn":"0300000035","kkm.ver":"001","fm.sn":"0000000000875057","fd.num":148236,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824} [00:27:44]process_action_free get_value [00:27:44]json_value_free [00:27:44]json_value_free done [00:27:44]process_json_proto returns [00:27:44]Send response to host [00:27:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000035","kkm.ver":"001","fm.sn":"0000000000875057","fd.num":148236,"shift.num":366,"shift.opened":1,"shift.open_date":1717287824}}} [00:27:44]free response buf [00:27:44]execute_script done [00:27:44]execute_script returns [00:27:44]free content buf [00:27:44]Sock 8.Close socket [00:27:44]Sock 8.Thread stoped [00:27:44]accept exits with 9 [00:27:44]New connection [00:27:44]New thread 3067288932 created [00:27:44]Thread 3067432292 joined [00:27:44]Waiting for new connection... [00:27:44] Sock 9.Parse request [00:27:44]Sock 9.Check first char [00:27:44]Sock 9.First char is OK [00:27:44]request: POST /json_proto HTTP/1.0 [00:27:44]Method: POST [00:27:44]URL: /json_proto [00:27:44]Method is POST - this is cgi request [00:27:44]url: /json_proto [00:27:44]query_string will be loaded in cgi processing [00:27:44]execute_cgi json_proto POST (null) [00:27:44]execute_cgi path=json_proto method=POST [00:27:44]POST find Content-Length [00:27:44]Host: 172.17.38.4:8080 [00:27:44]Content-Length: 331 [00:27:44]Content-Type: application/json [00:27:44] [00:27:44]POST finish read [00:27:44]Found Content-Length = 331 [00:27: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:27:44]execute_script... [00:27: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:27:44]POST & json_proto [00:27:44]process_json_proto [00:27:44]json parsed OK: [00:27:44]protocol is kg_v1.0 [00:27:44]action value=get_value [00:27:44]process_action get_value [00:27:44]cmd_get_value [00:27:44]process_action get_value done [00:27:44]requested_data is exist [00:27:44]produce_requested_data [00:27:44]requested_item fm.sale.total is exist - process it [00:27:44]SAM_PROTO_GetFMData [00:27:44]wFMCommunicate request_size=4 [00:27:44]MH_SAM_APDU [00:27:44]CAPDU: 80 13 03 00 [00:27:44]Write to MH i2c: E2 08 00 E8 09 80 13 03 00 00 00 00 00 70 [00:27:44]Write i2c OK [00:27:44]MH_I2C_Read... [00:27:44]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:27:44]Read from MH i2c: E2 [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: E2 FD 00 [00:27:44]MH_I2C_Read... [00:27:44]Read from MH i2c: E2 FD 00 E8 09 00 C7 04 85 04 C3 04 6E 04 04 00 30 40 02 00 69 04 A3 00 6F 04 04 00 94 3D 02 00 B1 04 05 00 BD 05 19 D2 01 70 04 05 00 7C 40 B5 B4 01 72 04 04 00 41 C5 63 1D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6A 1F 85 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9A 39 20 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 9C 02 00 00 B1 04 04 00 FC 3C F0 03 70 04 04 00 C4 94 EE 03 72 04 03 00 38 A8 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 04 1B 6B EF 90 00 E0 [00:27:44]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 30 40 02 00 69 04 A3 00 6F 04 04 00 94 3D 02 00 B1 04 05 00 BD 05 19 D2 01 70 04 05 00 7C 40 B5 B4 01 72 04 04 00 41 C5 63 1D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6A 1F 85 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9A 39 20 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 9C 02 00 00 B1 04 04 00 FC 3C F0 03 70 04 04 00 C4 94 EE 03 72 04 03 00 38 A8 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 04 1B 6B EF 90 00 [00:27:44]wFMCommunicate OK [00:27:44]wFMCommunicate request_size=4 [00:27:44]MH_SAM_APDU [00:27:44]CAPDU: 80 17 00 00 [00:27:44]Write to MH i2c: E2 08 00 E9 09 80 17 00 00 00 00 00 00 72 [00:27:44]Write i2c OK [00:27:44]MH_I2C_Read... [00:27:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:45]Read from MH i2c: E2 [00:27:45]MH_I2C_Read... [00:27:45]Read from MH i2c: E2 FD 00 [00:27:45]MH_I2C_Read... [00:27:45]Read from MH i2c: E2 FD 00 E9 09 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B5 EC 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 28 [00:27:45]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B5 EC 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 [00:27:45]wFMCommunicate OK [00:27:45]wFMCommunicate request_size=4 [00:27:45]MH_SAM_APDU [00:27:45]CAPDU: 80 17 00 00 [00:27:45]Write to MH i2c: E2 08 00 EA 09 80 17 00 00 00 00 00 00 73 [00:27:45]Write i2c OK [00:27:45]MH_I2C_Read... [00:27:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:45]Read from MH i2c: E2 [00:27:45]MH_I2C_Read... [00:27:45]Read from MH i2c: E2 FD 00 [00:27:45]MH_I2C_Read... [00:27:45]Read from MH i2c: E2 FD 00 EA 09 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 4B [00:27:45]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [00:27:45]wFMCommunicate OK [00:27:45]wFMCommunicate request_size=4 [00:27:45]MH_SAM_APDU [00:27:45]CAPDU: 80 17 00 00 [00:27:45]Write to MH i2c: E2 08 00 EB 09 80 17 00 00 00 00 00 00 74 [00:27:45]Write i2c OK [00:27:45]MH_I2C_Read... [00:27:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:46]Read from MH i2c: E2 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: E2 FD 00 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: E2 FD 00 EB 09 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 EF [00:27:46]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:27:46]wFMCommunicate OK [00:27:46]wFMCommunicate request_size=4 [00:27:46]MH_SAM_APDU [00:27:46]CAPDU: 80 17 00 00 [00:27:46]Write to MH i2c: E2 08 00 EC 09 80 17 00 00 00 00 00 00 75 [00:27:46]Write i2c OK [00:27:46]MH_I2C_Read... [00:27:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:27:46]Read from MH i2c: E2 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: E2 E4 00 [00:27:46]MH_I2C_Read... [00:27:46]Read from MH i2c: E2 E4 00 EC 09 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 55 [00:27:46]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:27:47]wFMCommunicate OK [00:27:47]SAM_PROTO_GetFMData done [00:27:47]requested_item fm.sale_refund.total is exist - process it [00:27:47]requested_item fm.buy.total is exist - process it [00:27:47]requested_item shift.sale.total is exist - process it [00:27:47]SAM_PROTO_GetShiftData [00:27:47]wFMCommunicate request_size=4 [00:27:47]MH_SAM_APDU [00:27:47]CAPDU: 80 13 02 00 [00:27:47]Write to MH i2c: E2 08 00 ED 09 80 13 02 00 00 00 00 00 74 [00:27:47]Write i2c OK [00:27:47]MH_I2C_Read... [00:27:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:27:47]Read from MH i2c: E2 [00:27:47]MH_I2C_Read... [00:27:47]Read from MH i2c: E2 FD 00 [00:27:47]MH_I2C_Read... [00:27:47]Read from MH i2c: E2 FD 00 ED 09 00 BB 04 AA 04 B7 04 6E 04 04 00 AC 01 00 00 69 04 9E 00 6F 04 04 00 A5 01 00 00 B1 04 04 00 58 EE 6A 01 70 04 04 00 54 86 3D 01 72 04 03 00 04 68 2D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1E 90 26 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 36 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 07 00 00 00 B1 04 03 00 A0 56 09 70 04 03 00 A0 56 09 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F8 FD EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 BF [00:27:47]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 AC 01 00 00 69 04 9E 00 6F 04 04 00 A5 01 00 00 B1 04 04 00 58 EE 6A 01 70 04 04 00 54 86 3D 01 72 04 03 00 04 68 2D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1E 90 26 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 36 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 07 00 00 00 B1 04 03 00 A0 56 09 70 04 03 00 A0 56 09 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F8 FD EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:27:47]wFMCommunicate OK [00:27:47]wFMCommunicate request_size=4 [00:27:47]MH_SAM_APDU [00:27:47]CAPDU: 80 17 00 00 [00:27:47]Write to MH i2c: E2 08 00 EE 09 80 17 00 00 00 00 00 00 77 [00:27:47]Write i2c OK [00:27:47]MH_I2C_Read... [00:27:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:47]Read from MH i2c: E2 [00:27:47]MH_I2C_Read... [00:27:47]Read from MH i2c: E2 FD 00 [00:27:47]MH_I2C_Read... [00:27:47]Read from MH i2c: E2 FD 00 EE 09 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 60 [00:27:48]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:27:48]wFMCommunicate OK [00:27:48]wFMCommunicate request_size=4 [00:27:48]MH_SAM_APDU [00:27:48]CAPDU: 80 17 00 00 [00:27:48]Write to MH i2c: E2 08 00 EF 09 80 17 00 00 00 00 00 00 78 [00:27:48]Write i2c OK [00:27:48]MH_I2C_Read... [00:27:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:48]Read from MH i2c: E2 [00:27:48]MH_I2C_Read... [00:27:48]Read from MH i2c: E2 FD 00 [00:27:48]MH_I2C_Read... [00:27:48]Read from MH i2c: E2 FD 00 EF 09 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A4 [00:27:48]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:27:48]wFMCommunicate OK [00:27:48]wFMCommunicate request_size=4 [00:27:48]MH_SAM_APDU [00:27:48]CAPDU: 80 17 00 00 [00:27:48]Write to MH i2c: E2 08 00 F0 09 80 17 00 00 00 00 00 00 79 [00:27:48]Write i2c OK [00:27:48]MH_I2C_Read... [00:27:48]OFD Sender: No OFD packet to send [00:27:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:49]Read from MH i2c: E2 [00:27:49]MH_I2C_Read... [00:27:49]Read from MH i2c: E2 FD 00 [00:27:49]MH_I2C_Read... [00:27:49]Read from MH i2c: E2 FD 00 F0 09 00 00 00 EF 03 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 90 00 EE [00:27:49]RAPDU: 00 00 EF 03 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 90 00 [00:27:49]wFMCommunicate OK [00:27:49]wFMCommunicate request_size=4 [00:27:49]MH_SAM_APDU [00:27:49]CAPDU: 80 17 00 00 [00:27:49]Write to MH i2c: E2 08 00 F1 09 80 17 00 00 00 00 00 00 7A [00:27:49]Write i2c OK [00:27:49]MH_I2C_Read... [00:27:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:27:49]Read from MH i2c: E2 [00:27:49]MH_I2C_Read... [00:27:49]Read from MH i2c: E2 D8 00 [00:27:49]MH_I2C_Read... [00:27:49]Read from MH i2c: E2 D8 00 F1 09 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 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 61 [00:27:49]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 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:27:49]wFMCommunicate OK [00:27:49]SAM_PROTO_GetShiftData done [00:27:49]requested_item shift.sale.total_cash is exist - process it [00:27:49]requested_item shift.sale_refund.total is exist - process it [00:27:49]requested_item shift.sale_refund.total_cash is exist - process it [00:27:49]requested_item shift.buy.total is exist - process it [00:27:49]requested_item shift.buy.total_cash is exist - process it [00:27:49]produce_requested_data done [00:27:49]produce_requested_data return {"fm.sale.total":78198225.25,"fm.sale_refund.total":660759.00,"fm.buy.total":0.00,"shift.sale.total":237850.48,"shift.sale.total_cash":208093.00,"shift.sale_refund.total":6120.00,"shift.sale_refund.total_cash":6120.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:27:49]process_action_free get_value [00:27:49]json_value_free [00:27:49]json_value_free done [00:27:49]process_json_proto returns [00:27:49]Send response to host [00:27:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":78198225.25,"fm.sale_refund.total":660759.00,"fm.buy.total":0.00,"shift.sale.total":237850.48,"shift.sale.total_cash":208093.00,"shift.sale_refund.total":6120.00,"shift.sale_refund.total_cash":6120.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:27:49]free response buf [00:27:49]execute_script done [00:27:49]execute_script returns [00:27:49]free content buf [00:27:49]Sock 9.Close socket [00:27:49]Sock 9.Thread stoped [00:27:50]accept exits with 8 [00:27:50]New connection [00:27:50]New thread 3067432292 created [00:27:50]Thread 3067288932 joined [00:27:50]Waiting for new connection... [00:27:50] Sock 8.Parse request [00:27:50]Sock 8.Check first char [00:27:50]Sock 8.First char is OK [00:27:50]request: POST /json_proto HTTP/1.0 [00:27:50]Method: POST [00:27:50]URL: /json_proto [00:27:50]Method is POST - this is cgi request [00:27:50]url: /json_proto [00:27:50]query_string will be loaded in cgi processing [00:27:50]execute_cgi json_proto POST (null) [00:27:50]execute_cgi path=json_proto method=POST [00:27:50]POST find Content-Length [00:27:50]Host: 172.17.38.4:8080 [00:27:50]Content-Length: 331 [00:27:50]Content-Type: application/json [00:27:50] [00:27:50]POST finish read [00:27:50]Found Content-Length = 331 [00:27:50]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:27:50]execute_script... [00:27:50]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:27:50]POST & json_proto [00:27:50]process_json_proto [00:27:50]json parsed OK: [00:27:50]protocol is kg_v1.0 [00:27:50]action value=get_value [00:27:50]process_action get_value [00:27:50]cmd_get_value [00:27:50]process_action get_value done [00:27:50]requested_data is exist [00:27:50]produce_requested_data [00:27:50]requested_item fm.sale.total is exist - process it [00:27:50]SAM_PROTO_GetFMData [00:27:50]wFMCommunicate request_size=4 [00:27:50]MH_SAM_APDU [00:27:50]CAPDU: 80 13 03 00 [00:27:50]Write to MH i2c: E2 08 00 F2 09 80 13 03 00 00 00 00 00 7A [00:27:50]Write i2c OK [00:27:50]MH_I2C_Read... [00:27:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:27:50]Read from MH i2c: E2 [00:27:50]MH_I2C_Read... [00:27:50]Read from MH i2c: E2 FD 00 [00:27:50]MH_I2C_Read... [00:27:50]Read from MH i2c: E2 FD 00 F2 09 00 C7 04 85 04 C3 04 6E 04 04 00 30 40 02 00 69 04 A3 00 6F 04 04 00 94 3D 02 00 B1 04 05 00 BD 05 19 D2 01 70 04 05 00 7C 40 B5 B4 01 72 04 04 00 41 C5 63 1D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6A 1F 85 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9A 39 20 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 9C 02 00 00 B1 04 04 00 FC 3C F0 03 70 04 04 00 C4 94 EE 03 72 04 03 00 38 A8 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 04 1B 6B EF 90 00 EA [00:27:50]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 30 40 02 00 69 04 A3 00 6F 04 04 00 94 3D 02 00 B1 04 05 00 BD 05 19 D2 01 70 04 05 00 7C 40 B5 B4 01 72 04 04 00 41 C5 63 1D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6A 1F 85 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9A 39 20 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 9C 02 00 00 B1 04 04 00 FC 3C F0 03 70 04 04 00 C4 94 EE 03 72 04 03 00 38 A8 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 04 1B 6B EF 90 00 [00:27:50]wFMCommunicate OK [00:27:50]wFMCommunicate request_size=4 [00:27:50]MH_SAM_APDU [00:27:50]CAPDU: 80 17 00 00 [00:27:50]Write to MH i2c: E2 08 00 F3 09 80 17 00 00 00 00 00 00 7C [00:27:50]Write i2c OK [00:27:50]MH_I2C_Read... [00:27:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:51]Read from MH i2c: E2 [00:27:51]MH_I2C_Read... [00:27:51]Read from MH i2c: E2 FD 00 [00:27:51]MH_I2C_Read... [00:27:51]Read from MH i2c: E2 FD 00 F3 09 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B5 EC 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 32 [00:27:51]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B5 EC 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 [00:27:51]wFMCommunicate OK [00:27:51]wFMCommunicate request_size=4 [00:27:51]MH_SAM_APDU [00:27:51]CAPDU: 80 17 00 00 [00:27:51]Write to MH i2c: E2 08 00 F4 09 80 17 00 00 00 00 00 00 7D [00:27:51]Write i2c OK [00:27:51]MH_I2C_Read... [00:27:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:51]Read from MH i2c: E2 [00:27:51]MH_I2C_Read... [00:27:51]Read from MH i2c: E2 FD 00 [00:27:51]MH_I2C_Read... [00:27:51]Read from MH i2c: E2 FD 00 F4 09 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 55 [00:27:51]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [00:27:52]wFMCommunicate OK [00:27:52]wFMCommunicate request_size=4 [00:27:52]MH_SAM_APDU [00:27:52]CAPDU: 80 17 00 00 [00:27:52]Write to MH i2c: E2 08 00 F5 09 80 17 00 00 00 00 00 00 7E [00:27:52]Write i2c OK [00:27:52]MH_I2C_Read... [00:27:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:52]Read from MH i2c: E2 [00:27:52]MH_I2C_Read... [00:27:52]Read from MH i2c: E2 FD 00 [00:27:52]MH_I2C_Read... [00:27:52]Read from MH i2c: E2 FD 00 F5 09 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 F9 [00:27:52]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:27:52]wFMCommunicate OK [00:27:52]wFMCommunicate request_size=4 [00:27:52]MH_SAM_APDU [00:27:52]CAPDU: 80 17 00 00 [00:27:52]Write to MH i2c: E2 08 00 F6 09 80 17 00 00 00 00 00 00 7F [00:27:52]Write i2c OK [00:27:52]MH_I2C_Read... [00:27:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:27:52]Read from MH i2c: E2 [00:27:52]MH_I2C_Read... [00:27:52]Read from MH i2c: E2 E4 00 [00:27:52]MH_I2C_Read... [00:27:52]Read from MH i2c: E2 E4 00 F6 09 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5F [00:27:53]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:27:53]wFMCommunicate OK [00:27:53]SAM_PROTO_GetFMData done [00:27:53]requested_item fm.sale_refund.total is exist - process it [00:27:53]requested_item fm.buy.total is exist - process it [00:27:53]requested_item shift.sale.total is exist - process it [00:27:53]SAM_PROTO_GetShiftData [00:27:53]wFMCommunicate request_size=4 [00:27:53]MH_SAM_APDU [00:27:53]CAPDU: 80 13 02 00 [00:27:53]Write to MH i2c: E2 08 00 F7 09 80 13 02 00 00 00 00 00 7E [00:27:53]Write i2c OK [00:27:53]MH_I2C_Read... [00:27:53]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:27:53]Read from MH i2c: E2 [00:27:53]MH_I2C_Read... [00:27:53]Read from MH i2c: E2 FD 00 [00:27:53]MH_I2C_Read... [00:27:53]Read from MH i2c: E2 FD 00 F7 09 00 BB 04 AA 04 B7 04 6E 04 04 00 AC 01 00 00 69 04 9E 00 6F 04 04 00 A5 01 00 00 B1 04 04 00 58 EE 6A 01 70 04 04 00 54 86 3D 01 72 04 03 00 04 68 2D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1E 90 26 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 36 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 07 00 00 00 B1 04 03 00 A0 56 09 70 04 03 00 A0 56 09 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F8 FD EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 C9 [00:27:53]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 AC 01 00 00 69 04 9E 00 6F 04 04 00 A5 01 00 00 B1 04 04 00 58 EE 6A 01 70 04 04 00 54 86 3D 01 72 04 03 00 04 68 2D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1E 90 26 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 36 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 07 00 00 00 B1 04 03 00 A0 56 09 70 04 03 00 A0 56 09 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F8 FD EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:27:54]wFMCommunicate OK [00:27:54]wFMCommunicate request_size=4 [00:27:54]MH_SAM_APDU [00:27:54]CAPDU: 80 17 00 00 [00:27:54]Write to MH i2c: E2 08 00 F8 09 80 17 00 00 00 00 00 00 81 [00:27:54]OFD Sender: No OFD packet to send [00:27:54]Write i2c OK [00:27:54]MH_I2C_Read... [00:27:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:54]Read from MH i2c: E2 [00:27:54]MH_I2C_Read... [00:27:54]Read from MH i2c: E2 FD 00 [00:27:54]MH_I2C_Read... [00:27:54]Read from MH i2c: E2 FD 00 F8 09 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6A [00:27:54]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:27:54]wFMCommunicate OK [00:27:54]wFMCommunicate request_size=4 [00:27:54]MH_SAM_APDU [00:27:54]CAPDU: 80 17 00 00 [00:27:54]Write to MH i2c: E2 08 00 F9 09 80 17 00 00 00 00 00 00 82 [00:27:54]Write i2c OK [00:27:54]MH_I2C_Read... [00:27:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:54]Read from MH i2c: E2 [00:27:54]MH_I2C_Read... [00:27:54]Read from MH i2c: E2 FD 00 [00:27:54]MH_I2C_Read... [00:27:55]Read from MH i2c: E2 FD 00 F9 09 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AE [00:27:55]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:27:55]wFMCommunicate OK [00:27:55]wFMCommunicate request_size=4 [00:27:55]MH_SAM_APDU [00:27:55]CAPDU: 80 17 00 00 [00:27:55]Write to MH i2c: E2 08 00 FA 09 80 17 00 00 00 00 00 00 83 [00:27:55]Write i2c OK [00:27:55]MH_I2C_Read... [00:27:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:55]Read from MH i2c: E2 [00:27:55]MH_I2C_Read... [00:27:55]Read from MH i2c: E2 FD 00 [00:27:55]MH_I2C_Read... [00:27:55]Read from MH i2c: E2 FD 00 FA 09 00 00 00 EF 03 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 90 00 F8 [00:27:55]RAPDU: 00 00 EF 03 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 90 00 [00:27:55]wFMCommunicate OK [00:27:55]wFMCommunicate request_size=4 [00:27:55]MH_SAM_APDU [00:27:55]CAPDU: 80 17 00 00 [00:27:55]Write to MH i2c: E2 08 00 FB 09 80 17 00 00 00 00 00 00 84 [00:27:55]Write i2c OK [00:27:55]MH_I2C_Read... [00:27:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:27:56]Read from MH i2c: E2 [00:27:56]MH_I2C_Read... [00:27:56]Read from MH i2c: E2 D8 00 [00:27:56]MH_I2C_Read... [00:27:56]Read from MH i2c: E2 D8 00 FB 09 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 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 6B [00:27:56]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:27:56]wFMCommunicate OK [00:27:56]SAM_PROTO_GetShiftData done [00:27:56]requested_item shift.sale.total_cash is exist - process it [00:27:56]requested_item shift.sale_refund.total is exist - process it [00:27:56]requested_item shift.sale_refund.total_cash is exist - process it [00:27:56]requested_item shift.buy.total is exist - process it [00:27:56]requested_item shift.buy.total_cash is exist - process it [00:27:56]produce_requested_data done [00:27:56]produce_requested_data return {"fm.sale.total":78198225.25,"fm.sale_refund.total":660759.00,"fm.buy.total":0.00,"shift.sale.total":237850.48,"shift.sale.total_cash":208093.00,"shift.sale_refund.total":6120.00,"shift.sale_refund.total_cash":6120.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:27:56]process_action_free get_value [00:27:56]json_value_free [00:27:56]json_value_free done [00:27:56]process_json_proto returns [00:27:56]Send response to host [00:27:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":78198225.25,"fm.sale_refund.total":660759.00,"fm.buy.total":0.00,"shift.sale.total":237850.48,"shift.sale.total_cash":208093.00,"shift.sale_refund.total":6120.00,"shift.sale_refund.total_cash":6120.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:27:56]free response buf [00:27:56]execute_script done [00:27:56]execute_script returns [00:27:56]free content buf [00:27:56]Sock 8.Close socket [00:27:56]Sock 8.Thread stoped [00:27:56]accept exits with 9 [00:27:56]New connection [00:27:56]New thread 3067288932 created [00:27:56]Thread 3067432292 joined [00:27:56]Waiting for new connection... [00:27:56] Sock 9.Parse request [00:27:56]Sock 9.Check first char [00:27:56]Sock 9.First char is OK [00:27:56]request: POST /json_proto HTTP/1.0 [00:27:56]Method: POST [00:27:56]URL: /json_proto [00:27:56]Method is POST - this is cgi request [00:27:56]url: /json_proto [00:27:56]query_string will be loaded in cgi processing [00:27:56]execute_cgi json_proto POST (null) [00:27:56]execute_cgi path=json_proto method=POST [00:27:56]POST find Content-Length [00:27:56]Host: 172.17.38.4:8080 [00:27:56]Content-Length: 272 [00:27:56]Content-Type: application/json [00:27:56] [00:27:56]POST finish read [00:27:56]Found Content-Length = 272 [00:27:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0414\u043E\u0433\u0442\u0443\u0440\u0431\u0430\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:56]execute_script... [00:27:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0414\u043E\u0433\u0442\u0443\u0440\u0431\u0430\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:56]POST & json_proto [00:27:56]process_json_proto [00:27:56]json parsed OK: [00:27:56]protocol is kg_v1.0 [00:27:56]action value=close_shift [00:27:56]process_action close_shift [00:27:56]cmd_close_shift [00:27:56]MH_GetDate [00:27:56]Write to MH i2c: F0 00 00 FC 09 F4 [00:27:56]Write i2c OK [00:27:56]MH_I2C_Read... [00:27:56]Read from MH i2c: F0 [00:27:56]MH_I2C_Read... [00:27:56]Read from MH i2c: F0 09 00 [00:27:56]MH_I2C_Read... [00:27:56]Read from MH i2c: F0 09 00 FC 09 00 0D 0E 5D 66 CC 51 87 64 E3 [00:27:56]GetLastDocTimeStamp 1717374443 [00:27:56]current date 1717374477 [00:27:56]FM_GetShiftState [00:27:56]SAM_PROTO_GetShiftState [00:27:56]wFMCommunicate request_size=4 [00:27:56]MH_SAM_APDU [00:27:56]CAPDU: 80 13 01 00 [00:27:56]Write to MH i2c: E2 08 00 FD 09 80 13 01 00 00 00 00 00 83 [00:27:56]Write i2c OK [00:27:56]MH_I2C_Read... [00:27:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:56]Read from MH i2c: E2 [00:27:56]MH_I2C_Read... [00:27:56]Read from MH i2c: E2 0E 00 [00:27:56]MH_I2C_Read... [00:27:56]Read from MH i2c: E2 0E 00 FD 09 00 09 00 01 90 BB 5B 66 00 00 00 00 90 00 9B [00:27:56]RAPDU: 09 00 01 90 BB 5B 66 00 00 00 00 90 00 [00:27:56]wFMCommunicate OK [00:27:56]SAM_PROTO_GetShiftState done [00:27:56]FM_GetShiftState done [00:27:56]KKMCreateCloseShiftDocument [00:27:56]Load OK [00:27:56]Malloc new data [00:27:56]MH_GetDate [00:27:56]Write to MH i2c: F0 00 00 FE 09 F6 [00:27:56]Write i2c OK [00:27:56]MH_I2C_Read... [00:27:56]Read from MH i2c: F0 [00:27:56]MH_I2C_Read... [00:27:56]Read from MH i2c: F0 09 00 [00:27:56]MH_I2C_Read... [00:27:56]Read from MH i2c: F0 09 00 FE 09 00 0D 0E 5D 66 CC 51 87 64 E5 [00:27:56]Malloc new data [00:27:56]Malloc new data [00:27:56]Malloc new data [00:27:56]Malloc new data [00:27:56]KKMCreateCloseShiftDocument OK [00:27:56]KKMSetCloseShiftData OK [00:27:56]ProcessDocumentItem done err = 0, tmpTLVsize=75 [00:27:56]tlvbuf is 01178E20 [00:27:56]KKMLoadAndSignCloseShiftData [00:27:56]SAM_PROTO_ProcessDocument [00:27:56]wFMCommunicate request_size=9 [00:27:56]MH_SAM_APDU [00:27:56]CAPDU: 80 15 01 00 04 05 00 4B 00 [00:27:56]Write to MH i2c: E2 0C 00 FF 09 80 15 01 00 04 00 05 00 4B 00 00 00 DF [00:27:56]Write i2c OK [00:27:56]MH_I2C_Read... [00:27:56]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:27:56]Read from MH i2c: E2 [00:27:56]MH_I2C_Read... [00:27:56]Read from MH i2c: E2 03 00 [00:27:56]MH_I2C_Read... [00:27:56]Read from MH i2c: E2 03 00 FF 09 00 90 00 7C [00:27:56]RAPDU: 90 00 [00:27:56]wFMCommunicate OK [00:27:56]wFMCommunicate request_size=23 [00:27:56]MH_SAM_APDU [00:27:56]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:27:56]Write to MH i2c: E2 1A 00 00 0A 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 7F [00:27:56]Write i2c OK [00:27:56]MH_I2C_Read... [00:27:56]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:27:56]Read from MH i2c: E2 [00:27:56]MH_I2C_Read... [00:27:56]Read from MH i2c: E2 03 00 [00:27:56]MH_I2C_Read... [00:27:56]Read from MH i2c: E2 03 00 00 0A 00 90 00 7E [00:27:56]RAPDU: 90 00 [00:27:56]wFMCommunicate OK [00:27:56]wFMCommunicate request_size=34 [00:27:56]MH_SAM_APDU [00:27:56]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 94 D0 BE D0 B3 D1 82 D1 83 D1 80 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 [00:27:57]Write to MH i2c: E2 25 00 01 0A 80 15 02 00 1D 00 FD 03 19 00 D0 94 D0 BE D0 B3 D1 82 D1 83 D1 80 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 00 00 21 [00:27:57]Write i2c OK [00:27:57]MH_I2C_Read... [00:27:57]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:27:57]Read from MH i2c: E2 [00:27:57]MH_I2C_Read... [00:27:57]Read from MH i2c: E2 03 00 [00:27:57]MH_I2C_Read... [00:27:57]Read from MH i2c: E2 03 00 01 0A 00 90 00 7F [00:27:57]RAPDU: 90 00 [00:27:57]wFMCommunicate OK [00:27:57]wFMCommunicate request_size=13 [00:27:57]MH_SAM_APDU [00:27:57]CAPDU: 80 15 02 00 08 F4 03 04 00 0D 0E 5D 66 [00:27:57]Write to MH i2c: E2 10 00 02 0A 80 15 02 00 08 00 F4 03 04 00 0D 0E 5D 66 00 00 75 [00:27:57]Write i2c OK [00:27:57]MH_I2C_Read... [00:27:57]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:27:57]Read from MH i2c: E2 [00:27:57]MH_I2C_Read... [00:27:57]Read from MH i2c: E2 03 00 [00:27:57]MH_I2C_Read... [00:27:57]Read from MH i2c: E2 03 00 02 0A 00 90 00 80 [00:27:57]RAPDU: 90 00 [00:27:57]wFMCommunicate OK [00:27:57]wFMCommunicate request_size=25 [00:27:57]MH_SAM_APDU [00:27:57]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 [00:27:57]Write to MH i2c: E2 1C 00 03 0A 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 00 00 EA [00:27:57]Write i2c OK [00:27:57]MH_I2C_Read... [00:27:57]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:27:57]Read from MH i2c: E2 [00:27:57]MH_I2C_Read... [00:27:57]Read from MH i2c: E2 03 00 [00:27:57]MH_I2C_Read... [00:27:57]Read from MH i2c: E2 03 00 03 0A 00 90 00 81 [00:27:57]RAPDU: 90 00 [00:27:57]wFMCommunicate OK [00:27:57]wFMCommunicate request_size=4 [00:27:57]MH_SAM_APDU [00:27:57]CAPDU: 80 15 03 00 [00:27:57]Write to MH i2c: E2 08 00 04 0A 80 15 03 00 00 00 00 00 8F [00:27:57]Write i2c OK [00:27:57]MH_I2C_Read... [00:27:57]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:27:57]Read from MH i2c: E2 [00:27:57]MH_I2C_Read... [00:27:57]Read from MH i2c: E2 FD 00 [00:27:57]MH_I2C_Read... [00:27:57]Read from MH i2c: E2 FD 00 04 0A 00 FE 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0D 43 02 00 0E 04 04 00 6E 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AE 01 00 00 AA 04 B7 04 6E 04 04 00 AC 01 00 00 69 04 9E 00 6F 04 04 00 A5 01 00 00 B1 04 04 00 58 EE 6A 01 70 04 04 00 54 86 3D 01 72 04 03 00 04 68 2D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1E 90 26 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 36 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 07 00 00 00 B1 04 03 00 A0 90 00 B1 [00:27:58]RAPDU: FE 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0D 43 02 00 0E 04 04 00 6E 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AE 01 00 00 AA 04 B7 04 6E 04 04 00 AC 01 00 00 69 04 9E 00 6F 04 04 00 A5 01 00 00 B1 04 04 00 58 EE 6A 01 70 04 04 00 54 86 3D 01 72 04 03 00 04 68 2D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1E 90 26 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 36 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 07 00 00 00 B1 04 03 00 A0 90 00 [00:27:58]wFMCommunicate OK [00:27:58]SAM_PROTO_ProcessDocument answer len = 1278 [00:27:58]SAM_PROTO_ProcessDocument remain to read = 1030 [00:27:58]wFMCommunicate request_size=4 [00:27:58]MH_SAM_APDU [00:27:58]CAPDU: 80 17 00 00 [00:27:58]Write to MH i2c: E2 08 00 05 0A 80 17 00 00 00 00 00 00 8F [00:27:58]Write i2c OK [00:27:58]MH_I2C_Read... [00:27:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:58]Read from MH i2c: E2 [00:27:58]MH_I2C_Read... [00:27:58]Read from MH i2c: E2 FD 00 [00:27:58]MH_I2C_Read... [00:27:58]Read from MH i2c: E2 FD 00 05 0A 00 56 09 70 04 03 00 A0 56 09 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F8 FD 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 2A 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FA [00:27:58]RAPDU: 56 09 70 04 03 00 A0 56 09 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F8 FD 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 2A 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:27:58]wFMCommunicate OK [00:27:58]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:27:58]SAM_PROTO_ProcessDocument remain to read = 780 [00:27:58]wFMCommunicate request_size=4 [00:27:58]MH_SAM_APDU [00:27:58]CAPDU: 80 17 00 00 [00:27:58]Write to MH i2c: E2 08 00 06 0A 80 17 00 00 00 00 00 00 90 [00:27:58]Write i2c OK [00:27:58]MH_I2C_Read... [00:27:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:59]Read from MH i2c: E2 [00:27:59]MH_I2C_Read... [00:27:59]Read from MH i2c: E2 FD 00 [00:27:59]MH_I2C_Read... [00:27:59]Read from MH i2c: E2 FD 00 06 0A 00 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 OFD Sender: No OFD packet to send [00:27:59]01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F6 [00:27:59]RAPDU: 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:27:59]wFMCommunicate OK [00:27:59]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:27:59]SAM_PROTO_ProcessDocument remain to read = 530 [00:27:59]wFMCommunicate request_size=4 [00:27:59]MH_SAM_APDU [00:27:59]CAPDU: 80 17 00 00 [00:27:59]Write to MH i2c: E2 08 00 07 0A 80 17 00 00 00 00 00 00 91 [00:27:59]Write i2c OK [00:27:59]MH_I2C_Read... [00:27:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:27:59]Read from MH i2c: E2 [00:27:59]MH_I2C_Read... [00:27:59]Read from MH i2c: E2 FD 00 [00:27:59]MH_I2C_Read... [00:27:59]Read from MH i2c: E2 FD 00 07 0A 00 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2F [00:28:00]RAPDU: 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:28:00]wFMCommunicate OK [00:28:00]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:28:00]SAM_PROTO_ProcessDocument remain to read = 280 [00:28:00]wFMCommunicate request_size=4 [00:28:00]MH_SAM_APDU [00:28:00]CAPDU: 80 17 00 00 [00:28:00]Write to MH i2c: E2 08 00 08 0A 80 17 00 00 00 00 00 00 92 [00:28:00]Write i2c OK [00:28:00]MH_I2C_Read... [00:28:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:28:00]Read from MH i2c: E2 [00:28:00]MH_I2C_Read... [00:28:00]Read from MH i2c: E2 FD 00 [00:28:00]MH_I2C_Read... [00:28:00]Read from MH i2c: E2 FD 00 08 0A 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 41 [00:28:00]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 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 90 00 [00:28:01]wFMCommunicate OK [00:28:01]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:28:01]SAM_PROTO_ProcessDocument remain to read = 30 [00:28:01]wFMCommunicate request_size=4 [00:28:01]MH_SAM_APDU [00:28:01]CAPDU: 80 17 00 00 [00:28:01]Write to MH i2c: E2 08 00 09 0A 80 17 00 00 00 00 00 00 93 [00:28:01]Write i2c OK [00:28:01]MH_I2C_Read... [00:28:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 30! [00:28:01]Read from MH i2c: E2 [00:28:01]MH_I2C_Read... [00:28:01]Read from MH i2c: E2 21 00 [00:28:01]MH_I2C_Read... [00:28:01]Read from MH i2c: E2 21 00 09 0A 00 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 74 8F 5D 80 24 92 90 00 6F [00:28:01]RAPDU: 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 74 8F 5D 80 24 92 90 00 [00:28:01]wFMCommunicate OK [00:28:01]SAM_PROTO_ProcessDocument received (without SW) 30 bytes [00:28:01]SAM_PROTO_ProcessDocument done [00:28:01]1209 (1) - 1.0 - номер версии ФФД [00:28:01]1041 (16) - 0000000000875057 - номер ФМ [00:28:01]1040 (4) - 148237 - номер ФД [00:28:01]1038 (4) - 366 - номер смены [00:28:01]1118 (4) - 428 - количество кассовых чеков за смену [00:28:01]1111 (4) - 430 - общее количество ФД за смену [00:28:01]1194 (1207) - счетчики итогов смены [00:28:01] 1134 (4) - 428 - количество чеков со всеми признаками расчетов [00:28:01] 1129 (158) - счетчики операций «приход» [00:28:01] 1135 (4) - 421 - количество чеков по признаку расчетов [00:28:01] 1201 (4) - 237850.48 - общая итоговая сумма в чеках [00:28:01] 1136 (4) - 208093.00 - итоговая сумма в чеках наличными [00:28:01] 1138 (3) - 29757.48 - итоговая сумма в чеках безналичными [00:28:01] 1024 (123) - суммы налогов [00:28:01] 1006 (9) - суммы НДС [00:28:01] 1010 (1) - 0% - код ставки НДС [00:28:01] 1011 (0) - 0.00 - сумма НДС по ставке [00:28:01] 1006 (12) - суммы НДС [00:28:01] 1010 (1) - 12% - код ставки НДС [00:28:01] 1011 (3) - 25272.62 - сумма НДС по ставке [00:28:01] 1007 (9) - суммы НСП [00:28:01] 1014 (1) - 0% - код ставки НСП [00:28:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:28:01] 1007 (12) - суммы НСП [00:28:01] 1014 (1) - 1% - код ставки НСП [00:28:01] 1015 (3) - 2105.61 - сумма НСП по ставке [00:28:01] 1007 (9) - суммы НСП [00:28:01] 1014 (1) - 2% - код ставки НСП [00:28:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:28:01] 1007 (9) - суммы НСП [00:28:01] 1014 (1) - 3% - код ставки НСП [00:28:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:28:01] 1007 (9) - суммы НСП [00:28:01] 1014 (1) - 5% - код ставки НСП [00:28:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:28:01] 1007 (9) - суммы НСП [00:28:01] 1014 (1) - 0,50% - код ставки НСП [00:28:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:28:01] 1007 (9) - суммы НСП [00:28:01] 1014 (1) - 1,50% - код ставки НСП [00:28:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:28:01] 1130 (151) - счетчики операций «возврат прихода» [00:28:01] 1135 (4) - 7 - количество чеков по признаку расчетов [00:28:01] 1201 (3) - 6120.00 - общая итоговая сумма в чеках [00:28:01] 1136 (3) - 6120.00 - итоговая сумма в чеках наличными [00:28:01] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:28:01] 1024 (121) - суммы налогов [00:28:01] 1006 (9) - суммы НДС [00:28:01] 1010 (1) - 0% - код ставки НДС [00:28:01] 1011 (0) - 0.00 - сумма НДС по ставке [00:28:01] 1006 (11) - суммы НДС [00:28:01] 1010 (1) - 12% - код ставки НДС [00:28:01] 1011 (2) - 650.16 - сумма НДС по ставке [00:28:01] 1007 (9) - суммы НСП [00:28:01] 1014 (1) - 0% - код ставки НСП [00:28:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:28:01] 1007 (11) - суммы НСП [00:28:01] 1014 (1) - 1% - код ставки НСП [00:28:01] 1015 (2) - 54.18 - сумма НСП по ставке [00:28:01] 1007 (9) - суммы НСП [00:28:01] 1014 (1) - 2% - код ставки НСП [00:28:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:28:01] 1007 (9) - суммы НСП [00:28:01] 1014 (1) - 3% - код ставки НСП [00:28:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:28:01] 1007 (9) - суммы НСП [00:28:01] 1014 (1) - 5% - код ставки НСП [00:28:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:28:01] 1007 (9) - суммы НСП [00:28:01] 1014 (1) - 0,50% - код ставки НСП [00:28:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:28:01] 1007 (9) - суммы НСП [00:28:01] 1014 (1) - 1,50% - код ставки НСП [00:28:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:28:01] 1131 (141) - счетчики операций «расход» [00:28:01] 1135 (4) - 0 - количество чеков по признаку расчетов [00:28:01] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:28:01] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:28:01] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:28:01] 1024 (117) - суммы налогов [00:28:01] 1006 (9) - суммы НДС [00:28:01] 1010 (1) - 0% - код ставки НДС [00:28:01] 1011 (0) - 0.00 - сумма НДС по ставке [00:28:01] 1006 (9) - суммы НДС [00:28:01] 1010 (1) - 12% - код ставки НДС [00:28:01] 1011 (0) - 0.00 - сумма НДС по ставке [00:28:01] 1007 (9) - суммы НСП [00:28:01] 1014 (1) - 0% - код ставки НСП [00:28:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:28:01] 1007 (9) - суммы НСП [00:28:01] 1014 (1) - 1% - код ставки НСП [00:28:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:28:01] 1007 (9) - суммы НСП [00:28:01] 1014 (1) - 2% - код ставки НСП [00:28:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:28:01] 1007 (9) - суммы НСП [00:28:01] 1014 (1) - 3% - код ставки НСП [00:28:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:28:01] 1007 (9) - суммы НСП [00:28:01] 1014 (1) - 5% - код ставки НСП [00:28:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:28:01] 1007 (9) - суммы НСП [00:28:01] 1014 (1) - 0,50% - код ставки НСП [00:28:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:28:01] 1007 (9) - суммы НСП [00:28:01] 1014 (1) - 1,50% - код ставки НСП [00:28:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:28:01] 1132 (141) - счетчики операций «возврат расхода» [00:28:01] 1135 (4) - 0 - количество чеков по признаку расчетов [00:28:01] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:28:01] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:28:01] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:28:01] 1024 (117) - суммы налогов [00:28:01] 1006 (9) - суммы НДС [00:28:01] 1010 (1) - 0% - код ставки НДС [00:28:01] 1011 (0) - 0.00 - сумма НДС по ставке [00:28:01] 1006 (9) - суммы НДС [00:28:01] 1010 (1) - 12% - код ставки НДС [00:28:01] 1011 (0) - 0.00 - сумма НДС по ставке [00:28:01] 1007 (9) - суммы НСП [00:28:01] 1014 (1) - 0% - код ставки НСП [00:28:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:28:01] 1007 (9) - суммы НСП [00:28:01] 1014 (1) - 1% - код ставки НСП [00:28:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:28:01] 1007 (9) - суммы НСП [00:28:01] 1014 (1) - 2% - код ставки НСП [00:28:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:28:01] 1007 (9) - суммы НСП [00:28:01] 1014 (1) - 3% - код ставки НСП [00:28:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:28:01] 1007 (9) - суммы НСП [00:28:01] 1014 (1) - 5% - код ставки НСП [00:28:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:28:01] 1007 (9) - суммы НСП [00:28:01] 1014 (1) - 0,50% - код ставки НСП [00:28:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:28:01] 1007 (9) - суммы НСП [00:28:01] 1014 (1) - 1,50% - код ставки НСП [00:28:01] 1015 (0) - 0.00 - сумма НСП по ставке [00:28:01] 1133 (588) - - счетчики коррекции - не используются [00:28:01]1077 (6) - 128159097824402 - ФПД [00:28:01]SetTLVBufToDocument [00:28:01]Processing tag 1209 (04B9) [00:28:01]Malloc new data [00:28:01]Processing tag 1041 (0411) [00:28:01]Processing tag 1040 (0410) [00:28:01]Malloc new data [00:28:01]Processing tag 1038 (040E) [00:28:01]Malloc new data [00:28:01]Processing tag 1118 (045E) [00:28:01]Malloc new data [00:28:01]Processing tag 1111 (0457) [00:28:01]Malloc new data [00:28:01]Processing tag 1194 (04AA) [00:28:01]Load OK [00:28:01]SetTLVBufToDocument [00:28:01]Processing tag 1134 (046E) [00:28:01]Malloc new data [00:28:01]Processing tag 1129 (0469) [00:28:01]Load OK [00:28:01]SetTLVBufToDocument [00:28:01]Processing tag 1135 (046F) [00:28:01]Malloc new data [00:28:01]Processing tag 1201 (04B1) [00:28:01]Malloc new data [00:28:01]Processing tag 1136 (0470) [00:28:01]Malloc new data [00:28:01]Processing tag 1138 (0472) [00:28:01]Malloc new data [00:28:01]Processing tag 1024 (0400) [00:28:01]Load OK [00:28:01]SetTLVBufToDocument [00:28:01]Processing tag 1006 (03EE) [00:28:01]Load OK [00:28:01]SetTLVBufToDocument [00:28:01]Processing tag 1010 (03F2) [00:28:01]Malloc new data [00:28:01]Processing tag 1011 (03F3) [00:28:01]Malloc new data [00:28:01]SetTLVBufToDocument err=0 [00:28:01]Processing tag 1006 (03EE) [00:28:01]Load OK [00:28:01]SetTLVBufToDocument [00:28:01]Processing tag 1010 (03F2) [00:28:01]Malloc new data [00:28:01]Processing tag 1011 (03F3) [00:28:01]Malloc new data [00:28:01]SetTLVBufToDocument err=0 [00:28:01]Processing tag 1007 (03EF) [00:28:01]Load OK [00:28:01]SetTLVBufToDocument [00:28:01]Processing tag 1014 (03F6) [00:28:01]Malloc new data [00:28:01]Processing tag 1015 (03F7) [00:28:01]Malloc new data [00:28:01]SetTLVBufToDocument err=0 [00:28:01]Processing tag 1007 (03EF) [00:28:01]Load OK [00:28:01]SetTLVBufToDocument [00:28:01]Processing tag 1014 (03F6) [00:28:01]Malloc new data [00:28:01]Processing tag 1015 (03F7) [00:28:01]Malloc new data [00:28:01]SetTLVBufToDocument err=0 [00:28:01]Processing tag 1007 (03EF) [00:28:01]Load OK [00:28:01]SetTLVBufToDocument [00:28:01]Processing tag 1014 (03F6) [00:28:01]Malloc new data [00:28:01]Processing tag 1015 (03F7) [00:28:01]Malloc new data [00:28:01]SetTLVBufToDocument err=0 [00:28:01]Processing tag 1007 (03EF) [00:28:01]Load OK [00:28:01]SetTLVBufToDocument [00:28:01]Processing tag 1014 (03F6) [00:28:01]Malloc new data [00:28:01]Processing tag 1015 (03F7) [00:28:01]Malloc new data [00:28:01]SetTLVBufToDocument err=0 [00:28:01]Processing tag 1007 (03EF) [00:28:01]Load OK [00:28:01]SetTLVBufToDocument [00:28:01]Processing tag 1014 (03F6) [00:28:01]Malloc new data [00:28:01]Processing tag 1015 (03F7) [00:28:01]Malloc new data [00:28:01]SetTLVBufToDocument err=0 [00:28:01]Processing tag 1007 (03EF) [00:28:01]Load OK [00:28:01]SetTLVBufToDocument [00:28:01]Processing tag 1014 (03F6) [00:28:01]Malloc new data [00:28:01]Processing tag 1015 (03F7) [00:28:01]Malloc new data [00:28:01]SetTLVBufToDocument err=0 [00:28:01]Processing tag 1007 (03EF) [00:28:01]Load OK [00:28:01]SetTLVBufToDocument [00:28:01]Processing tag 1014 (03F6) [00:28:01]Malloc new data [00:28:01]Processing tag 1015 (03F7) [00:28:01]Malloc new data [00:28:01]SetTLVBufToDocument err=0 [00:28:01]SetTLVBufToDocument err=0 [00:28:01]SetTLVBufToDocument err=0 [00:28:01]Processing tag 1130 (046A) [00:28:01]Load OK [00:28:01]SetTLVBufToDocument [00:28:01]Processing tag 1135 (046F) [00:28:01]Malloc new data [00:28:01]Processing tag 1201 (04B1) [00:28:01]Malloc new data [00:28:01]Processing tag 1136 (0470) [00:28:01]Malloc new data [00:28:01]Processing tag 1138 (0472) [00:28:01]Malloc new data [00:28:01]Processing tag 1024 (0400) [00:28:01]Load OK [00:28:01]SetTLVBufToDocument [00:28:01]Processing tag 1006 (03EE) [00:28:01]Load OK [00:28:01]SetTLVBufToDocument [00:28:01]Processing tag 1010 (03F2) [00:28:01]Malloc new data [00:28:01]Processing tag 1011 (03F3) [00:28:01]Malloc new data [00:28:01]SetTLVBufToDocument err=0 [00:28:01]Processing tag 1006 (03EE) [00:28:01]Load OK [00:28:01]SetTLVBufToDocument [00:28:01]Processing tag 1010 (03F2) [00:28:01]Malloc new data [00:28:01]Processing tag 1011 (03F3) [00:28:01]Malloc new data [00:28:01]SetTLVBufToDocument err=0 [00:28:01]Processing tag 1007 (03EF) [00:28:01]Load OK [00:28:01]SetTLVBufToDocument [00:28:01]Processing tag 1014 (03F6) [00:28:01]Malloc new data [00:28:01]Processing tag 1015 (03F7) [00:28:01]Malloc new data [00:28:01]SetTLVBufToDocument err=0 [00:28:01]Processing tag 1007 (03EF) [00:28:01]Load OK [00:28:01]SetTLVBufToDocument [00:28:01]Processing tag 1014 (03F6) [00:28:01]Malloc new data [00:28:01]Processing tag 1015 (03F7) [00:28:01]Malloc new data [00:28:01]SetTLVBufToDocument err=0 [00:28:01]Processing tag 1007 (03EF) [00:28:01]Load OK [00:28:01]SetTLVBufToDocument [00:28:01]Processing tag 1014 (03F6) [00:28:01]Malloc new data [00:28:01]Processing tag 1015 (03F7) [00:28:01]Malloc new data [00:28:01]SetTLVBufToDocument err=0 [00:28:02]Processing tag 1007 (03EF) [00:28:02]Load OK [00:28:02]SetTLVBufToDocument [00:28:02]Processing tag 1014 (03F6) [00:28:02]Malloc new data [00:28:02]Processing tag 1015 (03F7) [00:28:02]Malloc new data [00:28:02]SetTLVBufToDocument err=0 [00:28:02]Processing tag 1007 (03EF) [00:28:02]Load OK [00:28:02]SetTLVBufToDocument [00:28:02]Processing tag 1014 (03F6) [00:28:02]Malloc new data [00:28:02]Processing tag 1015 (03F7) [00:28:02]Malloc new data [00:28:02]SetTLVBufToDocument err=0 [00:28:02]Processing tag 1007 (03EF) [00:28:02]Load OK [00:28:02]SetTLVBufToDocument [00:28:02]Processing tag 1014 (03F6) [00:28:02]Malloc new data [00:28:02]Processing tag 1015 (03F7) [00:28:02]Malloc new data [00:28:02]SetTLVBufToDocument err=0 [00:28:02]Processing tag 1007 (03EF) [00:28:02]Load OK [00:28:02]SetTLVBufToDocument [00:28:02]Processing tag 1014 (03F6) [00:28:02]Malloc new data [00:28:02]Processing tag 1015 (03F7) [00:28:02]Malloc new data [00:28:02]SetTLVBufToDocument err=0 [00:28:02]SetTLVBufToDocument err=0 [00:28:02]SetTLVBufToDocument err=0 [00:28:02]Processing tag 1131 (046B) [00:28:02]Load OK [00:28:02]SetTLVBufToDocument [00:28:02]Processing tag 1135 (046F) [00:28:02]Malloc new data [00:28:02]Processing tag 1201 (04B1) [00:28:02]Malloc new data [00:28:02]Processing tag 1136 (0470) [00:28:02]Malloc new data [00:28:02]Processing tag 1138 (0472) [00:28:02]Malloc new data [00:28:02]Processing tag 1024 (0400) [00:28:02]Load OK [00:28:02]SetTLVBufToDocument [00:28:02]Processing tag 1006 (03EE) [00:28:02]Load OK [00:28:02]SetTLVBufToDocument [00:28:02]Processing tag 1010 (03F2) [00:28:02]Malloc new data [00:28:02]Processing tag 1011 (03F3) [00:28:02]Malloc new data [00:28:02]SetTLVBufToDocument err=0 [00:28:02]Processing tag 1006 (03EE) [00:28:02]Load OK [00:28:02]SetTLVBufToDocument [00:28:02]Processing tag 1010 (03F2) [00:28:02]Malloc new data [00:28:02]Processing tag 1011 (03F3) [00:28:02]Malloc new data [00:28:02]SetTLVBufToDocument err=0 [00:28:02]Processing tag 1007 (03EF) [00:28:02]Load OK [00:28:02]SetTLVBufToDocument [00:28:02]Processing tag 1014 (03F6) [00:28:02]Malloc new data [00:28:02]Processing tag 1015 (03F7) [00:28:02]Malloc new data [00:28:02]SetTLVBufToDocument err=0 [00:28:02]Processing tag 1007 (03EF) [00:28:02]Load OK [00:28:02]SetTLVBufToDocument [00:28:02]Processing tag 1014 (03F6) [00:28:02]Malloc new data [00:28:02]Processing tag 1015 (03F7) [00:28:02]Malloc new data [00:28:02]SetTLVBufToDocument err=0 [00:28:02]Processing tag 1007 (03EF) [00:28:02]Load OK [00:28:02]SetTLVBufToDocument [00:28:02]Processing tag 1014 (03F6) [00:28:02]Malloc new data [00:28:02]Processing tag 1015 (03F7) [00:28:02]Malloc new data [00:28:02]SetTLVBufToDocument err=0 [00:28:02]Processing tag 1007 (03EF) [00:28:02]Load OK [00:28:02]SetTLVBufToDocument [00:28:02]Processing tag 1014 (03F6) [00:28:02]Malloc new data [00:28:02]Processing tag 1015 (03F7) [00:28:02]Malloc new data [00:28:02]SetTLVBufToDocument err=0 [00:28:02]Processing tag 1007 (03EF) [00:28:02]Load OK [00:28:02]SetTLVBufToDocument [00:28:02]Processing tag 1014 (03F6) [00:28:02]Malloc new data [00:28:02]Processing tag 1015 (03F7) [00:28:02]Malloc new data [00:28:02]SetTLVBufToDocument err=0 [00:28:02]Processing tag 1007 (03EF) [00:28:02]Load OK [00:28:02]SetTLVBufToDocument [00:28:02]Processing tag 1014 (03F6) [00:28:02]Malloc new data [00:28:02]Processing tag 1015 (03F7) [00:28:02]Malloc new data [00:28:02]SetTLVBufToDocument err=0 [00:28:02]Processing tag 1007 (03EF) [00:28:02]Load OK [00:28:02]SetTLVBufToDocument [00:28:02]Processing tag 1014 (03F6) [00:28:02]Malloc new data [00:28:02]Processing tag 1015 (03F7) [00:28:02]Malloc new data [00:28:02]SetTLVBufToDocument err=0 [00:28:02]SetTLVBufToDocument err=0 [00:28:02]SetTLVBufToDocument err=0 [00:28:02]Processing tag 1132 (046C) [00:28:02]Load OK [00:28:02]SetTLVBufToDocument [00:28:02]Processing tag 1135 (046F) [00:28:02]Malloc new data [00:28:02]Processing tag 1201 (04B1) [00:28:02]Malloc new data [00:28:02]Processing tag 1136 (0470) [00:28:02]Malloc new data [00:28:02]Processing tag 1138 (0472) [00:28:02]Malloc new data [00:28:02]Processing tag 1024 (0400) [00:28:02]Load OK [00:28:02]SetTLVBufToDocument [00:28:02]Processing tag 1006 (03EE) [00:28:02]Load OK [00:28:02]SetTLVBufToDocument [00:28:02]Processing tag 1010 (03F2) [00:28:02]Malloc new data [00:28:02]Processing tag 1011 (03F3) [00:28:02]Malloc new data [00:28:02]SetTLVBufToDocument err=0 [00:28:02]Processing tag 1006 (03EE) [00:28:02]Load OK [00:28:02]SetTLVBufToDocument [00:28:02]Processing tag 1010 (03F2) [00:28:02]Malloc new data [00:28:02]Processing tag 1011 (03F3) [00:28:02]Malloc new data [00:28:02]SetTLVBufToDocument err=0 [00:28:02]Processing tag 1007 (03EF) [00:28:02]Load OK [00:28:02]SetTLVBufToDocument [00:28:02]Processing tag 1014 (03F6) [00:28:02]Malloc new data [00:28:02]Processing tag 1015 (03F7) [00:28:02]Malloc new data [00:28:02]SetTLVBufToDocument err=0 [00:28:02]Processing tag 1007 (03EF) [00:28:02]Load OK [00:28:02]SetTLVBufToDocument [00:28:02]Processing tag 1014 (03F6) [00:28:02]Malloc new data [00:28:02]Processing tag 1015 (03F7) [00:28:02]Malloc new data [00:28:02]SetTLVBufToDocument err=0 [00:28:02]Processing tag 1007 (03EF) [00:28:02]Load OK [00:28:02]SetTLVBufToDocument [00:28:02]Processing tag 1014 (03F6) [00:28:02]Malloc new data [00:28:02]Processing tag 1015 (03F7) [00:28:02]Malloc new data [00:28:02]SetTLVBufToDocument err=0 [00:28:02]Processing tag 1007 (03EF) [00:28:02]Load OK [00:28:02]SetTLVBufToDocument [00:28:02]Processing tag 1014 (03F6) [00:28:02]Malloc new data [00:28:02]Processing tag 1015 (03F7) [00:28:02]Malloc new data [00:28:02]SetTLVBufToDocument err=0 [00:28:02]Processing tag 1007 (03EF) [00:28:02]Load OK [00:28:02]SetTLVBufToDocument [00:28:02]Processing tag 1014 (03F6) [00:28:02]Malloc new data [00:28:02]Processing tag 1015 (03F7) [00:28:02]Malloc new data [00:28:02]SetTLVBufToDocument err=0 [00:28:02]Processing tag 1007 (03EF) [00:28:02]Load OK [00:28:02]SetTLVBufToDocument [00:28:02]Processing tag 1014 (03F6) [00:28:02]Malloc new data [00:28:02]Processing tag 1015 (03F7) [00:28:02]Malloc new data [00:28:02]SetTLVBufToDocument err=0 [00:28:02]Processing tag 1007 (03EF) [00:28:02]Load OK [00:28:02]SetTLVBufToDocument [00:28:02]Processing tag 1014 (03F6) [00:28:02]Malloc new data [00:28:02]Processing tag 1015 (03F7) [00:28:02]Malloc new data [00:28:02]SetTLVBufToDocument err=0 [00:28:02]SetTLVBufToDocument err=0 [00:28:02]SetTLVBufToDocument err=0 [00:28:02]Processing tag 1133 (046D) [00:28:02]Malloc new data [00:28:02]SetTLVBufToDocument err=0 [00:28:02]Processing tag 1077 (0435) [00:28:02]Malloc new data [00:28:02]SetTLVBufToDocument err=0 [00:28:02]Malloc new data [00:28:02]SAM_PROTO_GetFMData [00:28:02]wFMCommunicate request_size=4 [00:28:02]MH_SAM_APDU [00:28:02]CAPDU: 80 13 03 00 [00:28:02]Write to MH i2c: E2 08 00 0A 0A 80 13 03 00 00 00 00 00 93 [00:28:02]Write i2c OK [00:28:02]MH_I2C_Read... [00:28:02]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:28:02]Read from MH i2c: E2 [00:28:02]MH_I2C_Read... [00:28:02]Read from MH i2c: E2 FD 00 [00:28:03]MH_I2C_Read... [00:28:03]Read from MH i2c: E2 FD 00 0A 0A 00 C7 04 85 04 C3 04 6E 04 04 00 30 40 02 00 69 04 A3 00 6F 04 04 00 94 3D 02 00 B1 04 05 00 BD 05 19 D2 01 70 04 05 00 7C 40 B5 B4 01 72 04 04 00 41 C5 63 1D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6A 1F 85 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9A 39 20 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 9C 02 00 00 B1 04 04 00 FC 3C F0 03 70 04 04 00 C4 94 EE 03 72 04 03 00 38 A8 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 04 1B 6B EF 90 00 03 [00:28:03]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 30 40 02 00 69 04 A3 00 6F 04 04 00 94 3D 02 00 B1 04 05 00 BD 05 19 D2 01 70 04 05 00 7C 40 B5 B4 01 72 04 04 00 41 C5 63 1D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6A 1F 85 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9A 39 20 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 9C 02 00 00 B1 04 04 00 FC 3C F0 03 70 04 04 00 C4 94 EE 03 72 04 03 00 38 A8 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 04 1B 6B EF 90 00 [00:28:03]wFMCommunicate OK [00:28:03]wFMCommunicate request_size=4 [00:28:03]MH_SAM_APDU [00:28:03]CAPDU: 80 17 00 00 [00:28:03]Write to MH i2c: E2 08 00 0B 0A 80 17 00 00 00 00 00 00 95 [00:28:03]Write i2c OK [00:28:03]MH_I2C_Read... [00:28:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:28:03]Read from MH i2c: E2 [00:28:03]MH_I2C_Read... [00:28:03]Read from MH i2c: E2 FD 00 [00:28:03]MH_I2C_Read... [00:28:03]Read from MH i2c: E2 FD 00 0B 0A 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B5 EC 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 4B [00:28:03]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B5 EC 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 [00:28:04]wFMCommunicate OK [00:28:04]wFMCommunicate request_size=4 [00:28:04]MH_SAM_APDU [00:28:04]CAPDU: 80 17 00 00 [00:28:04]Write to MH i2c: E2 08 00 0C 0A 80 17 00 00 00 00 00 00 96 [00:28:04]Write i2c OK [00:28:04]MH_I2C_Read... [00:28:04]OFD Sender: No OFD packet to send [00:28:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:28:04]Read from MH i2c: E2 [00:28:04]MH_I2C_Read... [00:28:04]Read from MH i2c: E2 FD 00 [00:28:04]MH_I2C_Read... [00:28:04]Read from MH i2c: E2 FD 00 0C 0A 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 6E [00:28:04]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [00:28:04]wFMCommunicate OK [00:28:04]wFMCommunicate request_size=4 [00:28:04]MH_SAM_APDU [00:28:04]CAPDU: 80 17 00 00 [00:28:04]Write to MH i2c: E2 08 00 0D 0A 80 17 00 00 00 00 00 00 97 [00:28:05]Write i2c OK [00:28:05]MH_I2C_Read... [00:28:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:28:05]Read from MH i2c: E2 [00:28:05]MH_I2C_Read... [00:28:05]Read from MH i2c: E2 FD 00 [00:28:05]MH_I2C_Read... [00:28:05]Read from MH i2c: E2 FD 00 0D 0A 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 12 [00:28:05]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:28:05]wFMCommunicate OK [00:28:05]wFMCommunicate request_size=4 [00:28:05]MH_SAM_APDU [00:28:05]CAPDU: 80 17 00 00 [00:28:05]Write to MH i2c: E2 08 00 0E 0A 80 17 00 00 00 00 00 00 98 [00:28:05]Write i2c OK [00:28:05]MH_I2C_Read... [00:28:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:28:06]Read from MH i2c: E2 [00:28:06]MH_I2C_Read... [00:28:06]Read from MH i2c: E2 E4 00 [00:28:06]MH_I2C_Read... [00:28:06]Read from MH i2c: E2 E4 00 0E 0A 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 78 [00:28:06]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:28:06]wFMCommunicate OK [00:28:06]SAM_PROTO_GetFMData done [00:28:06]Malloc new data [00:28:06]Malloc new data [00:28:06]Malloc new data [00:28:06]Malloc new data [00:28:06]KKMLoadAndSignCloseShiftData err=0 [00:28:06]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Догтурбаев А. 03.06.2024 00:27 Смена: 366 РНМ: 0000000000092720 ЗНМ: 0300000035 СНО: Общий режим Чеков за смену: 428 ФД за смену: 430 Всего чеков: 428 ИТОГИ ПРИХОД Чеков: 421 Общий итог: 237850.48 Итого наличными: 208093.00 Итого безнал.: 29757.48 НДС 0% : 0.00 НДС 12% : 25272.62 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2105.61 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 7 Общий итог: 6120.00 Итого наличными: 6120.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 650.16 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 54.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.00 Сумма выплат: 0.00 Нал. в кассе: 201973.00 НС Приход: 78198225.25 НС Возвр.Прихода: 660759.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 148237 ФМ: 0000000000875057 ФПД: 128159097824402 [00:28:06]StoreToDocumentArchive [00:28:06]shift 366 fd 148237 [00:28:06]save to /storage/0366/doc_00148237 [00:28:06]save last doc name /storage/0366/doc_00148237 to /storage/kkm_last_doc_name [00:28:06]save OK [00:28:06]Clear old archive folders... [00:28:06]Remove dir /storage/0266 [00:28:06]opendir ok [00:28:06]file . [00:28:06]file .. [00:28:06]file doc_1717374451 [00:28:06]remove file /storage/0266/doc_1717374451 [00:28:06]remove dir /storage/0266 [00:28:06]NVStorageSaveData kkm_registers [00:28:06]File name is /storage/kkm_registers [00:28:06]Write 24 bytes [00:28:06]NVStorageSaveData done [00:28:06]NVStorageSaveData kkm_registers [00:28:06]File name is /storage/kkm_registers [00:28:06]Write 24 bytes [00:28:06]NVStorageSaveData done [00:28:06]ProcessDocumentItem done err = 0, tmpTLVsize=1392 [00:28:06]tlvbuf is 012F51D0 [00:28:06]SAM_PROTO_ClearQueue [00:28:06]wFMCommunicate request_size=4 [00:28:06]MH_SAM_APDU [00:28:06]CAPDU: 80 09 00 00 [00:28:06]Write to MH i2c: E2 08 00 0F 0A 80 09 00 00 00 00 00 00 8B [00:28:06]Write i2c OK [00:28:06]MH_I2C_Read... [00:28:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:28:06]Read from MH i2c: E2 [00:28:06]MH_I2C_Read... [00:28:06]Read from MH i2c: E2 03 00 [00:28:06]MH_I2C_Read... [00:28:06]Read from MH i2c: E2 03 00 0F 0A 00 90 00 8D [00:28:06]RAPDU: 90 00 [00:28:06]wFMCommunicate OK [00:28:06]SAM_PROTO_ClearQueue done [00:28:06]KKMCreateOFDPacket [00:28:06]OFDProtocolAddRootSTLVToBuf [00:28:06]FM_MakeSignedData [00:28:06]FM_MakeSignedData [00:28:06]SAM_PROTO_SignData [00:28:06]wFMCommunicate request_size=4 [00:28:06]MH_SAM_APDU [00:28:06]CAPDU: 80 0D 01 02 [00:28:06]Write to MH i2c: E2 08 00 10 0A 80 0D 01 02 00 00 00 00 93 [00:28:06]Write i2c OK [00:28:06]MH_I2C_Read... [00:28:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:28:06]Read from MH i2c: E2 [00:28:06]MH_I2C_Read... [00:28:06]Read from MH i2c: E2 03 00 [00:28:06]MH_I2C_Read... [00:28:06]Read from MH i2c: E2 03 00 10 0A 00 90 00 8E [00:28:06]RAPDU: 90 00 [00:28:06]wFMCommunicate OK [00:28:06]wFMCommunicate request_size=255 [00:28:06]MH_SAM_APDU [00:28:06]CAPDU: 80 0D 02 02 FA 05 00 70 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 19 00 D0 94 D0 BE D0 B3 D1 82 D1 83 D1 80 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F4 03 04 00 0D 0E 5D 66 0E 04 04 00 6E 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 5E 04 04 00 AC 01 00 00 57 04 04 00 AE 01 00 00 AA 04 DE 04 6E 04 04 00 AC 01 00 00 69 04 A5 00 6F 04 04 00 A5 01 00 00 B1 04 04 00 58 EE 6A 01 70 04 04 00 54 86 3D 01 72 04 03 00 04 68 2D 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1E 90 26 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 [00:28:06]Write to MH i2c: E2 02 01 11 0A 80 0D 02 02 FA 00 05 00 70 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 19 00 D0 94 D0 BE D0 B3 D1 82 D1 83 D1 80 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F4 03 04 00 0D 0E 5D 66 0E 04 04 00 6E 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 5E 04 04 00 AC 01 00 00 57 04 04 00 AE 01 00 00 AA 04 DE 04 6E 04 04 00 AC 01 00 00 69 04 A5 00 6F 04 04 00 A5 01 00 00 B1 04 04 00 58 EE 6A 01 70 04 04 00 54 86 3D 01 72 04 03 00 04 68 2D 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1E 90 26 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 00 00 86 [00:28:07]Write i2c OK [00:28:07]MH_I2C_Read... [00:28:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:28:07]Read from MH i2c: E2 [00:28:07]MH_I2C_Read... [00:28:07]Read from MH i2c: E2 03 00 [00:28:07]MH_I2C_Read... [00:28:07]Read from MH i2c: E2 03 00 11 0A 00 90 00 8F [00:28:07]RAPDU: 90 00 [00:28:07]wFMCommunicate OK [00:28:07]wFMCommunicate request_size=255 [00:28:07]MH_SAM_APDU [00:28:07]CAPDU: 80 0D 02 02 FA 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 36 03 6A 04 9F 00 6F 04 04 00 07 00 00 00 B1 04 03 00 A0 56 09 70 04 03 00 A0 56 09 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F8 FD 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 2A 15 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:28:07]Write to MH i2c: E2 02 01 12 0A 80 0D 02 02 FA 00 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 36 03 6A 04 9F 00 6F 04 04 00 07 00 00 00 B1 04 03 00 A0 56 09 70 04 03 00 A0 56 09 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F8 FD 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 2A 15 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 00 1E [00:28:08]Write i2c OK [00:28:08]MH_I2C_Read... [00:28:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:28:08]Read from MH i2c: E2 [00:28:08]MH_I2C_Read... [00:28:08]Read from MH i2c: E2 03 00 [00:28:08]MH_I2C_Read... [00:28:08]Read from MH i2c: E2 03 00 12 0A 00 90 00 90 [00:28:08]RAPDU: 90 00 [00:28:08]wFMCommunicate OK [00:28:08]wFMCommunicate request_size=255 [00:28:08]MH_SAM_APDU [00:28:08]CAPDU: 80 0D 02 02 FA 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 [00:28:08]Write to MH i2c: E2 02 01 13 0A 80 0D 02 02 FA 00 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 55 [00:28:08]Write i2c OK [00:28:08]MH_I2C_Read... [00:28:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:28:09]Read from MH i2c: E2 [00:28:09]MH_I2C_Read... [00:28:09]Read from MH i2c: E2 03 00 [00:28:09]MH_I2C_Read... [00:28:09]Read from MH i2c: E2 03 00 13 0A 00 90 00 91 [00:28:09]RAPDU: 90 00 [00:28:09]wFMCommunicate OK [00:28:09]wFMCommunicate request_size=255 [00:28:09]MH_SAM_APDU [00:28:09]CAPDU: 80 0D 02 02 FA 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 OFD Sender: No OFD packet to send [00:28:09]00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 [00:28:09]Write to MH i2c: E2 02 01 14 0A 80 0D 02 02 FA 00 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 00 00 5B [00:28:09]Write i2c OK [00:28:09]MH_I2C_Read... [00:28:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:28:10]Read from MH i2c: E2 [00:28:10]MH_I2C_Read... [00:28:10]Read from MH i2c: E2 03 00 [00:28:10]MH_I2C_Read... [00:28:10]Read from MH i2c: E2 03 00 14 0A 00 90 00 92 [00:28:10]RAPDU: 90 00 [00:28:10]wFMCommunicate OK [00:28:10]wFMCommunicate request_size=255 [00:28:10]MH_SAM_APDU [00:28:10]CAPDU: 80 0D 02 02 FA 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:28:10]Write to MH i2c: E2 02 01 15 0A 80 0D 02 02 FA 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 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 00 00 36 [00:28:10]Write i2c OK [00:28:10]MH_I2C_Read... [00:28:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:28:10]Read from MH i2c: E2 [00:28:10]MH_I2C_Read... [00:28:10]Read from MH i2c: E2 03 00 [00:28:10]MH_I2C_Read... [00:28:10]Read from MH i2c: E2 03 00 15 0A 00 90 00 93 [00:28:10]RAPDU: 90 00 [00:28:10]wFMCommunicate OK [00:28:10]wFMCommunicate request_size=151 [00:28:10]MH_SAM_APDU [00:28:10]CAPDU: 80 0D 02 02 92 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0D 43 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 35 04 06 00 74 8F 5D 80 24 92 [00:28:11]Write to MH i2c: E2 9A 00 16 0A 80 0D 02 02 92 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0D 43 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 35 04 06 00 74 8F 5D 80 24 92 00 00 BD [00:28:11]Write i2c OK [00:28:11]MH_I2C_Read... [00:28:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:28:11]Read from MH i2c: E2 [00:28:11]MH_I2C_Read... [00:28:11]Read from MH i2c: E2 03 00 [00:28:11]MH_I2C_Read... [00:28:11]Read from MH i2c: E2 03 00 16 0A 00 90 00 94 [00:28:11]RAPDU: 90 00 [00:28:11]wFMCommunicate OK [00:28:11]wFMCommunicate request_size=4 [00:28:11]MH_SAM_APDU [00:28:11]CAPDU: 80 0D 03 02 [00:28:11]Write to MH i2c: E2 08 00 17 0A 80 0D 03 02 00 00 00 00 9C [00:28:11]Write i2c OK [00:28:11]MH_I2C_Read... [00:28:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:28:11]Read from MH i2c: E2 [00:28:11]MH_I2C_Read... [00:28:11]Read from MH i2c: E2 0B 00 [00:28:11]MH_I2C_Read... [00:28:11]Read from MH i2c: E2 0B 00 17 0A 00 40 68 3E C5 42 E8 8A 3C 90 00 38 [00:28:11]RAPDU: 40 68 3E C5 42 E8 8A 3C 90 00 [00:28:11]wFMCommunicate OK [00:28:11]SAM_PROTO_SignData done [00:28:11]FM_MakeSignedData done [00:28:11]CreateOFDProtocolMessage [00:28:11]wFMCommunicate request_size=4 [00:28:11]MH_SAM_APDU [00:28:11]CAPDU: 80 11 00 00 [00:28:11]Write to MH i2c: E2 08 00 18 0A 80 11 00 00 00 00 00 00 9C [00:28:11]Write i2c OK [00:28:11]MH_I2C_Read... [00:28:11]Read from MH i2c: E2 [00:28:11]MH_I2C_Read... [00:28:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:28:11]Read from MH i2c: E2 17 00 [00:28:11]MH_I2C_Read... [00:28:11]Read from MH i2c: E2 17 00 18 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 EF [00:28:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:28:11]wFMCommunicate OK [00:28:11]CreateOFDProtocolMessage done [00:28:11]OFDSenderStorePacket 148237 [00:28:11]StoreOFDPacket docnum=148237 [00:28:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 84 05 00 00 1A 32 7C 05 59 88 5A 05 01 00 05 00 70 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 19 00 D0 94 D0 BE D0 B3 D1 82 D1 83 D1 80 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F4 03 04 00 0D 0E 5D 66 0E 04 04 00 6E 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 5E 04 04 00 AC 01 00 00 57 04 04 00 AE 01 00 00 AA 04 DE 04 6E 04 04 00 AC 01 00 00 69 04 A5 00 6F 04 04 00 A5 01 00 00 B1 04 04 00 58 EE 6A 01 70 04 04 00 54 86 3D 01 72 04 03 00 04 68 2D 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1E 90 26 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 36 03 6A 04 9F 00 6F 04 04 00 07 00 00 00 B1 04 03 00 A0 56 09 70 04 03 00 A0 56 09 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F8 FD 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 2A 15 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 0D 43 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 35 04 06 00 74 8F 5D 80 24 92 40 68 3E C5 42 E8 8A 3C [00:28:11]CheckFolder [00:28:11]dirname=/storage/ofd_packets [00:28:11]CheckFolder done [00:28:11]ProducePacketName [00:28:11]name=ofd_packets/00148237 [00:28:11]NVStorageSaveData ofd_packets/00148237 [00:28:11]File name is /storage/ofd_packets/00148237 [00:28:11]Write 1442 bytes [00:28:11]NVStorageSaveData done [00:28:11]OFDSenderStorePacket done [00:28:11]KKMCreateOFDPacket done [00:28:11]NVStorageSaveData kkm_last_timestamp [00:28:11]File name is /storage/kkm_last_timestamp [00:28:11]Write 4 bytes [00:28:11]NVStorageSaveData done [00:28:11]ExternCall_PrintAddStr [00:28:11]wPrintStart [00:28:11]Write to MH i2c: 01 00 00 19 0A 23 [00:28:12]Write i2c OK [00:28:12]MH_I2C_Read... [00:28:12]Read from MH i2c: 01 [00:28:12]MH_I2C_Read... [00:28:12]Read from MH i2c: 01 07 00 [00:28:12]MH_I2C_Read... [00:28:12]Read from MH i2c: 01 07 00 19 0A 00 00 00 00 00 FF 0F 38 [00:28:12]RasterBufferAndPrint [00:28:12]line Отчет о закрытии смены [00:28:12]line ФФД: 1.0 [00:28:12]line ИНН: 02508201610067 [00:28:12]line Кассир: Догтурбаев А. [00:28:12]line 03.06.2024 00:27 [00:28:12]line Смена: 366 [00:28:12]line РНМ: 0000000000092720 [00:28:12]line ЗНМ: 0300000035 [00:28:12]line СНО: Общий режим [00:28:12]line Чеков за смену: 428 [00:28:12]line ФД за смену: 430 [00:28:12]line Всего чеков: 428 [00:28:12]line ИТОГИ ПРИХОД [00:28:12]line Чеков: 421 [00:28:12]line Общий итог: 237850.48 [00:28:12]line Итого наличными: 208093.00 [00:28:12]line Итого безнал.: 29757.48 [00:28:12]line НДС 0% : 0.00 [00:28:12]line НДС 12% : 25272.62 [00:28:12]line НСП 0% : 0.00 [00:28:12]line НСП 1,50% : 0.00 [00:28:12]line НСП 0,50% : 0.00 [00:28:12]line НСП 5% : 0.00 [00:28:12]line НСП 3% : 0.00 [00:28:12]line НСП 2% : 0.00 [00:28:12]line НСП 1% : 2105.61 [00:28:12]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:28:12]line Чеков: 7 [00:28:12]line Общий итог: 6120.00 [00:28:12]line Итого наличными: 6120.00 [00:28:12]line Итого безнал.: 0.00 [00:28:12]line НДС 0% : 0.00 [00:28:12]line НДС 12% : 650.16 [00:28:12]line НСП 0% : 0.00 [00:28:12]line НСП 1,50% : 0.00 [00:28:12]line НСП 0,50% : 0.00 [00:28:12]line НСП 5% : 0.00 [00:28:12]line НСП 3% : 0.00 [00:28:12]line НСП 2% : 0.00 [00:28:12]line НСП 1% : 54.18 [00:28:12]line ИТОГИ РАСХОД [00:28:12]line Чеков: 0 [00:28:12]line Общий итог: 0.00 [00:28:12]line Итого наличными: 0.00 [00:28:12]line Итого безнал.: 0.00 [00:28:12]line НДС 0% : 0.00 [00:28:12]line НДС 12% : 0.00 [00:28:12]line НСП 0% : 0.00 [00:28:12]line НСП 1,50% : 0.00 [00:28:12]line НСП 0,50% : 0.00 [00:28:12]line НСП 5% : 0.00 [00:28:12]line НСП 3% : 0.00 [00:28:12]line НСП 2% : 0.00 [00:28:12]line НСП 1% : 0.00 [00:28:12]line ИТОГИ ВОЗВРАТ РАСХОДА [00:28:12]line Чеков: 0 [00:28:12]line Общий итог: 0.00 [00:28:12]line Итого наличными: 0.00 [00:28:12]line Итого безнал.: 0.00 [00:28:12]line НДС 0% : 0.00 [00:28:12]line НДС 12% : 0.00 [00:28:12]line НСП 0% : 0.00 [00:28:12]line НСП 1,50% : 0.00 [00:28:12]line НСП 0,50% : 0.00 [00:28:12]line НСП 5% : 0.00 [00:28:12]line НСП 3% : 0.00 [00:28:12]line НСП 2% : 0.00 [00:28:12]line НСП 1% : 0.00 [00:28:12]line Сумма внесений: 0.00 [00:28:12]line Сумма выплат: 0.00 [00:28:12]line Нал. в кассе: 201973.00 [00:28:12]line НС Приход: 78198225.25 [00:28:12]line НС Возвр.Прихода: 660759.00 [00:28:12]line НС Расход: 0.00 [00:28:12]line НС Возвр.Расхода: 0.00 [00:28:12]line ФД: 148237 [00:28:12]line ФМ: 0000000000875057 [00:28:12]line ФПД: 128159097824402 [00:28:12]OFD Sender: Processing packet 148237 [packets to send 99, broken 98] [00:28:12]ProducePacketName [00:28:12]name=ofd_packets/00148237 [00:28:12]OFD Sender: To server: pG, [00:28:12]CommunicateWithHost lk.salyk.kg:30040 [00:28:12]ConnectInit lk.salyk.kg [00:28:12]written 0, free lines is 4095 [00:28:12]Connected sock=10 [00:28:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 84 05 00 00 1A 32 7C 05 59 88 5A 05 01 00 05 00 70 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 19 00 D0 94 D0 BE D0 B3 D1 82 D1 83 D1 80 D0 B1 D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F4 03 04 00 0D 0E 5D 66 0E 04 04 00 6E 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 5E 04 04 00 AC 01 00 00 57 04 04 00 AE 01 00 00 AA 04 DE 04 6E 04 04 00 AC 01 00 00 69 04 A5 00 6F 04 04 00 A5 01 00 00 B1 04 04 00 58 EE 6A 01 70 04 04 00 54 86 3D 01 72 04 03 00 04 68 2D 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1E 90 26 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 36 03 6A 04 9F 00 6F 04 04 00 07 00 00 00 B1 04 03 00 A0 56 09 70 04 03 00 A0 56 09 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F8 FD 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 2A 15 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 Write to MH i2c: 00 01 EF 00 03 00 0A 69 00 F6 03 01 00 04 F7 03 01 00 0A 00 73 EF [00:28:13]03 Write i2c OK [00:28:13]0A MH_I2C_Read... [00:28:13]00 F6 03 01 00 03 F7 03 01 00 Read from MH i2c: 00 01 EF [00:28:13]03 MH_I2C_Read... [00:28:13]0A Read from MH i2c: 00 01 F6 07 03 00 01 [00:28:13]00 MH_I2C_Read... [00:28:13]02 F7 03 01 00 00 EF 03 0A 00 Read from MH i2c: F6 01 03 07 01 00 00 69 01 0A F7 00 03 00 01 00 00 00 00 00 6C A9 04 09 99 2C 00 [00:28:13]6F RasterBufferAndPrint [00:28:13]04 line [00:28:13]04 line [00:28:13]00 line [00:28:13]00 00 00 00 B1 04 01 00 00 70 04 line [00:28:13]01 line [00:28:13]00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 written 0, free lines is 2583 [00:28:13]01 00 00 F3 03 01 00 00 EE MH_Cut [00:28:13]03 Write to MH i2c: 0A D1 00 01 F2 00 03 70 01 0A 00 01 01 4C F3 [00:28:13]03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 Write i2c OK [00:28:13]01 MH_I2C_Read... [00:28:13]00 Read from MH i2c: 00 D1 EF [00:28:13]03 0A 00 F6 03 01 00 06 F7 03 MH_I2C_Read... [00:28:13]01 Read from MH i2c: 00 D1 01 00 00 EF [00:28:13]03 MH_I2C_Read... [00:28:13]0A Read from MH i2c: 00 D1 F6 01 03 01 00 05 F7 03 01 00 00 EF 03 00 0A 70 00 0A F6 00 03 4B 01 [00:28:13]00 Write to MH i2c: 04 01 F7 00 03 00 01 71 00 0A 00 7B EF [00:28:13]03 0A 00 F6 03 01 00 03 F7 03 01 Write i2c OK [00:28:13]00 MH_I2C_Read... [00:28:13]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 *** Cut start [00:28:14]EF *** Partial cut [00:28:14]03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 *** CUTSNS_PIN = 1 [00:28:15]00 0D 43 02 00 11 04 *** CUTSNS_PIN = 0 [00:28:15]10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 35 04 06 00 74 8F 5D 80 24 92 40 68 3E C5 42 E8 8A 3C [00:28:15]*** Brake cut motor [00:28:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 AE FC 47 00 5B 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0D 43 02 00 F4 03 04 00 46 B5 5C 66 B6 04 01 00 00 BA 23 5B EB AF 32 7E 53 [00:28:15]CommunicateWithHost err = 0 [00:28:15]CheckOFDResponse [00:28:15]1017 (14) - 77093643461234 [00:28:15]1041 (16) - 0000000000875057 [00:28:15]1040 (4) - 148237 [00:28:15]1012 (4) - 02.06.2024 18:09 [00:28:15]1206 (1) - 0 [00:28:15]OFD Sender: Remove packet 148237 [00:28:15]ProducePacketName [00:28:15]name=ofd_packets/00148237 [00:28:15]NVStorageDeleteData [00:28:15]*** Stop cut motor [00:28:15]*** Cut end [00:28:15]Read from MH i2c: 01 [00:28:15]MH_I2C_Read... [00:28:15]Read from MH i2c: 01 07 00 [00:28:15]MH_I2C_Read... [00:28:15]Read from MH i2c: 01 07 00 71 0A 00 00 00 00 00 FF 0F 90 [00:28:15]process_action close_shift done [00:28:15]requested_data is exist [00:28:15]produce_requested_data [00:28:15]requested_item fd.num is exist - process it [00:28:15]SAM_PROTO_GetFieldsCounters [00:28:15]wFMCommunicate request_size=4 [00:28:15]MH_SAM_APDU [00:28:15]CAPDU: 80 13 00 00 [00:28:15]Write to MH i2c: E2 08 00 72 0A 80 13 00 00 00 00 00 00 F8 [00:28:15]Write i2c OK [00:28:15]MH_I2C_Read... [00:28:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:28:15]Read from MH i2c: E2 [00:28:15]MH_I2C_Read... [00:28:15]Read from MH i2c: E2 62 00 [00:28:15]MH_I2C_Read... [00:28:15]Read from MH i2c: E2 62 00 72 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0D 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 AC 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AE 01 00 00 19 04 04 00 00 00 00 00 90 00 DD [00:28:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0D 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 AC 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AE 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:28:16]wFMCommunicate OK [00:28:16]SAM_PROTO_GetFieldsCounters done [00:28:16]requested_item shift.num is exist - process it [00:28:16]requested_item shift.opened is exist - process it [00:28:16]req_shift_opened [00:28:16]FM_GetShiftState [00:28:16]SAM_PROTO_GetShiftState [00:28:16]wFMCommunicate request_size=4 [00:28:16]MH_SAM_APDU [00:28:16]CAPDU: 80 13 01 00 [00:28:16]Write to MH i2c: E2 08 00 73 0A 80 13 01 00 00 00 00 00 FA [00:28:16]Write i2c OK [00:28:16]MH_I2C_Read... [00:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:28:16]Read from MH i2c: E2 [00:28:16]MH_I2C_Read... [00:28:16]OFD Sender: No OFD packet to send [00:28:16]Read from MH i2c: E2 0E 00 [00:28:16]MH_I2C_Read... [00:28:16]Read from MH i2c: E2 0E 00 73 0A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 05 [00:28:16]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:28:16]wFMCommunicate OK [00:28:16]SAM_PROTO_GetShiftState done [00:28:16]FM_GetShiftState done [00:28:16]req_shift_opened done [00:28:16]requested_item shift.open_date is exist - process it [00:28:16]req_shift_open_date [00:28:16]FM_GetShiftState [00:28:16]SAM_PROTO_GetShiftState [00:28:16]wFMCommunicate request_size=4 [00:28:16]MH_SAM_APDU [00:28:16]CAPDU: 80 13 01 00 [00:28:16]Write to MH i2c: E2 08 00 74 0A 80 13 01 00 00 00 00 00 FB [00:28:16]Write i2c OK [00:28:16]MH_I2C_Read... [00:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:28:16]Read from MH i2c: E2 [00:28:16]MH_I2C_Read... [00:28:16]Read from MH i2c: E2 0E 00 [00:28:16]MH_I2C_Read... [00:28:16]Read from MH i2c: E2 0E 00 74 0A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 06 [00:28:16]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:28:16]wFMCommunicate OK [00:28:16]SAM_PROTO_GetShiftState done [00:28:16]FM_GetShiftState done [00:28:16]req_shift_open_date done [00:28:16]produce_requested_data done [00:28:16]produce_requested_data return {"fd.num":148237,"shift.num":366,"shift.opened":0,"shift.open_date":0} [00:28:16]process_action_free close_shift [00:28:16]json_value_free [00:28:16]json_value_free done [00:28:16]process_json_proto returns [00:28:16]Send response to host [00:28:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":148237,"shift.num":366,"shift.opened":0,"shift.open_date":0}}} [00:28:16]free response buf [00:28:16]execute_script done [00:28:16]execute_script returns [00:28:16]free content buf [00:28:16]Sock 9.Close socket [00:28:16]Sock 9.Thread stoped [00:28:21]OFD Sender: No OFD packet to send [00:28:26]OFD Sender: No OFD packet to send [00:28:31]OFD Sender: No OFD packet to send [00:28:36]OFD Sender: No OFD packet to send [00:28:41]OFD Sender: No OFD packet to send [00:28:46]OFD Sender: No OFD packet to send [00:28:51]OFD Sender: No OFD packet to send [00:28:56]OFD Sender: No OFD packet to send [00:29:01]OFD Sender: No OFD packet to send [00:29:06]OFD Sender: No OFD packet to send [00:29:11]OFD Sender: No OFD packet to send [00:29:16]OFD Sender: No OFD packet to send [00:29:21]OFD Sender: No OFD packet to send [00:29:26]OFD Sender: No OFD packet to send [00:29:31]OFD Sender: No OFD packet to send [00:29:36]OFD Sender: No OFD packet to send [00:29:41]OFD Sender: No OFD packet to send [00:29:46]OFD Sender: No OFD packet to send [00:29:51]OFD Sender: No OFD packet to send [00:29:56]OFD Sender: No OFD packet to send [00:30:01]OFD Sender: No OFD packet to send [00:30:06]OFD Sender: No OFD packet to send [00:30:11]OFD Sender: No OFD packet to send [00:30:16]OFD Sender: No OFD packet to send [00:30:21]OFD Sender: No OFD packet to send [00:30:26]OFD Sender: No OFD packet to send [00:30:31]OFD Sender: No OFD packet to send [00:30:36]OFD Sender: No OFD packet to send [00:30:41]OFD Sender: No OFD packet to send [00:30:46]OFD Sender: No OFD packet to send [00:30:51]OFD Sender: No OFD packet to send [00:30:56]OFD Sender: No OFD packet to send [00:31:01]OFD Sender: No OFD packet to send [00:31:06]OFD Sender: No OFD packet to send [00:31:11]OFD Sender: No OFD packet to send [00:31:16]OFD Sender: No OFD packet to send [00:31:21]OFD Sender: No OFD packet to send [00:31:26]OFD Sender: No OFD packet to send [00:31:31]OFD Sender: No OFD packet to send [00:31:36]OFD Sender: No OFD packet to send [00:31:41]OFD Sender: No OFD packet to send [00:31:46]OFD Sender: No OFD packet to send [00:31:51]OFD Sender: No OFD packet to send [00:31:56]OFD Sender: No OFD packet to send [00:32:01]OFD Sender: No OFD packet to send [00:32:06]OFD Sender: No OFD packet to send [00:32:11]OFD Sender: No OFD packet to send [00:32:16]OFD Sender: No OFD packet to send [00:32:21]OFD Sender: No OFD packet to send [00:32:26]OFD Sender: No OFD packet to send [00:32:31]OFD Sender: No OFD packet to send [00:32:36]OFD Sender: No OFD packet to send [00:32:41]OFD Sender: No OFD packet to send [00:32:46]OFD Sender: No OFD packet to send [00:32:51]OFD Sender: No OFD packet to send [00:32:56]OFD Sender: No OFD packet to send [00:33:01]OFD Sender: No OFD packet to send [00:33:06]OFD Sender: No OFD packet to send [00:33:11]OFD Sender: No OFD packet to send [00:33:16]OFD Sender: No OFD packet to send [00:33:21]OFD Sender: No OFD packet to send [00:33:26]OFD Sender: No OFD packet to send [00:33:31]OFD Sender: No OFD packet to send [00:33:36]OFD Sender: No OFD packet to send [00:33:41]OFD Sender: No OFD packet to send [00:33:46]OFD Sender: No OFD packet to send [00:33:51]OFD Sender: No OFD packet to send [00:33:56]OFD Sender: No OFD packet to send [00:34:01]OFD Sender: No OFD packet to send [00:34:06]OFD Sender: No OFD packet to send [00:34:11]OFD Sender: No OFD packet to send [00:34:16]OFD Sender: No OFD packet to send [00:34:21]OFD Sender: No OFD packet to send [00:34:26]OFD Sender: No OFD packet to send [00:34:31]OFD Sender: No OFD packet to send [00:34:36]OFD Sender: No OFD packet to send [00:34:41]OFD Sender: No OFD packet to send [00:34:46]OFD Sender: No OFD packet to send [00:34:51]OFD Sender: No OFD packet to send [00:34:56]OFD Sender: No OFD packet to send [00:35:01]OFD Sender: No OFD packet to send [00:35:06]OFD Sender: No OFD packet to send [00:35:11]OFD Sender: No OFD packet to send [00:35:16]OFD Sender: No OFD packet to send [00:35:21]OFD Sender: No OFD packet to send [00:35:26]OFD Sender: No OFD packet to send [00:35:31]OFD Sender: No OFD packet to send [00:35:31]accept exits with 8 [00:35:31]New connection [00:35:31]New thread 3067432292 created [00:35:31]Thread 3067288932 joined [00:35:31]Waiting for new connection... [00:35:31] Sock 8.Parse request [00:35:31]Sock 8.Check first char [00:35:31]Sock 8.First char is OK [00:35:31]request: POST /json_proto HTTP/1.0 [00:35:31]Method: POST [00:35:31]URL: /json_proto [00:35:31]Method is POST - this is cgi request [00:35:31]url: /json_proto [00:35:31]query_string will be loaded in cgi processing [00:35:31]execute_cgi json_proto POST (null) [00:35:31]execute_cgi path=json_proto method=POST [00:35:31]POST find Content-Length [00:35:31]Host: 172.17.38.4:8080 [00:35:31]Content-Length: 215 [00:35:31]Content-Type: application/json [00:35:31] [00:35:31]POST finish read [00:35:31]Found Content-Length = 215 [00:35: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:35:31]execute_script... [00:35: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:35:31]POST & json_proto [00:35:31]process_json_proto [00:35:31]json parsed OK: [00:35:31]protocol is kg_v1.0 [00:35:31]action value=get_value [00:35:31]process_action get_value [00:35:31]cmd_get_value [00:35:31]process_action get_value done [00:35:31]requested_data is exist [00:35:31]produce_requested_data [00:35:31]requested_item kkm.sn is exist - process it [00:35:31]requested_item kkm.ver is exist - process it [00:35:31]requested_item fm.sn is exist - process it [00:35:31]wFMCommunicate request_size=4 [00:35:31]MH_SAM_APDU [00:35:31]CAPDU: 80 11 00 00 [00:35:31]Write to MH i2c: E2 08 00 75 0A 80 11 00 00 00 00 00 00 F9 [00:35:31]Write i2c OK [00:35:31]MH_I2C_Read... [00:35:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:31]Read from MH i2c: E2 [00:35:31]MH_I2C_Read... [00:35:31]Read from MH i2c: E2 17 00 [00:35:31]MH_I2C_Read... [00:35:31]Read from MH i2c: E2 17 00 75 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 4C [00:35:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:35:31]wFMCommunicate OK [00:35:31]requested_item fd.num is exist - process it [00:35:31]SAM_PROTO_GetFieldsCounters [00:35:31]wFMCommunicate request_size=4 [00:35:31]MH_SAM_APDU [00:35:31]CAPDU: 80 13 00 00 [00:35:31]Write to MH i2c: E2 08 00 76 0A 80 13 00 00 00 00 00 00 FC [00:35:31]Write i2c OK [00:35:31]MH_I2C_Read... [00:35:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:35:32]Read from MH i2c: E2 [00:35:32]MH_I2C_Read... [00:35:32]Read from MH i2c: E2 62 00 [00:35:32]MH_I2C_Read... [00:35:32]Read from MH i2c: E2 62 00 76 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0D 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 AC 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AE 01 00 00 19 04 04 00 00 00 00 00 90 00 E1 [00:35:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0D 43 02 00 0E 04 04 00 6E 01 00 00 12 04 04 00 AC 01 00 00 5E 04 04 00 AC 01 00 00 57 04 04 00 AE 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:35:32]wFMCommunicate OK [00:35:32]SAM_PROTO_GetFieldsCounters done [00:35:32]requested_item shift.num is exist - process it [00:35:32]requested_item shift.opened is exist - process it [00:35:32]req_shift_opened [00:35:32]FM_GetShiftState [00:35:32]SAM_PROTO_GetShiftState [00:35:32]wFMCommunicate request_size=4 [00:35:32]MH_SAM_APDU [00:35:32]CAPDU: 80 13 01 00 [00:35:32]Write to MH i2c: E2 08 00 77 0A 80 13 01 00 00 00 00 00 FE [00:35:32]Write i2c OK [00:35:32]MH_I2C_Read... [00:35:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:32]Read from MH i2c: E2 [00:35:32]MH_I2C_Read... [00:35:32]Read from MH i2c: E2 0E 00 [00:35:32]MH_I2C_Read... [00:35:32]Read from MH i2c: E2 0E 00 77 0A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 09 [00:35:32]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:35:32]wFMCommunicate OK [00:35:32]SAM_PROTO_GetShiftState done [00:35:32]FM_GetShiftState done [00:35:32]req_shift_opened done [00:35:32]requested_item shift.open_date is exist - process it [00:35:32]req_shift_open_date [00:35:32]FM_GetShiftState [00:35:32]SAM_PROTO_GetShiftState [00:35:32]wFMCommunicate request_size=4 [00:35:32]MH_SAM_APDU [00:35:32]CAPDU: 80 13 01 00 [00:35:32]Write to MH i2c: E2 08 00 78 0A 80 13 01 00 00 00 00 00 FF [00:35:32]Write i2c OK [00:35:32]MH_I2C_Read... [00:35:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:32]Read from MH i2c: E2 [00:35:32]MH_I2C_Read... [00:35:32]Read from MH i2c: E2 0E 00 [00:35:32]MH_I2C_Read... [00:35:32]Read from MH i2c: E2 0E 00 78 0A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 0A [00:35:32]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:35:32]wFMCommunicate OK [00:35:32]SAM_PROTO_GetShiftState done [00:35:32]FM_GetShiftState done [00:35:32]req_shift_open_date done [00:35:32]produce_requested_data done [00:35:32]produce_requested_data return {"kkm.sn":"0300000035","kkm.ver":"001","fm.sn":"0000000000875057","fd.num":148237,"shift.num":366,"shift.opened":0,"shift.open_date":0} [00:35:32]process_action_free get_value [00:35:32]json_value_free [00:35:32]json_value_free done [00:35:32]process_json_proto returns [00:35:32]Send response to host [00:35:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000035","kkm.ver":"001","fm.sn":"0000000000875057","fd.num":148237,"shift.num":366,"shift.opened":0,"shift.open_date":0}}} [00:35:32]free response buf [00:35:32]execute_script done [00:35:32]execute_script returns [00:35:32]free content buf [00:35:32]Sock 8.Close socket [00:35:32]Sock 8.Thread stoped [00:35:32]accept exits with 9 [00:35:32]New connection [00:35:32]New thread 3067288932 created [00:35:32]Thread 3067432292 joined [00:35:32]Waiting for new connection... [00:35:32] Sock 9.Parse request [00:35:32]Sock 9.Check first char [00:35:32]Sock 9.First char is OK [00:35:32]request: POST /json_proto HTTP/1.0 [00:35:32]Method: POST [00:35:32]URL: /json_proto [00:35:32]Method is POST - this is cgi request [00:35:32]url: /json_proto [00:35:32]query_string will be loaded in cgi processing [00:35:32]execute_cgi json_proto POST (null) [00:35:32]execute_cgi path=json_proto method=POST [00:35:32]POST find Content-Length [00:35:32]Host: 172.17.38.4:8080 [00:35:32]Content-Length: 331 [00:35:32]Content-Type: application/json [00:35:32] [00:35:32]POST finish read [00:35:32]Found Content-Length = 331 [00:35:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:35:32]execute_script... [00:35:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:35:32]POST & json_proto [00:35:32]process_json_proto [00:35:32]json parsed OK: [00:35:32]protocol is kg_v1.0 [00:35:32]action value=get_value [00:35:32]process_action get_value [00:35:32]cmd_get_value [00:35:32]process_action get_value done [00:35:32]requested_data is exist [00:35:32]produce_requested_data [00:35:32]requested_item fm.sale.total is exist - process it [00:35:32]SAM_PROTO_GetFMData [00:35:32]wFMCommunicate request_size=4 [00:35:32]MH_SAM_APDU [00:35:32]CAPDU: 80 13 03 00 [00:35:32]Write to MH i2c: E2 08 00 79 0A 80 13 03 00 00 00 00 00 02 [00:35:32]Write i2c OK [00:35:32]MH_I2C_Read... [00:35:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:35:32]Read from MH i2c: E2 [00:35:32]MH_I2C_Read... [00:35:32]Read from MH i2c: E2 FD 00 [00:35:32]MH_I2C_Read... [00:35:32]Read from MH i2c: E2 FD 00 79 0A 00 C7 04 85 04 C3 04 6E 04 04 00 30 40 02 00 69 04 A3 00 6F 04 04 00 94 3D 02 00 B1 04 05 00 BD 05 19 D2 01 70 04 05 00 7C 40 B5 B4 01 72 04 04 00 41 C5 63 1D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6A 1F 85 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9A 39 20 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 9C 02 00 00 B1 04 04 00 FC 3C F0 03 70 04 04 00 C4 94 EE 03 72 04 03 00 38 A8 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 04 1B 6B EF 90 00 72 [00:35:32]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 30 40 02 00 69 04 A3 00 6F 04 04 00 94 3D 02 00 B1 04 05 00 BD 05 19 D2 01 70 04 05 00 7C 40 B5 B4 01 72 04 04 00 41 C5 63 1D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6A 1F 85 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9A 39 20 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 9C 02 00 00 B1 04 04 00 FC 3C F0 03 70 04 04 00 C4 94 EE 03 72 04 03 00 38 A8 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 04 1B 6B EF 90 00 [00:35:32]wFMCommunicate OK [00:35:32]wFMCommunicate request_size=4 [00:35:32]MH_SAM_APDU [00:35:32]CAPDU: 80 17 00 00 [00:35:32]Write to MH i2c: E2 08 00 7A 0A 80 17 00 00 00 00 00 00 04 [00:35:32]Write i2c OK [00:35:32]MH_I2C_Read... [00:35:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:33]Read from MH i2c: E2 [00:35:33]MH_I2C_Read... [00:35:33]Read from MH i2c: E2 FD 00 [00:35:33]MH_I2C_Read... [00:35:33]Read from MH i2c: E2 FD 00 7A 0A 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B5 EC 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 BA [00:35:33]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B5 EC 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 [00:35:33]wFMCommunicate OK [00:35:33]wFMCommunicate request_size=4 [00:35:33]MH_SAM_APDU [00:35:33]CAPDU: 80 17 00 00 [00:35:33]Write to MH i2c: E2 08 00 7B 0A 80 17 00 00 00 00 00 00 05 [00:35:33]Write i2c OK [00:35:33]MH_I2C_Read... [00:35:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:33]Read from MH i2c: E2 [00:35:33]MH_I2C_Read... [00:35:33]Read from MH i2c: E2 FD 00 [00:35:33]MH_I2C_Read... [00:35:33]Read from MH i2c: E2 FD 00 7B 0A 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 DD [00:35:33]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [00:35:33]wFMCommunicate OK [00:35:33]wFMCommunicate request_size=4 [00:35:33]MH_SAM_APDU [00:35:33]CAPDU: 80 17 00 00 [00:35:33]Write to MH i2c: E2 08 00 7C 0A 80 17 00 00 00 00 00 00 06 [00:35:33]Write i2c OK [00:35:33]MH_I2C_Read... [00:35:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:33]Read from MH i2c: E2 [00:35:33]MH_I2C_Read... [00:35:33]Read from MH i2c: E2 FD 00 [00:35:33]MH_I2C_Read... [00:35:33]Read from MH i2c: E2 FD 00 7C 0A 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 81 [00:35:33]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:35:33]wFMCommunicate OK [00:35:33]wFMCommunicate request_size=4 [00:35:33]MH_SAM_APDU [00:35:33]CAPDU: 80 17 00 00 [00:35:33]Write to MH i2c: E2 08 00 7D 0A 80 17 00 00 00 00 00 00 07 [00:35:33]Write i2c OK [00:35:33]MH_I2C_Read... [00:35:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:35:33]Read from MH i2c: E2 [00:35:33]MH_I2C_Read... [00:35:33]Read from MH i2c: E2 E4 00 [00:35:33]MH_I2C_Read... [00:35:33]Read from MH i2c: E2 E4 00 7D 0A 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E7 [00:35:33]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:35:33]wFMCommunicate OK [00:35:33]SAM_PROTO_GetFMData done [00:35:33]requested_item fm.sale_refund.total is exist - process it [00:35:33]requested_item fm.buy.total is exist - process it [00:35:33]requested_item shift.sale.total is exist - process it [00:35:33]SAM_PROTO_GetShiftData [00:35:33]wFMCommunicate request_size=4 [00:35:33]MH_SAM_APDU [00:35:33]CAPDU: 80 13 02 00 [00:35:33]Write to MH i2c: E2 08 00 7E 0A 80 13 02 00 00 00 00 00 06 [00:35:33]Write i2c OK [00:35:33]MH_I2C_Read... [00:35:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:35:34]Read from MH i2c: E2 [00:35:34]MH_I2C_Read... [00:35:34]Read from MH i2c: E2 FD 00 [00:35:34]MH_I2C_Read... [00:35:34]Read from MH i2c: E2 FD 00 7E 0A 00 BB 04 AA 04 B7 04 6E 04 04 00 AC 01 00 00 69 04 9E 00 6F 04 04 00 A5 01 00 00 B1 04 04 00 58 EE 6A 01 70 04 04 00 54 86 3D 01 72 04 03 00 04 68 2D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1E 90 26 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 36 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 07 00 00 00 B1 04 03 00 A0 56 09 70 04 03 00 A0 56 09 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F8 FD EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 51 [00:35:34]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 AC 01 00 00 69 04 9E 00 6F 04 04 00 A5 01 00 00 B1 04 04 00 58 EE 6A 01 70 04 04 00 54 86 3D 01 72 04 03 00 04 68 2D 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1E 90 26 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 81 36 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 07 00 00 00 B1 04 03 00 A0 56 09 70 04 03 00 A0 56 09 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 F8 FD EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:35:34]wFMCommunicate OK [00:35:34]wFMCommunicate request_size=4 [00:35:34]MH_SAM_APDU [00:35:34]CAPDU: 80 17 00 00 [00:35:34]Write to MH i2c: E2 08 00 7F 0A 80 17 00 00 00 00 00 00 09 [00:35:34]Write i2c OK [00:35:34]MH_I2C_Read... [00:35:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:34]Read from MH i2c: E2 [00:35:34]MH_I2C_Read... [00:35:34]Read from MH i2c: E2 FD 00 [00:35:34]MH_I2C_Read... [00:35:34]Read from MH i2c: E2 FD 00 7F 0A 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F2 [00:35:34]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:34]wFMCommunicate OK [00:35:34]wFMCommunicate request_size=4 [00:35:34]MH_SAM_APDU [00:35:34]CAPDU: 80 17 00 00 [00:35:34]Write to MH i2c: E2 08 00 80 0A 80 17 00 00 00 00 00 00 0A [00:35:34]Write i2c OK [00:35:34]MH_I2C_Read... [00:35:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:34]Read from MH i2c: E2 [00:35:34]MH_I2C_Read... [00:35:34]Read from MH i2c: E2 FD 00 [00:35:34]MH_I2C_Read... [00:35:34]Read from MH i2c: E2 FD 00 80 0A 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 36 [00:35:35]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:35]wFMCommunicate OK [00:35:35]wFMCommunicate request_size=4 [00:35:35]MH_SAM_APDU [00:35:35]CAPDU: 80 17 00 00 [00:35:35]Write to MH i2c: E2 08 00 81 0A 80 17 00 00 00 00 00 00 0B [00:35:35]Write i2c OK [00:35:35]MH_I2C_Read... [00:35:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:35]Read from MH i2c: E2 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: E2 FD 00 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: E2 FD 00 81 0A 00 00 00 EF 03 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 90 00 80 [00:35:35]RAPDU: 00 00 EF 03 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 90 00 [00:35:35]wFMCommunicate OK [00:35:35]wFMCommunicate request_size=4 [00:35:35]MH_SAM_APDU [00:35:35]CAPDU: 80 17 00 00 [00:35:35]Write to MH i2c: E2 08 00 82 0A 80 17 00 00 00 00 00 00 0C [00:35:35]Write i2c OK [00:35:35]MH_I2C_Read... [00:35:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:35:35]Read from MH i2c: E2 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: E2 D8 00 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: E2 D8 00 82 0A 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 F3 [00:35:35]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:35:35]wFMCommunicate OK [00:35:35]SAM_PROTO_GetShiftData done [00:35:35]requested_item shift.sale.total_cash is exist - process it [00:35:35]requested_item shift.sale_refund.total is exist - process it [00:35:35]requested_item shift.sale_refund.total_cash is exist - process it [00:35:35]requested_item shift.buy.total is exist - process it [00:35:35]requested_item shift.buy.total_cash is exist - process it [00:35:35]produce_requested_data done [00:35:35]produce_requested_data return {"fm.sale.total":78198225.25,"fm.sale_refund.total":660759.00,"fm.buy.total":0.00,"shift.sale.total":237850.48,"shift.sale.total_cash":208093.00,"shift.sale_refund.total":6120.00,"shift.sale_refund.total_cash":6120.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:35:35]process_action_free get_value [00:35:35]json_value_free [00:35:35]json_value_free done [00:35:35]process_json_proto returns [00:35:35]Send response to host [00:35:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":78198225.25,"fm.sale_refund.total":660759.00,"fm.buy.total":0.00,"shift.sale.total":237850.48,"shift.sale.total_cash":208093.00,"shift.sale_refund.total":6120.00,"shift.sale_refund.total_cash":6120.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:35:35]free response buf [00:35:35]execute_script done [00:35:35]execute_script returns [00:35:35]free content buf [00:35:35]Sock 9.Close socket [00:35:35]Sock 9.Thread stoped [00:35:35]accept exits with 8 [00:35:35]New connection [00:35:35]New thread 3067432292 created [00:35:35]Thread 3067288932 joined [00:35:35]Waiting for new connection... [00:35:35] Sock 8.Parse request [00:35:35]Sock 8.Check first char [00:35:35]Sock 8.First char is OK [00:35:35]request: POST /json_proto HTTP/1.0 [00:35:35]Method: POST [00:35:35]URL: /json_proto [00:35:35]Method is POST - this is cgi request [00:35:35]url: /json_proto [00:35:35]query_string will be loaded in cgi processing [00:35:35]execute_cgi json_proto POST (null) [00:35:35]execute_cgi path=json_proto method=POST [00:35:35]POST find Content-Length [00:35:35]Host: 172.17.38.4:8080 [00:35:35]Content-Length: 259 [00:35:35]Content-Type: application/json [00:35:35] [00:35:35]POST finish read [00:35:35]Found Content-Length = 259 [00:35:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0422\u0443\u0440\u0441\u0443\u043D\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:35]execute_script... [00:35:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0422\u0443\u0440\u0441\u0443\u043D\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:35]POST & json_proto [00:35:35]process_json_proto [00:35:35]json parsed OK: [00:35:35]protocol is kg_v1.0 [00:35:35]action value=open_shift [00:35:35]process_action open_shift [00:35:35]cmd_open_shift [00:35:35]MH_GetDate [00:35:35]Write to MH i2c: F0 00 00 83 0A 7C [00:35:35]Write i2c OK [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: F0 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: F0 09 00 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: F0 09 00 83 0A 00 D8 0F 5D 66 CC 51 87 64 37 [00:35:35]GetLastDocTimeStamp 1717374477 [00:35:35]current date 1717374936 [00:35:35]FM_GetShiftState [00:35:35]SAM_PROTO_GetShiftState [00:35:35]wFMCommunicate request_size=4 [00:35:35]MH_SAM_APDU [00:35:35]CAPDU: 80 13 01 00 [00:35:35]Write to MH i2c: E2 08 00 84 0A 80 13 01 00 00 00 00 00 0B [00:35:35]Write i2c OK [00:35:35]MH_I2C_Read... [00:35:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:35]Read from MH i2c: E2 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: E2 0E 00 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: E2 0E 00 84 0A 00 09 00 00 00 00 00 00 00 00 00 00 90 00 16 [00:35:35]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:35:35]wFMCommunicate OK [00:35:35]SAM_PROTO_GetShiftState done [00:35:35]FM_GetShiftState done [00:35:35]KKMCreateOpenShiftDocument [00:35:35]Load OK [00:35:35]Malloc new data [00:35:35]MH_GetDate [00:35:35]Write to MH i2c: F0 00 00 85 0A 7E [00:35:35]Write i2c OK [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: F0 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: F0 09 00 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: F0 09 00 85 0A 00 D8 0F 5D 66 CC 51 87 64 39 [00:35:35]Malloc new data [00:35:35]KKMCreateOpenShiftDocument OK [00:35:35]KKMSetOpenShiftData OK [00:35:35]ProcessDocumentItem done err = 0, tmpTLVsize=231 [00:35:35]tlvbuf is 0127BD70 [00:35:35]KKMLoadAndSignOpenShiftData [00:35:35]SAM_PROTO_ProcessDocument [00:35:35]wFMCommunicate request_size=9 [00:35:35]MH_SAM_APDU [00:35:35]CAPDU: 80 15 01 00 04 02 00 E7 00 [00:35:35]Write to MH i2c: E2 0C 00 86 0A 80 15 01 00 04 00 02 00 E7 00 00 00 00 [00:35:35]Write i2c OK [00:35:35]MH_I2C_Read... [00:35:35]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:35:35]Read from MH i2c: E2 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: E2 03 00 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: E2 03 00 86 0A 00 90 00 04 [00:35:35]RAPDU: 90 00 [00:35:35]wFMCommunicate OK [00:35:35]wFMCommunicate request_size=23 [00:35:35]MH_SAM_APDU [00:35:35]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:35:35]Write to MH i2c: E2 1A 00 87 0A 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 06 [00:35:35]Write i2c OK [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: E2 [00:35:35]MH_I2C_Read... [00:35:35]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:35]Read from MH i2c: E2 03 00 [00:35:35]MH_I2C_Read... [00:35:35]Read from MH i2c: E2 03 00 87 0A 00 90 00 05 [00:35:35]RAPDU: 90 00 [00:35:35]wFMCommunicate OK [00:35:35]wFMCommunicate request_size=30 [00:35:35]MH_SAM_APDU [00:35:35]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 A2 D1 83 D1 80 D1 81 D1 83 D0 BD D0 BE D0 B2 20 D0 90 2E 20 [00:35:35]Write to MH i2c: E2 21 00 88 0A 80 15 02 00 19 00 FD 03 15 00 D0 A2 D1 83 D1 80 D1 81 D1 83 D0 BD D0 BE D0 B2 20 D0 90 2E 20 00 00 81 [00:35:35]Write i2c OK [00:35:35]MH_I2C_Read... [00:35:36]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:36]Read from MH i2c: E2 [00:35:36]MH_I2C_Read... [00:35:36]Read from MH i2c: E2 03 00 [00:35:36]MH_I2C_Read... [00:35:36]Read from MH i2c: E2 03 00 88 0A 00 90 00 06 [00:35:36]RAPDU: 90 00 [00:35:36]wFMCommunicate OK [00:35:36]wFMCommunicate request_size=120 [00:35:36]MH_SAM_APDU [00:35:36]CAPDU: 80 15 02 00 73 F1 03 6F 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D0 BE D0 BB 2C 20 D1 83 D0 BB 2E 20 D0 9F D1 80 D0 B5 D0 B6 D0 B5 D0 B2 D0 B0 D0 BB D1 8C D1 81 D0 BA D0 BE D0 B3 D0 BE 2D D0 91 D0 B5 D0 B9 D1 88 D0 B5 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 35 2C 20 34 32 2E 34 39 34 35 32 39 2C 20 37 38 2E 33 37 36 33 33 31 [00:35:36]Write to MH i2c: E2 7B 00 89 0A 80 15 02 00 73 00 F1 03 6F 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D0 BE D0 BB 2C 20 D1 83 D0 BB 2E 20 D0 9F D1 80 D0 B5 D0 B6 D0 B5 D0 B2 D0 B0 D0 BB D1 8C D1 81 D0 BA D0 BE D0 B3 D0 BE 2D D0 91 D0 B5 D0 B9 D1 88 D0 B5 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 35 2C 20 34 32 2E 34 39 34 35 32 39 2C 20 37 38 2E 33 37 36 33 33 31 00 00 E6 [00:35:36]Write i2c OK [00:35:36]MH_I2C_Read... [00:35:36]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:36]Read from MH i2c: E2 [00:35:36]MH_I2C_Read... [00:35:36]Read from MH i2c: E2 03 00 [00:35:36]MH_I2C_Read... [00:35:36]Read from MH i2c: E2 03 00 89 0A 00 90 00 07 [00:35:36]RAPDU: 90 00 [00:35:36]wFMCommunicate OK [00:35:36]wFMCommunicate request_size=50 [00:35:36]MH_SAM_APDU [00:35:36]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 38 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:35:36]Write to MH i2c: E2 35 00 8A 0A 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 38 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 91 [00:35:36]Write i2c OK [00:35:36]MH_I2C_Read... [00:35:36]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:36]Read from MH i2c: E2 [00:35:36]MH_I2C_Read... [00:35:36]Read from MH i2c: E2 03 00 [00:35:36]MH_I2C_Read... [00:35:36]Read from MH i2c: E2 03 00 8A 0A 00 90 00 08 [00:35:36]RAPDU: 90 00 [00:35:36]wFMCommunicate OK [00:35:36]wFMCommunicate request_size=13 [00:35:36]MH_SAM_APDU [00:35:36]CAPDU: 80 15 02 00 08 F4 03 04 00 D8 0F 5D 66 [00:35:36]Write to MH i2c: E2 10 00 8B 0A 80 15 02 00 08 00 F4 03 04 00 D8 0F 5D 66 00 00 CA [00:35:36]Write i2c OK [00:35:36]MH_I2C_Read... [00:35:36]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:36]Read from MH i2c: E2 [00:35:36]MH_I2C_Read... [00:35:36]Read from MH i2c: E2 03 00 [00:35:36]MH_I2C_Read... [00:35:36]Read from MH i2c: E2 03 00 8B 0A 00 90 00 09 [00:35:36]RAPDU: 90 00 [00:35:36]wFMCommunicate OK [00:35:36]wFMCommunicate request_size=25 [00:35:36]MH_SAM_APDU [00:35:36]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 [00:35:36]Write to MH i2c: E2 1C 00 8C 0A 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 00 00 73 [00:35:36]Write i2c OK [00:35:36]MH_I2C_Read... [00:35:36]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:35:36]Read from MH i2c: E2 [00:35:36]MH_I2C_Read... [00:35:36]Read from MH i2c: E2 03 00 [00:35:36]MH_I2C_Read... [00:35:36]Read from MH i2c: E2 03 00 8C 0A 00 90 00 0A [00:35:36]RAPDU: 90 00 [00:35:36]wFMCommunicate OK [00:35:36]wFMCommunicate request_size=4 [00:35:36]MH_SAM_APDU [00:35:36]CAPDU: 80 15 03 00 [00:35:36]Write to MH i2c: E2 08 00 8D 0A 80 15 03 00 00 00 00 00 18 [00:35:36]Write i2c OK [00:35:36]MH_I2C_Read... [00:35:36]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:35:36]Read from MH i2c: E2 [00:35:36]MH_I2C_Read... [00:35:36]Read from MH i2c: E2 38 00 [00:35:36]MH_I2C_Read... [00:35:36]Read from MH i2c: E2 38 00 8D 0A 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0E 43 02 00 0E 04 04 00 6F 01 00 00 35 04 06 00 7D D6 8F 80 6E 0D 90 00 84 [00:35:36]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0E 43 02 00 0E 04 04 00 6F 01 00 00 35 04 06 00 7D D6 8F 80 6E 0D 90 00 [00:35:36]wFMCommunicate OK [00:35:36]SAM_PROTO_ProcessDocument answer len = 51 [00:35:36]SAM_PROTO_ProcessDocument done [00:35:36]SetTLVBufToDocument [00:35:36]Processing tag 1209 (04B9) [00:35:36]Malloc new data [00:35:36]Processing tag 1041 (0411) [00:35:36]Processing tag 1040 (0410) [00:35:36]Malloc new data [00:35:36]Processing tag 1038 (040E) [00:35:36]Malloc new data [00:35:36]Processing tag 1077 (0435) [00:35:36]Malloc new data [00:35:36]SetTLVBufToDocument err=0 [00:35:36]KKMLoadAndSignOpenShiftData store KKM data [00:35:36]KKMLoadAndSignOpenShiftData err=0 [00:35:36]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Турсунов А. Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 Место: АЗС № 68 "Партнер Нефть" 03.06.2024 00:35 Смена: 367 РНМ: 0000000000092720 ЗНМ: 0300000035 ФД: 148238 ФМ: 0000000000875057 ФПД: 138360484032013 [00:35:36]StoreToDocumentArchive [00:35:36]shift 367 fd 148238 [00:35:36]Create dir for shift 0367 [00:35:36]save to /storage/0367/doc_00148238 [00:35:36]save last doc name /storage/0367/doc_00148238 to /storage/kkm_last_doc_name [00:35:36]save OK [00:35:36]Clear old archive folders... [00:35:36]Remove dir /storage/0366 [00:35:36]opendir ok [00:35:36]file . [00:35:36]file .. [00:35:36]file doc_00147808 [00:35:36]remove file /storage/0366/doc_00147808 [00:35:36]OFD Sender: No OFD packet to send [00:35:36]file doc_00147809 [00:35:36]remove file /storage/0366/doc_00147809 [00:35:36]file doc_00147810 [00:35:36]remove file /storage/0366/doc_00147810 [00:35:36]file doc_00147811 [00:35:36]remove file /storage/0366/doc_00147811 [00:35:36]file doc_00147812 [00:35:36]remove file /storage/0366/doc_00147812 [00:35:36]file doc_00147813 [00:35:36]remove file /storage/0366/doc_00147813 [00:35:36]file doc_00147814 [00:35:36]remove file /storage/0366/doc_00147814 [00:35:36]file doc_00147815 [00:35:36]remove file /storage/0366/doc_00147815 [00:35:36]file doc_00147816 [00:35:36]remove file /storage/0366/doc_00147816 [00:35:36]file doc_00147817 [00:35:36]remove file /storage/0366/doc_00147817 [00:35:36]file doc_00147818 [00:35:36]remove file /storage/0366/doc_00147818 [00:35:36]file doc_00147819 [00:35:36]remove file /storage/0366/doc_00147819 [00:35:36]file doc_00147820 [00:35:36]remove file /storage/0366/doc_00147820 [00:35:36]file doc_00147821 [00:35:36]remove file /storage/0366/doc_00147821 [00:35:36]file doc_00147822 [00:35:36]remove file /storage/0366/doc_00147822 [00:35:36]file doc_00147823 [00:35:36]remove file /storage/0366/doc_00147823 [00:35:36]file doc_00147824 [00:35:36]remove file /storage/0366/doc_00147824 [00:35:36]file doc_00147825 [00:35:36]remove file /storage/0366/doc_00147825 [00:35:36]file doc_00147826 [00:35:36]remove file /storage/0366/doc_00147826 [00:35:36]file doc_00147827 [00:35:36]remove file /storage/0366/doc_00147827 [00:35:36]file doc_00147828 [00:35:36]remove file /storage/0366/doc_00147828 [00:35:36]file doc_00147829 [00:35:36]remove file /storage/0366/doc_00147829 [00:35:36]file doc_00147830 [00:35:36]remove file /storage/0366/doc_00147830 [00:35:36]file doc_00147831 [00:35:36]remove file /storage/0366/doc_00147831 [00:35:36]file doc_00147832 [00:35:36]remove file /storage/0366/doc_00147832 [00:35:36]file doc_00147833 [00:35:36]remove file /storage/0366/doc_00147833 [00:35:36]file doc_00147834 [00:35:36]remove file /storage/0366/doc_00147834 [00:35:36]file doc_00147835 [00:35:36]remove file /storage/0366/doc_00147835 [00:35:36]file doc_00147836 [00:35:36]remove file /storage/0366/doc_00147836 [00:35:36]file doc_00147837 [00:35:36]remove file /storage/0366/doc_00147837 [00:35:36]file doc_00147838 [00:35:36]remove file /storage/0366/doc_00147838 [00:35:36]file doc_00147839 [00:35:36]remove file /storage/0366/doc_00147839 [00:35:36]file doc_00147840 [00:35:36]remove file /storage/0366/doc_00147840 [00:35:36]file doc_00147841 [00:35:36]remove file /storage/0366/doc_00147841 [00:35:36]file doc_00147842 [00:35:36]remove file /storage/0366/doc_00147842 [00:35:36]file doc_00147843 [00:35:36]remove file /storage/0366/doc_00147843 [00:35:36]file doc_00147844 [00:35:36]remove file /storage/0366/doc_00147844 [00:35:36]file doc_00147845 [00:35:36]remove file /storage/0366/doc_00147845 [00:35:36]file doc_00147846 [00:35:36]remove file /storage/0366/doc_00147846 [00:35:36]file doc_00147847 [00:35:36]remove file /storage/0366/doc_00147847 [00:35:36]file doc_00147848 [00:35:36]remove file /storage/0366/doc_00147848 [00:35:36]file doc_00147849 [00:35:36]remove file /storage/0366/doc_00147849 [00:35:36]file doc_00147850 [00:35:36]remove file /storage/0366/doc_00147850 [00:35:36]file doc_00147851 [00:35:36]remove file /storage/0366/doc_00147851 [00:35:36]file doc_00147852 [00:35:36]remove file /storage/0366/doc_00147852 [00:35:36]file doc_00147853 [00:35:36]remove file /storage/0366/doc_00147853 [00:35:36]file doc_00147854 [00:35:36]remove file /storage/0366/doc_00147854 [00:35:36]file doc_00147855 [00:35:36]remove file /storage/0366/doc_00147855 [00:35:36]file doc_00147856 [00:35:36]remove file /storage/0366/doc_00147856 [00:35:36]file doc_00147857 [00:35:36]remove file /storage/0366/doc_00147857 [00:35:36]file doc_00147858 [00:35:36]remove file /storage/0366/doc_00147858 [00:35:36]file doc_00147859 [00:35:36]remove file /storage/0366/doc_00147859 [00:35:36]file doc_00147860 [00:35:36]remove file /storage/0366/doc_00147860 [00:35:36]file doc_00147861 [00:35:36]remove file /storage/0366/doc_00147861 [00:35:36]file doc_00147862 [00:35:36]remove file /storage/0366/doc_00147862 [00:35:36]file doc_00147863 [00:35:36]remove file /storage/0366/doc_00147863 [00:35:36]file doc_00147864 [00:35:36]remove file /storage/0366/doc_00147864 [00:35:36]file doc_00147865 [00:35:36]remove file /storage/0366/doc_00147865 [00:35:36]file doc_00147866 [00:35:36]remove file /storage/0366/doc_00147866 [00:35:36]file doc_00147867 [00:35:36]remove file /storage/0366/doc_00147867 [00:35:36]file doc_00147868 [00:35:36]remove file /storage/0366/doc_00147868 [00:35:36]file doc_00147869 [00:35:36]remove file /storage/0366/doc_00147869 [00:35:36]file doc_00147870 [00:35:36]remove file /storage/0366/doc_00147870 [00:35:36]file doc_00147871 [00:35:36]remove file /storage/0366/doc_00147871 [00:35:36]file doc_00147872 [00:35:36]remove file /storage/0366/doc_00147872 [00:35:36]file doc_00147873 [00:35:36]remove file /storage/0366/doc_00147873 [00:35:36]file doc_00147874 [00:35:36]remove file /storage/0366/doc_00147874 [00:35:36]file doc_00147875 [00:35:36]remove file /storage/0366/doc_00147875 [00:35:36]file doc_00147876 [00:35:36]remove file /storage/0366/doc_00147876 [00:35:36]file doc_00147877 [00:35:36]remove file /storage/0366/doc_00147877 [00:35:36]file doc_00147878 [00:35:36]remove file /storage/0366/doc_00147878 [00:35:36]file doc_00147879 [00:35:36]remove file /storage/0366/doc_00147879 [00:35:36]file doc_00147880 [00:35:36]remove file /storage/0366/doc_00147880 [00:35:36]file doc_00147881 [00:35:36]remove file /storage/0366/doc_00147881 [00:35:36]file doc_00147882 [00:35:36]remove file /storage/0366/doc_00147882 [00:35:36]file doc_00147883 [00:35:36]remove file /storage/0366/doc_00147883 [00:35:36]file doc_00147884 [00:35:36]remove file /storage/0366/doc_00147884 [00:35:36]file doc_00147885 [00:35:36]remove file /storage/0366/doc_00147885 [00:35:36]file doc_00147886 [00:35:36]remove file /storage/0366/doc_00147886 [00:35:36]file doc_00147887 [00:35:36]remove file /storage/0366/doc_00147887 [00:35:36]file doc_00147888 [00:35:36]remove file /storage/0366/doc_00147888 [00:35:36]file doc_00147889 [00:35:36]remove file /storage/0366/doc_00147889 [00:35:36]file doc_00147890 [00:35:36]remove file /storage/0366/doc_00147890 [00:35:36]file doc_00147891 [00:35:36]remove file /storage/0366/doc_00147891 [00:35:36]file doc_00147892 [00:35:36]remove file /storage/0366/doc_00147892 [00:35:36]file doc_00147893 [00:35:36]remove file /storage/0366/doc_00147893 [00:35:36]file doc_00147894 [00:35:36]remove file /storage/0366/doc_00147894 [00:35:36]file doc_00147895 [00:35:36]remove file /storage/0366/doc_00147895 [00:35:36]file doc_00147896 [00:35:36]remove file /storage/0366/doc_00147896 [00:35:36]file doc_00147897 [00:35:36]remove file /storage/0366/doc_00147897 [00:35:36]file doc_00147898 [00:35:36]remove file /storage/0366/doc_00147898 [00:35:36]file doc_00147899 [00:35:36]remove file /storage/0366/doc_00147899 [00:35:36]file doc_00147900 [00:35:36]remove file /storage/0366/doc_00147900 [00:35:36]file doc_00147901 [00:35:36]remove file /storage/0366/doc_00147901 [00:35:36]file doc_00147902 [00:35:37]remove file /storage/0366/doc_00147902 [00:35:37]file doc_00147903 [00:35:37]remove file /storage/0366/doc_00147903 [00:35:37]file doc_00147904 [00:35:37]remove file /storage/0366/doc_00147904 [00:35:37]file doc_00147905 [00:35:37]remove file /storage/0366/doc_00147905 [00:35:37]file doc_00147906 [00:35:37]remove file /storage/0366/doc_00147906 [00:35:37]file doc_00147907 [00:35:37]remove file /storage/0366/doc_00147907 [00:35:37]file doc_00147908 [00:35:37]remove file /storage/0366/doc_00147908 [00:35:37]file doc_00147909 [00:35:37]remove file /storage/0366/doc_00147909 [00:35:37]file doc_00147910 [00:35:37]remove file /storage/0366/doc_00147910 [00:35:37]file doc_00147911 [00:35:37]remove file /storage/0366/doc_00147911 [00:35:37]file doc_00147912 [00:35:37]remove file /storage/0366/doc_00147912 [00:35:37]file doc_00147913 [00:35:37]remove file /storage/0366/doc_00147913 [00:35:37]file doc_00147914 [00:35:37]remove file /storage/0366/doc_00147914 [00:35:37]file doc_00147915 [00:35:37]remove file /storage/0366/doc_00147915 [00:35:37]file doc_00147916 [00:35:37]remove file /storage/0366/doc_00147916 [00:35:37]file doc_00147917 [00:35:37]remove file /storage/0366/doc_00147917 [00:35:37]file doc_00147918 [00:35:37]remove file /storage/0366/doc_00147918 [00:35:37]file doc_00147919 [00:35:37]remove file /storage/0366/doc_00147919 [00:35:37]file doc_00147920 [00:35:37]remove file /storage/0366/doc_00147920 [00:35:37]file doc_00147921 [00:35:37]remove file /storage/0366/doc_00147921 [00:35:37]file doc_00147922 [00:35:37]remove file /storage/0366/doc_00147922 [00:35:37]file doc_00147923 [00:35:37]remove file /storage/0366/doc_00147923 [00:35:37]file doc_00147924 [00:35:37]remove file /storage/0366/doc_00147924 [00:35:37]file doc_00147925 [00:35:37]remove file /storage/0366/doc_00147925 [00:35:37]file doc_00147926 [00:35:37]remove file /storage/0366/doc_00147926 [00:35:37]file doc_00147927 [00:35:37]remove file /storage/0366/doc_00147927 [00:35:37]file doc_00147928 [00:35:37]remove file /storage/0366/doc_00147928 [00:35:37]file doc_00147929 [00:35:37]remove file /storage/0366/doc_00147929 [00:35:37]file doc_00147930 [00:35:37]remove file /storage/0366/doc_00147930 [00:35:37]file doc_00147931 [00:35:37]remove file /storage/0366/doc_00147931 [00:35:37]file doc_00147932 [00:35:37]remove file /storage/0366/doc_00147932 [00:35:37]file doc_00147933 [00:35:37]remove file /storage/0366/doc_00147933 [00:35:37]file doc_00147934 [00:35:37]remove file /storage/0366/doc_00147934 [00:35:37]file doc_00147935 [00:35:37]remove file /storage/0366/doc_00147935 [00:35:37]file doc_00147936 [00:35:37]remove file /storage/0366/doc_00147936 [00:35:37]file doc_00147937 [00:35:37]remove file /storage/0366/doc_00147937 [00:35:37]file doc_00147938 [00:35:37]remove file /storage/0366/doc_00147938 [00:35:37]file doc_00147939 [00:35:37]remove file /storage/0366/doc_00147939 [00:35:37]file doc_00147940 [00:35:37]remove file /storage/0366/doc_00147940 [00:35:37]file doc_00147941 [00:35:37]remove file /storage/0366/doc_00147941 [00:35:37]file doc_00147942 [00:35:37]remove file /storage/0366/doc_00147942 [00:35:37]file doc_00147943 [00:35:37]remove file /storage/0366/doc_00147943 [00:35:37]file doc_00147944 [00:35:37]remove file /storage/0366/doc_00147944 [00:35:37]file doc_00147945 [00:35:37]remove file /storage/0366/doc_00147945 [00:35:37]file doc_00147946 [00:35:37]remove file /storage/0366/doc_00147946 [00:35:37]file doc_00147947 [00:35:37]remove file /storage/0366/doc_00147947 [00:35:37]file doc_00147948 [00:35:37]remove file /storage/0366/doc_00147948 [00:35:37]file doc_00147949 [00:35:37]remove file /storage/0366/doc_00147949 [00:35:37]file doc_00147950 [00:35:37]remove file /storage/0366/doc_00147950 [00:35:37]file doc_00147951 [00:35:37]remove file /storage/0366/doc_00147951 [00:35:37]file doc_00147952 [00:35:37]remove file /storage/0366/doc_00147952 [00:35:37]file doc_00147953 [00:35:37]remove file /storage/0366/doc_00147953 [00:35:37]file doc_00147954 [00:35:37]remove file /storage/0366/doc_00147954 [00:35:37]file doc_00147955 [00:35:37]remove file /storage/0366/doc_00147955 [00:35:37]file doc_00147956 [00:35:37]remove file /storage/0366/doc_00147956 [00:35:37]file doc_00147957 [00:35:37]remove file /storage/0366/doc_00147957 [00:35:37]file doc_00147958 [00:35:37]remove file /storage/0366/doc_00147958 [00:35:37]file doc_00147959 [00:35:37]remove file /storage/0366/doc_00147959 [00:35:37]file doc_00147960 [00:35:37]remove file /storage/0366/doc_00147960 [00:35:37]file doc_00147961 [00:35:37]remove file /storage/0366/doc_00147961 [00:35:37]file doc_00147962 [00:35:37]remove file /storage/0366/doc_00147962 [00:35:37]file doc_00147963 [00:35:37]remove file /storage/0366/doc_00147963 [00:35:37]file doc_00147964 [00:35:37]remove file /storage/0366/doc_00147964 [00:35:37]file doc_00147965 [00:35:37]remove file /storage/0366/doc_00147965 [00:35:37]file doc_00147966 [00:35:37]remove file /storage/0366/doc_00147966 [00:35:37]file doc_00147967 [00:35:37]remove file /storage/0366/doc_00147967 [00:35:37]file doc_00147968 [00:35:37]remove file /storage/0366/doc_00147968 [00:35:37]file doc_00147969 [00:35:37]remove file /storage/0366/doc_00147969 [00:35:37]file doc_00147970 [00:35:37]remove file /storage/0366/doc_00147970 [00:35:37]file doc_00147971 [00:35:37]remove file /storage/0366/doc_00147971 [00:35:37]file doc_00147972 [00:35:37]remove file /storage/0366/doc_00147972 [00:35:37]file doc_00147973 [00:35:37]remove file /storage/0366/doc_00147973 [00:35:37]file doc_00147974 [00:35:37]remove file /storage/0366/doc_00147974 [00:35:37]file doc_00147975 [00:35:37]remove file /storage/0366/doc_00147975 [00:35:37]file doc_00147976 [00:35:37]remove file /storage/0366/doc_00147976 [00:35:37]file doc_00147977 [00:35:37]remove file /storage/0366/doc_00147977 [00:35:37]file doc_00147978 [00:35:37]remove file /storage/0366/doc_00147978 [00:35:37]file doc_00147979 [00:35:37]remove file /storage/0366/doc_00147979 [00:35:37]file doc_00147980 [00:35:37]remove file /storage/0366/doc_00147980 [00:35:37]file doc_00147981 [00:35:37]remove file /storage/0366/doc_00147981 [00:35:37]file doc_00147982 [00:35:37]remove file /storage/0366/doc_00147982 [00:35:37]file doc_00147983 [00:35:37]remove file /storage/0366/doc_00147983 [00:35:37]file doc_00147984 [00:35:37]remove file /storage/0366/doc_00147984 [00:35:37]file doc_00147985 [00:35:37]remove file /storage/0366/doc_00147985 [00:35:37]file doc_00147986 [00:35:37]remove file /storage/0366/doc_00147986 [00:35:37]file doc_00147987 [00:35:37]remove file /storage/0366/doc_00147987 [00:35:37]file doc_00147988 [00:35:37]remove file /storage/0366/doc_00147988 [00:35:37]file doc_00147989 [00:35:37]remove file /storage/0366/doc_00147989 [00:35:37]file doc_00147990 [00:35:37]remove file /storage/0366/doc_00147990 [00:35:37]file doc_00147991 [00:35:37]remove file /storage/0366/doc_00147991 [00:35:37]file doc_00147992 [00:35:37]remove file /storage/0366/doc_00147992 [00:35:37]file doc_00147993 [00:35:37]remove file /storage/0366/doc_00147993 [00:35:37]file doc_00147994 [00:35:37]remove file /storage/0366/doc_00147994 [00:35:37]file doc_00147995 [00:35:37]remove file /storage/0366/doc_00147995 [00:35:37]file doc_00147996 [00:35:37]remove file /storage/0366/doc_00147996 [00:35:37]file doc_00147997 [00:35:37]remove file /storage/0366/doc_00147997 [00:35:37]file doc_00147998 [00:35:37]remove file /storage/0366/doc_00147998 [00:35:37]file doc_00147999 [00:35:37]remove file /storage/0366/doc_00147999 [00:35:37]file doc_00148000 [00:35:37]remove file /storage/0366/doc_00148000 [00:35:37]file doc_00148001 [00:35:37]remove file /storage/0366/doc_00148001 [00:35:37]file doc_00148002 [00:35:37]remove file /storage/0366/doc_00148002 [00:35:37]file doc_00148003 [00:35:37]remove file /storage/0366/doc_00148003 [00:35:37]file doc_00148004 [00:35:37]remove file /storage/0366/doc_00148004 [00:35:37]file doc_00148005 [00:35:37]remove file /storage/0366/doc_00148005 [00:35:37]file doc_00148006 [00:35:37]remove file /storage/0366/doc_00148006 [00:35:37]file doc_00148007 [00:35:37]remove file /storage/0366/doc_00148007 [00:35:37]file doc_00148008 [00:35:37]remove file /storage/0366/doc_00148008 [00:35:37]file doc_00148009 [00:35:37]remove file /storage/0366/doc_00148009 [00:35:37]file doc_00148010 [00:35:37]remove file /storage/0366/doc_00148010 [00:35:37]file doc_00148011 [00:35:37]remove file /storage/0366/doc_00148011 [00:35:37]file doc_00148012 [00:35:37]remove file /storage/0366/doc_00148012 [00:35:37]file doc_00148013 [00:35:37]remove file /storage/0366/doc_00148013 [00:35:37]file doc_00148014 [00:35:37]remove file /storage/0366/doc_00148014 [00:35:37]file doc_00148015 [00:35:37]remove file /storage/0366/doc_00148015 [00:35:37]file doc_00148016 [00:35:37]remove file /storage/0366/doc_00148016 [00:35:37]file doc_00148017 [00:35:37]remove file /storage/0366/doc_00148017 [00:35:37]file doc_00148018 [00:35:37]remove file /storage/0366/doc_00148018 [00:35:37]file doc_00148019 [00:35:37]remove file /storage/0366/doc_00148019 [00:35:37]file doc_00148020 [00:35:37]remove file /storage/0366/doc_00148020 [00:35:37]file doc_00148021 [00:35:37]remove file /storage/0366/doc_00148021 [00:35:37]file doc_00148022 [00:35:37]remove file /storage/0366/doc_00148022 [00:35:37]file doc_00148023 [00:35:37]remove file /storage/0366/doc_00148023 [00:35:37]file doc_00148024 [00:35:37]remove file /storage/0366/doc_00148024 [00:35:37]file doc_00148025 [00:35:37]remove file /storage/0366/doc_00148025 [00:35:37]file doc_00148026 [00:35:37]remove file /storage/0366/doc_00148026 [00:35:37]file doc_00148027 [00:35:37]remove file /storage/0366/doc_00148027 [00:35:37]file doc_00148028 [00:35:37]remove file /storage/0366/doc_00148028 [00:35:37]file doc_00148029 [00:35:37]remove file /storage/0366/doc_00148029 [00:35:37]file doc_00148030 [00:35:37]remove file /storage/0366/doc_00148030 [00:35:37]file doc_00148031 [00:35:37]remove file /storage/0366/doc_00148031 [00:35:37]file doc_00148032 [00:35:37]remove file /storage/0366/doc_00148032 [00:35:37]file doc_00148033 [00:35:37]remove file /storage/0366/doc_00148033 [00:35:37]file doc_00148034 [00:35:37]remove file /storage/0366/doc_00148034 [00:35:37]file doc_00148035 [00:35:37]remove file /storage/0366/doc_00148035 [00:35:37]file doc_00148036 [00:35:37]remove file /storage/0366/doc_00148036 [00:35:37]file doc_00148037 [00:35:37]remove file /storage/0366/doc_00148037 [00:35:37]file doc_00148038 [00:35:37]remove file /storage/0366/doc_00148038 [00:35:37]file doc_00148039 [00:35:37]remove file /storage/0366/doc_00148039 [00:35:37]file doc_00148040 [00:35:37]remove file /storage/0366/doc_00148040 [00:35:37]file doc_00148041 [00:35:37]remove file /storage/0366/doc_00148041 [00:35:37]file doc_00148042 [00:35:37]remove file /storage/0366/doc_00148042 [00:35:38]file doc_00148043 [00:35:38]remove file /storage/0366/doc_00148043 [00:35:38]file doc_00148044 [00:35:38]remove file /storage/0366/doc_00148044 [00:35:38]file doc_00148045 [00:35:38]remove file /storage/0366/doc_00148045 [00:35:38]file doc_00148046 [00:35:38]remove file /storage/0366/doc_00148046 [00:35:38]file doc_00148047 [00:35:38]remove file /storage/0366/doc_00148047 [00:35:38]file doc_00148048 [00:35:38]remove file /storage/0366/doc_00148048 [00:35:38]file doc_00148049 [00:35:38]remove file /storage/0366/doc_00148049 [00:35:38]file doc_00148050 [00:35:38]remove file /storage/0366/doc_00148050 [00:35:38]file doc_00148051 [00:35:38]remove file /storage/0366/doc_00148051 [00:35:38]file doc_00148052 [00:35:38]remove file /storage/0366/doc_00148052 [00:35:38]file doc_00148053 [00:35:38]remove file /storage/0366/doc_00148053 [00:35:38]file doc_00148054 [00:35:38]remove file /storage/0366/doc_00148054 [00:35:38]file doc_00148055 [00:35:38]remove file /storage/0366/doc_00148055 [00:35:38]file doc_00148056 [00:35:38]remove file /storage/0366/doc_00148056 [00:35:38]file doc_00148057 [00:35:38]remove file /storage/0366/doc_00148057 [00:35:38]file doc_00148058 [00:35:38]remove file /storage/0366/doc_00148058 [00:35:38]file doc_00148059 [00:35:38]remove file /storage/0366/doc_00148059 [00:35:38]file doc_00148060 [00:35:38]remove file /storage/0366/doc_00148060 [00:35:38]file doc_00148061 [00:35:38]remove file /storage/0366/doc_00148061 [00:35:38]file doc_00148062 [00:35:38]remove file /storage/0366/doc_00148062 [00:35:38]file doc_00148063 [00:35:38]remove file /storage/0366/doc_00148063 [00:35:38]file doc_00148064 [00:35:38]remove file /storage/0366/doc_00148064 [00:35:38]file doc_00148065 [00:35:38]remove file /storage/0366/doc_00148065 [00:35:38]file doc_00148066 [00:35:38]remove file /storage/0366/doc_00148066 [00:35:38]file doc_00148067 [00:35:38]remove file /storage/0366/doc_00148067 [00:35:38]file doc_00148068 [00:35:38]remove file /storage/0366/doc_00148068 [00:35:38]file doc_00148069 [00:35:38]remove file /storage/0366/doc_00148069 [00:35:38]file doc_00148070 [00:35:38]remove file /storage/0366/doc_00148070 [00:35:38]file doc_00148071 [00:35:38]remove file /storage/0366/doc_00148071 [00:35:38]file doc_00148072 [00:35:38]remove file /storage/0366/doc_00148072 [00:35:38]file doc_00148073 [00:35:38]remove file /storage/0366/doc_00148073 [00:35:38]file doc_00148074 [00:35:38]remove file /storage/0366/doc_00148074 [00:35:38]file doc_00148075 [00:35:38]remove file /storage/0366/doc_00148075 [00:35:38]file doc_00148076 [00:35:38]remove file /storage/0366/doc_00148076 [00:35:38]file doc_00148077 [00:35:38]remove file /storage/0366/doc_00148077 [00:35:38]file doc_00148078 [00:35:38]remove file /storage/0366/doc_00148078 [00:35:38]file doc_00148079 [00:35:38]remove file /storage/0366/doc_00148079 [00:35:38]file doc_00148080 [00:35:38]remove file /storage/0366/doc_00148080 [00:35:38]file doc_00148081 [00:35:38]remove file /storage/0366/doc_00148081 [00:35:38]file doc_00148082 [00:35:38]remove file /storage/0366/doc_00148082 [00:35:38]file doc_00148083 [00:35:38]remove file /storage/0366/doc_00148083 [00:35:38]file doc_00148084 [00:35:38]remove file /storage/0366/doc_00148084 [00:35:38]file doc_00148085 [00:35:38]remove file /storage/0366/doc_00148085 [00:35:38]file doc_00148086 [00:35:38]remove file /storage/0366/doc_00148086 [00:35:38]file doc_00148087 [00:35:38]remove file /storage/0366/doc_00148087 [00:35:38]file doc_00148088 [00:35:38]remove file /storage/0366/doc_00148088 [00:35:38]file doc_00148089 [00:35:38]remove file /storage/0366/doc_00148089 [00:35:38]file doc_00148090 [00:35:38]remove file /storage/0366/doc_00148090 [00:35:38]file doc_00148091 [00:35:38]remove file /storage/0366/doc_00148091 [00:35:38]file doc_00148092 [00:35:38]remove file /storage/0366/doc_00148092 [00:35:38]file doc_00148093 [00:35:38]remove file /storage/0366/doc_00148093 [00:35:38]file doc_00148094 [00:35:38]remove file /storage/0366/doc_00148094 [00:35:38]file doc_00148095 [00:35:38]remove file /storage/0366/doc_00148095 [00:35:38]file doc_00148096 [00:35:38]remove file /storage/0366/doc_00148096 [00:35:38]file doc_00148097 [00:35:38]remove file /storage/0366/doc_00148097 [00:35:38]file doc_00148098 [00:35:38]remove file /storage/0366/doc_00148098 [00:35:38]file doc_00148099 [00:35:38]remove file /storage/0366/doc_00148099 [00:35:38]file doc_00148100 [00:35:38]remove file /storage/0366/doc_00148100 [00:35:38]file doc_00148101 [00:35:38]remove file /storage/0366/doc_00148101 [00:35:38]file doc_00148102 [00:35:38]remove file /storage/0366/doc_00148102 [00:35:38]file doc_00148103 [00:35:38]remove file /storage/0366/doc_00148103 [00:35:38]file doc_00148104 [00:35:38]remove file /storage/0366/doc_00148104 [00:35:38]file doc_00148105 [00:35:38]remove file /storage/0366/doc_00148105 [00:35:38]file doc_00148106 [00:35:38]remove file /storage/0366/doc_00148106 [00:35:38]file doc_00148107 [00:35:38]remove file /storage/0366/doc_00148107 [00:35:38]file doc_00148108 [00:35:38]remove file /storage/0366/doc_00148108 [00:35:38]file doc_00148109 [00:35:38]remove file /storage/0366/doc_00148109 [00:35:38]file doc_00148110 [00:35:38]remove file /storage/0366/doc_00148110 [00:35:38]file doc_00148111 [00:35:38]remove file /storage/0366/doc_00148111 [00:35:38]file doc_00148112 [00:35:38]remove file /storage/0366/doc_00148112 [00:35:38]file doc_00148113 [00:35:38]remove file /storage/0366/doc_00148113 [00:35:38]file doc_00148114 [00:35:38]remove file /storage/0366/doc_00148114 [00:35:38]file doc_00148115 [00:35:38]remove file /storage/0366/doc_00148115 [00:35:38]file doc_00148116 [00:35:38]remove file /storage/0366/doc_00148116 [00:35:38]file doc_00148117 [00:35:38]remove file /storage/0366/doc_00148117 [00:35:38]file doc_00148118 [00:35:38]remove file /storage/0366/doc_00148118 [00:35:38]file doc_00148119 [00:35:38]remove file /storage/0366/doc_00148119 [00:35:38]file doc_00148120 [00:35:38]remove file /storage/0366/doc_00148120 [00:35:38]file doc_00148121 [00:35:38]remove file /storage/0366/doc_00148121 [00:35:38]file doc_00148122 [00:35:38]remove file /storage/0366/doc_00148122 [00:35:38]file doc_00148123 [00:35:38]remove file /storage/0366/doc_00148123 [00:35:38]file doc_00148124 [00:35:38]remove file /storage/0366/doc_00148124 [00:35:38]file doc_00148125 [00:35:38]remove file /storage/0366/doc_00148125 [00:35:38]file doc_00148126 [00:35:38]remove file /storage/0366/doc_00148126 [00:35:38]file doc_00148127 [00:35:38]remove file /storage/0366/doc_00148127 [00:35:38]file doc_00148128 [00:35:38]remove file /storage/0366/doc_00148128 [00:35:38]file doc_00148129 [00:35:38]remove file /storage/0366/doc_00148129 [00:35:38]file doc_00148130 [00:35:38]remove file /storage/0366/doc_00148130 [00:35:38]file doc_00148131 [00:35:38]remove file /storage/0366/doc_00148131 [00:35:38]file doc_00148132 [00:35:38]remove file /storage/0366/doc_00148132 [00:35:38]file doc_00148133 [00:35:38]remove file /storage/0366/doc_00148133 [00:35:38]file doc_00148134 [00:35:38]remove file /storage/0366/doc_00148134 [00:35:38]file doc_00148135 [00:35:38]remove file /storage/0366/doc_00148135 [00:35:38]file doc_00148136 [00:35:38]remove file /storage/0366/doc_00148136 [00:35:38]file doc_00148137 [00:35:38]remove file /storage/0366/doc_00148137 [00:35:38]file doc_00148138 [00:35:38]remove file /storage/0366/doc_00148138 [00:35:38]file doc_00148139 [00:35:38]remove file /storage/0366/doc_00148139 [00:35:38]file doc_00148140 [00:35:38]remove file /storage/0366/doc_00148140 [00:35:38]file doc_00148141 [00:35:38]remove file /storage/0366/doc_00148141 [00:35:38]file doc_00148142 [00:35:38]remove file /storage/0366/doc_00148142 [00:35:38]file doc_00148143 [00:35:38]remove file /storage/0366/doc_00148143 [00:35:38]file doc_00148144 [00:35:38]remove file /storage/0366/doc_00148144 [00:35:38]file doc_00148145 [00:35:38]remove file /storage/0366/doc_00148145 [00:35:38]file doc_00148146 [00:35:38]remove file /storage/0366/doc_00148146 [00:35:38]file doc_00148147 [00:35:38]remove file /storage/0366/doc_00148147 [00:35:38]file doc_00148148 [00:35:38]remove file /storage/0366/doc_00148148 [00:35:38]file doc_00148149 [00:35:38]remove file /storage/0366/doc_00148149 [00:35:38]file doc_00148150 [00:35:38]remove file /storage/0366/doc_00148150 [00:35:38]file doc_00148151 [00:35:38]remove file /storage/0366/doc_00148151 [00:35:38]file doc_00148152 [00:35:38]remove file /storage/0366/doc_00148152 [00:35:38]file doc_00148153 [00:35:38]remove file /storage/0366/doc_00148153 [00:35:38]file doc_00148154 [00:35:38]remove file /storage/0366/doc_00148154 [00:35:38]file doc_00148155 [00:35:38]remove file /storage/0366/doc_00148155 [00:35:38]file doc_00148156 [00:35:38]remove file /storage/0366/doc_00148156 [00:35:38]file doc_00148157 [00:35:38]remove file /storage/0366/doc_00148157 [00:35:38]file doc_00148158 [00:35:38]remove file /storage/0366/doc_00148158 [00:35:38]file doc_00148159 [00:35:38]remove file /storage/0366/doc_00148159 [00:35:38]file doc_00148160 [00:35:38]remove file /storage/0366/doc_00148160 [00:35:38]file doc_00148161 [00:35:38]remove file /storage/0366/doc_00148161 [00:35:38]file doc_00148162 [00:35:38]remove file /storage/0366/doc_00148162 [00:35:38]file doc_00148163 [00:35:38]remove file /storage/0366/doc_00148163 [00:35:38]file doc_00148164 [00:35:38]remove file /storage/0366/doc_00148164 [00:35:38]file doc_00148165 [00:35:38]remove file /storage/0366/doc_00148165 [00:35:38]file doc_00148166 [00:35:38]remove file /storage/0366/doc_00148166 [00:35:38]file doc_00148167 [00:35:38]remove file /storage/0366/doc_00148167 [00:35:38]file doc_00148168 [00:35:38]remove file /storage/0366/doc_00148168 [00:35:38]file doc_00148169 [00:35:38]remove file /storage/0366/doc_00148169 [00:35:38]file doc_00148170 [00:35:38]remove file /storage/0366/doc_00148170 [00:35:38]file doc_00148171 [00:35:38]remove file /storage/0366/doc_00148171 [00:35:38]file doc_00148172 [00:35:38]remove file /storage/0366/doc_00148172 [00:35:38]file doc_00148173 [00:35:38]remove file /storage/0366/doc_00148173 [00:35:38]file doc_00148174 [00:35:38]remove file /storage/0366/doc_00148174 [00:35:38]file doc_00148175 [00:35:38]remove file /storage/0366/doc_00148175 [00:35:38]file doc_00148176 [00:35:38]remove file /storage/0366/doc_00148176 [00:35:38]file doc_00148177 [00:35:38]remove file /storage/0366/doc_00148177 [00:35:38]file doc_00148178 [00:35:38]remove file /storage/0366/doc_00148178 [00:35:38]file doc_00148179 [00:35:38]remove file /storage/0366/doc_00148179 [00:35:38]file doc_00148180 [00:35:38]remove file /storage/0366/doc_00148180 [00:35:38]file doc_00148181 [00:35:38]remove file /storage/0366/doc_00148181 [00:35:38]file doc_00148182 [00:35:38]remove file /storage/0366/doc_00148182 [00:35:38]file doc_00148183 [00:35:38]remove file /storage/0366/doc_00148183 [00:35:38]file doc_00148184 [00:35:38]remove file /storage/0366/doc_00148184 [00:35:38]file doc_00148185 [00:35:38]remove file /storage/0366/doc_00148185 [00:35:38]file doc_00148186 [00:35:38]remove file /storage/0366/doc_00148186 [00:35:38]file doc_00148187 [00:35:38]remove file /storage/0366/doc_00148187 [00:35:38]file doc_00148188 [00:35:38]remove file /storage/0366/doc_00148188 [00:35:38]file doc_00148189 [00:35:38]remove file /storage/0366/doc_00148189 [00:35:38]file doc_00148190 [00:35:38]remove file /storage/0366/doc_00148190 [00:35:38]file doc_00148191 [00:35:38]remove file /storage/0366/doc_00148191 [00:35:38]file doc_00148192 [00:35:38]remove file /storage/0366/doc_00148192 [00:35:38]file doc_00148193 [00:35:38]remove file /storage/0366/doc_00148193 [00:35:38]file doc_00148194 [00:35:38]remove file /storage/0366/doc_00148194 [00:35:38]file doc_00148195 [00:35:38]remove file /storage/0366/doc_00148195 [00:35:38]file doc_00148196 [00:35:38]remove file /storage/0366/doc_00148196 [00:35:38]file doc_00148197 [00:35:38]remove file /storage/0366/doc_00148197 [00:35:38]file doc_00148198 [00:35:38]remove file /storage/0366/doc_00148198 [00:35:38]file doc_00148199 [00:35:38]remove file /storage/0366/doc_00148199 [00:35:38]file doc_00148200 [00:35:38]remove file /storage/0366/doc_00148200 [00:35:38]file doc_00148201 [00:35:38]remove file /storage/0366/doc_00148201 [00:35:38]file doc_00148202 [00:35:38]remove file /storage/0366/doc_00148202 [00:35:38]file doc_00148203 [00:35:38]remove file /storage/0366/doc_00148203 [00:35:38]file doc_00148204 [00:35:38]remove file /storage/0366/doc_00148204 [00:35:38]file doc_00148205 [00:35:38]remove file /storage/0366/doc_00148205 [00:35:38]file doc_00148206 [00:35:38]remove file /storage/0366/doc_00148206 [00:35:38]file doc_00148207 [00:35:38]remove file /storage/0366/doc_00148207 [00:35:38]file doc_00148208 [00:35:38]remove file /storage/0366/doc_00148208 [00:35:38]file doc_00148209 [00:35:38]remove file /storage/0366/doc_00148209 [00:35:38]file doc_00148210 [00:35:38]remove file /storage/0366/doc_00148210 [00:35:38]file doc_00148211 [00:35:39]remove file /storage/0366/doc_00148211 [00:35:39]file doc_00148212 [00:35:39]remove file /storage/0366/doc_00148212 [00:35:39]file doc_00148213 [00:35:39]remove file /storage/0366/doc_00148213 [00:35:39]file doc_00148214 [00:35:39]remove file /storage/0366/doc_00148214 [00:35:39]file doc_00148215 [00:35:39]remove file /storage/0366/doc_00148215 [00:35:39]file doc_00148216 [00:35:39]remove file /storage/0366/doc_00148216 [00:35:39]file doc_00148217 [00:35:39]remove file /storage/0366/doc_00148217 [00:35:39]file doc_00148218 [00:35:39]remove file /storage/0366/doc_00148218 [00:35:39]file doc_00148219 [00:35:39]remove file /storage/0366/doc_00148219 [00:35:39]file doc_00148220 [00:35:39]remove file /storage/0366/doc_00148220 [00:35:39]file doc_00148221 [00:35:39]remove file /storage/0366/doc_00148221 [00:35:39]file doc_00148222 [00:35:39]remove file /storage/0366/doc_00148222 [00:35:39]file doc_00148223 [00:35:39]remove file /storage/0366/doc_00148223 [00:35:39]file doc_00148224 [00:35:39]remove file /storage/0366/doc_00148224 [00:35:39]file doc_00148225 [00:35:39]remove file /storage/0366/doc_00148225 [00:35:39]file doc_00148226 [00:35:39]remove file /storage/0366/doc_00148226 [00:35:39]file doc_00148227 [00:35:39]remove file /storage/0366/doc_00148227 [00:35:39]file doc_00148228 [00:35:39]remove file /storage/0366/doc_00148228 [00:35:39]file doc_00148229 [00:35:39]remove file /storage/0366/doc_00148229 [00:35:39]file doc_00148230 [00:35:39]remove file /storage/0366/doc_00148230 [00:35:39]file doc_00148231 [00:35:39]remove file /storage/0366/doc_00148231 [00:35:39]file doc_00148232 [00:35:39]remove file /storage/0366/doc_00148232 [00:35:39]file doc_00148233 [00:35:39]remove file /storage/0366/doc_00148233 [00:35:39]file doc_00148234 [00:35:39]remove file /storage/0366/doc_00148234 [00:35:39]file doc_00148235 [00:35:39]remove file /storage/0366/doc_00148235 [00:35:39]file doc_00148236 [00:35:39]remove file /storage/0366/doc_00148236 [00:35:39]file doc_00148237 [00:35:39]remove file /storage/0366/doc_00148237 [00:35:39]remove dir /storage/0366 [00:35:39]ProcessDocumentItem done err = 0, tmpTLVsize=282 [00:35:39]tlvbuf is 012DBA10 [00:35:39]SAM_PROTO_ClearQueue [00:35:39]wFMCommunicate request_size=4 [00:35:39]MH_SAM_APDU [00:35:39]CAPDU: 80 09 00 00 [00:35:39]Write to MH i2c: E2 08 00 8E 0A 80 09 00 00 00 00 00 00 0A [00:35:39]Write i2c OK [00:35:39]MH_I2C_Read... [00:35:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:35:39]Read from MH i2c: E2 [00:35:39]MH_I2C_Read... [00:35:39]Read from MH i2c: E2 03 00 [00:35:39]MH_I2C_Read... [00:35:39]Read from MH i2c: E2 03 00 8E 0A 00 90 00 0C [00:35:39]RAPDU: 90 00 [00:35:39]wFMCommunicate OK [00:35:39]SAM_PROTO_ClearQueue done [00:35:39]KKMCreateOFDPacket [00:35:39]OFDProtocolAddRootSTLVToBuf [00:35:39]FM_MakeSignedData [00:35:39]FM_MakeSignedData [00:35:39]SAM_PROTO_SignData [00:35:39]wFMCommunicate request_size=4 [00:35:39]MH_SAM_APDU [00:35:39]CAPDU: 80 0D 01 02 [00:35:39]Write to MH i2c: E2 08 00 8F 0A 80 0D 01 02 00 00 00 00 12 [00:35:39]Write i2c OK [00:35:39]MH_I2C_Read... [00:35:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:35:39]Read from MH i2c: E2 [00:35:39]MH_I2C_Read... [00:35:39]Read from MH i2c: E2 03 00 [00:35:39]MH_I2C_Read... [00:35:39]Read from MH i2c: E2 03 00 8F 0A 00 90 00 0D [00:35:39]RAPDU: 90 00 [00:35:39]wFMCommunicate OK [00:35:39]wFMCommunicate request_size=255 [00:35:39]MH_SAM_APDU [00:35:39]CAPDU: 80 0D 02 02 FA 02 00 1A 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 A2 D1 83 D1 80 D1 81 D1 83 D0 BD D0 BE D0 B2 20 D0 90 2E 20 F1 03 6F 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D0 BE D0 BB 2C 20 D1 83 D0 BB 2E 20 D0 9F D1 80 D0 B5 D0 B6 D0 B5 D0 B2 D0 B0 D0 BB D1 8C D1 81 D0 BA D0 BE D0 B3 D0 BE 2D D0 91 D0 B5 D0 B9 D1 88 D0 B5 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 35 2C 20 34 32 2E 34 39 34 35 32 39 2C 20 37 38 2E 33 37 36 33 33 31 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 38 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 D8 0F 5D 66 0E 04 04 00 6F 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 [00:35:39]Write to MH i2c: E2 02 01 90 0A 80 0D 02 02 FA 00 02 00 1A 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 A2 D1 83 D1 80 D1 81 D1 83 D0 BD D0 BE D0 B2 20 D0 90 2E 20 F1 03 6F 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D0 BE D0 BB 2C 20 D1 83 D0 BB 2E 20 D0 9F D1 80 D0 B5 D0 B6 D0 B5 D0 B2 D0 B0 D0 BB D1 8C D1 81 D0 BA D0 BE D0 B3 D0 BE 2D D0 91 D0 B5 D0 B9 D1 88 D0 B5 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 35 2C 20 34 32 2E 34 39 34 35 32 39 2C 20 37 38 2E 33 37 36 33 33 31 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 38 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 D8 0F 5D 66 0E 04 04 00 6F 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 00 00 77 [00:35:39]Write i2c OK [00:35:39]MH_I2C_Read... [00:35:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:39]Read from MH i2c: E2 [00:35:39]MH_I2C_Read... [00:35:39]Read from MH i2c: E2 03 00 [00:35:39]MH_I2C_Read... [00:35:39]Read from MH i2c: E2 03 00 90 0A 00 90 00 0E [00:35:39]RAPDU: 90 00 [00:35:39]wFMCommunicate OK [00:35:39]wFMCommunicate request_size=41 [00:35:39]MH_SAM_APDU [00:35:39]CAPDU: 80 0D 02 02 24 04 00 0E 43 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 35 04 06 00 7D D6 8F 80 6E 0D [00:35:39]Write to MH i2c: E2 2C 00 91 0A 80 0D 02 02 24 00 04 00 0E 43 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 35 04 06 00 7D D6 8F 80 6E 0D 00 00 15 [00:35:39]Write i2c OK [00:35:39]MH_I2C_Read... [00:35:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:39]Read from MH i2c: E2 [00:35:39]MH_I2C_Read... [00:35:39]Read from MH i2c: E2 03 00 [00:35:39]MH_I2C_Read... [00:35:39]Read from MH i2c: E2 03 00 91 0A 00 90 00 0F [00:35:39]RAPDU: 90 00 [00:35:39]wFMCommunicate OK [00:35:39]wFMCommunicate request_size=4 [00:35:39]MH_SAM_APDU [00:35:39]CAPDU: 80 0D 03 02 [00:35:39]Write to MH i2c: E2 08 00 92 0A 80 0D 03 02 00 00 00 00 17 [00:35:39]Write i2c OK [00:35:39]MH_I2C_Read... [00:35:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:35:39]Read from MH i2c: E2 [00:35:39]MH_I2C_Read... [00:35:39]Read from MH i2c: E2 0B 00 [00:35:39]MH_I2C_Read... [00:35:39]Read from MH i2c: E2 0B 00 92 0A 00 C2 CE 42 5D F6 6D 22 6F 90 00 3B [00:35:39]RAPDU: C2 CE 42 5D F6 6D 22 6F 90 00 [00:35:39]wFMCommunicate OK [00:35:39]SAM_PROTO_SignData done [00:35:39]FM_MakeSignedData done [00:35:39]CreateOFDProtocolMessage [00:35:39]wFMCommunicate request_size=4 [00:35:39]MH_SAM_APDU [00:35:39]CAPDU: 80 11 00 00 [00:35:39]Write to MH i2c: E2 08 00 93 0A 80 11 00 00 00 00 00 00 17 [00:35:39]Write i2c OK [00:35:39]MH_I2C_Read... [00:35:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:39]Read from MH i2c: E2 [00:35:39]MH_I2C_Read... [00:35:39]Read from MH i2c: E2 17 00 [00:35:39]MH_I2C_Read... [00:35:39]Read from MH i2c: E2 17 00 93 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 6A [00:35:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:35:39]wFMCommunicate OK [00:35:39]CreateOFDProtocolMessage done [00:35:39]OFDSenderStorePacket 148238 [00:35:39]StoreOFDPacket docnum=148238 [00:35:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 2E 01 00 00 F3 1F 26 01 C5 BF 5A 02 01 00 02 00 1A 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 A2 D1 83 D1 80 D1 81 D1 83 D0 BD D0 BE D0 B2 20 D0 90 2E 20 F1 03 6F 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D0 BE D0 BB 2C 20 D1 83 D0 BB 2E 20 D0 9F D1 80 D0 B5 D0 B6 D0 B5 D0 B2 D0 B0 D0 BB D1 8C D1 81 D0 BA D0 BE D0 B3 D0 BE 2D D0 91 D0 B5 D0 B9 D1 88 D0 B5 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 35 2C 20 34 32 2E 34 39 34 35 32 39 2C 20 37 38 2E 33 37 36 33 33 31 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 38 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 D8 0F 5D 66 0E 04 04 00 6F 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0E 43 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 35 04 06 00 7D D6 8F 80 6E 0D C2 CE 42 5D F6 6D 22 6F [00:35:39]CheckFolder [00:35:39]dirname=/storage/ofd_packets [00:35:39]CheckFolder done [00:35:39]ProducePacketName [00:35:39]name=ofd_packets/00148238 [00:35:39]NVStorageSaveData ofd_packets/00148238 [00:35:39]File name is /storage/ofd_packets/00148238 [00:35:39]Write 332 bytes [00:35:39]NVStorageSaveData done [00:35:39]OFDSenderStorePacket done [00:35:39]KKMCreateOFDPacket done [00:35:39]NVStorageSaveData kkm_last_timestamp [00:35:39]File name is /storage/kkm_last_timestamp [00:35:39]Write 4 bytes [00:35:39]NVStorageSaveData done [00:35:39]ExternCall_PrintAddStr [00:35:39]wPrintStart [00:35:39]Write to MH i2c: 01 00 00 94 0A 9E [00:35:39]Write i2c OK [00:35:39]MH_I2C_Read... [00:35:39]Read from MH i2c: 01 [00:35:39]MH_I2C_Read... [00:35:39]Read from MH i2c: 01 07 00 [00:35:39]MH_I2C_Read... [00:35:39]Read from MH i2c: 01 07 00 94 0A 00 00 00 00 00 FF 0F B3 [00:35:39]RasterBufferAndPrint [00:35:39]line Отчет об открытии смены [00:35:39]line ФФД: 1.0 [00:35:39]line ИНН: 02508201610067 [00:35:39]line Кассир: Турсунов А. [00:35:39]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [00:35:39]line Место: АЗС № 68 "Партнер Нефть" [00:35:39]line 03.06.2024 00:35 [00:35:39]line Смена: 367 [00:35:39]line РНМ: 0000000000092720 [00:35:39]line ЗНМ: 0300000035 [00:35:39]line ФД: 148238 [00:35:39]line ФМ: 0000000000875057 [00:35:39]line ФПД: 138360484032013 [00:35:39]OFD Sender: Processing packet 148238 [packets to send 99, broken 98] [00:35:39]ProducePacketName [00:35:39]name=ofd_packets/00148238 [00:35:39]OFD Sender: To server: pG, [00:35:39]CommunicateWithHost lk.salyk.kg:30040 [00:35:39]ConnectInit lk.salyk.kg [00:35:39]written 0, free lines is 4095 [00:35:39]Connected sock=10 [00:35:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 2E 01 00 00 F3 1F 26 01 C5 BF 5A 02 01 00 02 00 1A 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 A2 D1 83 D1 80 D1 81 D1 83 D0 BD D0 BE D0 B2 20 D0 90 2E 20 F1 03 6F 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D0 BE D0 BB 2C 20 D1 83 D0 BB 2E 20 D0 9F D1 80 D0 B5 D0 B6 D0 B5 D0 B2 D0 B0 D0 BB D1 8C D1 81 D0 BA D0 BE D0 B3 D0 BE 2D D0 91 D0 B5 D0 B9 D1 88 D0 B5 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 35 2C 20 34 32 2E 34 39 34 35 32 39 2C 20 37 38 2E 33 37 36 33 33 31 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 38 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 D8 0F 5D 66 0E 04 04 00 6F 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0E 43 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 35 04 06 00 7D D6 8F 80 6E 0D C2 CE 42 5D F6 6D 22 6F [00:35:40]Write to MH i2c: 01 00 00 A6 0A B0 [00:35:40]Write i2c OK [00:35:40]MH_I2C_Read... [00:35:40]Read from MH i2c: 01 [00:35:40]MH_I2C_Read... [00:35:40]Read from MH i2c: 01 07 00 [00:35:40]MH_I2C_Read... [00:35:40]Read from MH i2c: 01 07 00 A6 0A 00 00 00 00 00 6F 0E 34 [00:35:40]RasterBufferAndPrint [00:35:40]line [00:35:40]line [00:35:40]line [00:35:40]line [00:35:40]line [00:35:40]written 0, free lines is 3707 [00:35:40]MH_Cut [00:35:40]Write to MH i2c: D1 01 00 AD 0A 01 89 [00:35:40]Write i2c OK [00:35:40]MH_I2C_Read... [00:35:40]Read from MH i2c: D1 [00:35:40]MH_I2C_Read... [00:35:40]Read from MH i2c: D1 01 00 [00:35:40]MH_I2C_Read... [00:35:40]Read from MH i2c: D1 01 00 AD 0A 00 88 [00:35:40]Write to MH i2c: 01 00 00 AE 0A B8 [00:35:40]Write i2c OK [00:35:40]MH_I2C_Read... [00:35:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 E7 AD 47 00 B0 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0E 43 02 00 F4 03 04 00 03 B7 5C 66 B6 04 01 00 00 A8 9E 06 0A F4 36 EE A5 [00:35:40]CommunicateWithHost err = 0 [00:35:40]CheckOFDResponse [00:35:40]1017 (14) - 77093643461234 [00:35:40]1041 (16) - 0000000000875057 [00:35:40]1040 (4) - 148238 [00:35:40]1012 (4) - 02.06.2024 18:16 [00:35:40]1206 (1) - 0 [00:35:40]OFD Sender: Remove packet 148238 [00:35:40]ProducePacketName [00:35:40]name=ofd_packets/00148238 [00:35:40]NVStorageDeleteData [00:35:40]*** Cut start [00:35:40]*** Partial cut [00:35:40]*** CUTSNS_PIN = 1 [00:35:40]*** CUTSNS_PIN = 0 [00:35:40]OFD Sender: No OFD packet to send [00:35:41]*** Brake cut motor [00:35:41]Read from MH i2c: 01 [00:35:41]MH_I2C_Read... [00:35:41]*** Stop cut motor [00:35:41]*** Cut end [00:35:41]Read from MH i2c: 01 07 00 [00:35:41]MH_I2C_Read... [00:35:41]Read from MH i2c: 01 07 00 AE 0A 00 00 00 00 00 FF 0F CD [00:35:41]process_action open_shift done [00:35:41]requested_data is exist [00:35:41]produce_requested_data [00:35:41]requested_item fd.num is exist - process it [00:35:41]SAM_PROTO_GetFieldsCounters [00:35:41]wFMCommunicate request_size=4 [00:35:41]MH_SAM_APDU [00:35:41]CAPDU: 80 13 00 00 [00:35:41]Write to MH i2c: E2 08 00 AF 0A 80 13 00 00 00 00 00 00 35 [00:35:41]Write i2c OK [00:35:41]MH_I2C_Read... [00:35:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:35:41]Read from MH i2c: E2 [00:35:41]MH_I2C_Read... [00:35:41]Read from MH i2c: E2 62 00 [00:35:41]MH_I2C_Read... [00:35:41]Read from MH i2c: E2 62 00 AF 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0E 43 02 00 0E 04 04 00 6F 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 14 [00:35:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0E 43 02 00 0E 04 04 00 6F 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:35:41]wFMCommunicate OK [00:35:41]SAM_PROTO_GetFieldsCounters done [00:35:41]requested_item shift.num is exist - process it [00:35:41]requested_item shift.opened is exist - process it [00:35:41]req_shift_opened [00:35:41]FM_GetShiftState [00:35:41]SAM_PROTO_GetShiftState [00:35:41]wFMCommunicate request_size=4 [00:35:41]MH_SAM_APDU [00:35:41]CAPDU: 80 13 01 00 [00:35:41]Write to MH i2c: E2 08 00 B0 0A 80 13 01 00 00 00 00 00 37 [00:35:41]Write i2c OK [00:35:41]MH_I2C_Read... [00:35:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:41]Read from MH i2c: E2 [00:35:41]MH_I2C_Read... [00:35:41]Read from MH i2c: E2 0E 00 [00:35:41]MH_I2C_Read... [00:35:41]Read from MH i2c: E2 0E 00 B0 0A 00 09 00 01 D8 0F 5D 66 00 00 00 00 90 00 ED [00:35:41]RAPDU: 09 00 01 D8 0F 5D 66 00 00 00 00 90 00 [00:35:41]wFMCommunicate OK [00:35:41]SAM_PROTO_GetShiftState done [00:35:41]FM_GetShiftState done [00:35:41]req_shift_opened done [00:35:41]requested_item shift.open_date is exist - process it [00:35:41]req_shift_open_date [00:35:41]req_shift_open_date done [00:35:41]produce_requested_data done [00:35:41]produce_requested_data return {"fd.num":148238,"shift.num":367,"shift.opened":1,"shift.open_date":1717374936} [00:35:41]process_action_free open_shift [00:35:41]json_value_free [00:35:41]json_value_free done [00:35:41]process_json_proto returns [00:35:41]Send response to host [00:35:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":148238,"shift.num":367,"shift.opened":1,"shift.open_date":1717374936}}} [00:35:41]free response buf [00:35:41]execute_script done [00:35:41]execute_script returns [00:35:41]free content buf [00:35:41]Sock 8.Close socket [00:35:41]Sock 8.Thread stoped [00:35:41]accept exits with 9 [00:35:41]New connection [00:35:41]New thread 3067288932 created [00:35:41]Thread 3067432292 joined [00:35:41]Waiting for new connection... [00:35:41] Sock 9.Parse request [00:35:41]Sock 9.Check first char [00:35:41]Sock 9.First char is OK [00:35:41]request: POST /json_proto HTTP/1.0 [00:35:41]Method: POST [00:35:41]URL: /json_proto [00:35:41]Method is POST - this is cgi request [00:35:41]url: /json_proto [00:35:41]query_string will be loaded in cgi processing [00:35:41]execute_cgi json_proto POST (null) [00:35:41]execute_cgi path=json_proto method=POST [00:35:41]POST find Content-Length [00:35:41]Host: 172.17.38.4:8080 [00:35:41]Content-Length: 331 [00:35:41]Content-Type: application/json [00:35:41] [00:35:41]POST finish read [00:35:41]Found Content-Length = 331 [00:35:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:35:41]execute_script... [00:35:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:35:41]POST & json_proto [00:35:41]process_json_proto [00:35:41]json parsed OK: [00:35:41]protocol is kg_v1.0 [00:35:41]action value=get_value [00:35:41]process_action get_value [00:35:41]cmd_get_value [00:35:41]process_action get_value done [00:35:41]requested_data is exist [00:35:41]produce_requested_data [00:35:41]requested_item fm.sale.total is exist - process it [00:35:41]SAM_PROTO_GetFMData [00:35:41]wFMCommunicate request_size=4 [00:35:41]MH_SAM_APDU [00:35:41]CAPDU: 80 13 03 00 [00:35:41]Write to MH i2c: E2 08 00 B1 0A 80 13 03 00 00 00 00 00 3A [00:35:41]Write i2c OK [00:35:41]MH_I2C_Read... [00:35:42]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:35:42]Read from MH i2c: E2 [00:35:42]MH_I2C_Read... [00:35:42]Read from MH i2c: E2 FD 00 [00:35:42]MH_I2C_Read... [00:35:42]Read from MH i2c: E2 FD 00 B1 0A 00 C7 04 85 04 C3 04 6E 04 04 00 30 40 02 00 69 04 A3 00 6F 04 04 00 94 3D 02 00 B1 04 05 00 BD 05 19 D2 01 70 04 05 00 7C 40 B5 B4 01 72 04 04 00 41 C5 63 1D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6A 1F 85 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9A 39 20 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 9C 02 00 00 B1 04 04 00 FC 3C F0 03 70 04 04 00 C4 94 EE 03 72 04 03 00 38 A8 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 04 1B 6B EF 90 00 AA [00:35:42]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 30 40 02 00 69 04 A3 00 6F 04 04 00 94 3D 02 00 B1 04 05 00 BD 05 19 D2 01 70 04 05 00 7C 40 B5 B4 01 72 04 04 00 41 C5 63 1D 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6A 1F 85 31 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 9A 39 20 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9E 00 6F 04 04 00 9C 02 00 00 B1 04 04 00 FC 3C F0 03 70 04 04 00 C4 94 EE 03 72 04 03 00 38 A8 01 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 04 1B 6B EF 90 00 [00:35:42]wFMCommunicate OK [00:35:42]wFMCommunicate request_size=4 [00:35:42]MH_SAM_APDU [00:35:42]CAPDU: 80 17 00 00 [00:35:42]Write to MH i2c: E2 08 00 B2 0A 80 17 00 00 00 00 00 00 3C [00:35:42]Write i2c OK [00:35:42]MH_I2C_Read... [00:35:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:42]Read from MH i2c: E2 [00:35:42]MH_I2C_Read... [00:35:42]Read from MH i2c: E2 FD 00 [00:35:42]MH_I2C_Read... [00:35:42]Read from MH i2c: E2 FD 00 B2 0A 00 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B5 EC 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 F2 [00:35:42]RAPDU: 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B5 EC 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 90 00 [00:35:42]wFMCommunicate OK [00:35:42]wFMCommunicate request_size=4 [00:35:42]MH_SAM_APDU [00:35:42]CAPDU: 80 17 00 00 [00:35:42]Write to MH i2c: E2 08 00 B3 0A 80 17 00 00 00 00 00 00 3D [00:35:42]Write i2c OK [00:35:42]MH_I2C_Read... [00:35:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:43]Read from MH i2c: E2 [00:35:43]MH_I2C_Read... [00:35:43]Read from MH i2c: E2 FD 00 [00:35:43]MH_I2C_Read... [00:35:43]Read from MH i2c: E2 FD 00 B3 0A 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 15 [00:35:43]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 90 00 [00:35:43]wFMCommunicate OK [00:35:43]wFMCommunicate request_size=4 [00:35:43]MH_SAM_APDU [00:35:43]CAPDU: 80 17 00 00 [00:35:43]Write to MH i2c: E2 08 00 B4 0A 80 17 00 00 00 00 00 00 3E [00:35:43]Write i2c OK [00:35:43]MH_I2C_Read... [00:35:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:43]Read from MH i2c: E2 [00:35:43]MH_I2C_Read... [00:35:43]Read from MH i2c: E2 FD 00 [00:35:43]MH_I2C_Read... [00:35:43]Read from MH i2c: E2 FD 00 B4 0A 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 B9 [00:35:43]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:35:43]wFMCommunicate OK [00:35:43]wFMCommunicate request_size=4 [00:35:43]MH_SAM_APDU [00:35:43]CAPDU: 80 17 00 00 [00:35:43]Write to MH i2c: E2 08 00 B5 0A 80 17 00 00 00 00 00 00 3F [00:35:43]Write i2c OK [00:35:43]MH_I2C_Read... [00:35:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:35:43]Read from MH i2c: E2 [00:35:43]MH_I2C_Read... [00:35:43]Read from MH i2c: E2 E4 00 [00:35:43]MH_I2C_Read... [00:35:43]Read from MH i2c: E2 E4 00 B5 0A 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 1F [00:35:43]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:35:44]wFMCommunicate OK [00:35:44]SAM_PROTO_GetFMData done [00:35:44]requested_item fm.sale_refund.total is exist - process it [00:35:44]requested_item fm.buy.total is exist - process it [00:35:44]requested_item shift.sale.total is exist - process it [00:35:44]SAM_PROTO_GetShiftData [00:35:44]wFMCommunicate request_size=4 [00:35:44]MH_SAM_APDU [00:35:44]CAPDU: 80 13 02 00 [00:35:44]Write to MH i2c: E2 08 00 B6 0A 80 13 02 00 00 00 00 00 3E [00:35:44]Write i2c OK [00:35:44]MH_I2C_Read... [00:35:44]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:35:44]Read from MH i2c: E2 [00:35:44]MH_I2C_Read... [00:35:44]Read from MH i2c: E2 FD 00 [00:35:44]MH_I2C_Read... [00:35:44]Read from MH i2c: E2 FD 00 B6 0A 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 B1 [00:35:44]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:35:44]wFMCommunicate OK [00:35:44]wFMCommunicate request_size=4 [00:35:44]MH_SAM_APDU [00:35:44]CAPDU: 80 17 00 00 [00:35:44]Write to MH i2c: E2 08 00 B7 0A 80 17 00 00 00 00 00 00 41 [00:35:44]Write i2c OK [00:35:44]MH_I2C_Read... [00:35:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:44]Read from MH i2c: E2 [00:35:45]MH_I2C_Read... [00:35:45]Read from MH i2c: E2 FD 00 [00:35:45]MH_I2C_Read... [00:35:45]Read from MH i2c: E2 FD 00 B7 0A 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 49 [00:35:45]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:35:45]wFMCommunicate OK [00:35:45]wFMCommunicate request_size=4 [00:35:45]MH_SAM_APDU [00:35:45]CAPDU: 80 17 00 00 [00:35:45]Write to MH i2c: E2 08 00 B8 0A 80 17 00 00 00 00 00 00 42 [00:35:45]Write i2c OK [00:35:45]MH_I2C_Read... [00:35:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:45]Read from MH i2c: E2 [00:35:45]MH_I2C_Read... [00:35:45]Read from MH i2c: E2 FD 00 [00:35:45]MH_I2C_Read... [00:35:45]Read from MH i2c: E2 FD 00 B8 0A 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 14 [00:35:45]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:35:45]wFMCommunicate OK [00:35:45]wFMCommunicate request_size=4 [00:35:45]MH_SAM_APDU [00:35:45]CAPDU: 80 17 00 00 [00:35:45]Write to MH i2c: E2 08 00 B9 0A 80 17 00 00 00 00 00 00 43 [00:35:45]Write i2c OK [00:35:45]MH_I2C_Read... [00:35:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:45]Read from MH i2c: E2 [00:35:45]MH_I2C_Read... [00:35:45]OFD Sender: No OFD packet to send [00:35:45]Read from MH i2c: E2 FD 00 [00:35:45]MH_I2C_Read... [00:35:45]Read from MH i2c: E2 FD 00 B9 0A 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 B5 [00:35:46]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:35:46]wFMCommunicate OK [00:35:46]wFMCommunicate request_size=4 [00:35:46]MH_SAM_APDU [00:35:46]CAPDU: 80 17 00 00 [00:35:46]Write to MH i2c: E2 08 00 BA 0A 80 17 00 00 00 00 00 00 44 [00:35:46]Write i2c OK [00:35:46]MH_I2C_Read... [00:35:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:35:46]Read from MH i2c: E2 [00:35:46]MH_I2C_Read... [00:35:46]Read from MH i2c: E2 BD 00 [00:35:46]MH_I2C_Read... [00:35:46]Read from MH i2c: E2 BD 00 BA 0A 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 2A [00:35:46]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:35:46]wFMCommunicate OK [00:35:46]SAM_PROTO_GetShiftData done [00:35:46]requested_item shift.sale.total_cash is exist - process it [00:35:46]requested_item shift.sale_refund.total is exist - process it [00:35:46]requested_item shift.sale_refund.total_cash is exist - process it [00:35:46]requested_item shift.buy.total is exist - process it [00:35:46]requested_item shift.buy.total_cash is exist - process it [00:35:46]produce_requested_data done [00:35:46]produce_requested_data return {"fm.sale.total":78198225.25,"fm.sale_refund.total":660759.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:35:46]process_action_free get_value [00:35:46]json_value_free [00:35:46]json_value_free done [00:35:46]process_json_proto returns [00:35:46]Send response to host [00:35:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":78198225.25,"fm.sale_refund.total":660759.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:35:46]free response buf [00:35:46]execute_script done [00:35:46]execute_script returns [00:35:46]free content buf [00:35:46]Sock 9.Close socket [00:35:46]Sock 9.Thread stoped [00:35:50]OFD Sender: No OFD packet to send [00:35:56]OFD Sender: No OFD packet to send [00:36:01]OFD Sender: No OFD packet to send [00:36:06]OFD Sender: No OFD packet to send [00:36:11]OFD Sender: No OFD packet to send [00:36:16]OFD Sender: No OFD packet to send [00:36:21]OFD Sender: No OFD packet to send [00:36:26]OFD Sender: No OFD packet to send [00:36:31]OFD Sender: No OFD packet to send [00:36:36]OFD Sender: No OFD packet to send [00:36:41]OFD Sender: No OFD packet to send [00:36:46]OFD Sender: No OFD packet to send [00:36:51]OFD Sender: No OFD packet to send [00:36:56]OFD Sender: No OFD packet to send [00:37:01]OFD Sender: No OFD packet to send [00:37:06]OFD Sender: No OFD packet to send [00:37:11]OFD Sender: No OFD packet to send [00:37:16]OFD Sender: No OFD packet to send [00:37:21]OFD Sender: No OFD packet to send [00:37:26]OFD Sender: No OFD packet to send [00:37:31]OFD Sender: No OFD packet to send [00:37:36]OFD Sender: No OFD packet to send [00:37:41]OFD Sender: No OFD packet to send [00:37:46]OFD Sender: No OFD packet to send [00:37:51]OFD Sender: No OFD packet to send [00:37:56]OFD Sender: No OFD packet to send [00:38:01]OFD Sender: No OFD packet to send [00:38:06]OFD Sender: No OFD packet to send [00:38:11]OFD Sender: No OFD packet to send [00:38:16]OFD Sender: No OFD packet to send [00:38:21]OFD Sender: No OFD packet to send [00:38:26]OFD Sender: No OFD packet to send [00:38:31]OFD Sender: No OFD packet to send [00:38:36]OFD Sender: No OFD packet to send [00:38:41]OFD Sender: No OFD packet to send [00:38:46]OFD Sender: No OFD packet to send [00:38:51]OFD Sender: No OFD packet to send [00:38:56]OFD Sender: No OFD packet to send [00:39:01]OFD Sender: No OFD packet to send [00:39:06]OFD Sender: No OFD packet to send [00:39:11]OFD Sender: No OFD packet to send [00:39:16]OFD Sender: No OFD packet to send [00:39:21]OFD Sender: No OFD packet to send [00:39:26]OFD Sender: No OFD packet to send [00:39:31]OFD Sender: No OFD packet to send [00:39:36]OFD Sender: No OFD packet to send [00:39:41]OFD Sender: No OFD packet to send [00:39:46]OFD Sender: No OFD packet to send [00:39:51]OFD Sender: No OFD packet to send [00:39:56]OFD Sender: No OFD packet to send [00:40:01]OFD Sender: No OFD packet to send [00:40:06]OFD Sender: No OFD packet to send [00:40:11]OFD Sender: No OFD packet to send [00:40:16]OFD Sender: No OFD packet to send [00:40:21]OFD Sender: No OFD packet to send [00:40:26]OFD Sender: No OFD packet to send [00:40:31]OFD Sender: No OFD packet to send [00:40:36]OFD Sender: No OFD packet to send [00:40:41]OFD Sender: No OFD packet to send [00:40:46]OFD Sender: No OFD packet to send [00:40:51]OFD Sender: No OFD packet to send [00:40:56]OFD Sender: No OFD packet to send [00:41:01]OFD Sender: No OFD packet to send [00:41:06]OFD Sender: No OFD packet to send [00:41:11]OFD Sender: No OFD packet to send [00:41:16]OFD Sender: No OFD packet to send [00:41:21]OFD Sender: No OFD packet to send [00:41:26]OFD Sender: No OFD packet to send [00:41:31]OFD Sender: No OFD packet to send [00:41:36]OFD Sender: No OFD packet to send [00:41:41]OFD Sender: No OFD packet to send [00:41:46]OFD Sender: No OFD packet to send [00:41:51]OFD Sender: No OFD packet to send [00:41:56]OFD Sender: No OFD packet to send [00:42:01]OFD Sender: No OFD packet to send [00:42:06]OFD Sender: No OFD packet to send [00:42:11]OFD Sender: No OFD packet to send [00:42:16]OFD Sender: No OFD packet to send [00:42:21]OFD Sender: No OFD packet to send [00:42:26]OFD Sender: No OFD packet to send [00:42:31]OFD Sender: No OFD packet to send [00:42:36]OFD Sender: No OFD packet to send [00:42:41]OFD Sender: No OFD packet to send [00:42:46]OFD Sender: No OFD packet to send [00:42:51]OFD Sender: No OFD packet to send [00:42:56]OFD Sender: No OFD packet to send [00:43:01]OFD Sender: No OFD packet to send [00:43:06]OFD Sender: No OFD packet to send [00:43:11]OFD Sender: No OFD packet to send [00:43:16]OFD Sender: No OFD packet to send [00:43:21]OFD Sender: No OFD packet to send [00:43:26]OFD Sender: No OFD packet to send [00:43:31]OFD Sender: No OFD packet to send [00:43:36]OFD Sender: No OFD packet to send [00:43:41]OFD Sender: No OFD packet to send [00:43:46]OFD Sender: No OFD packet to send [00:43:51]OFD Sender: No OFD packet to send [00:43:56]OFD Sender: No OFD packet to send [00:44:01]OFD Sender: No OFD packet to send [00:44:06]OFD Sender: No OFD packet to send [00:44:11]OFD Sender: No OFD packet to send [00:44:16]OFD Sender: No OFD packet to send [00:44:21]OFD Sender: No OFD packet to send [00:44:26]OFD Sender: No OFD packet to send [00:44:31]OFD Sender: No OFD packet to send [00:44:36]OFD Sender: No OFD packet to send [00:44:41]OFD Sender: No OFD packet to send [00:44:46]OFD Sender: No OFD packet to send [00:44:51]OFD Sender: No OFD packet to send [00:44:56]OFD Sender: No OFD packet to send [00:45:01]OFD Sender: No OFD packet to send [00:45:06]OFD Sender: No OFD packet to send [00:45:11]OFD Sender: No OFD packet to send [00:45:16]OFD Sender: No OFD packet to send [00:45:21]OFD Sender: No OFD packet to send [00:45:26]OFD Sender: No OFD packet to send [00:45:31]OFD Sender: No OFD packet to send [00:45:36]OFD Sender: No OFD packet to send [00:45:41]OFD Sender: No OFD packet to send [00:45:46]OFD Sender: No OFD packet to send [00:45:51]OFD Sender: No OFD packet to send [00:45:56]OFD Sender: No OFD packet to send [00:46:01]OFD Sender: No OFD packet to send [00:46:06]OFD Sender: No OFD packet to send [00:46:11]OFD Sender: No OFD packet to send [00:46:16]OFD Sender: No OFD packet to send [00:46:21]OFD Sender: No OFD packet to send [00:46:26]OFD Sender: No OFD packet to send [00:46:31]OFD Sender: No OFD packet to send [00:46:36]OFD Sender: No OFD packet to send [00:46:41]OFD Sender: No OFD packet to send [00:46:46]OFD Sender: No OFD packet to send [00:46:51]OFD Sender: No OFD packet to send [00:46:56]OFD Sender: No OFD packet to send [00:47:01]OFD Sender: No OFD packet to send [00:47:06]OFD Sender: No OFD packet to send [00:47:11]OFD Sender: No OFD packet to send [00:47:16]OFD Sender: No OFD packet to send [00:47:21]OFD Sender: No OFD packet to send [00:47:26]OFD Sender: No OFD packet to send [00:47:31]OFD Sender: No OFD packet to send [00:47:36]OFD Sender: No OFD packet to send [00:47:41]OFD Sender: No OFD packet to send [00:47:46]OFD Sender: No OFD packet to send [00:47:51]OFD Sender: No OFD packet to send [00:47:56]OFD Sender: No OFD packet to send [00:48:01]OFD Sender: No OFD packet to send [00:48:06]OFD Sender: No OFD packet to send [00:48:11]OFD Sender: No OFD packet to send [00:48:16]OFD Sender: No OFD packet to send [00:48:21]OFD Sender: No OFD packet to send [00:48:26]OFD Sender: No OFD packet to send [00:48:31]OFD Sender: No OFD packet to send [00:48:36]OFD Sender: No OFD packet to send [00:48:41]accept exits with 8 [00:48:41]New connection [00:48:41]New thread 3067432292 created [00:48:41]Thread 3067288932 joined [00:48:41]Waiting for new connection... [00:48:41] Sock 8.Parse request [00:48:41]Sock 8.Check first char [00:48:41]Sock 8.First char is OK [00:48:41]request: POST /json_proto HTTP/1.0 [00:48:41]Method: POST [00:48:41]URL: /json_proto [00:48:41]Method is POST - this is cgi request [00:48:41]url: /json_proto [00:48:41]query_string will be loaded in cgi processing [00:48:41]execute_cgi json_proto POST (null) [00:48:41]execute_cgi path=json_proto method=POST [00:48:41]POST find Content-Length [00:48:41]Host: 172.17.38.4:8080 [00:48:41]Content-Length: 678 [00:48:41]Content-Type: application/json [00:48:41] [00:48:41]POST finish read [00:48:41]Found Content-Length = 678 [00:48:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:48:41]execute_script... [00: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 : (1)979172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:48:41]POST & json_proto [00:48:41]process_json_proto [00:48:41]json parsed OK: [00:48:41]protocol is kg_v1.0 [00:48:41]action value=close_receipt [00:48:41]process_action close_receipt [00:48:41]cmd_close_receipt [00:48:41]MH_GetDate [00:48:41]Write to MH i2c: F0 00 00 BB 0A B4 [00:48:41]Write i2c OK [00:48:41]MH_I2C_Read... [00:48:41]Read from MH i2c: F0 [00:48:41]MH_I2C_Read... [00:48:41]Read from MH i2c: F0 09 00 [00:48:41]MH_I2C_Read... [00:48:41]Read from MH i2c: F0 09 00 BB 0A 00 E9 12 5D 66 CC 51 87 64 83 [00:48:41]GetLastDocTimeStamp 1717374936 [00:48:41]current date 1717375721 [00:48:41]FM_GetShiftState [00:48:41]SAM_PROTO_GetShiftState [00:48:41]wFMCommunicate request_size=4 [00:48:41]MH_SAM_APDU [00:48:41]CAPDU: 80 13 01 00 [00:48:41]Write to MH i2c: E2 08 00 BC 0A 80 13 01 00 00 00 00 00 43 [00:48:41]Write i2c OK [00:48:41]MH_I2C_Read... [00:48:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:41]Read from MH i2c: E2 [00:48:41]MH_I2C_Read... [00:48:41]Read from MH i2c: E2 0E 00 [00:48:41]MH_I2C_Read... [00:48:41]Read from MH i2c: E2 0E 00 BC 0A 00 09 00 01 D8 0F 5D 66 00 00 00 00 90 00 F9 [00:48:41]RAPDU: 09 00 01 D8 0F 5D 66 00 00 00 00 90 00 [00:48:41]wFMCommunicate OK [00:48:41]SAM_PROTO_GetShiftState done [00:48:41]FM_GetShiftState done [00:48:41]opened in 1717374936 [00:48:41]opened+sec_in_day 1717461336 [00:48:41]quantity*price = 80012 [00:48:41]sum+1 = 80013 [00:48:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 1 03.06.2024 00:48 Смена: 367 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148239 ФПД: 142253685031761 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T004841&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148239&fm=142253685031761&tin=02508201610067®Number=0000000000092720&sum=80000 [00:48:42]StoreToDocumentArchive [00:48:42]shift 367 fd 148239 [00:48:42]save to /storage/0367/doc_00148239 [00:48:42]save last doc name /storage/0367/doc_00148239 to /storage/kkm_last_doc_name [00:48:42]save OK [00:48:42]Clear old archive folders... [00:48:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:48:42]tlvbuf is 0123A670 [00:48:42]SAM_PROTO_ClearQueue [00:48:42]wFMCommunicate request_size=4 [00:48:42]MH_SAM_APDU [00:48:42]CAPDU: 80 09 00 00 [00:48:42]Write to MH i2c: E2 08 00 C9 0A 80 09 00 00 00 00 00 00 45 [00:48:42]Write i2c OK [00:48:42]MH_I2C_Read... [00:48:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:48:42]Read from MH i2c: E2 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: E2 03 00 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: E2 03 00 C9 0A 00 90 00 47 [00:48:42]RAPDU: 90 00 [00:48:42]wFMCommunicate OK [00:48:42]SAM_PROTO_ClearQueue done [00:48:42]KKMCreateOFDPacket [00:48:42]OFDProtocolAddRootSTLVToBuf [00:48:42]FM_MakeSignedData [00:48:42]FM_MakeSignedData [00:48:42]SAM_PROTO_SignData [00:48:42]wFMCommunicate request_size=4 [00:48:42]MH_SAM_APDU [00:48:42]CAPDU: 80 0D 01 02 [00:48:42]Write to MH i2c: E2 08 00 CA 0A 80 0D 01 02 00 00 00 00 4D [00:48:42]Write i2c OK [00:48:42]MH_I2C_Read... [00:48:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:48:42]Read from MH i2c: E2 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: E2 03 00 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: E2 03 00 CA 0A 00 90 00 48 [00:48:42]RAPDU: 90 00 [00:48:42]wFMCommunicate OK [00:48:42]wFMCommunicate request_size=255 [00:48:42]MH_SAM_APDU [00:48:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 E9 12 5D 66 0E 04 04 00 6F 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0F 43 02 00 35 04 06 00 81 [00:48:42]Write to MH i2c: E2 02 01 CB 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 E9 12 5D 66 0E 04 04 00 6F 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0F 43 02 00 35 04 06 00 81 00 00 C7 [00:48:42]Write i2c OK [00:48:42]MH_I2C_Read... [00:48:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:42]Read from MH i2c: E2 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: E2 03 00 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: E2 03 00 CB 0A 00 90 00 49 [00:48:42]RAPDU: 90 00 [00:48:42]wFMCommunicate OK [00:48:42]wFMCommunicate request_size=10 [00:48:42]MH_SAM_APDU [00:48:42]CAPDU: 80 0D 02 02 05 61 04 5D 43 51 [00:48:42]Write to MH i2c: E2 0D 00 CC 0A 80 0D 02 02 05 00 61 04 5D 43 51 00 00 B0 [00:48:42]Write i2c OK [00:48:42]MH_I2C_Read... [00:48:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:42]Read from MH i2c: E2 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: E2 03 00 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: E2 03 00 CC 0A 00 90 00 4A [00:48:42]RAPDU: 90 00 [00:48:42]wFMCommunicate OK [00:48:42]wFMCommunicate request_size=4 [00:48:42]MH_SAM_APDU [00:48:42]CAPDU: 80 0D 03 02 [00:48:42]Write to MH i2c: E2 08 00 CD 0A 80 0D 03 02 00 00 00 00 52 [00:48:42]Write i2c OK [00:48:42]MH_I2C_Read... [00:48:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:48:42]Read from MH i2c: E2 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: E2 0B 00 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: E2 0B 00 CD 0A 00 D8 47 A6 6E EC E9 C8 D2 90 00 F5 [00:48:42]RAPDU: D8 47 A6 6E EC E9 C8 D2 90 00 [00:48:42]wFMCommunicate OK [00:48:42]SAM_PROTO_SignData done [00:48:42]FM_MakeSignedData done [00:48:42]CreateOFDProtocolMessage [00:48:42]wFMCommunicate request_size=4 [00:48:42]MH_SAM_APDU [00:48:42]CAPDU: 80 11 00 00 [00:48:42]Write to MH i2c: E2 08 00 CE 0A 80 11 00 00 00 00 00 00 52 [00:48:42]Write i2c OK [00:48:42]MH_I2C_Read... [00:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:42]Read from MH i2c: E2 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: E2 17 00 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: E2 17 00 CE 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 A5 [00:48:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:48:42]wFMCommunicate OK [00:48:42]CreateOFDProtocolMessage done [00:48:42]OFDSenderStorePacket 148239 [00:48:42]StoreOFDPacket docnum=148239 [00:48:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 03 52 07 01 40 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 E9 12 5D 66 0E 04 04 00 6F 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0F 43 02 00 35 04 06 00 81 61 04 5D 43 51 D8 47 A6 6E EC E9 C8 D2 [00:48:42]CheckFolder [00:48:42]dirname=/storage/ofd_packets [00:48:42]CheckFolder done [00:48:42]ProducePacketName [00:48:42]name=ofd_packets/00148239 [00:48:42]NVStorageSaveData ofd_packets/00148239 [00:48:42]File name is /storage/ofd_packets/00148239 [00:48:42]Write 301 bytes [00:48:42]NVStorageSaveData done [00:48:42]OFDSenderStorePacket done [00:48:42]KKMCreateOFDPacket done [00:48:42]NVStorageSaveData kkm_last_timestamp [00:48:42]File name is /storage/kkm_last_timestamp [00:48:42]Write 4 bytes [00:48:42]NVStorageSaveData done [00:48:42]ExternCall_PrintAddStr [00:48:42]wPrintStart [00:48:42]Write to MH i2c: 01 00 00 CF 0A D9 [00:48:42]Write i2c OK [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: 01 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: 01 07 00 [00:48:42]MH_I2C_Read... [00:48:42]Read from MH i2c: 01 07 00 CF 0A 00 00 00 00 00 FF 0F EE [00:48:42]RasterBufferAndPrint [00:48:42]line Счет N : (1)979172 [00:48:42]line ИНН: 02508201610067 [00:48:42]line Контрольно-Кассовый Чек [00:48:42]line ПРОДАЖА [00:48:42]line ТРК (МРК, ГНК) : 41 [00:48:42]line Товар: 2710124130 [00:48:42]line Аи-92-К-5 [00:48:42]line 11.960 * 66.90 [00:48:42]line = 800.12 [00:48:42]line НДС 12% НСП 1% [00:48:42]line > о реализуемом товаре [00:48:42]line ОКРУГЛЕНИЕ: -0.12 [00:48:42]line ИТОГО: 800.00 [00:48:42]line Внесено: 800.00 [00:48:42]line СДАЧА: 0.00 [00:48:42]line НСП 1% : 7.08 [00:48:42]line НДС 12% : 84.97 [00:48:42]line Наличными: 800.00 [00:48:42]line Безнал.: 0.00 [00:48:42]line Место: АЗС № 68 "Партнер Нефть" [00:48:42]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [00:48:42]line СНО: Общий режим [00:48:42]line Чек 1 03.06.2024 00:48 [00:48:42]line Смена: 367 ФФД: 1.0 [00:48:42]line ЗНМ: 0300000035 [00:48:42]line РНМ: 0000000000092720 [00:48:42]line Версия ККМ: 001 [00:48:42]line ФМ: 0000000000875057 [00:48:42]line ФД: 148239 [00:48:42]line ФПД: 142253685031761 [00:48:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T004841&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148239&fm=142253685031761&tin=02508201610067®Number=0000000000092720&sum=80000 [00:48:43]OFD Sender: Processing packet 148239 [packets to send 99, broken 98] [00:48:43]ProducePacketName [00:48:43]name=ofd_packets/00148239 [00:48:43]OFD Sender: To server: pG, [00:48:43]CommunicateWithHost lk.salyk.kg:30040 [00:48:43]ConnectInit lk.salyk.kg [00:48:43]written 0, free lines is 4095 [00:48:43]Connected sock=10 [00: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 35 30 35 37 0F 01 00 00 03 52 07 01 40 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 E9 12 5D 66 0E 04 04 00 6F 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0F 43 02 00 35 04 06 00 81 61 04 5D 43 51 D8 47 A6 6E EC E9 C8 D2 [00:48:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 55 19 47 00 66 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 0F 43 02 00 F4 03 04 00 12 BA 5C 66 B6 04 01 00 00 15 2F BA 0F 14 9E 30 BD [00:48:43]CommunicateWithHost err = 0 [00:48:43]CheckOFDResponse [00:48:43]1017 (14) - 77093643461234 [00:48:43]1041 (16) - 0000000000875057 [00:48:43]1040 (4) - 148239 [00:48:43]1012 (4) - 02.06.2024 18:29 [00:48:43]1206 (1) - 0 [00:48:43]OFD Sender: Remove packet 148239 [00:48:43]ProducePacketName [00:48:43]name=ofd_packets/00148239 [00:48:43]NVStorageDeleteData [00:48:43]Write to MH i2c: 01 00 00 FA 0A 04 [00:48:43]Write i2c OK [00:48:43]MH_I2C_Read... [00:48:43]Read from MH i2c: 01 [00:48:43]MH_I2C_Read... [00:48:43]Read from MH i2c: 01 07 00 [00:48:43]MH_I2C_Read... [00:48:43]Read from MH i2c: 01 07 00 FA 0A 00 00 00 00 00 6C 0C 83 [00:48:43]RasterBufferAndPrint [00:48:43]line [00:48:43]line [00:48:43]line [00:48:43]line [00:48:43]line [00:48:43]written 0, free lines is 3182 [00:48:43]MH_Cut [00:48:43]Write to MH i2c: D1 01 00 01 0B 01 DE [00:48:43]Write i2c OK [00:48:43]MH_I2C_Read... [00:48:43]Read from MH i2c: D1 [00:48:43]MH_I2C_Read... [00:48:43]Read from MH i2c: D1 01 00 [00:48:43]MH_I2C_Read... [00:48:43]Read from MH i2c: D1 01 00 01 0B 00 DD [00:48:43]Write to MH i2c: 01 00 00 02 0B 0D [00:48:43]Write i2c OK [00:48:43]MH_I2C_Read... [00:48:44]OFD Sender: No OFD packet to send [00:48:45]*** Cut start [00:48:45]*** Partial cut [00:48:45]*** CUTSNS_PIN = 1 [00:48:45]*** CUTSNS_PIN = 0 [00:48:45]*** Brake cut motor [00:48:45]Read from MH i2c: 01 [00:48:45]MH_I2C_Read... [00:48:45]*** Stop cut motor [00:48:45]*** Cut end [00:48:45]Read from MH i2c: 01 07 00 [00:48:45]MH_I2C_Read... [00:48:45]Read from MH i2c: 01 07 00 02 0B 00 00 00 00 00 FF 0F 22 [00:48:45]process_action close_receipt done [00:48:45]requested_data is exist [00:48:45]produce_requested_data [00:48:45]requested_item fm.sn is exist - process it [00:48:45]wFMCommunicate request_size=4 [00:48:45]MH_SAM_APDU [00:48:45]CAPDU: 80 11 00 00 [00:48:45]Write to MH i2c: E2 08 00 03 0B 80 11 00 00 00 00 00 00 88 [00:48:45]Write i2c OK [00:48:45]MH_I2C_Read... [00:48:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:45]Read from MH i2c: E2 [00:48:45]MH_I2C_Read... [00:48:45]Read from MH i2c: E2 17 00 [00:48:45]MH_I2C_Read... [00:48:45]Read from MH i2c: E2 17 00 03 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 DB [00:48:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [00:48:45]wFMCommunicate OK [00:48:45]requested_item fd.num is exist - process it [00:48:45]SAM_PROTO_GetFieldsCounters [00:48:45]wFMCommunicate request_size=4 [00:48:45]MH_SAM_APDU [00:48:45]CAPDU: 80 13 00 00 [00:48:45]Write to MH i2c: E2 08 00 04 0B 80 13 00 00 00 00 00 00 8B [00:48:45]Write i2c OK [00:48:45]MH_I2C_Read... [00:48:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:48:45]Read from MH i2c: E2 [00:48:45]MH_I2C_Read... [00:48:45]Read from MH i2c: E2 62 00 [00:48:45]MH_I2C_Read... [00:48:45]Read from MH i2c: E2 62 00 04 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0F 43 02 00 0E 04 04 00 6F 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 6E [00: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 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 0F 43 02 00 0E 04 04 00 6F 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:48:45]wFMCommunicate OK [00:48:45]SAM_PROTO_GetFieldsCounters done [00:48:45]requested_item shift.num is exist - process it [00:48:45]requested_item shift.opened is exist - process it [00:48:45]req_shift_opened [00:48:45]FM_GetShiftState [00:48:45]SAM_PROTO_GetShiftState [00:48:45]wFMCommunicate request_size=4 [00:48:45]MH_SAM_APDU [00:48:45]CAPDU: 80 13 01 00 [00:48:45]Write to MH i2c: E2 08 00 05 0B 80 13 01 00 00 00 00 00 8D [00:48:45]Write i2c OK [00:48:45]MH_I2C_Read... [00:48:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:45]Read from MH i2c: E2 [00:48:45]MH_I2C_Read... [00:48:45]Read from MH i2c: E2 0E 00 [00:48:45]MH_I2C_Read... [00:48:45]Read from MH i2c: E2 0E 00 05 0B 00 09 00 01 D8 0F 5D 66 00 00 00 00 90 00 43 [00:48:45]RAPDU: 09 00 01 D8 0F 5D 66 00 00 00 00 90 00 [00:48:45]wFMCommunicate OK [00:48:45]SAM_PROTO_GetShiftState done [00:48:45]FM_GetShiftState done [00:48:45]req_shift_opened done [00:48:45]requested_item shift.open_date is exist - process it [00:48:45]req_shift_open_date [00:48:45]req_shift_open_date done [00:48:45]produce_requested_data done [00:48:45]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148239,"shift.num":367,"shift.opened":1,"shift.open_date":1717374936} [00:48:45]process_action_free close_receipt [00:48:45]json_value_free [00:48:45]json_value_free done [00:48:45]process_json_proto returns [00:48:45]Send response to host [00:48:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148239,"shift.num":367,"shift.opened":1,"shift.open_date":1717374936}}} [00:48:45]free response buf [00:48:45]execute_script done [00:48:45]execute_script returns [00:48:45]free content buf [00:48:45]Sock 8.Close socket [00:48:45]Sock 8.Thread stoped [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:44]OFD Sender: No OFD packet to send [00:51:49]OFD Sender: No OFD packet to send [00:51:54]OFD Sender: No OFD packet to send [00:51:59]OFD Sender: No OFD packet to send [00:52:04]OFD Sender: No OFD packet to send [00:52:09]OFD Sender: No OFD packet to send [00:52:14]OFD Sender: No OFD packet to send [00:52:19]OFD Sender: No OFD packet to send [00:52:24]OFD Sender: No OFD packet to send [00:52:29]OFD Sender: No OFD packet to send [00:52:34]OFD Sender: No OFD packet to send [00:52:39]OFD Sender: No OFD packet to send [00:52:44]OFD Sender: No OFD packet to send [00:52:49]OFD Sender: No OFD packet to send [00:52:54]OFD Sender: No OFD packet to send [00:52:59]OFD Sender: No OFD packet to send [00:53:04]OFD Sender: No OFD packet to send [00:53:09]OFD Sender: No OFD packet to send [00:53:14]OFD Sender: No OFD packet to send [00:53:19]OFD Sender: No OFD packet to send [00:53:24]OFD Sender: No OFD packet to send [00:53:29]OFD Sender: No OFD packet to send [00:53:34]OFD Sender: No OFD packet to send [00:53:39]OFD Sender: No OFD packet to send [00:53:44]OFD Sender: No OFD packet to send [00:53:49]OFD Sender: No OFD packet to send [00:53:54]OFD Sender: No OFD packet to send [00:53:59]OFD Sender: No OFD packet to send [00:54:04]OFD Sender: No OFD packet to send [00:54:09]OFD Sender: No OFD packet to send [00:54:14]OFD Sender: No OFD packet to send [00:54:19]OFD Sender: No OFD packet to send [00:54:24]OFD Sender: No OFD packet to send [00:54:29]OFD Sender: No OFD packet to send [00:54:34]OFD Sender: No OFD packet to send [00:54:39]OFD Sender: No OFD packet to send [00:54:44]OFD Sender: No OFD packet to send [00:54:49]OFD Sender: No OFD packet to send [00:54:54]OFD Sender: No OFD packet to send [00:54:59]OFD Sender: No OFD packet to send [00:55:04]OFD Sender: No OFD packet to send [00:55:09]OFD Sender: No OFD packet to send [00:55:14]OFD Sender: No OFD packet to send [00:55:19]OFD Sender: No OFD packet to send [00:55:24]OFD Sender: No OFD packet to send [00:55:29]OFD Sender: No OFD packet to send [00:55:34]OFD Sender: No OFD packet to send [00:55:39]OFD Sender: No OFD packet to send [00:55:44]OFD Sender: No OFD packet to send [00:55:49]OFD Sender: No OFD packet to send [00:55:54]OFD Sender: No OFD packet to send [00:55:59]OFD Sender: No OFD packet to send [00:56:04]OFD Sender: No OFD packet to send [00:56:09]OFD Sender: No OFD packet to send [00:56:14]OFD Sender: No OFD packet to send [00:56:19]OFD Sender: No OFD packet to send [00:56:24]OFD Sender: No OFD packet to send [00:56:29]OFD Sender: No OFD packet to send [00:56:34]OFD Sender: No OFD packet to send [00:56:39]OFD Sender: No OFD packet to send [00:56:44]OFD Sender: No OFD packet to send [00:56:49]OFD Sender: No OFD packet to send [00:56:54]OFD Sender: No OFD packet to send [00:56:59]OFD Sender: No OFD packet to send [00:57:04]OFD Sender: No OFD packet to send [00:57:09]OFD Sender: No OFD packet to send [00:57:14]OFD Sender: No OFD packet to send [00:57:19]OFD Sender: No OFD packet to send [00:57:24]OFD Sender: No OFD packet to send [00:57:29]OFD Sender: No OFD packet to send [00:57:34]OFD Sender: No OFD packet to send [00:57:39]OFD Sender: No OFD packet to send [00:57:44]OFD Sender: No OFD packet to send [00:57:49]OFD Sender: No OFD packet to send [00:57:54]OFD Sender: No OFD packet to send [00:57:59]OFD Sender: No OFD packet to send [00:58:04]OFD Sender: No OFD packet to send [00:58:09]OFD Sender: No OFD packet to send [00:58:14]OFD Sender: No OFD packet to send [00:58:19]OFD Sender: No OFD packet to send [00:58:24]OFD Sender: No OFD packet to send [00:58:29]OFD Sender: No OFD packet to send [00:58:34]OFD Sender: No OFD packet to send [00:58:39]OFD Sender: No OFD packet to send [00:58:44]OFD Sender: No OFD packet to send [00:58:49]OFD Sender: No OFD packet to send [00:58:54]OFD Sender: No OFD packet to send [00:58:59]OFD Sender: No OFD packet to send [00:59:04]OFD Sender: No OFD packet to send [00:59:09]OFD Sender: No OFD packet to send [00:59:14]OFD Sender: No OFD packet to send [00:59:19]OFD Sender: No OFD packet to send [00:59:24]OFD Sender: No OFD packet to send [00:59:29]OFD Sender: No OFD packet to send [00:59:34]OFD Sender: No OFD packet to send [00:59:39]OFD Sender: No OFD packet to send [00:59:44]OFD Sender: No OFD packet to send [00:59:49]OFD Sender: No OFD packet to send [00:59:54]OFD Sender: No OFD packet to send [00:59:59]OFD Sender: No OFD packet to send [01:00:04]OFD Sender: No OFD packet to send [01:00:09]OFD Sender: No OFD packet to send [01:00:14]OFD Sender: No OFD packet to send [01:00:19]OFD Sender: No OFD packet to send [01:00:24]OFD Sender: No OFD packet to send [01:00:29]OFD Sender: No OFD packet to send [01:00:34]OFD Sender: No OFD packet to send [01:00:39]OFD Sender: No OFD packet to send [01:00:44]OFD Sender: No OFD packet to send [01:00:49]OFD Sender: No OFD packet to send [01:00:54]OFD Sender: No OFD packet to send [01:00:59]OFD Sender: No OFD packet to send [01:01:04]OFD Sender: No OFD packet to send [01:01:09]OFD Sender: No OFD packet to send [01:01:14]OFD Sender: No OFD packet to send [01:01:19]OFD Sender: No OFD packet to send [01:01:24]OFD Sender: No OFD packet to send [01:01:29]OFD Sender: No OFD packet to send [01:01:34]OFD Sender: No OFD packet to send [01:01:39]OFD Sender: No OFD packet to send [01:01:44]OFD Sender: No OFD packet to send [01:01:49]OFD Sender: No OFD packet to send [01:01:54]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:02:55]accept exits with 9 [01:02:55]New connection [01:02:55]New thread 3067288932 created [01:02:55]Thread 3067432292 joined [01:02:55]Waiting for new connection... [01:02:55] Sock 9.Parse request [01:02:55]Sock 9.Check first char [01:02:55]Sock 9.First char is OK [01:02:55]request: POST /json_proto HTTP/1.0 [01:02:55]Method: POST [01:02:55]URL: /json_proto [01:02:55]Method is POST - this is cgi request [01:02:55]url: /json_proto [01:02:55]query_string will be loaded in cgi processing [01:02:55]execute_cgi json_proto POST (null) [01:02:55]execute_cgi path=json_proto method=POST [01:02:55]POST find Content-Length [01:02:55]Host: 172.17.38.4:8080 [01:02:55]Content-Length: 679 [01:02:55]Content-Type: application/json [01:02:55] [01:02:55]POST finish read [01:02:55]Found Content-Length = 679 [01:02:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:02:55]execute_script... [01:02:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:02:55]POST & json_proto [01:02:55]process_json_proto [01:02:55]json parsed OK: [01:02:55]protocol is kg_v1.0 [01:02:55]action value=close_receipt [01:02:55]process_action close_receipt [01:02:55]cmd_close_receipt [01:02:55]MH_GetDate [01:02:55]Write to MH i2c: F0 00 00 06 0B 00 [01:02:55]Write i2c OK [01:02:55]MH_I2C_Read... [01:02:55]Read from MH i2c: F0 [01:02:55]MH_I2C_Read... [01:02:55]Read from MH i2c: F0 09 00 [01:02:55]MH_I2C_Read... [01:02:55]Read from MH i2c: F0 09 00 06 0B 00 40 16 5D 66 CC 51 87 64 2A [01:02:55]GetLastDocTimeStamp 1717375721 [01:02:55]current date 1717376576 [01:02:55]FM_GetShiftState [01:02:55]SAM_PROTO_GetShiftState [01:02:55]wFMCommunicate request_size=4 [01:02:55]MH_SAM_APDU [01:02:55]CAPDU: 80 13 01 00 [01:02:55]Write to MH i2c: E2 08 00 07 0B 80 13 01 00 00 00 00 00 8F [01:02:55]Write i2c OK [01:02:55]MH_I2C_Read... [01:02:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:02:55]Read from MH i2c: E2 [01:02:55]MH_I2C_Read... [01:02:55]Read from MH i2c: E2 0E 00 [01:02:55]MH_I2C_Read... [01:02:55]Read from MH i2c: E2 0E 00 07 0B 00 09 00 01 D8 0F 5D 66 00 00 00 00 90 00 45 [01:02:55]RAPDU: 09 00 01 D8 0F 5D 66 00 00 00 00 90 00 [01:02:55]wFMCommunicate OK [01:02:55]SAM_PROTO_GetShiftState done [01:02:55]FM_GetShiftState done [01:02:55]opened in 1717374936 [01:02:55]opened+sec_in_day 1717461336 [01:02:55]quantity*price = 100018 [01:02:55]sum+1 = 100020 [01:02:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 2 03.06.2024 01:02 Смена: 367 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148240 ФПД: 204835857285495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T010256&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148240&fm=204835857285495&tin=02508201610067®Number=0000000000092720&sum=100000 [01:02:57]StoreToDocumentArchive [01:02:57]shift 367 fd 148240 [01:02:57]save to /storage/0367/doc_00148240 [01:02:57]save last doc name /storage/0367/doc_00148240 to /storage/kkm_last_doc_name [01:02:57]save OK [01:02:57]Clear old archive folders... [01:02:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [01:02:57]tlvbuf is 0123C1F0 [01:02:57]SAM_PROTO_ClearQueue [01:02:57]wFMCommunicate request_size=4 [01:02:57]MH_SAM_APDU [01:02:57]CAPDU: 80 09 00 00 [01:02:57]Write to MH i2c: E2 08 00 14 0B 80 09 00 00 00 00 00 00 91 [01:02:57]Write i2c OK [01:02:57]MH_I2C_Read... [01:02:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:02:57]Read from MH i2c: E2 [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: E2 03 00 [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: E2 03 00 14 0B 00 90 00 93 [01:02:57]RAPDU: 90 00 [01:02:57]wFMCommunicate OK [01:02:57]SAM_PROTO_ClearQueue done [01:02:57]KKMCreateOFDPacket [01:02:57]OFDProtocolAddRootSTLVToBuf [01:02:57]FM_MakeSignedData [01:02:57]FM_MakeSignedData [01:02:57]SAM_PROTO_SignData [01:02:57]wFMCommunicate request_size=4 [01:02:57]MH_SAM_APDU [01:02:57]CAPDU: 80 0D 01 02 [01:02:57]Write to MH i2c: E2 08 00 15 0B 80 0D 01 02 00 00 00 00 99 [01:02:57]Write i2c OK [01:02:57]MH_I2C_Read... [01:02:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:02:57]Read from MH i2c: E2 [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: E2 03 00 [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: E2 03 00 15 0B 00 90 00 94 [01:02:57]RAPDU: 90 00 [01:02:57]wFMCommunicate OK [01:02:57]wFMCommunicate request_size=255 [01:02:57]MH_SAM_APDU [01:02:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 40 16 5D 66 0E 04 04 00 6F 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 10 43 02 00 35 04 06 00 BA 4C 10 82 [01:02:57]Write to MH i2c: E2 02 01 16 0B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 40 16 5D 66 0E 04 04 00 6F 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 10 43 02 00 35 04 06 00 BA 4C 10 82 00 00 72 [01:02:57]Write i2c OK [01:02:57]MH_I2C_Read... [01:02:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:02:57]Read from MH i2c: E2 [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: E2 03 00 [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: E2 03 00 16 0B 00 90 00 95 [01:02:57]RAPDU: 90 00 [01:02:57]wFMCommunicate OK [01:02:57]wFMCommunicate request_size=7 [01:02:57]MH_SAM_APDU [01:02:57]CAPDU: 80 0D 02 02 02 C1 77 [01:02:57]Write to MH i2c: E2 0A 00 17 0B 80 0D 02 02 02 00 C1 77 00 00 D8 [01:02:57]Write i2c OK [01:02:57]MH_I2C_Read... [01:02:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:02:57]Read from MH i2c: E2 [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: E2 03 00 [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: E2 03 00 17 0B 00 90 00 96 [01:02:57]RAPDU: 90 00 [01:02:57]wFMCommunicate OK [01:02:57]wFMCommunicate request_size=4 [01:02:57]MH_SAM_APDU [01:02:57]CAPDU: 80 0D 03 02 [01:02:57]Write to MH i2c: E2 08 00 18 0B 80 0D 03 02 00 00 00 00 9E [01:02:57]Write i2c OK [01:02:57]MH_I2C_Read... [01:02:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:02:57]Read from MH i2c: E2 [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: E2 0B 00 [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: E2 0B 00 18 0B 00 DA 41 E2 8C 86 86 A9 41 90 00 1E [01:02:57]RAPDU: DA 41 E2 8C 86 86 A9 41 90 00 [01:02:57]wFMCommunicate OK [01:02:57]SAM_PROTO_SignData done [01:02:57]FM_MakeSignedData done [01:02:57]CreateOFDProtocolMessage [01:02:57]wFMCommunicate request_size=4 [01:02:57]MH_SAM_APDU [01:02:57]CAPDU: 80 11 00 00 [01:02:57]Write to MH i2c: E2 08 00 19 0B 80 11 00 00 00 00 00 00 9E [01:02:57]Write i2c OK [01:02:57]MH_I2C_Read... [01:02:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:02:57]Read from MH i2c: E2 [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: E2 17 00 [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: E2 17 00 19 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 F1 [01:02:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [01:02:57]wFMCommunicate OK [01:02:57]CreateOFDProtocolMessage done [01:02:57]OFDSenderStorePacket 148240 [01:02:57]StoreOFDPacket docnum=148240 [01:02:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 FD 3A 04 01 AB 61 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 40 16 5D 66 0E 04 04 00 6F 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 10 43 02 00 35 04 06 00 BA 4C 10 82 C1 77 DA 41 E2 8C 86 86 A9 41 [01:02:57]CheckFolder [01:02:57]dirname=/storage/ofd_packets [01:02:57]CheckFolder done [01:02:57]ProducePacketName [01:02:57]name=ofd_packets/00148240 [01:02:57]NVStorageSaveData ofd_packets/00148240 [01:02:57]File name is /storage/ofd_packets/00148240 [01:02:57]Write 298 bytes [01:02:57]NVStorageSaveData done [01:02:57]OFDSenderStorePacket done [01:02:57]KKMCreateOFDPacket done [01:02:57]NVStorageSaveData kkm_last_timestamp [01:02:57]File name is /storage/kkm_last_timestamp [01:02:57]Write 4 bytes [01:02:57]NVStorageSaveData done [01:02:57]ExternCall_PrintAddStr [01:02:57]wPrintStart [01:02:57]Write to MH i2c: 01 00 00 1A 0B 25 [01:02:57]Write i2c OK [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: 01 [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: 01 07 00 [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: 01 07 00 1A 0B 00 00 00 00 00 FF 0F 3A [01:02:57]RasterBufferAndPrint [01:02:57]line Счет N : (1)979173 [01:02:57]line ИНН: 02508201610067 [01:02:57]line Контрольно-Кассовый Чек [01:02:57]line ПРОДАЖА [01:02:57]line ТРК (МРК, ГНК) : 11 [01:02:57]line Товар: 2710194210 [01:02:57]line ДТ-К-5 [01:02:57]line 13.720 * 72.90 [01:02:57]line = 1000.19 [01:02:57]line НДС 12% НСП 1% [01:02:57]line > о реализуемом товаре [01:02:57]line ОКРУГЛЕНИЕ: -0.19 [01:02:57]line ИТОГО: 1000.00 [01:02:57]line Внесено: 1000.00 [01:02:57]line СДАЧА: 0.00 [01:02:57]line НСП 1% : 8.85 [01:02:57]line НДС 12% : 106.21 [01:02:57]line Наличными: 1000.00 [01:02:57]line Безнал.: 0.00 [01:02:57]line Место: АЗС № 68 "Партнер Нефть" [01:02:57]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [01:02:57]line СНО: Общий режим [01:02:57]line Чек 2 03.06.2024 01:02 [01:02:57]line Смена: 367 ФФД: 1.0 [01:02:57]line ЗНМ: 0300000035 [01:02:57]line РНМ: 0000000000092720 [01:02:57]line Версия ККМ: 001 [01:02:57]line ФМ: 0000000000875057 [01:02:57]line ФД: 148240 [01:02:57]line ФПД: 204835857285495 [01:02:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T010256&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148240&fm=204835857285495&tin=02508201610067®Number=0000000000092720&sum=100000 [01:02:57]OFD Sender: Processing packet 148240 [packets to send 99, broken 98] [01:02:57]ProducePacketName [01:02:57]name=ofd_packets/00148240 [01:02:57]OFD Sender: To server: pG, [01:02:57]CommunicateWithHost lk.salyk.kg:30040 [01:02:57]ConnectInit lk.salyk.kg [01:02:57]written 0, free lines is 4095 [01:02:58]Connected sock=10 [01:02:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0C 01 00 00 FD 3A 04 01 AB 61 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 40 16 5D 66 0E 04 04 00 6F 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 10 43 02 00 35 04 06 00 BA 4C 10 82 C1 77 DA 41 E2 8C 86 86 A9 41 [01:02:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 F1 99 47 00 2C FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 10 43 02 00 F4 03 04 00 69 BD 5C 66 B6 04 01 00 00 90 80 C6 E3 BF 67 83 6A [01:02:58]CommunicateWithHost err = 0 [01:02:58]CheckOFDResponse [01:02:58]1017 (14) - 77093643461234 [01:02:58]1041 (16) - 0000000000875057 [01:02:58]1040 (4) - 148240 [01:02:58]1012 (4) - 02.06.2024 18:43 [01:02:58]1206 (1) - 0 [01:02:58]OFD Sender: Remove packet 148240 [01:02:58]ProducePacketName [01:02:58]name=ofd_packets/00148240 [01:02:58]NVStorageDeleteData [01:02:58]Write to MH i2c: 01 00 00 45 0B 50 [01:02:58]Write i2c OK [01:02:58]MH_I2C_Read... [01:02:58]Read from MH i2c: 01 [01:02:58]MH_I2C_Read... [01:02:58]Read from MH i2c: 01 07 00 [01:02:58]MH_I2C_Read... [01:02:58]Read from MH i2c: 01 07 00 45 0B 00 00 00 00 00 5E 0C C1 [01:02:58]RasterBufferAndPrint [01:02:58]line [01:02:58]line [01:02:58]line [01:02:58]line [01:02:58]line [01:02:58]written 0, free lines is 3169 [01:02:58]MH_Cut [01:02:58]Write to MH i2c: D1 01 00 4C 0B 01 29 [01:02:58]Write i2c OK [01:02:58]MH_I2C_Read... [01:02:58]Read from MH i2c: D1 [01:02:58]MH_I2C_Read... [01:02:58]Read from MH i2c: D1 01 00 [01:02:58]MH_I2C_Read... [01:02:58]Read from MH i2c: D1 01 00 4C 0B 00 28 [01:02:58]Write to MH i2c: 01 00 00 4D 0B 58 [01:02:58]Write i2c OK [01:02:58]MH_I2C_Read... [01:02:58]OFD Sender: No OFD packet to send [01:02:59]*** Cut start [01:02:59]*** Partial cut [01:02:59]*** CUTSNS_PIN = 1 [01:02:59]*** CUTSNS_PIN = 0 [01:02:59]*** Brake cut motor [01:03:00]Read from MH i2c: 01 [01:03:00]MH_I2C_Read... [01:03:00]*** Stop cut motor [01:03:00]*** Cut end [01:03:00]Read from MH i2c: 01 07 00 [01:03:00]MH_I2C_Read... [01:03:00]Read from MH i2c: 01 07 00 4D 0B 00 00 00 00 00 FF 0F 6D [01:03:00]process_action close_receipt done [01:03:00]requested_data is exist [01:03:00]produce_requested_data [01:03:00]requested_item fm.sn is exist - process it [01:03:00]wFMCommunicate request_size=4 [01:03:00]MH_SAM_APDU [01:03:00]CAPDU: 80 11 00 00 [01:03:00]Write to MH i2c: E2 08 00 4E 0B 80 11 00 00 00 00 00 00 D3 [01:03:00]Write i2c OK [01:03:00]MH_I2C_Read... [01:03:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:03:00]Read from MH i2c: E2 [01:03:00]MH_I2C_Read... [01:03:00]Read from MH i2c: E2 17 00 [01:03:00]MH_I2C_Read... [01:03:00]Read from MH i2c: E2 17 00 4E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 26 [01:03:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [01:03:00]wFMCommunicate OK [01:03:00]requested_item fd.num is exist - process it [01:03:00]SAM_PROTO_GetFieldsCounters [01:03:00]wFMCommunicate request_size=4 [01:03:00]MH_SAM_APDU [01:03:00]CAPDU: 80 13 00 00 [01:03:00]Write to MH i2c: E2 08 00 4F 0B 80 13 00 00 00 00 00 00 D6 [01:03:00]Write i2c OK [01:03:00]MH_I2C_Read... [01:03:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:03:00]Read from MH i2c: E2 [01:03:00]MH_I2C_Read... [01:03:00]Read from MH i2c: E2 62 00 [01:03:00]MH_I2C_Read... [01:03:00]Read from MH i2c: E2 62 00 4F 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 10 43 02 00 0E 04 04 00 6F 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 BD [01:03:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 10 43 02 00 0E 04 04 00 6F 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:03:00]wFMCommunicate OK [01:03:00]SAM_PROTO_GetFieldsCounters done [01:03:00]requested_item shift.num is exist - process it [01:03:00]requested_item shift.opened is exist - process it [01:03:00]req_shift_opened [01:03:00]FM_GetShiftState [01:03:00]SAM_PROTO_GetShiftState [01:03:00]wFMCommunicate request_size=4 [01:03:00]MH_SAM_APDU [01:03:00]CAPDU: 80 13 01 00 [01:03:00]Write to MH i2c: E2 08 00 50 0B 80 13 01 00 00 00 00 00 D8 [01:03:00]Write i2c OK [01:03:00]MH_I2C_Read... [01:03:00]Read from MH i2c: E2 [01:03:00]MH_I2C_Read... [01:03:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:03:00]Read from MH i2c: E2 0E 00 [01:03:00]MH_I2C_Read... [01:03:00]Read from MH i2c: E2 0E 00 50 0B 00 09 00 01 D8 0F 5D 66 00 00 00 00 90 00 8E [01:03:00]RAPDU: 09 00 01 D8 0F 5D 66 00 00 00 00 90 00 [01:03:00]wFMCommunicate OK [01:03:00]SAM_PROTO_GetShiftState done [01:03:00]FM_GetShiftState done [01:03:00]req_shift_opened done [01:03:00]requested_item shift.open_date is exist - process it [01:03:00]req_shift_open_date [01:03:00]req_shift_open_date done [01:03:00]produce_requested_data done [01:03:00]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148240,"shift.num":367,"shift.opened":1,"shift.open_date":1717374936} [01:03:00]process_action_free close_receipt [01:03:00]json_value_free [01:03:00]json_value_free done [01:03:00]process_json_proto returns [01:03:00]Send response to host [01:03:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148240,"shift.num":367,"shift.opened":1,"shift.open_date":1717374936}}} [01:03:00]free response buf [01:03:00]execute_script done [01:03:00]execute_script returns [01:03:00]free content buf [01:03:00]Sock 9.Close socket [01:03:00]Sock 9.Thread stoped [01:03:03]OFD Sender: No OFD packet to send [01:03:08]OFD Sender: No OFD packet to send [01:03:13]OFD Sender: No OFD packet to send [01:03:18]OFD Sender: No OFD packet to send [01:03:23]OFD Sender: No OFD packet to send [01:03:28]OFD Sender: No OFD packet to send [01:03:33]OFD Sender: No OFD packet to send [01:03:38]OFD Sender: No OFD packet to send [01:03:43]OFD Sender: No OFD packet to send [01:03:48]OFD Sender: No OFD packet to send [01:03:53]OFD Sender: No OFD packet to send [01:03:58]OFD Sender: No OFD packet to send [01:04:03]OFD Sender: No OFD packet to send [01:04:08]OFD Sender: No OFD packet to send [01:04:13]OFD Sender: No OFD packet to send [01:04:18]OFD Sender: No OFD packet to send [01:04:23]OFD Sender: No OFD packet to send [01:04:28]OFD Sender: No OFD packet to send [01:04:33]OFD Sender: No OFD packet to send [01:04:38]OFD Sender: No OFD packet to send [01:04:43]OFD Sender: No OFD packet to send [01:04:48]OFD Sender: No OFD packet to send [01:04:53]OFD Sender: No OFD packet to send [01:04:58]OFD Sender: No OFD packet to send [01:05:03]OFD Sender: No OFD packet to send [01:05:08]OFD Sender: No OFD packet to send [01:05:13]OFD Sender: No OFD packet to send [01:05:18]OFD Sender: No OFD packet to send [01:05:23]OFD Sender: No OFD packet to send [01:05:28]OFD Sender: No OFD packet to send [01:05:33]OFD Sender: No OFD packet to send [01:05:38]OFD Sender: No OFD packet to send [01:05:43]OFD Sender: No OFD packet to send [01:05:48]OFD Sender: No OFD packet to send [01:05:53]OFD Sender: No OFD packet to send [01:05:58]OFD Sender: No OFD packet to send [01:06:03]OFD Sender: No OFD packet to send [01:06:08]OFD Sender: No OFD packet to send [01:06:13]OFD Sender: No OFD packet to send [01:06:18]OFD Sender: No OFD packet to send [01:06:23]OFD Sender: No OFD packet to send [01:06:28]OFD Sender: No OFD packet to send [01:06:33]OFD Sender: No OFD packet to send [01:06:38]OFD Sender: No OFD packet to send [01:06:44]OFD Sender: No OFD packet to send [01:06:49]OFD Sender: No OFD packet to send [01:06:54]OFD Sender: No OFD packet to send [01:06:59]OFD Sender: No OFD packet to send [01:07:04]OFD Sender: No OFD packet to send [01:07:09]OFD Sender: No OFD packet to send [01:07:14]OFD Sender: No OFD packet to send [01:07:19]OFD Sender: No OFD packet to send [01:07:24]OFD Sender: No OFD packet to send [01:07:29]OFD Sender: No OFD packet to send [01:07:34]OFD Sender: No OFD packet to send [01:07:39]OFD Sender: No OFD packet to send [01:07:44]OFD Sender: No OFD packet to send [01:07:49]OFD Sender: No OFD packet to send [01:07:54]OFD Sender: No OFD packet to send [01:07:59]OFD Sender: No OFD packet to send [01:08:04]OFD Sender: No OFD packet to send [01:08:09]OFD Sender: No OFD packet to send [01:08:14]OFD Sender: No OFD packet to send [01:08:19]OFD Sender: No OFD packet to send [01:08:24]OFD Sender: No OFD packet to send [01:08:29]OFD Sender: No OFD packet to send [01:08:34]OFD Sender: No OFD packet to send [01:08:39]OFD Sender: No OFD packet to send [01:08:44]OFD Sender: No OFD packet to send [01:08:49]OFD Sender: No OFD packet to send [01:08:54]OFD Sender: No OFD packet to send [01:08:59]OFD Sender: No OFD packet to send [01:09:04]OFD Sender: No OFD packet to send [01:09:09]OFD Sender: No OFD packet to send [01:09:14]OFD Sender: No OFD packet to send [01:09:19]OFD Sender: No OFD packet to send [01:09:24]OFD Sender: No OFD packet to send [01:09:29]OFD Sender: No OFD packet to send [01:09:34]OFD Sender: No OFD packet to send [01:09:39]OFD Sender: No OFD packet to send [01:09:44]OFD Sender: No OFD packet to send [01:09:49]OFD Sender: No OFD packet to send [01:09:54]OFD Sender: No OFD packet to send [01:09:59]OFD Sender: No OFD packet to send [01:10:04]OFD Sender: No OFD packet to send [01:10:09]OFD Sender: No OFD packet to send [01:10:14]OFD Sender: No OFD packet to send [01:10:19]OFD Sender: No OFD packet to send [01:10:24]OFD Sender: No OFD packet to send [01:10:29]OFD Sender: No OFD packet to send [01:10:34]OFD Sender: No OFD packet to send [01:10:39]OFD Sender: No OFD packet to send [01:10:44]OFD Sender: No OFD packet to send [01:10:49]OFD Sender: No OFD packet to send [01:10:54]OFD Sender: No OFD packet to send [01:10:59]OFD Sender: No OFD packet to send [01:11:04]OFD Sender: No OFD packet to send [01:11:09]OFD Sender: No OFD packet to send [01:11:14]OFD Sender: No OFD packet to send [01:11:19]OFD Sender: No OFD packet to send [01:11:24]OFD Sender: No OFD packet to send [01:11:29]OFD Sender: No OFD packet to send [01:11:34]OFD Sender: No OFD packet to send [01:11:39]OFD Sender: No OFD packet to send [01:11:44]OFD Sender: No OFD packet to send [01:11:49]OFD Sender: No OFD packet to send [01:11:54]OFD Sender: No OFD packet to send [01:11:59]OFD Sender: No OFD packet to send [01:12:04]OFD Sender: No OFD packet to send [01:12:09]OFD Sender: No OFD packet to send [01:12:14]OFD Sender: No OFD packet to send [01:12:19]OFD Sender: No OFD packet to send [01:12:24]OFD Sender: No OFD packet to send [01:12:29]OFD Sender: No OFD packet to send [01:12:34]OFD Sender: No OFD packet to send [01:12:39]OFD Sender: No OFD packet to send [01:12:44]OFD Sender: No OFD packet to send [01:12:49]OFD Sender: No OFD packet to send [01:12:54]OFD Sender: No OFD packet to send [01:12:59]OFD Sender: No OFD packet to send [01:13:04]OFD Sender: No OFD packet to send [01:13:09]OFD Sender: No OFD packet to send [01:13:14]OFD Sender: No OFD packet to send [01:13:19]OFD Sender: No OFD packet to send [01:13:24]OFD Sender: No OFD packet to send [01:13:29]OFD Sender: No OFD packet to send [01:13:34]OFD Sender: No OFD packet to send [01:13:39]OFD Sender: No OFD packet to send [01:13:44]OFD Sender: No OFD packet to send [01:13:49]OFD Sender: No OFD packet to send [01:13:54]OFD Sender: No OFD packet to send [01:13:59]OFD Sender: No OFD packet to send [01:14:04]OFD Sender: No OFD packet to send [01:14:09]OFD Sender: No OFD packet to send [01:14:14]OFD Sender: No OFD packet to send [01:14:19]OFD Sender: No OFD packet to send [01:14:24]OFD Sender: No OFD packet to send [01:14:29]OFD Sender: No OFD packet to send [01:14:34]OFD Sender: No OFD packet to send [01:14:39]OFD Sender: No OFD packet to send [01:14:44]OFD Sender: No OFD packet to send [01:14:49]OFD Sender: No OFD packet to send [01:14:54]OFD Sender: No OFD packet to send [01:14:59]OFD Sender: No OFD packet to send [01:15:04]OFD Sender: No OFD packet to send [01:15:09]OFD Sender: No OFD packet to send [01:15:14]OFD Sender: No OFD packet to send [01:15:19]OFD Sender: No OFD packet to send [01:15:24]OFD Sender: No OFD packet to send [01:15:29]OFD Sender: No OFD packet to send [01:15:34]OFD Sender: No OFD packet to send [01:15:39]OFD Sender: No OFD packet to send [01:15:44]OFD Sender: No OFD packet to send [01:15:49]OFD Sender: No OFD packet to send [01:15:54]OFD Sender: No OFD packet to send [01:15:59]OFD Sender: No OFD packet to send [01:16:04]OFD Sender: No OFD packet to send [01:16:09]OFD Sender: No OFD packet to send [01:16:14]OFD Sender: No OFD packet to send [01:16:19]OFD Sender: No OFD packet to send [01:16:24]OFD Sender: No OFD packet to send [01:16:29]OFD Sender: No OFD packet to send [01:16:34]OFD Sender: No OFD packet to send [01:16:39]OFD Sender: No OFD packet to send [01:16:44]OFD Sender: No OFD packet to send [01:16:49]OFD Sender: No OFD packet to send [01:16:54]OFD Sender: No OFD packet to send [01:16:59]OFD Sender: No OFD packet to send [01:17:04]OFD Sender: No OFD packet to send [01:17:09]OFD Sender: No OFD packet to send [01:17:14]OFD Sender: No OFD packet to send [01:17:19]OFD Sender: No OFD packet to send [01:17:24]OFD Sender: No OFD packet to send [01:17:29]OFD Sender: No OFD packet to send [01:17:34]OFD Sender: No OFD packet to send [01:17:39]OFD Sender: No OFD packet to send [01:17:44]OFD Sender: No OFD packet to send [01:17:49]OFD Sender: No OFD packet to send [01:17:54]OFD Sender: No OFD packet to send [01:17:59]OFD Sender: No OFD packet to send [01:18:04]OFD Sender: No OFD packet to send [01:18:09]OFD Sender: No OFD packet to send [01:18:14]OFD Sender: No OFD packet to send [01:18:19]OFD Sender: No OFD packet to send [01:18:24]OFD Sender: No OFD packet to send [01:18:29]OFD Sender: No OFD packet to send [01:18:34]OFD Sender: No OFD packet to send [01:18:39]OFD Sender: No OFD packet to send [01:18:44]OFD Sender: No OFD packet to send [01:18:49]OFD Sender: No OFD packet to send [01:18:54]OFD Sender: No OFD packet to send [01:18:59]OFD Sender: No OFD packet to send [01:19:04]OFD Sender: No OFD packet to send [01:19:09]OFD Sender: No OFD packet to send [01:19:14]OFD Sender: No OFD packet to send [01:19:19]OFD Sender: No OFD packet to send [01:19:24]OFD Sender: No OFD packet to send [01:19:29]OFD Sender: No OFD packet to send [01:19:34]OFD Sender: No OFD packet to send [01:19:39]OFD Sender: No OFD packet to send [01:19:44]OFD Sender: No OFD packet to send [01:19:49]OFD Sender: No OFD packet to send [01:19:54]OFD Sender: No OFD packet to send [01:19:59]OFD Sender: No OFD packet to send [01:20:04]OFD Sender: No OFD packet to send [01:20:09]OFD Sender: No OFD packet to send [01:20:14]OFD Sender: No OFD packet to send [01:20:19]OFD Sender: No OFD packet to send [01:20:24]OFD Sender: No OFD packet to send [01:20:29]OFD Sender: No OFD packet to send [01:20:34]OFD Sender: No OFD packet to send [01:20:39]OFD Sender: No OFD packet to send [01:20:44]OFD Sender: No OFD packet to send [01:20:49]OFD Sender: No OFD packet to send [01:20:54]OFD Sender: No OFD packet to send [01:20:59]OFD Sender: No OFD packet to send [01:21:04]OFD Sender: No OFD packet to send [01:21:09]OFD Sender: No OFD packet to send [01:21:14]OFD Sender: No OFD packet to send [01:21:19]OFD Sender: No OFD packet to send [01:21:24]OFD Sender: No OFD packet to send [01:21:29]OFD Sender: No OFD packet to send [01:21:34]OFD Sender: No OFD packet to send [01:21:39]OFD Sender: No OFD packet to send [01:21:44]OFD Sender: No OFD packet to send [01:21:49]OFD Sender: No OFD packet to send [01:21:54]OFD Sender: No OFD packet to send [01:21:59]OFD Sender: No OFD packet to send [01:22:04]OFD Sender: No OFD packet to send [01:22:10]OFD Sender: No OFD packet to send [01:22:15]OFD Sender: No OFD packet to send [01:22:20]OFD Sender: No OFD packet to send [01:22:25]OFD Sender: No OFD packet to send [01:22:30]OFD Sender: No OFD packet to send [01:22:35]OFD Sender: No OFD packet to send [01:22:40]OFD Sender: No OFD packet to send [01:22:45]OFD Sender: No OFD packet to send [01:22:50]OFD Sender: No OFD packet to send [01:22:55]OFD Sender: No OFD packet to send [01:23:00]OFD Sender: No OFD packet to send [01:23:05]OFD Sender: No OFD packet to send [01:23:10]OFD Sender: No OFD packet to send [01:23:15]OFD Sender: No OFD packet to send [01:23:20]OFD Sender: No OFD packet to send [01:23:25]OFD Sender: No OFD packet to send [01:23:30]OFD Sender: No OFD packet to send [01:23:35]OFD Sender: No OFD packet to send [01:23:40]OFD Sender: No OFD packet to send [01:23:45]OFD Sender: No OFD packet to send [01:23:50]OFD Sender: No OFD packet to send [01:23:55]OFD Sender: No OFD packet to send [01:24:00]OFD Sender: No OFD packet to send [01:24:05]OFD Sender: No OFD packet to send [01:24:10]OFD Sender: No OFD packet to send [01:24:15]OFD Sender: No OFD packet to send [01:24:20]OFD Sender: No OFD packet to send [01:24:25]OFD Sender: No OFD packet to send [01:24:30]OFD Sender: No OFD packet to send [01:24:35]OFD Sender: No OFD packet to send [01:24:40]OFD Sender: No OFD packet to send [01:24:45]OFD Sender: No OFD packet to send [01:24:50]OFD Sender: No OFD packet to send [01:24:55]OFD Sender: No OFD packet to send [01:25:00]OFD Sender: No OFD packet to send [01:25:05]OFD Sender: No OFD packet to send [01:25:10]OFD Sender: No OFD packet to send [01:25:15]OFD Sender: No OFD packet to send [01:25:20]OFD Sender: No OFD packet to send [01:25:25]OFD Sender: No OFD packet to send [01:25:30]OFD Sender: No OFD packet to send [01:25:35]OFD Sender: No OFD packet to send [01:25:40]OFD Sender: No OFD packet to send [01:25:45]OFD Sender: No OFD packet to send [01:25:50]OFD Sender: No OFD packet to send [01:25:55]OFD Sender: No OFD packet to send [01:26:00]OFD Sender: No OFD packet to send [01:26:05]OFD Sender: No OFD packet to send [01:26:10]OFD Sender: No OFD packet to send [01:26:15]OFD Sender: No OFD packet to send [01:26:20]OFD Sender: No OFD packet to send [01:26:25]OFD Sender: No OFD packet to send [01:26:30]OFD Sender: No OFD packet to send [01:26:35]OFD Sender: No OFD packet to send [01:26:40]OFD Sender: No OFD packet to send [01:26:45]OFD Sender: No OFD packet to send [01:26:50]OFD Sender: No OFD packet to send [01:26:55]OFD Sender: No OFD packet to send [01:27:00]OFD Sender: No OFD packet to send [01:27:05]OFD Sender: No OFD packet to send [01:27:10]OFD Sender: No OFD packet to send [01:27:15]OFD Sender: No OFD packet to send [01:27:20]OFD Sender: No OFD packet to send [01:27:25]OFD Sender: No OFD packet to send [01:27:30]OFD Sender: No OFD packet to send [01:27:35]OFD Sender: No OFD packet to send [01:27:40]OFD Sender: No OFD packet to send [01:27:45]OFD Sender: No OFD packet to send [01:27:50]OFD Sender: No OFD packet to send [01:27:55]OFD Sender: No OFD packet to send [01:28:00]OFD Sender: No OFD packet to send [01:28:05]OFD Sender: No OFD packet to send [01:28:10]OFD Sender: No OFD packet to send [01:28:15]OFD Sender: No OFD packet to send [01:28:20]OFD Sender: No OFD packet to send [01:28:25]OFD Sender: No OFD packet to send [01:28:30]OFD Sender: No OFD packet to send [01:28:35]OFD Sender: No OFD packet to send [01:28:40]OFD Sender: No OFD packet to send [01:28:45]OFD Sender: No OFD packet to send [01:28:50]OFD Sender: No OFD packet to send [01:28:55]OFD Sender: No OFD packet to send [01:29:00]OFD Sender: No OFD packet to send [01:29:05]OFD Sender: No OFD packet to send [01:29:10]OFD Sender: No OFD packet to send [01:29:15]OFD Sender: No OFD packet to send [01:29:20]OFD Sender: No OFD packet to send [01:29:25]OFD Sender: No OFD packet to send [01:29:30]OFD Sender: No OFD packet to send [01:29:35]OFD Sender: No OFD packet to send [01:29:40]OFD Sender: No OFD packet to send [01:29:45]OFD Sender: No OFD packet to send [01:29:50]OFD Sender: No OFD packet to send [01:29:55]OFD Sender: No OFD packet to send [01:30:00]OFD Sender: No OFD packet to send [01:30:05]OFD Sender: No OFD packet to send [01:30:10]OFD Sender: No OFD packet to send [01:30:15]OFD Sender: No OFD packet to send [01:30:20]OFD Sender: No OFD packet to send [01:30:25]OFD Sender: No OFD packet to send [01:30:30]OFD Sender: No OFD packet to send [01:30:35]OFD Sender: No OFD packet to send [01:30:40]OFD Sender: No OFD packet to send [01:30:45]OFD Sender: No OFD packet to send [01:30:50]OFD Sender: No OFD packet to send [01:30:55]OFD Sender: No OFD packet to send [01:31:00]OFD Sender: No OFD packet to send [01:31:05]OFD Sender: No OFD packet to send [01:31:10]OFD Sender: No OFD packet to send [01:31:15]OFD Sender: No OFD packet to send [01:31:20]OFD Sender: No OFD packet to send [01:31:25]OFD Sender: No OFD packet to send [01:31:30]OFD Sender: No OFD packet to send [01:31:35]OFD Sender: No OFD packet to send [01:31:40]OFD Sender: No OFD packet to send [01:31:45]OFD Sender: No OFD packet to send [01:31:50]OFD Sender: No OFD packet to send [01:31:55]OFD Sender: No OFD packet to send [01:32:00]OFD Sender: No OFD packet to send [01:32:05]OFD Sender: No OFD packet to send [01:32:10]OFD Sender: No OFD packet to send [01:32:15]OFD Sender: No OFD packet to send [01:32:20]OFD Sender: No OFD packet to send [01:32:25]OFD Sender: No OFD packet to send [01:32:30]OFD Sender: No OFD packet to send [01:32:35]OFD Sender: No OFD packet to send [01:32:40]OFD Sender: No OFD packet to send [01:32:45]OFD Sender: No OFD packet to send [01:32:50]OFD Sender: No OFD packet to send [01:32:55]OFD Sender: No OFD packet to send [01:33:00]OFD Sender: No OFD packet to send [01:33:05]OFD Sender: No OFD packet to send [01:33:10]OFD Sender: No OFD packet to send [01:33:15]OFD Sender: No OFD packet to send [01:33:20]OFD Sender: No OFD packet to send [01:33:25]OFD Sender: No OFD packet to send [01:33:30]OFD Sender: No OFD packet to send [01:33:35]OFD Sender: No OFD packet to send [01:33:40]OFD Sender: No OFD packet to send [01:33:45]OFD Sender: No OFD packet to send [01:33:50]OFD Sender: No OFD packet to send [01:33:55]OFD Sender: No OFD packet to send [01:34:00]OFD Sender: No OFD packet to send [01:34:05]OFD Sender: No OFD packet to send [01:34:10]OFD Sender: No OFD packet to send [01:34:15]OFD Sender: No OFD packet to send [01:34:20]OFD Sender: No OFD packet to send [01:34:25]OFD Sender: No OFD packet to send [01:34:30]OFD Sender: No OFD packet to send [01:34:35]OFD Sender: No OFD packet to send [01:34:40]OFD Sender: No OFD packet to send [01:34:45]OFD Sender: No OFD packet to send [01:34:50]OFD Sender: No OFD packet to send [01:34:55]OFD Sender: No OFD packet to send [01:35:00]OFD Sender: No OFD packet to send [01:35:05]OFD Sender: No OFD packet to send [01:35:10]OFD Sender: No OFD packet to send [01:35:15]OFD Sender: No OFD packet to send [01:35:20]OFD Sender: No OFD packet to send [01:35:25]OFD Sender: No OFD packet to send [01:35:30]OFD Sender: No OFD packet to send [01:35:35]OFD Sender: No OFD packet to send [01:35:40]OFD Sender: No OFD packet to send [01:35:45]OFD Sender: No OFD packet to send [01:35:50]OFD Sender: No OFD packet to send [01:35:55]OFD Sender: No OFD packet to send [01:36:00]OFD Sender: No OFD packet to send [01:36:05]OFD Sender: No OFD packet to send [01:36:10]OFD Sender: No OFD packet to send [01:36:15]OFD Sender: No OFD packet to send [01:36:20]OFD Sender: No OFD packet to send [01:36:25]OFD Sender: No OFD packet to send [01:36:27]accept exits with 8 [01:36:27]New connection [01:36:27]New thread 3067432292 created [01:36:27]Thread 3067288932 joined [01:36:27]Waiting for new connection... [01:36:27] Sock 8.Parse request [01:36:27]Sock 8.Check first char [01:36:27]Sock 8.First char is OK [01:36:27]request: POST /json_proto HTTP/1.0 [01:36:27]Method: POST [01:36:27]URL: /json_proto [01:36:27]Method is POST - this is cgi request [01:36:27]url: /json_proto [01:36:27]query_string will be loaded in cgi processing [01:36:27]execute_cgi json_proto POST (null) [01:36:27]execute_cgi path=json_proto method=POST [01:36:27]POST find Content-Length [01:36:27]Host: 172.17.38.4:8080 [01:36:27]Content-Length: 677 [01:36:27]Content-Type: application/json [01:36:27] [01:36:27]POST finish read [01:36:27]Found Content-Length = 677 [01:36:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:36:27]execute_script... [01:36:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:36:27]POST & json_proto [01:36:27]process_json_proto [01:36:27]json parsed OK: [01:36:27]protocol is kg_v1.0 [01:36:27]action value=close_receipt [01:36:27]process_action close_receipt [01:36:27]cmd_close_receipt [01:36:27]MH_GetDate [01:36:27]Write to MH i2c: F0 00 00 51 0B 4B [01:36:27]Write i2c OK [01:36:27]MH_I2C_Read... [01:36:27]Read from MH i2c: F0 [01:36:27]MH_I2C_Read... [01:36:27]Read from MH i2c: F0 09 00 [01:36:27]MH_I2C_Read... [01:36:27]Read from MH i2c: F0 09 00 51 0B 00 1C 1E 5D 66 CC 51 87 64 59 [01:36:27]GetLastDocTimeStamp 1717376576 [01:36:27]current date 1717378588 [01:36:27]FM_GetShiftState [01:36:27]SAM_PROTO_GetShiftState [01:36:27]wFMCommunicate request_size=4 [01:36:27]MH_SAM_APDU [01:36:27]CAPDU: 80 13 01 00 [01:36:27]Write to MH i2c: E2 08 00 52 0B 80 13 01 00 00 00 00 00 DA [01:36:27]Write i2c OK [01:36:27]MH_I2C_Read... [01:36:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:36:27]Read from MH i2c: E2 [01:36:27]MH_I2C_Read... [01:36:27]Read from MH i2c: E2 0E 00 [01:36:27]MH_I2C_Read... [01:36:27]Read from MH i2c: E2 0E 00 52 0B 00 09 00 01 D8 0F 5D 66 00 00 00 00 90 00 90 [01:36:27]RAPDU: 09 00 01 D8 0F 5D 66 00 00 00 00 90 00 [01:36:27]wFMCommunicate OK [01:36:27]SAM_PROTO_GetShiftState done [01:36:27]FM_GetShiftState done [01:36:27]opened in 1717374936 [01:36:27]opened+sec_in_day 1717461336 [01:36:27]quantity*price = 30038 [01:36:27]sum+1 = 30039 [01:36:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 3 03.06.2024 01:36 Смена: 367 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148241 ФПД: 152329750130733 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T013628&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148241&fm=152329750130733&tin=02508201610067®Number=0000000000092720&sum=30000 [01:36:28]StoreToDocumentArchive [01:36:28]shift 367 fd 148241 [01:36:28]save to /storage/0367/doc_00148241 [01:36:28]save last doc name /storage/0367/doc_00148241 to /storage/kkm_last_doc_name [01:36:28]save OK [01:36:28]Clear old archive folders... [01:36:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:36:28]tlvbuf is 011DCAA0 [01:36:28]SAM_PROTO_ClearQueue [01:36:28]wFMCommunicate request_size=4 [01:36:28]MH_SAM_APDU [01:36:28]CAPDU: 80 09 00 00 [01:36:28]Write to MH i2c: E2 08 00 5F 0B 80 09 00 00 00 00 00 00 DC [01:36:28]Write i2c OK [01:36:28]MH_I2C_Read... [01:36:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:36:28]Read from MH i2c: E2 [01:36:28]MH_I2C_Read... [01:36:28]Read from MH i2c: E2 03 00 [01:36:28]MH_I2C_Read... [01:36:28]Read from MH i2c: E2 03 00 5F 0B 00 90 00 DE [01:36:28]RAPDU: 90 00 [01:36:28]wFMCommunicate OK [01:36:28]SAM_PROTO_ClearQueue done [01:36:28]KKMCreateOFDPacket [01:36:28]OFDProtocolAddRootSTLVToBuf [01:36:28]FM_MakeSignedData [01:36:28]FM_MakeSignedData [01:36:28]SAM_PROTO_SignData [01:36:28]wFMCommunicate request_size=4 [01:36:28]MH_SAM_APDU [01:36:28]CAPDU: 80 0D 01 02 [01:36:28]Write to MH i2c: E2 08 00 60 0B 80 0D 01 02 00 00 00 00 E4 [01:36:28]Write i2c OK [01:36:28]MH_I2C_Read... [01:36:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:36:28]Read from MH i2c: E2 [01:36:28]MH_I2C_Read... [01:36:28]Read from MH i2c: E2 03 00 [01:36:28]MH_I2C_Read... [01:36:28]Read from MH i2c: E2 03 00 60 0B 00 90 00 DF [01:36:28]RAPDU: 90 00 [01:36:28]wFMCommunicate OK [01:36:28]wFMCommunicate request_size=255 [01:36:28]MH_SAM_APDU [01:36:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 1C 1E 5D 66 0E 04 04 00 6F 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 11 43 02 00 35 04 06 00 8A [01:36:28]Write to MH i2c: E2 02 01 61 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 1C 1E 5D 66 0E 04 04 00 6F 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 11 43 02 00 35 04 06 00 8A 00 00 B2 [01:36:28]Write i2c OK [01:36:28]MH_I2C_Read... [01:36:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:36:28]Read from MH i2c: E2 [01:36:28]MH_I2C_Read... [01:36:28]Read from MH i2c: E2 03 00 [01:36:28]MH_I2C_Read... [01:36:28]Read from MH i2c: E2 03 00 61 0B 00 90 00 E0 [01:36:28]RAPDU: 90 00 [01:36:28]wFMCommunicate OK [01:36:28]wFMCommunicate request_size=10 [01:36:28]MH_SAM_APDU [01:36:28]CAPDU: 80 0D 02 02 05 8B 08 A5 30 2D [01:36:28]Write to MH i2c: E2 0D 00 62 0B 80 0D 02 02 05 00 8B 08 A5 30 2D 00 00 86 [01:36:28]Write i2c OK [01:36:28]MH_I2C_Read... [01:36:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:36:28]Read from MH i2c: E2 [01:36:28]MH_I2C_Read... [01:36:28]Read from MH i2c: E2 03 00 [01:36:28]MH_I2C_Read... [01:36:28]Read from MH i2c: E2 03 00 62 0B 00 90 00 E1 [01:36:28]RAPDU: 90 00 [01:36:28]wFMCommunicate OK [01:36:28]wFMCommunicate request_size=4 [01:36:28]MH_SAM_APDU [01:36:28]CAPDU: 80 0D 03 02 [01:36:28]Write to MH i2c: E2 08 00 63 0B 80 0D 03 02 00 00 00 00 E9 [01:36:28]Write i2c OK [01:36:28]MH_I2C_Read... [01:36:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:36:28]Read from MH i2c: E2 [01:36:28]MH_I2C_Read... [01:36:28]Read from MH i2c: E2 0B 00 [01:36:28]MH_I2C_Read... [01:36:28]Read from MH i2c: E2 0B 00 63 0B 00 68 53 23 FE BF 9A 9B AD 90 00 67 [01:36:28]RAPDU: 68 53 23 FE BF 9A 9B AD 90 00 [01:36:28]wFMCommunicate OK [01:36:28]SAM_PROTO_SignData done [01:36:28]FM_MakeSignedData done [01:36:28]CreateOFDProtocolMessage [01:36:28]wFMCommunicate request_size=4 [01:36:28]MH_SAM_APDU [01:36:28]CAPDU: 80 11 00 00 [01:36:28]Write to MH i2c: E2 08 00 64 0B 80 11 00 00 00 00 00 00 E9 [01:36:28]Write i2c OK [01:36:28]MH_I2C_Read... [01:36:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:36:28]Read from MH i2c: E2 [01:36:28]MH_I2C_Read... [01:36:28]Read from MH i2c: E2 17 00 [01:36:28]MH_I2C_Read... [01:36:28]Read from MH i2c: E2 17 00 64 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 3C [01:36:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [01:36:28]wFMCommunicate OK [01:36:28]CreateOFDProtocolMessage done [01:36:28]OFDSenderStorePacket 148241 [01:36:28]StoreOFDPacket docnum=148241 [01:36:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 C5 C4 07 01 59 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 1C 1E 5D 66 0E 04 04 00 6F 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 11 43 02 00 35 04 06 00 8A 8B 08 A5 30 2D 68 53 23 FE BF 9A 9B AD [01:36:28]CheckFolder [01:36:28]dirname=/storage/ofd_packets [01:36:28]CheckFolder done [01:36:28]ProducePacketName [01:36:28]name=ofd_packets/00148241 [01:36:28]NVStorageSaveData ofd_packets/00148241 [01:36:28]File name is /storage/ofd_packets/00148241 [01:36:28]Write 301 bytes [01:36:28]NVStorageSaveData done [01:36:28]OFDSenderStorePacket done [01:36:28]KKMCreateOFDPacket done [01:36:28]NVStorageSaveData kkm_last_timestamp [01:36:28]File name is /storage/kkm_last_timestamp [01:36:28]Write 4 bytes [01:36:28]NVStorageSaveData done [01:36:28]ExternCall_PrintAddStr [01:36:28]wPrintStart [01:36:28]Write to MH i2c: 01 00 00 65 0B 70 [01:36:28]Write i2c OK [01:36:28]MH_I2C_Read... [01:36:28]Read from MH i2c: 01 [01:36:28]MH_I2C_Read... [01:36:28]Read from MH i2c: 01 07 00 [01:36:28]MH_I2C_Read... [01:36:28]Read from MH i2c: 01 07 00 65 0B 00 00 00 00 00 FF 0F 85 [01:36:28]RasterBufferAndPrint [01:36:28]line Счет N : (1)979174 [01:36:28]line ИНН: 02508201610067 [01:36:28]line Контрольно-Кассовый Чек [01:36:28]line ПРОДАЖА [01:36:28]line ТРК (МРК, ГНК) : 22 [01:36:28]line Товар: 2710124130 [01:36:28]line Аи-92-К-5 [01:36:28]line 4.490 * 66.90 [01:36:28]line = 300.38 [01:36:28]line НДС 12% НСП 1% [01:36:28]line > о реализуемом товаре [01:36:28]line ОКРУГЛЕНИЕ: -0.38 [01:36:28]line ИТОГО: 300.00 [01:36:28]line Внесено: 300.00 [01:36:28]line СДАЧА: 0.00 [01:36:28]line НСП 1% : 2.66 [01:36:28]line НДС 12% : 31.90 [01:36:28]line Наличными: 300.00 [01:36:28]line Безнал.: 0.00 [01:36:28]line Место: АЗС № 68 "Партнер Нефть" [01:36:28]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [01:36:28]line СНО: Общий режим [01:36:28]line Чек 3 03.06.2024 01:36 [01:36:28]line Смена: 367 ФФД: 1.0 [01:36:28]line ЗНМ: 0300000035 [01:36:28]line РНМ: 0000000000092720 [01:36:28]line Версия ККМ: 001 [01:36:28]line ФМ: 0000000000875057 [01:36:28]line ФД: 148241 [01:36:28]line ФПД: 152329750130733 [01:36:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T013628&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148241&fm=152329750130733&tin=02508201610067®Number=0000000000092720&sum=30000 [01:36:29]OFD Sender: Processing packet 148241 [packets to send 99, broken 98] [01:36:29]ProducePacketName [01:36:29]name=ofd_packets/00148241 [01:36:29]OFD Sender: To server: pG, [01:36:29]CommunicateWithHost lk.salyk.kg:30040 [01:36:29]ConnectInit lk.salyk.kg [01:36:29]written 0, free lines is 4095 [01:36:29]Connected sock=10 [01:36:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 C5 C4 07 01 59 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 1C 1E 5D 66 0E 04 04 00 6F 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 11 43 02 00 35 04 06 00 8A 8B 08 A5 30 2D 68 53 23 FE BF 9A 9B AD [01:36:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 11 85 47 00 E2 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 11 43 02 00 F4 03 04 00 44 C5 5C 66 B6 04 01 00 00 17 93 80 7E 2F 43 EF A8 [01:36:29]CommunicateWithHost err = 0 [01:36:29]CheckOFDResponse [01:36:29]1017 (14) - 77093643461234 [01:36:29]1041 (16) - 0000000000875057 [01:36:29]1040 (4) - 148241 [01:36:29]1012 (4) - 02.06.2024 19:17 [01:36:29]1206 (1) - 0 [01:36:29]OFD Sender: Remove packet 148241 [01:36:29]ProducePacketName [01:36:29]name=ofd_packets/00148241 [01:36:29]NVStorageDeleteData [01:36:29]Write to MH i2c: 01 00 00 90 0B 9B [01:36:29]Write i2c OK [01:36:29]MH_I2C_Read... [01:36:29]Read from MH i2c: 01 [01:36:29]MH_I2C_Read... [01:36:29]Read from MH i2c: 01 07 00 [01:36:29]MH_I2C_Read... [01:36:29]Read from MH i2c: 01 07 00 90 0B 00 00 00 00 00 64 0C 12 [01:36:29]RasterBufferAndPrint [01:36:29]line [01:36:29]line [01:36:29]line [01:36:29]line [01:36:29]line [01:36:29]written 0, free lines is 3175 [01:36:29]MH_Cut [01:36:29]Write to MH i2c: D1 01 00 97 0B 01 74 [01:36:29]Write i2c OK [01:36:29]MH_I2C_Read... [01:36:29]Read from MH i2c: D1 [01:36:29]MH_I2C_Read... [01:36:29]Read from MH i2c: D1 01 00 [01:36:29]MH_I2C_Read... [01:36:29]Read from MH i2c: D1 01 00 97 0B 00 73 [01:36:29]Write to MH i2c: 01 00 00 98 0B A3 [01:36:29]Write i2c OK [01:36:29]MH_I2C_Read... [01:36:30]OFD Sender: No OFD packet to send [01:36:31]*** Cut start [01:36:31]*** Partial cut [01:36:31]*** CUTSNS_PIN = 1 [01:36:31]*** CUTSNS_PIN = 0 [01:36:31]*** Brake cut motor [01:36:31]Read from MH i2c: 01 [01:36:31]MH_I2C_Read... [01:36:31]*** Stop cut motor [01:36:31]*** Cut end [01:36:31]Read from MH i2c: 01 07 00 [01:36:31]MH_I2C_Read... [01:36:31]Read from MH i2c: 01 07 00 98 0B 00 00 00 00 00 FF 0F B8 [01:36:31]process_action close_receipt done [01:36:31]requested_data is exist [01:36:31]produce_requested_data [01:36:31]requested_item fm.sn is exist - process it [01:36:31]wFMCommunicate request_size=4 [01:36:31]MH_SAM_APDU [01:36:31]CAPDU: 80 11 00 00 [01:36:31]Write to MH i2c: E2 08 00 99 0B 80 11 00 00 00 00 00 00 1E [01:36:31]Write i2c OK [01:36:31]MH_I2C_Read... [01:36:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:36:31]Read from MH i2c: E2 [01:36:31]MH_I2C_Read... [01:36:31]Read from MH i2c: E2 17 00 [01:36:31]MH_I2C_Read... [01:36:31]Read from MH i2c: E2 17 00 99 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 71 [01:36:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [01:36:31]wFMCommunicate OK [01:36:31]requested_item fd.num is exist - process it [01:36:31]SAM_PROTO_GetFieldsCounters [01:36:31]wFMCommunicate request_size=4 [01:36:31]MH_SAM_APDU [01:36:31]CAPDU: 80 13 00 00 [01:36:31]Write to MH i2c: E2 08 00 9A 0B 80 13 00 00 00 00 00 00 21 [01:36:31]Write i2c OK [01:36:31]MH_I2C_Read... [01:36:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:36:31]Read from MH i2c: E2 [01:36:31]MH_I2C_Read... [01:36:31]Read from MH i2c: E2 62 00 [01:36:31]MH_I2C_Read... [01:36:31]Read from MH i2c: E2 62 00 9A 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 11 43 02 00 0E 04 04 00 6F 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 0C [01:36:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 11 43 02 00 0E 04 04 00 6F 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:36:31]wFMCommunicate OK [01:36:31]SAM_PROTO_GetFieldsCounters done [01:36:31]requested_item shift.num is exist - process it [01:36:31]requested_item shift.opened is exist - process it [01:36:31]req_shift_opened [01:36:31]FM_GetShiftState [01:36:31]SAM_PROTO_GetShiftState [01:36:31]wFMCommunicate request_size=4 [01:36:31]MH_SAM_APDU [01:36:31]CAPDU: 80 13 01 00 [01:36:31]Write to MH i2c: E2 08 00 9B 0B 80 13 01 00 00 00 00 00 23 [01:36:31]Write i2c OK [01:36:31]MH_I2C_Read... [01:36:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:36:31]Read from MH i2c: E2 [01:36:31]MH_I2C_Read... [01:36:31]Read from MH i2c: E2 0E 00 [01:36:31]MH_I2C_Read... [01:36:31]Read from MH i2c: E2 0E 00 9B 0B 00 09 00 01 D8 0F 5D 66 00 00 00 00 90 00 D9 [01:36:31]RAPDU: 09 00 01 D8 0F 5D 66 00 00 00 00 90 00 [01:36:31]wFMCommunicate OK [01:36:31]SAM_PROTO_GetShiftState done [01:36:31]FM_GetShiftState done [01:36:31]req_shift_opened done [01:36:31]requested_item shift.open_date is exist - process it [01:36:31]req_shift_open_date [01:36:31]req_shift_open_date done [01:36:31]produce_requested_data done [01:36:31]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148241,"shift.num":367,"shift.opened":1,"shift.open_date":1717374936} [01:36:31]process_action_free close_receipt [01:36:31]json_value_free [01:36:31]json_value_free done [01:36:31]process_json_proto returns [01:36:31]Send response to host [01:36:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148241,"shift.num":367,"shift.opened":1,"shift.open_date":1717374936}}} [01:36:31]free response buf [01:36:31]execute_script done [01:36:31]execute_script returns [01:36:31]free content buf [01:36:31]Sock 8.Close socket [01:36:31]Sock 8.Thread stoped [01:36:35]OFD Sender: No OFD packet to send [01:36:40]OFD Sender: No OFD packet to send [01:36:45]OFD Sender: No OFD packet to send [01:36:50]OFD Sender: No OFD packet to send [01:36:55]OFD Sender: No OFD packet to send [01:37:00]OFD Sender: No OFD packet to send [01:37:05]OFD Sender: No OFD packet to send [01:37:10]OFD Sender: No OFD packet to send [01:37:15]OFD Sender: No OFD packet to send [01:37:20]OFD Sender: No OFD packet to send [01:37:25]OFD Sender: No OFD packet to send [01:37:30]OFD Sender: No OFD packet to send [01:37:35]OFD Sender: No OFD packet to send [01:37:40]OFD Sender: No OFD packet to send [01:37:45]OFD Sender: No OFD packet to send [01:37:50]OFD Sender: No OFD packet to send [01:37:55]OFD Sender: No OFD packet to send [01:38:00]OFD Sender: No OFD packet to send [01:38:05]OFD Sender: No OFD packet to send [01:38:10]OFD Sender: No OFD packet to send [01:38:15]OFD Sender: No OFD packet to send [01:38:20]OFD Sender: No OFD packet to send [01:38:25]OFD Sender: No OFD packet to send [01:38:30]OFD Sender: No OFD packet to send [01:38:35]OFD Sender: No OFD packet to send [01:38:40]OFD Sender: No OFD packet to send [01:38:45]OFD Sender: No OFD packet to send [01:38:50]OFD Sender: No OFD packet to send [01:38:55]OFD Sender: No OFD packet to send [01:39:00]OFD Sender: No OFD packet to send [01:39:05]OFD Sender: No OFD packet to send [01:39:10]OFD Sender: No OFD packet to send [01:39:15]OFD Sender: No OFD packet to send [01:39:20]OFD Sender: No OFD packet to send [01:39:25]OFD Sender: No OFD packet to send [01:39:30]OFD Sender: No OFD packet to send [01:39:35]OFD Sender: No OFD packet to send [01:39:40]OFD Sender: No OFD packet to send [01:39:45]OFD Sender: No OFD packet to send [01:39:50]OFD Sender: No OFD packet to send [01:39:55]OFD Sender: No OFD packet to send [01:40:00]OFD Sender: No OFD packet to send [01:40:05]OFD Sender: No OFD packet to send [01:40:10]OFD Sender: No OFD packet to send [01:40:15]OFD Sender: No OFD packet to send [01:40:20]OFD Sender: No OFD packet to send [01:40:25]OFD Sender: No OFD packet to send [01:40:30]OFD Sender: No OFD packet to send [01:40:35]OFD Sender: No OFD packet to send [01:40:40]OFD Sender: No OFD packet to send [01:40:45]OFD Sender: No OFD packet to send [01:40:50]OFD Sender: No OFD packet to send [01:40:55]OFD Sender: No OFD packet to send [01:41:00]OFD Sender: No OFD packet to send [01:41:05]OFD Sender: No OFD packet to send [01:41:10]OFD Sender: No OFD packet to send [01:41:15]OFD Sender: No OFD packet to send [01:41:20]OFD Sender: No OFD packet to send [01:41:25]OFD Sender: No OFD packet to send [01:41:30]OFD Sender: No OFD packet to send [01:41:35]OFD Sender: No OFD packet to send [01:41:40]OFD Sender: No OFD packet to send [01:41:45]OFD Sender: No OFD packet to send [01:41:50]OFD Sender: No OFD packet to send [01:41:55]OFD Sender: No OFD packet to send [01:42:00]OFD Sender: No OFD packet to send [01:42:05]OFD Sender: No OFD packet to send [01:42:10]OFD Sender: No OFD packet to send [01:42:15]OFD Sender: No OFD packet to send [01:42:20]OFD Sender: No OFD packet to send [01:42:25]OFD Sender: No OFD packet to send [01:42:30]OFD Sender: No OFD packet to send [01:42:35]OFD Sender: No OFD packet to send [01:42:40]OFD Sender: No OFD packet to send [01:42:45]OFD Sender: No OFD packet to send [01:42:50]OFD Sender: No OFD packet to send [01:42:55]OFD Sender: No OFD packet to send [01:43:00]OFD Sender: No OFD packet to send [01:43:05]OFD Sender: No OFD packet to send [01:43:10]OFD Sender: No OFD packet to send [01:43:15]OFD Sender: No OFD packet to send [01:43:20]OFD Sender: No OFD packet to send [01:43:25]OFD Sender: No OFD packet to send [01:43:30]OFD Sender: No OFD packet to send [01:43:35]OFD Sender: No OFD packet to send [01:43:40]OFD Sender: No OFD packet to send [01:43:45]OFD Sender: No OFD packet to send [01:43:50]OFD Sender: No OFD packet to send [01:43:55]OFD Sender: No OFD packet to send [01:44:00]OFD Sender: No OFD packet to send [01:44:05]OFD Sender: No OFD packet to send [01:44:10]OFD Sender: No OFD packet to send [01:44:15]OFD Sender: No OFD packet to send [01:44:20]OFD Sender: No OFD packet to send [01:44:25]OFD Sender: No OFD packet to send [01:44:30]OFD Sender: No OFD packet to send [01:44:35]OFD Sender: No OFD packet to send [01:44:40]OFD Sender: No OFD packet to send [01:44:45]OFD Sender: No OFD packet to send [01:44:50]OFD Sender: No OFD packet to send [01:44:55]OFD Sender: No OFD packet to send [01:45:00]OFD Sender: No OFD packet to send [01:45:05]OFD Sender: No OFD packet to send [01:45:10]OFD Sender: No OFD packet to send [01:45:15]OFD Sender: No OFD packet to send [01:45:20]OFD Sender: No OFD packet to send [01:45:25]OFD Sender: No OFD packet to send [01:45:30]OFD Sender: No OFD packet to send [01:45:35]OFD Sender: No OFD packet to send [01:45:40]OFD Sender: No OFD packet to send [01:45:45]OFD Sender: No OFD packet to send [01:45:50]OFD Sender: No OFD packet to send [01:45:55]OFD Sender: No OFD packet to send [01:46:00]OFD Sender: No OFD packet to send [01:46:05]OFD Sender: No OFD packet to send [01:46:10]OFD Sender: No OFD packet to send [01:46:15]OFD Sender: No OFD packet to send [01:46:20]OFD Sender: No OFD packet to send [01:46:25]OFD Sender: No OFD packet to send [01:46:30]OFD Sender: No OFD packet to send [01:46:35]OFD Sender: No OFD packet to send [01:46:40]OFD Sender: No OFD packet to send [01:46:45]OFD Sender: No OFD packet to send [01:46:50]OFD Sender: No OFD packet to send [01:46:55]OFD Sender: No OFD packet to send [01:47:00]OFD Sender: No OFD packet to send [01:47:05]OFD Sender: No OFD packet to send [01:47:10]OFD Sender: No OFD packet to send [01:47:15]OFD Sender: No OFD packet to send [01:47:20]OFD Sender: No OFD packet to send [01:47:25]OFD Sender: No OFD packet to send [01:47:30]OFD Sender: No OFD packet to send [01:47:35]OFD Sender: No OFD packet to send [01:47:40]OFD Sender: No OFD packet to send [01:47:45]OFD Sender: No OFD packet to send [01:47:50]OFD Sender: No OFD packet to send [01:47:55]OFD Sender: No OFD packet to send [01:48:00]OFD Sender: No OFD packet to send [01:48:05]OFD Sender: No OFD packet to send [01:48:10]OFD Sender: No OFD packet to send [01:48:15]OFD Sender: No OFD packet to send [01:48:20]OFD Sender: No OFD packet to send [01:48:25]OFD Sender: No OFD packet to send [01:48:30]OFD Sender: No OFD packet to send [01:48:35]OFD Sender: No OFD packet to send [01:48:40]OFD Sender: No OFD packet to send [01:48:45]OFD Sender: No OFD packet to send [01:48:50]OFD Sender: No OFD packet to send [01:48:55]OFD Sender: No OFD packet to send [01:49:00]OFD Sender: No OFD packet to send [01:49:05]OFD Sender: No OFD packet to send [01:49:10]OFD Sender: No OFD packet to send [01:49:15]OFD Sender: No OFD packet to send [01:49:20]OFD Sender: No OFD packet to send [01:49:25]OFD Sender: No OFD packet to send [01:49:30]OFD Sender: No OFD packet to send [01:49:35]OFD Sender: No OFD packet to send [01:49:40]OFD Sender: No OFD packet to send [01:49:45]OFD Sender: No OFD packet to send [01:49:50]OFD Sender: No OFD packet to send [01:49:55]OFD Sender: No OFD packet to send [01:50:00]OFD Sender: No OFD packet to send [01:50:05]OFD Sender: No OFD packet to send [01:50:10]OFD Sender: No OFD packet to send [01:50:15]OFD Sender: No OFD packet to send [01:50:21]OFD Sender: No OFD packet to send [01:50:26]OFD Sender: No OFD packet to send [01:50:31]OFD Sender: No OFD packet to send [01:50:36]OFD Sender: No OFD packet to send [01:50:41]OFD Sender: No OFD packet to send [01:50:46]OFD Sender: No OFD packet to send [01:50:51]OFD Sender: No OFD packet to send [01:50:56]OFD Sender: No OFD packet to send [01:51:01]OFD Sender: No OFD packet to send [01:51:06]OFD Sender: No OFD packet to send [01:51:11]OFD Sender: No OFD packet to send [01:51:16]OFD Sender: No OFD packet to send [01:51:21]OFD Sender: No OFD packet to send [01:51:26]OFD Sender: No OFD packet to send [01:51:31]OFD Sender: No OFD packet to send [01:51:36]OFD Sender: No OFD packet to send [01:51:41]OFD Sender: No OFD packet to send [01:51:46]OFD Sender: No OFD packet to send [01:51:51]OFD Sender: No OFD packet to send [01:51:56]OFD Sender: No OFD packet to send [01:52:01]OFD Sender: No OFD packet to send [01:52:06]OFD Sender: No OFD packet to send [01:52:11]OFD Sender: No OFD packet to send [01:52:16]OFD Sender: No OFD packet to send [01:52:21]OFD Sender: No OFD packet to send [01:52:26]OFD Sender: No OFD packet to send [01:52:31]OFD Sender: No OFD packet to send [01:52:36]OFD Sender: No OFD packet to send [01:52:41]OFD Sender: No OFD packet to send [01:52:46]OFD Sender: No OFD packet to send [01:52:51]OFD Sender: No OFD packet to send [01:52:56]OFD Sender: No OFD packet to send [01:53:01]OFD Sender: No OFD packet to send [01:53:06]OFD Sender: No OFD packet to send [01:53:11]OFD Sender: No OFD packet to send [01:53:16]OFD Sender: No OFD packet to send [01:53:21]OFD Sender: No OFD packet to send [01:53:26]OFD Sender: No OFD packet to send [01:53:31]OFD Sender: No OFD packet to send [01:53:36]OFD Sender: No OFD packet to send [01:53:41]OFD Sender: No OFD packet to send [01:53:46]OFD Sender: No OFD packet to send [01:53:51]OFD Sender: No OFD packet to send [01:53:56]OFD Sender: No OFD packet to send [01:54:01]OFD Sender: No OFD packet to send [01:54:06]OFD Sender: No OFD packet to send [01:54:11]OFD Sender: No OFD packet to send [01:54:16]OFD Sender: No OFD packet to send [01:54:21]OFD Sender: No OFD packet to send [01:54:26]OFD Sender: No OFD packet to send [01:54:31]OFD Sender: No OFD packet to send [01:54:36]OFD Sender: No OFD packet to send [01:54:41]OFD Sender: No OFD packet to send [01:54:46]OFD Sender: No OFD packet to send [01:54:51]OFD Sender: No OFD packet to send [01:54:56]OFD Sender: No OFD packet to send [01:55:01]OFD Sender: No OFD packet to send [01:55:06]OFD Sender: No OFD packet to send [01:55:11]OFD Sender: No OFD packet to send [01:55:16]OFD Sender: No OFD packet to send [01:55:21]OFD Sender: No OFD packet to send [01:55:26]OFD Sender: No OFD packet to send [01:55:31]OFD Sender: No OFD packet to send [01:55:36]OFD Sender: No OFD packet to send [01:55:41]OFD Sender: No OFD packet to send [01:55:46]OFD Sender: No OFD packet to send [01:55:51]OFD Sender: No OFD packet to send [01:55:56]OFD Sender: No OFD packet to send [01:56:01]OFD Sender: No OFD packet to send [01:56:06]OFD Sender: No OFD packet to send [01:56:11]OFD Sender: No OFD packet to send [01:56:16]OFD Sender: No OFD packet to send [01:56:21]OFD Sender: No OFD packet to send [01:56:26]OFD Sender: No OFD packet to send [01:56:31]OFD Sender: No OFD packet to send [01:56:36]OFD Sender: No OFD packet to send [01:56:41]OFD Sender: No OFD packet to send [01:56:46]OFD Sender: No OFD packet to send [01:56:51]OFD Sender: No OFD packet to send [01:56:56]OFD Sender: No OFD packet to send [01:57:01]OFD Sender: No OFD packet to send [01:57:06]OFD Sender: No OFD packet to send [01:57:11]OFD Sender: No OFD packet to send [01:57:16]OFD Sender: No OFD packet to send [01:57:21]OFD Sender: No OFD packet to send [01:57:26]OFD Sender: No OFD packet to send [01:57:31]OFD Sender: No OFD packet to send [01:57:36]OFD Sender: No OFD packet to send [01:57:41]OFD Sender: No OFD packet to send [01:57:46]OFD Sender: No OFD packet to send [01:57:51]OFD Sender: No OFD packet to send [01:57:56]OFD Sender: No OFD packet to send [01:58:01]OFD Sender: No OFD packet to send [01:58:06]OFD Sender: No OFD packet to send [01:58:11]OFD Sender: No OFD packet to send [01:58:16]OFD Sender: No OFD packet to send [01:58:21]OFD Sender: No OFD packet to send [01:58:26]OFD Sender: No OFD packet to send [01:58:31]OFD Sender: No OFD packet to send [01:58:36]OFD Sender: No OFD packet to send [01:58:41]OFD Sender: No OFD packet to send [01:58:46]OFD Sender: No OFD packet to send [01:58:51]OFD Sender: No OFD packet to send [01:58:56]OFD Sender: No OFD packet to send [01:59:01]OFD Sender: No OFD packet to send [01:59:06]OFD Sender: No OFD packet to send [01:59:11]OFD Sender: No OFD packet to send [01:59:16]OFD Sender: No OFD packet to send [01:59:21]OFD Sender: No OFD packet to send [01:59:26]OFD Sender: No OFD packet to send [01:59:31]OFD Sender: No OFD packet to send [01:59:36]OFD Sender: No OFD packet to send [01:59:41]OFD Sender: No OFD packet to send [01:59:46]OFD Sender: No OFD packet to send [01:59:51]OFD Sender: No OFD packet to send [01:59:56]OFD Sender: No OFD packet to send [02:00:01]OFD Sender: No OFD packet to send [02:00:06]OFD Sender: No OFD packet to send [02:00:11]OFD Sender: No OFD packet to send [02:00:16]OFD Sender: No OFD packet to send [02:00:21]OFD Sender: No OFD packet to send [02:00:26]OFD Sender: No OFD packet to send [02:00:31]OFD Sender: No OFD packet to send [02:00:36]OFD Sender: No OFD packet to send [02:00:41]OFD Sender: No OFD packet to send [02:00:46]OFD Sender: No OFD packet to send [02:00:51]OFD Sender: No OFD packet to send [02:00:56]OFD Sender: No OFD packet to send [02:01:01]OFD Sender: No OFD packet to send [02:01:06]OFD Sender: No OFD packet to send [02:01:11]OFD Sender: No OFD packet to send [02:01:16]OFD Sender: No OFD packet to send [02:01:21]OFD Sender: No OFD packet to send [02:01:26]OFD Sender: No OFD packet to send [02:01:31]OFD Sender: No OFD packet to send [02:01:36]OFD Sender: No OFD packet to send [02:01:41]OFD Sender: No OFD packet to send [02:01:46]OFD Sender: No OFD packet to send [02:01:51]OFD Sender: No OFD packet to send [02:01:56]OFD Sender: No OFD packet to send [02:02:01]OFD Sender: No OFD packet to send [02:02:06]OFD Sender: No OFD packet to send [02:02:11]OFD Sender: No OFD packet to send [02:02:16]OFD Sender: No OFD packet to send [02:02:21]OFD Sender: No OFD packet to send [02:02:26]OFD Sender: No OFD packet to send [02:02:31]OFD Sender: No OFD packet to send [02:02:36]OFD Sender: No OFD packet to send [02:02:41]OFD Sender: No OFD packet to send [02:02:46]OFD Sender: No OFD packet to send [02:02:51]OFD Sender: No OFD packet to send [02:02:56]OFD Sender: No OFD packet to send [02:03:01]OFD Sender: No OFD packet to send [02:03:06]OFD Sender: No OFD packet to send [02:03:11]OFD Sender: No OFD packet to send [02:03:16]OFD Sender: No OFD packet to send [02:03:21]OFD Sender: No OFD packet to send [02:03:26]OFD Sender: No OFD packet to send [02:03:31]OFD Sender: No OFD packet to send [02:03:36]OFD Sender: No OFD packet to send [02:03:40]accept exits with 9 [02:03:40]New connection [02:03:40]New thread 3067288932 created [02:03:40]Thread 3067432292 joined [02:03:40]Waiting for new connection... [02:03:40] Sock 9.Parse request [02:03:40]Sock 9.Check first char [02:03:40]Sock 9.First char is OK [02:03:40]request: POST /json_proto HTTP/1.0 [02:03:40]Method: POST [02:03:40]URL: /json_proto [02:03:40]Method is POST - this is cgi request [02:03:40]url: /json_proto [02:03:40]query_string will be loaded in cgi processing [02:03:40]execute_cgi json_proto POST (null) [02:03:40]execute_cgi path=json_proto method=POST [02:03:40]POST find Content-Length [02:03:40]Host: 172.17.38.4:8080 [02:03:40]Content-Length: 682 [02:03:40]Content-Type: application/json [02:03:40] [02:03:40]POST finish read [02:03:40]Found Content-Length = 682 [02:03:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:03:40]execute_script... [02:03:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:03:40]POST & json_proto [02:03:40]process_json_proto [02:03:40]json parsed OK: [02:03:40]protocol is kg_v1.0 [02:03:40]action value=close_receipt [02:03:40]process_action close_receipt [02:03:40]cmd_close_receipt [02:03:40]MH_GetDate [02:03:40]Write to MH i2c: F0 00 00 9C 0B 96 [02:03:40]Write i2c OK [02:03:40]MH_I2C_Read... [02:03:40]Read from MH i2c: F0 [02:03:40]MH_I2C_Read... [02:03:40]Read from MH i2c: F0 09 00 [02:03:40]MH_I2C_Read... [02:03:40]Read from MH i2c: F0 09 00 9C 0B 00 7C 24 5D 66 CC 51 87 64 0A [02:03:40]GetLastDocTimeStamp 1717378588 [02:03:40]current date 1717380220 [02:03:40]FM_GetShiftState [02:03:40]SAM_PROTO_GetShiftState [02:03:40]wFMCommunicate request_size=4 [02:03:40]MH_SAM_APDU [02:03:40]CAPDU: 80 13 01 00 [02:03:40]Write to MH i2c: E2 08 00 9D 0B 80 13 01 00 00 00 00 00 25 [02:03:40]Write i2c OK [02:03:40]MH_I2C_Read... [02:03:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:03:40]Read from MH i2c: E2 [02:03:40]MH_I2C_Read... [02:03:40]Read from MH i2c: E2 0E 00 [02:03:40]MH_I2C_Read... [02:03:40]Read from MH i2c: E2 0E 00 9D 0B 00 09 00 01 D8 0F 5D 66 00 00 00 00 90 00 DB [02:03:40]RAPDU: 09 00 01 D8 0F 5D 66 00 00 00 00 90 00 [02:03:40]wFMCommunicate OK [02:03:40]SAM_PROTO_GetShiftState done [02:03:40]FM_GetShiftState done [02:03:40]opened in 1717374936 [02:03:40]opened+sec_in_day 1717461336 [02:03:40]quantity*price = 100015 [02:03:40]sum+1 = 100017 [02:03:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 4 03.06.2024 02:03 Смена: 367 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148242 ФПД: 127367202987785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T020341&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148242&fm=127367202987785&tin=02508201610067®Number=0000000000092720&sum=100000 [02:03:41]StoreToDocumentArchive [02:03:41]shift 367 fd 148242 [02:03:41]save to /storage/0367/doc_00148242 [02:03:41]save last doc name /storage/0367/doc_00148242 to /storage/kkm_last_doc_name [02:03:41]save OK [02:03:41]Clear old archive folders... [02:03:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:03:41]tlvbuf is 01322390 [02:03:41]SAM_PROTO_ClearQueue [02:03:41]wFMCommunicate request_size=4 [02:03:41]MH_SAM_APDU [02:03:41]CAPDU: 80 09 00 00 [02:03:41]Write to MH i2c: E2 08 00 AA 0B 80 09 00 00 00 00 00 00 27 [02:03:41]Write i2c OK [02:03:41]MH_I2C_Read... [02:03:41]Read from MH i2c: E2 [02:03:41]MH_I2C_Read... [02:03:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:03:41]Read from MH i2c: E2 03 00 [02:03:41]MH_I2C_Read... [02:03:41]Read from MH i2c: E2 03 00 AA 0B 00 90 00 29 [02:03:41]RAPDU: 90 00 [02:03:41]wFMCommunicate OK [02:03:41]SAM_PROTO_ClearQueue done [02:03:41]KKMCreateOFDPacket [02:03:41]OFDProtocolAddRootSTLVToBuf [02:03:41]FM_MakeSignedData [02:03:41]FM_MakeSignedData [02:03:41]SAM_PROTO_SignData [02:03:41]wFMCommunicate request_size=4 [02:03:41]MH_SAM_APDU [02:03:41]CAPDU: 80 0D 01 02 [02:03:41]Write to MH i2c: E2 08 00 AB 0B 80 0D 01 02 00 00 00 00 2F [02:03:41]Write i2c OK [02:03:41]MH_I2C_Read... [02:03:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:03:41]Read from MH i2c: E2 [02:03:41]MH_I2C_Read... [02:03:41]Read from MH i2c: E2 03 00 [02:03:41]MH_I2C_Read... [02:03:41]Read from MH i2c: E2 03 00 AB 0B 00 90 00 2A [02:03:41]RAPDU: 90 00 [02:03:41]wFMCommunicate OK [02:03:41]wFMCommunicate request_size=255 [02:03:41]MH_SAM_APDU [02:03:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 7D 24 5D 66 0E 04 04 00 6F 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 12 43 02 00 35 04 06 00 73 [02:03:41]Write to MH i2c: E2 02 01 AC 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 7D 24 5D 66 0E 04 04 00 6F 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 12 43 02 00 35 04 06 00 73 00 00 55 [02:03:41]Write i2c OK [02:03:41]MH_I2C_Read... [02:03:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:03:41]Read from MH i2c: E2 [02:03:41]MH_I2C_Read... [02:03:41]Read from MH i2c: E2 03 00 [02:03:41]MH_I2C_Read... [02:03:41]Read from MH i2c: E2 03 00 AC 0B 00 90 00 2B [02:03:41]RAPDU: 90 00 [02:03:41]wFMCommunicate OK [02:03:41]wFMCommunicate request_size=10 [02:03:41]MH_SAM_APDU [02:03:41]CAPDU: 80 0D 02 02 05 D6 FC E3 DF 09 [02:03:41]Write to MH i2c: E2 0D 00 AD 0B 80 0D 02 02 05 00 D6 FC E3 DF 09 00 00 D9 [02:03:41]Write i2c OK [02:03:41]MH_I2C_Read... [02:03:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:03:41]Read from MH i2c: E2 [02:03:41]MH_I2C_Read... [02:03:41]Read from MH i2c: E2 03 00 [02:03:41]MH_I2C_Read... [02:03:41]Read from MH i2c: E2 03 00 AD 0B 00 90 00 2C [02:03:41]RAPDU: 90 00 [02:03:41]wFMCommunicate OK [02:03:41]wFMCommunicate request_size=4 [02:03:41]MH_SAM_APDU [02:03:41]CAPDU: 80 0D 03 02 [02:03:41]Write to MH i2c: E2 08 00 AE 0B 80 0D 03 02 00 00 00 00 34 [02:03:41]Write i2c OK [02:03:41]MH_I2C_Read... [02:03:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:03:41]Read from MH i2c: E2 [02:03:41]MH_I2C_Read... [02:03:41]Read from MH i2c: E2 0B 00 [02:03:41]MH_I2C_Read... [02:03:41]Read from MH i2c: E2 0B 00 AE 0B 00 BB 29 EA 78 A9 88 7D FB 90 00 24 [02:03:41]RAPDU: BB 29 EA 78 A9 88 7D FB 90 00 [02:03:41]wFMCommunicate OK [02:03:41]SAM_PROTO_SignData done [02:03:41]FM_MakeSignedData done [02:03:41]CreateOFDProtocolMessage [02:03:41]wFMCommunicate request_size=4 [02:03:41]MH_SAM_APDU [02:03:41]CAPDU: 80 11 00 00 [02:03:41]Write to MH i2c: E2 08 00 AF 0B 80 11 00 00 00 00 00 00 34 [02:03:41]Write i2c OK [02:03:41]MH_I2C_Read... [02:03:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:03:41]Read from MH i2c: E2 [02:03:41]MH_I2C_Read... [02:03:41]Read from MH i2c: E2 17 00 [02:03:41]MH_I2C_Read... [02:03:41]Read from MH i2c: E2 17 00 AF 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 87 [02:03:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [02:03:41]wFMCommunicate OK [02:03:41]CreateOFDProtocolMessage done [02:03:41]OFDSenderStorePacket 148242 [02:03:41]StoreOFDPacket docnum=148242 [02:03:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 A7 5A 07 01 74 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 7D 24 5D 66 0E 04 04 00 6F 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 12 43 02 00 35 04 06 00 73 D6 FC E3 DF 09 BB 29 EA 78 A9 88 7D FB [02:03:41]CheckFolder [02:03:41]dirname=/storage/ofd_packets [02:03:41]CheckFolder done [02:03:41]ProducePacketName [02:03:41]name=ofd_packets/00148242 [02:03:41]NVStorageSaveData ofd_packets/00148242 [02:03:41]File name is /storage/ofd_packets/00148242 [02:03:41]Write 301 bytes [02:03:41]NVStorageSaveData done [02:03:41]OFDSenderStorePacket done [02:03:41]KKMCreateOFDPacket done [02:03:41]NVStorageSaveData kkm_last_timestamp [02:03:41]File name is /storage/kkm_last_timestamp [02:03:41]Write 4 bytes [02:03:41]NVStorageSaveData done [02:03:41]ExternCall_PrintAddStr [02:03:41]wPrintStart [02:03:41]Write to MH i2c: 01 00 00 B0 0B BB [02:03:41]Write i2c OK [02:03:41]MH_I2C_Read... [02:03:41]Read from MH i2c: 01 [02:03:41]MH_I2C_Read... [02:03:41]Read from MH i2c: 01 07 00 [02:03:41]MH_I2C_Read... [02:03:41]Read from MH i2c: 01 07 00 B0 0B 00 00 00 00 00 FF 0F D0 [02:03:41]RasterBufferAndPrint [02:03:41]line Счет N : (1)979175 [02:03:41]line ИНН: 02508201610067 [02:03:41]line Контрольно-Кассовый Чек [02:03:41]line ПРОДАЖА [02:03:41]line ТРК (МРК, ГНК) : 41 [02:03:41]line Товар: 2710124130 [02:03:41]line Аи-92-К-5 [02:03:41]line 14.950 * 66.90 [02:03:41]line = 1000.16 [02:03:41]line НДС 12% НСП 1% [02:03:41]line > о реализуемом товаре [02:03:41]line ОКРУГЛЕНИЕ: -0.16 [02:03:41]line ИТОГО: 1000.00 [02:03:41]line Внесено: 1000.00 [02:03:41]line СДАЧА: 0.00 [02:03:41]line НСП 1% : 8.85 [02:03:41]line НДС 12% : 106.21 [02:03:41]line Наличными: 1000.00 [02:03:41]line Безнал.: 0.00 [02:03:41]line Место: АЗС № 68 "Партнер Нефть" [02:03:41]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [02:03:41]line СНО: Общий режим [02:03:41]line Чек 4 03.06.2024 02:03 [02:03:41]line Смена: 367 ФФД: 1.0 [02:03:41]line ЗНМ: 0300000035 [02:03:41]line РНМ: 0000000000092720 [02:03:41]line Версия ККМ: 001 [02:03:41]line ФМ: 0000000000875057 [02:03:41]line ФД: 148242 [02:03:41]line ФПД: 127367202987785 [02:03:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T020341&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148242&fm=127367202987785&tin=02508201610067®Number=0000000000092720&sum=100000 [02:03:42]OFD Sender: Processing packet 148242 [packets to send 99, broken 98] [02:03:42]ProducePacketName [02:03:42]name=ofd_packets/00148242 [02:03:42]OFD Sender: To server: pG, [02:03:42]CommunicateWithHost lk.salyk.kg:30040 [02:03:42]ConnectInit lk.salyk.kg [02:03:42]written 0, free lines is 4095 [02:03:42]Connected sock=10 [02:03:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 A7 5A 07 01 74 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 7D 24 5D 66 0E 04 04 00 6F 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 12 43 02 00 35 04 06 00 73 D6 FC E3 DF 09 BB 29 EA 78 A9 88 7D FB [02:03:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 C9 A2 47 00 A0 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 12 43 02 00 F4 03 04 00 A5 CB 5C 66 B6 04 01 00 00 E6 A6 D3 D1 4A DC 11 20 [02:03:42]CommunicateWithHost err = 0 [02:03:42]CheckOFDResponse [02:03:42]1017 (14) - 77093643461234 [02:03:42]1041 (16) - 0000000000875057 [02:03:42]1040 (4) - 148242 [02:03:42]1012 (4) - 02.06.2024 19:44 [02:03:42]1206 (1) - 0 [02:03:42]OFD Sender: Remove packet 148242 [02:03:42]ProducePacketName [02:03:42]name=ofd_packets/00148242 [02:03:42]NVStorageDeleteData [02:03:42]Write to MH i2c: 01 00 00 DB 0B E6 [02:03:42]Write i2c OK [02:03:42]MH_I2C_Read... [02:03:42]Read from MH i2c: 01 [02:03:42]MH_I2C_Read... [02:03:42]Read from MH i2c: 01 07 00 [02:03:42]MH_I2C_Read... [02:03:42]Read from MH i2c: 01 07 00 DB 0B 00 00 00 00 00 67 0C 60 [02:03:42]RasterBufferAndPrint [02:03:42]line [02:03:42]line [02:03:42]line [02:03:42]line [02:03:42]line [02:03:42]written 0, free lines is 3179 [02:03:42]MH_Cut [02:03:42]Write to MH i2c: D1 01 00 E2 0B 01 BF [02:03:42]Write i2c OK [02:03:42]MH_I2C_Read... [02:03:42]Read from MH i2c: D1 [02:03:42]MH_I2C_Read... [02:03:42]Read from MH i2c: D1 01 00 [02:03:42]MH_I2C_Read... [02:03:42]Read from MH i2c: D1 01 00 E2 0B 00 BE [02:03:42]Write to MH i2c: 01 00 00 E3 0B EE [02:03:42]Write i2c OK [02:03:42]MH_I2C_Read... [02:03:42]OFD Sender: No OFD packet to send [02:03:43]*** Cut start [02:03:43]*** Partial cut [02:03:43]*** CUTSNS_PIN = 1 [02:03:43]*** CUTSNS_PIN = 0 [02:03:44]*** Brake cut motor [02:03:44]Read from MH i2c: 01 [02:03:44]MH_I2C_Read... [02:03:44]*** Stop cut motor [02:03:44]*** Cut end [02:03:44]Read from MH i2c: 01 07 00 [02:03:44]MH_I2C_Read... [02:03:44]Read from MH i2c: 01 07 00 E3 0B 00 00 00 00 00 FF 0F 03 [02:03:44]process_action close_receipt done [02:03:44]requested_data is exist [02:03:44]produce_requested_data [02:03:44]requested_item fm.sn is exist - process it [02:03:44]wFMCommunicate request_size=4 [02:03:44]MH_SAM_APDU [02:03:44]CAPDU: 80 11 00 00 [02:03:44]Write to MH i2c: E2 08 00 E4 0B 80 11 00 00 00 00 00 00 69 [02:03:44]Write i2c OK [02:03:44]MH_I2C_Read... [02:03:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:03:44]Read from MH i2c: E2 [02:03:44]MH_I2C_Read... [02:03:44]Read from MH i2c: E2 17 00 [02:03:44]MH_I2C_Read... [02:03:44]Read from MH i2c: E2 17 00 E4 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 BC [02:03:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [02:03:44]wFMCommunicate OK [02:03:44]requested_item fd.num is exist - process it [02:03:44]SAM_PROTO_GetFieldsCounters [02:03:44]wFMCommunicate request_size=4 [02:03:44]MH_SAM_APDU [02:03:44]CAPDU: 80 13 00 00 [02:03:44]Write to MH i2c: E2 08 00 E5 0B 80 13 00 00 00 00 00 00 6C [02:03:44]Write i2c OK [02:03:44]MH_I2C_Read... [02:03:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:03:44]Read from MH i2c: E2 [02:03:44]MH_I2C_Read... [02:03:44]Read from MH i2c: E2 62 00 [02:03:44]MH_I2C_Read... [02:03:44]Read from MH i2c: E2 62 00 E5 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 12 43 02 00 0E 04 04 00 6F 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [02:03:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 12 43 02 00 0E 04 04 00 6F 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:03:44]wFMCommunicate OK [02:03:44]SAM_PROTO_GetFieldsCounters done [02:03:44]requested_item shift.num is exist - process it [02:03:44]requested_item shift.opened is exist - process it [02:03:44]req_shift_opened [02:03:44]FM_GetShiftState [02:03:44]SAM_PROTO_GetShiftState [02:03:44]wFMCommunicate request_size=4 [02:03:44]MH_SAM_APDU [02:03:44]CAPDU: 80 13 01 00 [02:03:44]Write to MH i2c: E2 08 00 E6 0B 80 13 01 00 00 00 00 00 6E [02:03:44]Write i2c OK [02:03:44]MH_I2C_Read... [02:03:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:03:44]Read from MH i2c: E2 [02:03:44]MH_I2C_Read... [02:03:44]Read from MH i2c: E2 0E 00 [02:03:44]MH_I2C_Read... [02:03:44]Read from MH i2c: E2 0E 00 E6 0B 00 09 00 01 D8 0F 5D 66 00 00 00 00 90 00 24 [02:03:44]RAPDU: 09 00 01 D8 0F 5D 66 00 00 00 00 90 00 [02:03:44]wFMCommunicate OK [02:03:44]SAM_PROTO_GetShiftState done [02:03:44]FM_GetShiftState done [02:03:44]req_shift_opened done [02:03:44]requested_item shift.open_date is exist - process it [02:03:44]req_shift_open_date [02:03:44]req_shift_open_date done [02:03:44]produce_requested_data done [02:03:44]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148242,"shift.num":367,"shift.opened":1,"shift.open_date":1717374936} [02:03:44]process_action_free close_receipt [02:03:44]json_value_free [02:03:44]json_value_free done [02:03:44]process_json_proto returns [02:03:44]Send response to host [02:03:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148242,"shift.num":367,"shift.opened":1,"shift.open_date":1717374936}}} [02:03:44]free response buf [02:03:44]execute_script done [02:03:44]execute_script returns [02:03:44]free content buf [02:03:44]Sock 9.Close socket [02:03:44]Sock 9.Thread stoped [02:03:47]OFD Sender: No OFD packet to send [02:03:52]OFD Sender: No OFD packet to send [02:03:57]OFD Sender: No OFD packet to send [02:04:02]OFD Sender: No OFD packet to send [02:04:07]OFD Sender: No OFD packet to send [02:04:12]OFD Sender: No OFD packet to send [02:04:17]OFD Sender: No OFD packet to send [02:04:22]OFD Sender: No OFD packet to send [02:04:27]OFD Sender: No OFD packet to send [02:04:32]OFD Sender: No OFD packet to send [02:04:37]OFD Sender: No OFD packet to send [02:04:42]OFD Sender: No OFD packet to send [02:04:47]OFD Sender: No OFD packet to send [02:04:52]OFD Sender: No OFD packet to send [02:04:57]OFD Sender: No OFD packet to send [02:05:02]OFD Sender: No OFD packet to send [02:05:07]OFD Sender: No OFD packet to send [02:05:12]OFD Sender: No OFD packet to send [02:05:17]OFD Sender: No OFD packet to send [02:05:22]OFD Sender: No OFD packet to send [02:05:27]OFD Sender: No OFD packet to send [02:05:32]OFD Sender: No OFD packet to send [02:05:37]OFD Sender: No OFD packet to send [02:05:43]OFD Sender: No OFD packet to send [02:05:48]OFD Sender: No OFD packet to send [02:05:53]OFD Sender: No OFD packet to send [02:05:58]OFD Sender: No OFD packet to send [02:06:03]OFD Sender: No OFD packet to send [02:06:08]OFD Sender: No OFD packet to send [02:06:13]OFD Sender: No OFD packet to send [02:06:18]OFD Sender: No OFD packet to send [02:06:23]OFD Sender: No OFD packet to send [02:06:28]OFD Sender: No OFD packet to send [02:06:33]OFD Sender: No OFD packet to send [02:06:38]OFD Sender: No OFD packet to send [02:06:43]OFD Sender: No OFD packet to send [02:06:48]OFD Sender: No OFD packet to send [02:06:53]OFD Sender: No OFD packet to send [02:06:58]OFD Sender: No OFD packet to send [02:07:03]OFD Sender: No OFD packet to send [02:07:08]OFD Sender: No OFD packet to send [02:07:13]OFD Sender: No OFD packet to send [02:07:18]OFD Sender: No OFD packet to send [02:07:23]OFD Sender: No OFD packet to send [02:07:28]OFD Sender: No OFD packet to send [02:07:33]OFD Sender: No OFD packet to send [02:07:38]OFD Sender: No OFD packet to send [02:07:43]OFD Sender: No OFD packet to send [02:07:48]OFD Sender: No OFD packet to send [02:07:53]OFD Sender: No OFD packet to send [02:07:58]OFD Sender: No OFD packet to send [02:08:03]OFD Sender: No OFD packet to send [02:08:08]OFD Sender: No OFD packet to send [02:08:13]OFD Sender: No OFD packet to send [02:08:18]OFD Sender: No OFD packet to send [02:08:23]OFD Sender: No OFD packet to send [02:08:28]OFD Sender: No OFD packet to send [02:08:33]OFD Sender: No OFD packet to send [02:08:38]OFD Sender: No OFD packet to send [02:08:43]OFD Sender: No OFD packet to send [02:08:48]OFD Sender: No OFD packet to send [02:08:53]OFD Sender: No OFD packet to send [02:08:58]OFD Sender: No OFD packet to send [02:09:03]OFD Sender: No OFD packet to send [02:09:08]OFD Sender: No OFD packet to send [02:09:13]OFD Sender: No OFD packet to send [02:09:18]OFD Sender: No OFD packet to send [02:09:23]OFD Sender: No OFD packet to send [02:09:28]OFD Sender: No OFD packet to send [02:09:33]OFD Sender: No OFD packet to send [02:09:38]OFD Sender: No OFD packet to send [02:09:43]OFD Sender: No OFD packet to send [02:09:48]OFD Sender: No OFD packet to send [02:09:53]OFD Sender: No OFD packet to send [02:09:58]OFD Sender: No OFD packet to send [02:10:03]OFD Sender: No OFD packet to send [02:10:08]OFD Sender: No OFD packet to send [02:10:13]OFD Sender: No OFD packet to send [02:10:18]OFD Sender: No OFD packet to send [02:10:23]OFD Sender: No OFD packet to send [02:10:28]OFD Sender: No OFD packet to send [02:10:33]OFD Sender: No OFD packet to send [02:10:38]OFD Sender: No OFD packet to send [02:10:43]OFD Sender: No OFD packet to send [02:10:48]OFD Sender: No OFD packet to send [02:10:53]OFD Sender: No OFD packet to send [02:10:58]OFD Sender: No OFD packet to send [02:11:03]OFD Sender: No OFD packet to send [02:11:08]OFD Sender: No OFD packet to send [02:11:13]OFD Sender: No OFD packet to send [02:11:18]OFD Sender: No OFD packet to send [02:11:23]OFD Sender: No OFD packet to send [02:11:28]OFD Sender: No OFD packet to send [02:11:33]OFD Sender: No OFD packet to send [02:11:38]OFD Sender: No OFD packet to send [02:11:43]OFD Sender: No OFD packet to send [02:11:48]OFD Sender: No OFD packet to send [02:11:53]OFD Sender: No OFD packet to send [02:11:58]OFD Sender: No OFD packet to send [02:12:03]OFD Sender: No OFD packet to send [02:12:08]OFD Sender: No OFD packet to send [02:12:13]OFD Sender: No OFD packet to send [02:12:18]OFD Sender: No OFD packet to send [02:12:23]OFD Sender: No OFD packet to send [02:12:28]OFD Sender: No OFD packet to send [02:12:33]OFD Sender: No OFD packet to send [02:12:38]OFD Sender: No OFD packet to send [02:12:43]OFD Sender: No OFD packet to send [02:12:48]OFD Sender: No OFD packet to send [02:12:53]OFD Sender: No OFD packet to send [02:12:58]OFD Sender: No OFD packet to send [02:13:03]OFD Sender: No OFD packet to send [02:13:08]OFD Sender: No OFD packet to send [02:13:13]OFD Sender: No OFD packet to send [02:13:18]OFD Sender: No OFD packet to send [02:13:23]OFD Sender: No OFD packet to send [02:13:28]OFD Sender: No OFD packet to send [02:13:33]OFD Sender: No OFD packet to send [02:13:38]OFD Sender: No OFD packet to send [02:13:43]OFD Sender: No OFD packet to send [02:13:48]OFD Sender: No OFD packet to send [02:13:53]OFD Sender: No OFD packet to send [02:13:58]OFD Sender: No OFD packet to send [02:14:03]OFD Sender: No OFD packet to send [02:14:08]OFD Sender: No OFD packet to send [02:14:13]OFD Sender: No OFD packet to send [02:14:18]OFD Sender: No OFD packet to send [02:14:23]OFD Sender: No OFD packet to send [02:14:28]OFD Sender: No OFD packet to send [02:14:33]OFD Sender: No OFD packet to send [02:14:38]OFD Sender: No OFD packet to send [02:14:43]OFD Sender: No OFD packet to send [02:14:48]OFD Sender: No OFD packet to send [02:14:53]OFD Sender: No OFD packet to send [02:14:58]OFD Sender: No OFD packet to send [02:15:03]OFD Sender: No OFD packet to send [02:15:08]OFD Sender: No OFD packet to send [02:15:13]OFD Sender: No OFD packet to send [02:15:18]OFD Sender: No OFD packet to send [02:15:23]OFD Sender: No OFD packet to send [02:15:28]OFD Sender: No OFD packet to send [02:15:33]OFD Sender: No OFD packet to send [02:15:38]OFD Sender: No OFD packet to send [02:15:43]OFD Sender: No OFD packet to send [02:15:48]OFD Sender: No OFD packet to send [02:15:53]OFD Sender: No OFD packet to send [02:15:58]OFD Sender: No OFD packet to send [02:16:03]OFD Sender: No OFD packet to send [02:16:08]OFD Sender: No OFD packet to send [02:16:13]OFD Sender: No OFD packet to send [02:16:18]OFD Sender: No OFD packet to send [02:16:23]OFD Sender: No OFD packet to send [02:16:28]OFD Sender: No OFD packet to send [02:16:33]OFD Sender: No OFD packet to send [02:16:38]OFD Sender: No OFD packet to send [02:16:43]OFD Sender: No OFD packet to send [02:16:48]OFD Sender: No OFD packet to send [02:16:53]OFD Sender: No OFD packet to send [02:16:58]OFD Sender: No OFD packet to send [02:17:03]OFD Sender: No OFD packet to send [02:17:08]OFD Sender: No OFD packet to send [02:17:13]OFD Sender: No OFD packet to send [02:17:18]OFD Sender: No OFD packet to send [02:17:23]OFD Sender: No OFD packet to send [02:17:28]OFD Sender: No OFD packet to send [02:17:33]OFD Sender: No OFD packet to send [02:17:38]OFD Sender: No OFD packet to send [02:17:43]OFD Sender: No OFD packet to send [02:17:48]OFD Sender: No OFD packet to send [02:17:53]OFD Sender: No OFD packet to send [02:17:58]OFD Sender: No OFD packet to send [02:18:03]OFD Sender: No OFD packet to send [02:18:08]OFD Sender: No OFD packet to send [02:18:13]OFD Sender: No OFD packet to send [02:18:18]OFD Sender: No OFD packet to send [02:18:23]OFD Sender: No OFD packet to send [02:18:28]OFD Sender: No OFD packet to send [02:18:33]OFD Sender: No OFD packet to send [02:18:38]OFD Sender: No OFD packet to send [02:18:43]OFD Sender: No OFD packet to send [02:18:48]OFD Sender: No OFD packet to send [02:18:53]OFD Sender: No OFD packet to send [02:18:58]OFD Sender: No OFD packet to send [02:19:03]OFD Sender: No OFD packet to send [02:19:08]OFD Sender: No OFD packet to send [02:19:13]OFD Sender: No OFD packet to send [02:19:18]OFD Sender: No OFD packet to send [02:19:23]OFD Sender: No OFD packet to send [02:19:28]OFD Sender: No OFD packet to send [02:19:33]OFD Sender: No OFD packet to send [02:19:38]OFD Sender: No OFD packet to send [02:19:43]OFD Sender: No OFD packet to send [02:19:48]OFD Sender: No OFD packet to send [02:19:53]OFD Sender: No OFD packet to send [02:19:58]OFD Sender: No OFD packet to send [02:20:03]OFD Sender: No OFD packet to send [02:20:08]OFD Sender: No OFD packet to send [02:20:13]OFD Sender: No OFD packet to send [02:20:18]OFD Sender: No OFD packet to send [02:20:23]OFD Sender: No OFD packet to send [02:20:28]OFD Sender: No OFD packet to send [02:20:33]OFD Sender: No OFD packet to send [02:20:38]OFD Sender: No OFD packet to send [02:20:43]OFD Sender: No OFD packet to send [02:20:48]OFD Sender: No OFD packet to send [02:20:53]OFD Sender: No OFD packet to send [02:20:58]OFD Sender: No OFD packet to send [02:21:03]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:30]OFD Sender: No OFD packet to send [02:36:35]OFD Sender: No OFD packet to send [02:36:40]OFD Sender: No OFD packet to send [02:36:45]OFD Sender: No OFD packet to send [02:36:50]OFD Sender: No OFD packet to send [02:36:55]OFD Sender: No OFD packet to send [02:37:00]OFD Sender: No OFD packet to send [02:37:05]OFD Sender: No OFD packet to send [02:37:10]OFD Sender: No OFD packet to send [02:37:15]OFD Sender: No OFD packet to send [02:37:20]OFD Sender: No OFD packet to send [02:37:25]OFD Sender: No OFD packet to send [02:37:30]OFD Sender: No OFD packet to send [02:37:35]OFD Sender: No OFD packet to send [02:37:40]OFD Sender: No OFD packet to send [02:37:45]OFD Sender: No OFD packet to send [02:37:50]OFD Sender: No OFD packet to send [02:37:55]OFD Sender: No OFD packet to send [02:38:00]OFD Sender: No OFD packet to send [02:38:05]OFD Sender: No OFD packet to send [02:38:10]OFD Sender: No OFD packet to send [02:38:15]OFD Sender: No OFD packet to send [02:38:20]OFD Sender: No OFD packet to send [02:38:25]OFD Sender: No OFD packet to send [02:38:30]OFD Sender: No OFD packet to send [02:38:35]OFD Sender: No OFD packet to send [02:38:40]OFD Sender: No OFD packet to send [02:38:45]OFD Sender: No OFD packet to send [02:38:50]OFD Sender: No OFD packet to send [02:38:55]OFD Sender: No OFD packet to send [02:39:00]OFD Sender: No OFD packet to send [02:39:05]OFD Sender: No OFD packet to send [02:39:10]OFD Sender: No OFD packet to send [02:39:15]OFD Sender: No OFD packet to send [02:39:20]OFD Sender: No OFD packet to send [02:39:25]OFD Sender: No OFD packet to send [02:39:30]OFD Sender: No OFD packet to send [02:39:35]OFD Sender: No OFD packet to send [02:39:40]OFD Sender: No OFD packet to send [02:39:45]OFD Sender: No OFD packet to send [02:39:50]OFD Sender: No OFD packet to send [02:39:55]OFD Sender: No OFD packet to send [02:40:00]OFD Sender: No OFD packet to send [02:40:05]OFD Sender: No OFD packet to send [02:40:10]OFD Sender: No OFD packet to send [02:40:15]OFD Sender: No OFD packet to send [02:40:20]OFD Sender: No OFD packet to send [02:40:25]OFD Sender: No OFD packet to send [02:40:30]OFD Sender: No OFD packet to send [02:40:35]OFD Sender: No OFD packet to send [02:40:40]OFD Sender: No OFD packet to send [02:40:45]OFD Sender: No OFD packet to send [02:40:50]OFD Sender: No OFD packet to send [02:40:55]OFD Sender: No OFD packet to send [02:41:00]OFD Sender: No OFD packet to send [02:41:05]OFD Sender: No OFD packet to send [02:41:10]OFD Sender: No OFD packet to send [02:41:15]OFD Sender: No OFD packet to send [02:41:20]OFD Sender: No OFD packet to send [02:41: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:28]accept exits with 8 [02:49:28]New connection [02:49:28]New thread 3067432292 created [02:49:28]Thread 3067288932 joined [02:49:28]Waiting for new connection... [02:49:28] Sock 8.Parse request [02:49:28]Sock 8.Check first char [02:49:28]Sock 8.First char is OK [02:49:28]request: POST /json_proto HTTP/1.0 [02:49:28]Method: POST [02:49:28]URL: /json_proto [02:49:28]Method is POST - this is cgi request [02:49:28]url: /json_proto [02:49:28]query_string will be loaded in cgi processing [02:49:28]execute_cgi json_proto POST (null) [02:49:28]execute_cgi path=json_proto method=POST [02:49:28]POST find Content-Length [02:49:28]Host: 172.17.38.4:8080 [02:49:28]Content-Length: 677 [02:49:28]Content-Type: application/json [02:49:28] [02:49:28]POST finish read [02:49:28]Found Content-Length = 677 [02:49:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.040, "sum" : 270.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:49:28]execute_script... [02:49:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)979176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.040, "sum" : 270.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:49:28]POST & json_proto [02:49:28]process_json_proto [02:49:28]json parsed OK: [02:49:28]protocol is kg_v1.0 [02:49:28]action value=close_receipt [02:49:28]process_action close_receipt [02:49:28]cmd_close_receipt [02:49:28]MH_GetDate [02:49:28]Write to MH i2c: F0 00 00 E7 0B E1 [02:49:28]Write i2c OK [02:49:28]MH_I2C_Read... [02:49:28]Read from MH i2c: F0 [02:49:28]MH_I2C_Read... [02:49:28]Read from MH i2c: F0 09 00 [02:49:28]MH_I2C_Read... [02:49:28]Read from MH i2c: F0 09 00 E7 0B 00 39 2F 5D 66 CC 51 87 64 1D [02:49:28]GetLastDocTimeStamp 1717380221 [02:49:28]current date 1717382969 [02:49:28]FM_GetShiftState [02:49:28]SAM_PROTO_GetShiftState [02:49:28]wFMCommunicate request_size=4 [02:49:28]MH_SAM_APDU [02:49:28]CAPDU: 80 13 01 00 [02:49:28]Write to MH i2c: E2 08 00 E8 0B 80 13 01 00 00 00 00 00 70 [02:49:28]Write i2c OK [02:49:28]MH_I2C_Read... [02:49:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:49:28]Read from MH i2c: E2 [02:49:28]MH_I2C_Read... [02:49:28]Read from MH i2c: E2 0E 00 [02:49:28]MH_I2C_Read... [02:49:28]Read from MH i2c: E2 0E 00 E8 0B 00 09 00 01 D8 0F 5D 66 00 00 00 00 90 00 26 [02:49:28]RAPDU: 09 00 01 D8 0F 5D 66 00 00 00 00 90 00 [02:49:28]wFMCommunicate OK [02:49:28]SAM_PROTO_GetShiftState done [02:49:28]FM_GetShiftState done [02:49:28]opened in 1717374936 [02:49:28]opened+sec_in_day 1717461336 [02:49:28]quantity*price = 27027 [02:49:28]sum+1 = 27029 [02:49:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 270.00 Внесено: 270.00 СДАЧА: 0.00 НСП 1% : 2.39 НДС 12% : 28.70 Наличными: 270.00 Безнал.: 0.00 Место: АЗС № 68 "Партнер Нефть" Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 СНО: Общий режим Чек 5 03.06.2024 02:49 Смена: 367 ФФД: 1.0 ЗНМ: 0300000035 РНМ: 0000000000092720 Версия ККМ: 001 ФМ: 0000000000875057 ФД: 148243 ФПД: 108329337961121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T024929&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148243&fm=108329337961121&tin=02508201610067®Number=0000000000092720&sum=27000 [02:49:29]StoreToDocumentArchive [02:49:29]shift 367 fd 148243 [02:49:29]save to /storage/0367/doc_00148243 [02:49:29]save last doc name /storage/0367/doc_00148243 to /storage/kkm_last_doc_name [02:49:29]save OK [02:49:29]Clear old archive folders... [02:49:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:49:29]tlvbuf is 011E3750 [02:49:29]SAM_PROTO_ClearQueue [02:49:29]wFMCommunicate request_size=4 [02:49:29]MH_SAM_APDU [02:49:29]CAPDU: 80 09 00 00 [02:49:29]Write to MH i2c: E2 08 00 F5 0B 80 09 00 00 00 00 00 00 72 [02:49:29]Write i2c OK [02:49:29]MH_I2C_Read... [02:49:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:49:29]Read from MH i2c: E2 [02:49:29]MH_I2C_Read... [02:49:29]Read from MH i2c: E2 03 00 [02:49:29]MH_I2C_Read... [02:49:29]Read from MH i2c: E2 03 00 F5 0B 00 90 00 74 [02:49:29]RAPDU: 90 00 [02:49:29]wFMCommunicate OK [02:49:29]SAM_PROTO_ClearQueue done [02:49:29]KKMCreateOFDPacket [02:49:29]OFDProtocolAddRootSTLVToBuf [02:49:29]FM_MakeSignedData [02:49:29]FM_MakeSignedData [02:49:29]SAM_PROTO_SignData [02:49:29]wFMCommunicate request_size=4 [02:49:29]MH_SAM_APDU [02:49:29]CAPDU: 80 0D 01 02 [02:49:29]Write to MH i2c: E2 08 00 F6 0B 80 0D 01 02 00 00 00 00 7A [02:49:29]Write i2c OK [02:49:29]MH_I2C_Read... [02:49:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:49:29]Read from MH i2c: E2 [02:49:29]MH_I2C_Read... [02:49:29]Read from MH i2c: E2 03 00 [02:49:29]MH_I2C_Read... [02:49:29]Read from MH i2c: E2 03 00 F6 0B 00 90 00 75 [02:49:29]RAPDU: 90 00 [02:49:29]wFMCommunicate OK [02:49:29]wFMCommunicate request_size=255 [02:49:29]MH_SAM_APDU [02:49:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 39 2F 5D 66 0E 04 04 00 6F 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 13 43 02 00 35 04 06 00 62 [02:49:29]Write to MH i2c: E2 02 01 F7 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 39 2F 5D 66 0E 04 04 00 6F 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 13 43 02 00 35 04 06 00 62 00 00 DB [02:49:29]Write i2c OK [02:49:29]MH_I2C_Read... [02:49:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:49:29]Read from MH i2c: E2 [02:49:29]MH_I2C_Read... [02:49:29]Read from MH i2c: E2 03 00 [02:49:29]MH_I2C_Read... [02:49:29]Read from MH i2c: E2 03 00 F7 0B 00 90 00 76 [02:49:29]RAPDU: 90 00 [02:49:29]wFMCommunicate OK [02:49:29]wFMCommunicate request_size=10 [02:49:29]MH_SAM_APDU [02:49:29]CAPDU: 80 0D 02 02 05 86 63 B5 3A A1 [02:49:29]Write to MH i2c: E2 0D 00 F8 0B 80 0D 02 02 05 00 86 63 B5 3A A1 00 00 00 [02:49:29]Write i2c OK [02:49:29]MH_I2C_Read... [02:49:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:49:29]Read from MH i2c: E2 [02:49:29]MH_I2C_Read... [02:49:29]Read from MH i2c: E2 03 00 [02:49:29]MH_I2C_Read... [02:49:29]Read from MH i2c: E2 03 00 F8 0B 00 90 00 77 [02:49:29]RAPDU: 90 00 [02:49:29]wFMCommunicate OK [02:49:29]wFMCommunicate request_size=4 [02:49:29]MH_SAM_APDU [02:49:29]CAPDU: 80 0D 03 02 [02:49:29]Write to MH i2c: E2 08 00 F9 0B 80 0D 03 02 00 00 00 00 7F [02:49:29]Write i2c OK [02:49:29]MH_I2C_Read... [02:49:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:49:29]Read from MH i2c: E2 [02:49:29]MH_I2C_Read... [02:49:29]Read from MH i2c: E2 0B 00 [02:49:29]MH_I2C_Read... [02:49:29]Read from MH i2c: E2 0B 00 F9 0B 00 D7 D0 6B BE 51 CC 39 79 90 00 1F [02:49:29]RAPDU: D7 D0 6B BE 51 CC 39 79 90 00 [02:49:29]wFMCommunicate OK [02:49:29]SAM_PROTO_SignData done [02:49:29]FM_MakeSignedData done [02:49:29]CreateOFDProtocolMessage [02:49:29]wFMCommunicate request_size=4 [02:49:29]MH_SAM_APDU [02:49:29]CAPDU: 80 11 00 00 [02:49:29]Write to MH i2c: E2 08 00 FA 0B 80 11 00 00 00 00 00 00 7F [02:49:29]Write i2c OK [02:49:29]MH_I2C_Read... [02:49:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:49:29]Read from MH i2c: E2 [02:49:29]MH_I2C_Read... [02:49:29]Read from MH i2c: E2 17 00 [02:49:29]MH_I2C_Read... [02:49:29]Read from MH i2c: E2 17 00 FA 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 D2 [02:49:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [02:49:29]wFMCommunicate OK [02:49:29]CreateOFDProtocolMessage done [02:49:29]OFDSenderStorePacket 148243 [02:49:29]StoreOFDPacket docnum=148243 [02:49:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 61 71 07 01 1A 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 39 2F 5D 66 0E 04 04 00 6F 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 13 43 02 00 35 04 06 00 62 86 63 B5 3A A1 D7 D0 6B BE 51 CC 39 79 [02:49:29]CheckFolder [02:49:29]dirname=/storage/ofd_packets [02:49:29]CheckFolder done [02:49:29]ProducePacketName [02:49:29]name=ofd_packets/00148243 [02:49:29]NVStorageSaveData ofd_packets/00148243 [02:49:29]File name is /storage/ofd_packets/00148243 [02:49:29]Write 301 bytes [02:49:29]NVStorageSaveData done [02:49:29]OFDSenderStorePacket done [02:49:29]KKMCreateOFDPacket done [02:49:29]NVStorageSaveData kkm_last_timestamp [02:49:29]File name is /storage/kkm_last_timestamp [02:49:29]Write 4 bytes [02:49:29]NVStorageSaveData done [02:49:29]OFD Sender: Processing packet 148243 [packets to send 99, broken 98] [02:49:29]ProducePacketName [02:49:29]name=ofd_packets/00148243 [02:49:29]OFD Sender: To server: pG, [02:49:29]CommunicateWithHost lk.salyk.kg:30040 [02:49:29]ConnectInit lk.salyk.kg [02:49:29]ExternCall_PrintAddStr [02:49:29]wPrintStart [02:49:29]Write to MH i2c: 01 00 00 FB 0B 06 [02:49:29]Write i2c OK [02:49:29]MH_I2C_Read... [02:49:29]Read from MH i2c: 01 [02:49:29]MH_I2C_Read... [02:49:29]Read from MH i2c: 01 07 00 [02:49:29]MH_I2C_Read... [02:49:29]Read from MH i2c: 01 07 00 FB 0B 00 00 00 00 00 FF 0F 1B [02:49:29]RasterBufferAndPrint [02:49:29]line Счет N : (1)979176 [02:49:29]line ИНН: 02508201610067 [02:49:29]line Контрольно-Кассовый Чек [02:49:29]line ПРОДАЖА [02:49:29]line ТРК (МРК, ГНК) : 31 [02:49:29]line Товар: 2710124130 [02:49:29]line Аи-92-К-5 [02:49:29]line 4.040 * 66.90 [02:49:29]line = 270.28 [02:49:29]line НДС 12% НСП 1% [02:49:29]line > о реализуемом товаре [02:49:29]line ОКРУГЛЕНИЕ: -0.28 [02:49:29]line ИТОГО: 270.00 [02:49:29]line Внесено: 270.00 [02:49:29]line СДАЧА: 0.00 [02:49:29]line НСП 1% : 2.39 [02:49:29]line НДС 12% : 28.70 [02:49:29]line Наличными: 270.00 [02:49:29]line Безнал.: 0.00 [02:49:29]line Место: АЗС № 68 "Партнер Нефть" [02:49:29]line Адрес: 720001, г. Каракол, ул. Прежевальского-Бейшеналиева 5, 42.494529, 78.376331 [02:49:29]line СНО: Общий режим [02:49:29]line Чек 5 03.06.2024 02:49 [02:49:29]line Смена: 367 ФФД: 1.0 [02:49:29]line ЗНМ: 0300000035 [02:49:29]line РНМ: 0000000000092720 [02:49:30]line Версия ККМ: 001 [02:49:30]line ФМ: 0000000000875057 [02:49:30]line ФД: 148243 [02:49:30]line ФПД: 108329337961121 [02:49:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T024929&type=1&operation_type=1&fn_number=0000000000875057&fd_number=148243&fm=108329337961121&tin=02508201610067®Number=0000000000092720&sum=27000 [02:49:30]Connected sock=11 [02:49:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0F 01 00 00 61 71 07 01 1A 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 39 2F 5D 66 0E 04 04 00 6F 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 10 04 04 00 13 43 02 00 35 04 06 00 62 86 63 B5 3A A1 D7 D0 6B BE 51 CC 39 79 [02:49:30]written 0, free lines is 4095 [02:49:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 4F 00 00 00 8D 61 47 00 39 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 35 30 35 37 10 04 04 00 13 43 02 00 F4 03 04 00 61 D6 5C 66 B6 04 01 00 00 CF 08 37 11 D1 53 2B CC [02:49:30]CommunicateWithHost err = 0 [02:49:30]CheckOFDResponse [02:49:30]1017 (14) - 77093643461234 [02:49:30]1041 (16) - 0000000000875057 [02:49:30]1040 (4) - 148243 [02:49:30]1012 (4) - 02.06.2024 20:30 [02:49:30]1206 (1) - 0 [02:49:30]OFD Sender: Remove packet 148243 [02:49:30]ProducePacketName [02:49:30]name=ofd_packets/00148243 [02:49:30]NVStorageDeleteData [02:49:30]Write to MH i2c: 01 00 00 26 0C 32 [02:49:30]Write i2c OK [02:49:30]MH_I2C_Read... [02:49:30]Read from MH i2c: 01 [02:49:30]MH_I2C_Read... [02:49:30]Read from MH i2c: 01 07 00 [02:49:30]MH_I2C_Read... [02:49:30]Read from MH i2c: 01 07 00 26 0C 00 00 00 00 00 6C 0C B1 [02:49:30]RasterBufferAndPrint [02:49:30]line [02:49:30]line [02:49:30]line [02:49:30]line [02:49:30]line [02:49:30]written 0, free lines is 3183 [02:49:30]MH_Cut [02:49:30]Write to MH i2c: D1 01 00 2D 0C 01 0B [02:49:30]Write i2c OK [02:49:30]MH_I2C_Read... [02:49:30]Read from MH i2c: D1 [02:49:30]MH_I2C_Read... [02:49:30]Read from MH i2c: D1 01 00 [02:49:30]MH_I2C_Read... [02:49:30]Read from MH i2c: D1 01 00 2D 0C 00 0A [02:49:30]Write to MH i2c: 01 00 00 2E 0C 3A [02:49:30]Write i2c OK [02:49:30]MH_I2C_Read... [02:49:30]OFD Sender: No OFD packet to send [02:49:31]*** Cut start [02:49:31]*** Partial cut [02:49:31]*** CUTSNS_PIN = 1 [02:49:31]*** CUTSNS_PIN = 0 [02:49:32]*** Brake cut motor [02:49:32]Read from MH i2c: 01 [02:49:32]MH_I2C_Read... [02:49:32]*** Stop cut motor [02:49:32]*** Cut end [02:49:32]Read from MH i2c: 01 07 00 [02:49:32]MH_I2C_Read... [02:49:32]Read from MH i2c: 01 07 00 2E 0C 00 00 00 00 00 FF 0F 4F [02:49:32]process_action close_receipt done [02:49:32]requested_data is exist [02:49:32]produce_requested_data [02:49:32]requested_item fm.sn is exist - process it [02:49:32]wFMCommunicate request_size=4 [02:49:32]MH_SAM_APDU [02:49:32]CAPDU: 80 11 00 00 [02:49:32]Write to MH i2c: E2 08 00 2F 0C 80 11 00 00 00 00 00 00 B5 [02:49:32]Write i2c OK [02:49:32]MH_I2C_Read... [02:49:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:49:32]Read from MH i2c: E2 [02:49:32]MH_I2C_Read... [02:49:32]Read from MH i2c: E2 17 00 [02:49:32]MH_I2C_Read... [02:49:32]Read from MH i2c: E2 17 00 2F 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 08 [02:49:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 90 00 [02:49:32]wFMCommunicate OK [02:49:32]requested_item fd.num is exist - process it [02:49:32]SAM_PROTO_GetFieldsCounters [02:49:32]wFMCommunicate request_size=4 [02:49:32]MH_SAM_APDU [02:49:32]CAPDU: 80 13 00 00 [02:49:32]Write to MH i2c: E2 08 00 30 0C 80 13 00 00 00 00 00 00 B8 [02:49:32]Write i2c OK [02:49:32]MH_I2C_Read... [02:49:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:49:32]Read from MH i2c: E2 [02:49:32]MH_I2C_Read... [02:49:32]Read from MH i2c: E2 62 00 [02:49:32]MH_I2C_Read... [02:49:32]Read from MH i2c: E2 62 00 30 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 13 43 02 00 0E 04 04 00 6F 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [02:49:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 35 37 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 30 10 04 04 00 13 43 02 00 0E 04 04 00 6F 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:49:32]wFMCommunicate OK [02:49:32]SAM_PROTO_GetFieldsCounters done [02:49:32]requested_item shift.num is exist - process it [02:49:32]requested_item shift.opened is exist - process it [02:49:32]req_shift_opened [02:49:32]FM_GetShiftState [02:49:32]SAM_PROTO_GetShiftState [02:49:32]wFMCommunicate request_size=4 [02:49:32]MH_SAM_APDU [02:49:32]CAPDU: 80 13 01 00 [02:49:32]Write to MH i2c: E2 08 00 31 0C 80 13 01 00 00 00 00 00 BA [02:49:32]Write i2c OK [02:49:32]MH_I2C_Read... [02:49:32]Read from MH i2c: E2 [02:49:32]MH_I2C_Read... [02:49:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:49:32]Read from MH i2c: E2 0E 00 [02:49:32]MH_I2C_Read... [02:49:32]Read from MH i2c: E2 0E 00 31 0C 00 09 00 01 D8 0F 5D 66 00 00 00 00 90 00 70 [02:49:32]RAPDU: 09 00 01 D8 0F 5D 66 00 00 00 00 90 00 [02:49:32]wFMCommunicate OK [02:49:32]SAM_PROTO_GetShiftState done [02:49:32]FM_GetShiftState done [02:49:32]req_shift_opened done [02:49:32]requested_item shift.open_date is exist - process it [02:49:32]req_shift_open_date [02:49:32]req_shift_open_date done [02:49:32]produce_requested_data done [02:49:32]produce_requested_data return {"fm.sn":"0000000000875057","fd.num":148243,"shift.num":367,"shift.opened":1,"shift.open_date":1717374936} [02:49:32]process_action_free close_receipt [02:49:32]json_value_free [02:49:32]json_value_free done [02:49:32]process_json_proto returns [02:49:32]Send response to host [02:49:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875057","fd.num":148243,"shift.num":367,"shift.opened":1,"shift.open_date":1717374936}}} [02:49:32]free response buf [02:49:32]execute_script done [02:49:32]execute_script returns [02:49:32]free content buf [02:49:32]Sock 8.Close socket [02:49:32]Sock 8.Thread stoped [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:15]OFD Sender: No OFD packet to send [02:51:20]OFD Sender: No OFD packet to send [02:51:25]OFD Sender: No OFD packet to send [02:51:30]OFD Sender: No OFD packet to send [02:51:35]OFD Sender: No OFD packet to send [02:51:40]OFD Sender: No OFD packet to send [02:51:45]OFD Sender: No OFD packet to send [02:51:50]OFD Sender: No OFD packet to send [02:51:55]OFD Sender: No OFD packet to send [02:52:00]OFD Sender: No OFD packet to send [02:52:05]OFD Sender: No OFD packet to send [02:52:10]OFD Sender: No OFD packet to send [02:52:15]OFD Sender: No OFD packet to send [02:52:21]OFD Sender: No OFD packet to send [02:52:26]OFD Sender: No OFD packet to send [02:52:31]OFD Sender: No OFD packet to send [02:52:36]OFD Sender: No OFD packet to send [02:52:41]OFD Sender: No OFD packet to send [02:52:46]OFD Sender: No OFD packet to send [02:52:51]OFD Sender: No OFD packet to send [02:52:56]OFD Sender: No OFD packet to send [02:53:01]OFD Sender: No OFD packet to send [02:53:06]OFD Sender: No OFD packet to send [02:53:11]OFD Sender: No OFD packet to send [02:53:16]OFD Sender: No OFD packet to send [02:53:21]OFD Sender: No OFD packet to send [02:53:26]OFD Sender: No OFD packet to send [02:53:31]OFD Sender: No OFD packet to send [02:53:36]OFD Sender: No OFD packet to send [02:53:41]OFD Sender: No OFD packet to send [02:53:46]OFD Sender: No OFD packet to send [02:53:51]OFD Sender: No OFD packet to send [02:53:56]OFD Sender: No OFD packet to send [02:54:01]OFD Sender: No OFD packet to send [02:54:06]OFD Sender: No OFD packet to send [02:54:11]OFD Sender: No OFD packet to send [02:54:16]OFD Sender: No OFD packet to send [02:54:21]OFD Sender: No OFD packet to send [02:54:26]OFD Sender: No OFD packet to send [02:54:31]OFD Sender: No OFD packet to send [02:54:36]OFD Sender: No OFD packet to send [02:54:41]OFD Sender: No OFD packet to send [02:54:46]OFD Sender: No OFD packet to send [02:54:51]OFD Sender: No OFD packet to send [02:54:56]OFD Sender: No OFD packet to send [02:55:01]OFD Sender: No OFD packet to send [02:55:06]OFD Sender: No OFD packet to send [02:55:11]OFD Sender: No OFD packet to send [02:55:16]OFD Sender: No OFD packet to send [02:55:21]OFD Sender: No OFD packet to send [02:55:26]OFD Sender: No OFD packet to send [02:55:31]OFD Sender: No OFD packet to send [02:55:36]OFD Sender: No OFD packet to send [02:55:41]OFD Sender: No OFD packet to send [02:55:46]OFD Sender: No OFD packet to send [02:55:51]OFD Sender: No OFD packet to send [02:55:56]OFD Sender: No OFD packet to send [02:56:01]OFD Sender: No OFD packet to send [02:56:06]OFD Sender: No OFD packet to send [02:56:11]OFD Sender: No OFD packet to send [02:56:16]OFD Sender: No OFD packet to send [02:56:21]OFD Sender: No OFD packet to send [02:56:26]OFD Sender: No OFD packet to send [02:56:31]OFD Sender: No OFD packet to send [02:56:36]OFD Sender: No OFD packet to send [02:56:41]OFD Sender: No OFD packet to send [02:56:46]OFD Sender: No OFD packet to send [02:56:51]OFD Sender: No OFD packet to send [02:56:56]OFD Sender: No OFD packet to send [02:57:01]OFD Sender: No OFD packet to send [02:57:06]OFD Sender: No OFD packet to send [02:57:11]OFD Sender: No OFD packet to send [02:57:16]OFD Sender: No OFD packet to send [02:57:21]OFD Sender: No OFD packet to send [02:57:26]OFD Sender: No OFD packet to send [02:57:31]OFD Sender: No OFD packet to send [02:57:36]OFD Sender: No OFD packet to send [02:57:41]OFD Sender: No OFD packet to send [02:57:46]OFD Sender: No OFD packet to send [02:57:51]OFD Sender: No OFD packet to send [02:57:56]OFD Sender: No OFD packet to send [02:58:01]OFD Sender: No OFD packet to send [02:58:06]OFD Sender: No OFD packet to send [02:58:11]OFD Sender: No OFD packet to send [02:58:16]OFD Sender: No OFD packet to send [02:58:21]OFD Sender: No OFD packet to send [02:58:26]OFD Sender: No OFD packet to send [02:58:31]OFD Sender: No OFD packet to send [02:58:36]OFD Sender: No OFD packet to send [02:58:41]OFD Sender: No OFD packet to send [02:58:46]OFD Sender: No OFD packet to send [02:58:51]OFD Sender: No OFD packet to send [02:58:56]OFD Sender: No OFD packet to send [02:59:01]OFD Sender: No OFD packet to send [02:59:06]OFD Sender: No OFD packet to send [02:59:11]OFD Sender: No OFD packet to send [02:59:16]OFD Sender: No OFD packet to send [02:59:21]OFD Sender: No OFD packet to send [02:59:26]OFD Sender: No OFD packet to send [02:59:31]OFD Sender: No OFD packet to send [02:59:36]OFD Sender: No OFD packet to send [02:59:41]OFD Sender: No OFD packet to send [02:59:46]OFD Sender: No OFD packet to send [02:59:51]OFD Sender: No OFD packet to send [02:59:56]OFD Sender: No OFD packet to send [03:00:01]OFD Sender: No OFD packet to send [03:00:06]OFD Sender: No OFD packet to send [03:00:11]OFD Sender: No OFD packet to send [03:00:16]OFD Sender: No OFD packet to send [03:00:21]OFD Sender: No OFD packet to send [03:00:26]OFD Sender: No OFD packet to send [03:00:31]OFD Sender: No OFD packet to send [03:00:36]OFD Sender: No OFD packet to send [03:00:41]OFD Sender: No OFD packet to send [03:00:46]OFD Sender: No OFD packet to send [03:00:51]OFD Sender: No OFD packet to send [03:00:56]OFD Sender: No OFD packet to send [03:01:01]OFD Sender: No OFD packet to send [03:01:06]OFD Sender: No OFD packet to send [03:01:11]OFD Sender: No OFD packet to send [03:01:16]OFD Sender: No OFD packet to send [03:01:21]OFD Sender: No OFD packet to send [03:01:26]OFD Sender: No OFD packet to send [03:01:31]OFD Sender: No OFD packet to send [03:01:36]OFD Sender: No OFD packet to send [03:01:41]OFD Sender: No OFD packet to send [03:01:46]OFD Sender: No OFD packet to send [03:01:51]OFD Sender: No OFD packet to send [03:01:56]OFD Sender: No OFD packet to send [03:02:01]OFD Sender: No OFD packet to send [03:02:06]OFD Sender: No OFD packet to send [03:02:11]OFD Sender: No OFD packet to send [03:02:16]OFD Sender: No OFD packet to send [03:02:21]OFD Sender: No OFD packet to send [03:02:26]OFD Sender: No OFD packet to send [03:02:31]OFD Sender: No OFD packet to send [03:02:36]OFD Sender: No OFD packet to send [03:02:41]OFD Sender: No OFD packet to send [03:02:46]OFD Sender: No OFD packet to send [03:02:51]OFD Sender: No OFD packet to send [03:02:56]OFD Sender: No OFD packet to send [03:03:01]OFD Sender: No OFD packet to send [03:03:06]OFD Sender: No OFD packet to send [03:03:11]OFD Sender: No OFD packet to send [03:03:16]OFD Sender: No OFD packet to send [03:03:21]OFD Sender: No OFD packet to send [03:03:26]OFD Sender: No OFD packet to send [03:03:31]OFD Sender: No OFD packet to send [03:03:36]OFD Sender: No OFD packet to send [03:03:41]OFD Sender: No OFD packet to send [03:03:46]OFD Sender: No OFD packet to send [03:03:51]OFD Sender: No OFD packet to send [03:03:56]OFD Sender: No OFD packet to send [03:04:01]OFD Sender: No OFD packet to send [03:04:06]OFD Sender: No OFD packet to send [03:04:11]OFD Sender: No OFD packet to send [03:04:16]OFD Sender: No OFD packet to send [03:04:21]OFD Sender: No OFD packet to send [03:04:26]OFD Sender: No OFD packet to send [03:04:31]OFD Sender: No OFD packet to send [03:04:36]OFD Sender: No OFD packet to send [03:04:41]OFD Sender: No OFD packet to send [03:04:46]OFD Sender: No OFD packet to send [03:04:51]OFD Sender: No OFD packet to send [03:04:56]OFD Sender: No OFD packet to send [03:05:01]OFD Sender: No OFD packet to send [03:05:06]OFD Sender: No OFD packet to send [03:05:11]OFD Sender: No OFD packet to send [03:05:16]OFD Sender: No OFD packet to send [03:05:21]OFD Sender: No OFD packet to send [03:05:26]OFD Sender: No OFD packet to send [03:05:31]OFD Sender: No OFD packet to send [03:05:36]OFD Sender: No OFD packet to send [03:05:41]OFD Sender: No OFD packet to send [03:05:46]OFD Sender: No OFD packet to send [03:05:51]OFD Sender: No OFD packet to send [03:05:56]OFD Sender: No OFD packet to send [03:06:01]OFD Sender: No OFD packet to send [03:06:06]OFD Sender: No OFD packet to send [03:06:11]OFD Sender: No OFD packet to send [03:06:16]OFD Sender: No OFD packet to send [03:06:21]OFD Sender: No OFD packet to send [03:06:26]OFD Sender: No OFD packet to send [03:06:31]OFD Sender: No OFD packet to send [03:06:36]OFD Sender: No OFD packet to send [03:06:41]OFD Sender: No OFD packet to send [03:06:46]OFD Sender: No OFD packet to send [03:06:51]OFD Sender: No OFD packet to send [03:06:56]OFD Sender: No OFD packet to send [03:07:01]OFD Sender: No OFD packet to send [03:07:06]OFD Sender: No OFD packet to send [03:07:11]OFD Sender: No OFD packet to send [03:07:16]OFD Sender: No OFD packet to send [03:07:21]OFD Sender: No OFD packet to send [03:07:26]OFD Sender: No OFD packet to send [03:07:31]OFD Sender: No OFD packet to send [03:07:36]OFD Sender: No OFD packet to send [03:07:41]OFD Sender: No OFD packet to send [03:07:47]OFD Sender: No OFD packet to send [03:07:52]OFD Sender: No OFD packet to send [03:07:57]OFD Sender: No OFD packet to send [03:08:02]OFD Sender: No OFD packet to send [03:08:07]OFD Sender: No OFD packet to send [03:08:12]OFD Sender: No OFD packet to send [03:08:17]OFD Sender: No OFD packet to send [03:08:22]OFD Sender: No OFD packet to send [03:08:27]OFD Sender: No OFD packet to send [03:08:32]OFD Sender: No OFD packet to send [03:08:37]OFD Sender: No OFD packet to send [03:08:42]OFD Sender: No OFD packet to send [03:08:47]OFD Sender: No OFD packet to send [03:08:52]OFD Sender: No OFD packet to send [03:08:57]OFD Sender: No OFD packet to send [03:09:02]OFD Sender: No OFD packet to send [03:09:07]OFD Sender: No OFD packet to send [03:09:12]OFD Sender: No OFD packet to send [03:09:17]OFD Sender: No OFD packet to send [03:09:22]OFD Sender: No OFD packet to send [03:09:27]OFD Sender: No OFD packet to send [03:09:32]OFD Sender: No OFD packet to send [03:09:37]OFD Sender: No OFD packet to send [03:09:42]OFD Sender: No OFD packet to send [03:09:47]OFD Sender: No OFD packet to send [03:09:52]OFD Sender: No OFD packet to send [03:09:57]OFD Sender: No OFD packet to send [03:10:02]OFD Sender: No OFD packet to send [03:10:07]OFD Sender: No OFD packet to send [03:10:12]OFD Sender: No OFD packet to send [03:10:17]OFD Sender: No OFD packet to send [03:10:22]OFD Sender: No OFD packet to send [03:10:27]OFD Sender: No OFD packet to send [03:10:32]OFD Sender: No OFD packet to send [03:10:37]OFD Sender: No OFD packet to send [03:10:42]OFD Sender: No OFD packet to send [03:10:47]OFD Sender: No OFD packet to send [03:10:52]OFD Sender: No OFD packet to send [03:10:57]OFD Sender: No OFD packet to send [03:11:02]OFD Sender: No OFD packet to send [03:11:07]OFD Sender: No OFD packet to send [03:11:12]OFD Sender: No OFD packet to send [03:11:17]OFD Sender: No OFD packet to send [03:11:22]OFD Sender: No OFD packet to send [03:11:27]OFD Sender: No OFD packet to send [03:11:32]OFD Sender: No OFD packet to send [03:11:37]OFD Sender: No OFD packet to send [03:11:42]OFD Sender: No OFD packet to send [03:11:47]OFD Sender: No OFD packet to send [03:11:52]OFD Sender: No OFD packet to send [03:11:57]OFD Sender: No OFD packet to send [03:12:02]OFD Sender: No OFD packet to send [03:12:07]OFD Sender: No OFD packet to send [03:12:12]OFD Sender: No OFD packet to send [03:12:17]OFD Sender: No OFD packet to send [03:12:22]OFD Sender: No OFD packet to send [03:12:27]OFD Sender: No OFD packet to send [03:12:32]OFD Sender: No OFD packet to send [03:12:37]OFD Sender: No OFD packet to send [03:12:42]OFD Sender: No OFD packet to send [03:12:47]OFD Sender: No OFD packet to send [03:12:52]OFD Sender: No OFD packet to send [03:12:57]OFD Sender: No OFD packet to send [03:13:02]OFD Sender: No OFD packet to send [03:13:07]OFD Sender: No OFD packet to send [03:13:12]OFD Sender: No OFD packet to send [03:13:17]OFD Sender: No OFD packet to send [03:13:22]OFD Sender: No OFD packet to send [03:13:27]OFD Sender: No OFD packet to send [03:13:32]OFD Sender: No OFD packet to send [03:13:37]OFD Sender: No OFD packet to send [03:13:42]OFD Sender: No OFD packet to send [03:13:47]OFD Sender: No OFD packet to send [03:13:52]OFD Sender: No OFD packet to send [03:13:57]OFD Sender: No OFD packet to send [03:14:02]OFD Sender: No OFD packet to send [03:14:07]OFD Sender: No OFD packet to send [03:14:12]OFD Sender: No OFD packet to send [03:14:17]OFD Sender: No OFD packet to send [03:14:22]OFD Sender: No OFD packet to send [03:14:27]OFD Sender: No OFD packet to send [03:14:32]OFD Sender: No OFD packet to send [03:14:37]OFD Sender: No OFD packet to send [03:14:42]OFD Sender: No OFD packet to send [03:14:47]OFD Sender: No OFD packet to send [03:14:52]OFD Sender: No OFD packet to send [03:14:57]OFD Sender: No OFD packet to send [03:15:02]OFD Sender: No OFD packet to send [03:15:07]OFD Sender: No OFD packet to send [03:15:12]OFD Sender: No OFD packet to send [03:15:17]OFD Sender: No OFD packet to send [03:15:22]OFD Sender: No OFD packet to send [03:15:27]OFD Sender: No OFD packet to send [03:15:32]OFD Sender: No OFD packet to send [03:15:37]OFD Sender: No OFD packet to send [03:15:42]OFD Sender: No OFD packet to send [03:15:47]OFD Sender: No OFD packet to send [03:15:52]OFD Sender: No OFD packet to send [03:15:57]OFD Sender: No OFD packet to send [03:16:02]OFD Sender: No OFD packet to send [03:16:07]OFD Sender: No OFD packet to send [03:16:12]OFD Sender: No OFD packet to send [03:16:17]OFD Sender: No OFD packet to send [03:16:22]OFD Sender: No OFD packet to send [03:16:27]OFD Sender: No OFD packet to send [03:16:32]OFD Sender: No OFD packet to send [03:16:37]OFD Sender: No OFD packet to send [03:16:42]OFD Sender: No OFD packet to send [03:16:47]OFD Sender: No OFD packet to send [03:16:52]OFD Sender: No OFD packet to send [03:16:57]OFD Sender: No OFD packet to send [03:17:02]OFD Sender: No OFD packet to send [03:17:07]OFD Sender: No OFD packet to send [03:17:12]OFD Sender: No OFD packet to send [03:17:17]OFD Sender: No OFD packet to send [03:17:22]OFD Sender: No OFD packet to send [03:17:27]OFD Sender: No OFD packet to send [03:17:32]OFD Sender: No OFD packet to send [03:17:37]OFD Sender: No OFD packet to send [03:17:42]OFD Sender: No OFD packet to send [03:17:47]OFD Sender: No OFD packet to send [03:17:52]OFD Sender: No OFD packet to send [03:17:57]OFD Sender: No OFD packet to send [03:18:02]OFD Sender: No OFD packet to send [03:18:07]OFD Sender: No OFD packet to send [03:18:12]OFD Sender: No OFD packet to send [03:18:17]OFD Sender: No OFD packet to send [03:18:22]OFD Sender: No OFD packet to send [03:18:27]OFD Sender: No OFD packet to send [03:18:32]OFD Sender: No OFD packet to send [03:18:37]OFD Sender: No OFD packet to send [03:18:42]OFD Sender: No OFD packet to send [03:18:47]OFD Sender: No OFD packet to send [03:18:52]OFD Sender: No OFD packet to send [03:18:57]OFD Sender: No OFD packet to send